I am doing some benchmarking on EXT4 performance on Compact Flash media.
I have created an ext4 fs with block size of 65536. however I can not
mount it on ubuntu-10.10-netbook-i386. (it is already mounting ext4 fs with 4096 bytes of block sizes)
According to my readings on ext4 it should allow such big block sized
fs. I want to hear your comments.
root@ubuntu:~# mkfs.ext4 -b 65536 /dev/sda3
Warning: blocksize 65536 not usable on most systems.
mke2fs 1.41.12 (17-May-2010)
mkfs.ext4: 65536-byte blocks too big for system (max 4096)
Proceed anyway? (y,n) y
Warning: 65536-byte blocks too big for system (max 4096), forced to continue
Filesystem label=
OS type: Linux
Block size=65536 (log=6)
Fragment size=65536 (log=6)
Stride=0 blocks, Stripe width=0 blocks
19968 inodes, 19830 blocks
991 blocks (5.00%) reserved for the super user
First data block=0
1 block group
65528 blocks per group, 65528 fragments per group
19968 inodes per group
Writing inode tables: done
Creating journal (1024 blocks): done
Writing superblocks and filesystem accounting information: done
This filesystem will be automatically checked every 37 mounts or
180 days, whichever comes first. Use tune2fs -c or -i to override.
root@ubuntu:~# tune2fs -l /dev/sda3
tune2fs 1.41.12 (17-May-2010)
Filesystem volume name: <none>
Last mounted on: <not available>
Filesystem UUID: 4cf3f507-e7b4-463c-be11-5b408097099b
Filesystem magic number: 0xEF53
Filesystem revision #: 1 (dynamic)
Filesystem features: has_journal ext_attr resize_inode dir_index
filetype extent flex_bg sparse_super large_file huge_file uninit_bg
dir_nlink extra_isize
Filesystem flags: signed_directory_hash
Default mount options: (none)
Filesystem state: clean
Errors behavior: Continue
Filesystem OS type: Linux
Inode count: 19968
Block count: 19830
Reserved block count: 991
Free blocks: 18720
Free inodes: 19957
First block: 0
Block size: 65536
Fragment size: 65536
Blocks per group: 65528
Fragments per group: 65528
Inodes per group: 19968
Inode blocks per group: 78
Flex block group size: 16
Filesystem created: Sat Feb 5 14:39:55 2011
Last mount time: n/a
Last write time: Sat Feb 5 14:40:02 2011
Mount count: 0
Maximum mount count: 37
Last checked: Sat Feb 5 14:39:55 2011
Check interval: 15552000 (6 months)
Next check after: Thu Aug 4 14:39:55 2011
Lifetime writes: 70 MB
Reserved blocks uid: 0 (user root)
Reserved blocks gid: 0 (group root)
First inode: 11
Inode size: 256
Required extra isize: 28
Desired extra isize: 28
Journal inode: 8
Default directory hash: half_md4
Directory Hash Seed: afb5b570-9d47-4786-bad2-4aacb3b73516
Journal backup: inode blocks
root@ubuntu:~# mount -t ext4 /dev/sda3 /mnt/
mount: wrong fs type, bad option, bad superblock on /dev/sda3,
missing codepage or helper program, or other error
In some cases useful info is found in syslog - try
dmesg | tail or so
I've got a friend with a weird problem. When he starts his computer the screen is completely black until the computer is completely started. So the screen is black until it suddenly shows the Windows desktop. He said that this is happening since a technical service repaired his computer, but that repair is not now in warranty.
Recently the computer stopped working, but as the screen is black he cannot access to BIOS or start in safe mode (by pressing F8). When he inserts the Windows Vista DVD the system doesn't boot from DVD (it mustn't be configured in this way in the BIOS). Maybe there´s a problem with the hardware (maybe the graphic card)?
Can anyone explain a reason why the screen is black during start-up? Any idea of what to do with the computer to restore it?
Currently I'm leveraging http://developer.yahoo.com/search/content/V1/termExtraction.html which isn't ideal for performance and quality reasons. Before I embark on spending time on writing a system I wanted to see if there are any other available options that can do the trick.
Hi all,
I'm writing a Java applet where I should be able to simulate a connection between two hosts. Hence I have to generate packet round-trip times at random.
These RTTs can go from ~0 to infinity, but are typically oscillating around some average value (i.e. an extremely large or small value is very improbable but possible). I was wondering if anyone had an idea of how I could do this?
Thanks in advance
Suddenly the language with I was writing the code is changed and it is now not English.So how to change the language in visual studio .net 2008 ?
It looks like aß?def??????µ??p;?sst?????
I have program which monitors a directory (/test) and notify me.
I want to improve this to monitor another directory (say /opt).
And also how to monitor it's subdirectories , current i'll get notified if any changes made to files under /test . but i'm not getting any inotifcation if changes made sub-directory of /test, that is touch /test/sub-dir/files.txt ..
Here my current code - hope this will help
/*
Simple example for inotify in Linux.
inotify has 3 main functions.
inotify_init1 to initialize
inotify_add_watch to add monitor
then inotify_??_watch to rm monitor.you the what to replace with ??.
yes third one is inotify_rm_watch()
*/
#include <sys/inotify.h>
int main(){
int fd,wd,wd1,i=0,len=0;
char pathname[100],buf[1024];
struct inotify_event *event;
fd=inotify_init1(IN_NONBLOCK);
/* watch /test directory for any activity and report it back to me */
wd=inotify_add_watch(fd,"/test",IN_ALL_EVENTS);
while(1){
//read 1024 bytes of events from fd into buf
i=0;
len=read(fd,buf,1024);
while(i<len){
event=(struct inotify_event *) &buf[i];
/* check for changes */
if(event->mask & IN_OPEN)
printf("%s :was opened\n",event->name);
if(event->mask & IN_MODIFY)
printf("%s : modified\n",event->name);
if(event->mask & IN_ATTRIB)
printf("%s :meta data changed\n",event->name);
if(event->mask & IN_ACCESS)
printf("%s :was read\n",event->name);
if(event->mask & IN_CLOSE_WRITE)
printf("%s :file opened for writing was closed\n",event->name);
if(event->mask & IN_CLOSE_NOWRITE)
printf("%s :file opened not for writing was closed\n",event->name);
if(event->mask & IN_DELETE_SELF)
printf("%s :deleted\n",event->name);
if(event->mask & IN_DELETE)
printf("%s :deleted\n",event->name);
/* update index to start of next event */
i+=sizeof(struct inotify_event)+event->len;
}
}
}
I am writing a Silverlight 3 application, this app uses a service reference to connect to a SharePoint site by using Sharepoint Lists.asmx web service
Now i want to install my app on different servers, and i want my app to use the weBservice of the server on which it is installed (without me specifying it).
In Vs2005, we used to specify "dynamic" for the webservice.
How can i do this in Visual Studio 2010 (service reference)? there is no "dynamic" property for a service reference.
Thanks,
I've heard that OpenGL ES and standard iPhone UI controls don't play well together, but I'm wondering if anyone knows why, and what the effects are? I'm writing an OpenGL based game, and the view is loaded from a nib file with ui controls, and it seems to work ok, but the game is really simple at this point... does using ui controls cause some kind of performance hit?
PdfFileReader reads the content from a pdf file to create an object.
I am querying the pdf from a cdn via urllib.urlopen(), this provides me a file like object, which has no seek.
Now, what can I do to avoid writing to disk and reading it again via file().
Thanks in advance.
While reading a long series of really, really interesting threads, I've come to a realization: I don't think I really know C++. I know C, I know classes, I know inheritance, I know templates (& the STL) and I know exceptions. Not C++. To clarify, I've been writing "C++" for more than 5 years now. I know C, and I know that C and C++ share a common subset.
What I've begun to realize, though, is that more times than not, I wind up treating C++ something vaguely like "C with classes," although I do practice RAII. I've never used Boost, and have only read up on TR1 and C++0x - I haven't used any of these features in practice. I don't use namespaces.
I see a list of #defines, and I think - "Gracious, that's horrible! Very un-C++-like," only to go and mindlessly write class wrappers for the sake of it, and I wind up with large numbers (maybe a few per class) of static methods, and for some reason, that just doesn't seem right lately.
The professional in me yells "just get the job done," the academic yells "you should write proper C++ when writing C++" and I feel like the point of balance is somewhere in between. I'd like to note that I don't want to program "pure" C++ just for the sake of it.
I know several languages. I have a good feel for what "Pythonic" is. I know what clean and clear PHP is. Good C code I can read and write better than English. The issue is that I learned C by example, and picked up C++ as a "series of modifications" to C. And a lot of my early C++ work was creating class wrappers for C libraries. I feel like my own personal C-heavy background while learning C++ has sort of... clouded my acceptance of C++ in it's own right, as it's own language.
Do the weathered C++ lags here have any advice for me? Good examples of clean, sharp C++ to learn from? What habits of C does my inner-C++ really need to break from? My goal here is not to go forth and trumpet "good" C++ paradigm from rooftops for the sake of it. C and C++ are two different languages, and I want to start treating them that way. How? Where to start?
Thanks in advance!
Cheers,
-Chris
Okay, I have a ViewController that has 12 UIButtons as instance variables, and they are created in interface builder. I want to access another variable in the viewController from the UIButton's init method. Is that possible?
By the way, I'm writing in Objective-C in the iPhone SDK.
Cheers.
Hi,
I'm writing a widget where i first have a configure screen where the user makes a selection. Then I want to pass that data on to the actual widget. This must be really simple but I just can find out how to do it.
Hello,
Maybe someone know how to write your own framework, best practices, maybe any books or samples. I think that writing own framework gives one better understanding of how it all works, thanks for help
I want to ask the user for input in console. He'll be writing down two numbers separated by a single space.
In Java is there something like the C# Split() method I can use?
Thank you!
Hi guys,
I'm new to flex. Now I'm writing an flex application. I plan to split my application into some MXML files(Application as the root tag). How can I switch from one mxml to another?
BTW, what is the best practice for design large flex application? Just one MXML Application and many MXML component or many MXML Application?
Thanks!
I am writing a tomcat app, and have a need to do authentication within the URL like this:
https://user:[email protected]
Except for the life of me i'm not sure how to set it up or able to find the docs to read up on it, clearly my google skills need work.
Can anyone tell me where i should be looking for this kind of info or where to start?
Cheers
Andy
Where do filesystems like Reiser, NFS, etc store the file tables? We're looking at writing our own filesystem, and wondering if we should use a single file to hold it all using btree's or use something out there.
Any advice? This is more a learning exercise than anything.
I am planning to make a web app which will eventually use Cassandra. But now that I don't have it and don't have server(s) to run it from, I'd like to start by using MySQL.
The question is, is it possible to structure data and queries in such a way that it would be fairly easy to later port it to Cassandra? Main idea, I guess, would be writing MySQL queries that would be possible to change to same Cassandra queries.
Maybe you have a better suggestion?
This appears to be something to do with the Plugin Development Environment, but I'm not writing an Eclipse Plugin.
How can I stop getting this warning?
Thanks a lot!
Hi ,
Actually am doing shopping cart application ,
after good are transfered we are asking the feedback about our service ,
So customer will give the feedback, this feedback form contain the about our service , the ans are in the rating also we given an comment form , in that they writing something about our servce ,
So we have idea , that is post these good comment into twitter adn facebook,
But customer not showed much interest to login into twitter and then share the twits ,
So is there any way that without account post the twits ,
Thanks
Bharanikumar
How to post twit msg in twitter and facebook without account ,
I'm trying to really understand Cucumber stories. I get it, but I'm really slow writing them. I think if I saw a good fleshed out application, I'd get closer to where I want to be.
There are some samples out there, but there aren't any I can find with a single app with some non-contrived example stories.
Are there any existing ones?
I'm referring to the syntax for writing strings in code, including multiline strings and verbatim strings.
(Context: I'm working on a tool that scans code, and it's important to determine when tokens are inside a string.)
Thanks!
I'm writing a form in XAML that has multiple buttons with content of different sizes (ie "OK" and "Save As...") Ideally, I'd like them all to be the smallest size possible to hold the largest content. In the example above, both buttons would be the width necessary to hold "Save As..." plus the margins and padding.
If they were Grid cells, I could use a SizeGroup. Is there a similar declaration for Buttons?
Hello people,
I made a theme in WordPress which hit the mod_security rule on HostGator and gave 403 error.
I contacted people there(at HostGator) and they fixed it for me. But I don't want my theme to work like this.
I just wanted to know if there are any guides/blog post/tutorials telling about writing PHP code which is mod_security friendly?
I tried Google, but didn't find anything helpful.