I ran into a problem while developing a symbian application for Nokia mobile phone which are running S60 3rd Edition of Symbian.
After coding lots of codes, and then I tried to run the application using only the emulator provided by the SDK, it terminated immediately. There where no error during the building process. It just terminated.
After series of tries, I still failed to run my application. I don't know what the problem is, whether it is because of my codes or my emulator?
I asked my team mate to run my code in his unit and it worked pretty fine. After getting the feedback, I browsed to my emulator and run it. Immediately, it terminated. My theory is that the application (emulator) is crashed. I tried to uninstall it. Removed all the related directories and restarted my computer.
I installed the emulator again and still had the same problem. I noticed that my application has indicated FP_6, what it was before was FP_5. Because of this I found the error. It should be FP only. I think this is a bug during installation. You must have installed the emulator before that's why this is happening.
I simulated the error in a VirtualBox Machine running Windows 7 and I was correct.
The very solution that I have is to reinstall my operating system.
image by: http://www.andreasmarkessinis.com/
Archive for July 2010
Symbian Development Problems: Emulator terminates ASAP
File Permissions, Pipes, Redirections in Ubuntu Explained
File permissions and file ownership
The first basic command that I learned to modify permissions and file ownership in unix files is thecommand chmod. What is the function of chmod? Let us ask the unix first. In your terminal type: whatis chmod.For sure it will display to you that chmod is 1) chmod (1) – change file mode bits. 2) chmod (2) – change permissions of a file. With chmod, you can manipulate your files-- to allow them to be viewed, accessed or any other manipulations from other users. An example from the lab2 exercise would be a very good example in explaining how to use the chmod and what does it actually do. Go to your public_html folder (I assume that you already have this and including the index.html file). Type chmod ugo -rwx index.html – this will modify the permissions to access the file named index.html. Now open up a browser and locate to drdoom/~yourusername/ - this will display FORBIDDEN telling you that you do not have permission to access /~username/index.html. To make it available in your public_html folder just type again chmod ugo+rwr index.html. But remember, this will also allow some other users to edit the contents of this file. To allow only reading, instead of typing +rws you can just type +r to allow only reading. Here's a further explanation about permissions.
- +r →refers to allow reading
- +w →refers to allow writing
- +x → allows executing
- -r → disallows reading
- -w → disallows writing
- -x → disallows executing
Pipes
Pipes are used to connect the results of the first command to result of the other command. For example in you terminal. Type cd public_html and then type ls | grep a. The result will be a list of contents inside your public_html folder that has the letter a on it.
maning_e@doombot:~$ ls | grep a
programs
status
Redirections
This will redirect results of your command. A very easy example is this. When you use ls -l this will produce the list of contents inside that folder which has the permissions listed in the first. Let's redirect these results to a txt file. Type ls -l > out.txt, notice that there is no results shown after the ls -l command, it's because the results where redirected to the txt file out.txt. Type less out.txt to see the results.
Some Linux Commands - File and Folder Manipulation
10 Commands to manipulate the files by Eugene F. Maning :-)
1.mkdir – to create a new directory or folder.
Example:
dir
programs public_html status
mkdir hello
dir
hello programs public_html status
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
2.rm – deletes a file or removes directory or folder.
Example:
dir
hello programs public_html status
rm -r hello
dir
programs public_html status
>> this deleted the folder hello with the use of the operand -r
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
3.cp – copies files or folders to other directories.
Example:
dir
programs public_html status
cp -r programs public_html
cd public_html
dir
index.html programs s
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
4.ln – to create hard and symbolic links.
Example:
dir
index.html programs s
ln -s index.html link
ls -l
i-rw-rw-rw- 1 maning_e maning_e 21 2010-06-18 20:29 index.html
lrwxrwxrwx 1 maning_e maning_e 10 2010-06-25 19:11 link -> index.html
drwx------ 2 maning_e maning_e 4096 2010-06-25 19:00 programs
-rw-r--r-- 1 maning_e maning_e 0 2010-06-18 19:36 s
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
5.mv – move a folder or a file from a location to another location and can also be used to rename files or folders.
Example:
dir
programs public_html status
mv programs “pragmas”
dir
pragmas public_html status
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
6.cd – used to navigate to other directories
Example:
maning_e@doombot:~$ dir
programs public_html status
maning_e@doombot:~$ cd public_html
maning_e@doombot:~/public_html$ cd
maning_e@doombot:~$
>> returned to the previous directory/location
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
7.dir – displays the list of all the contents of the current directory
Example:
dir
pragmas public_html status
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
8.ls – displays all the contents of the current directory (basically the same with dir)
Example:
ls
pragmas public_html status
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
9.touch – creates a file
Example:
dir
pragmas public_html status
touch test.txt
dir
pragmas public_html status test.txt
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
10. less – read a content of a file
Example:
nano test.txt
>>type: hello ; and then hit ctrl + o, then ctrl + x
less test.txt
>> this will display hello in the terminal
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -