Displaying keyword search results 61 - 70
Created by freyo on May 13, 2011 15:45:29 Last update: September 20, 2011 08:08:12
This is an Android app that dumps any binarized xml file as plain text - to the sdcard on the device or emulator. build.xml :
<?xml version="1.0" encoding="UTF-8"?> <project...AndroidManifest.xml
<?xml version="1.0" encoding="utf-8"?> <man...res/layout/main.xml
<?xml version="1.0" encoding="utf-8"?> <Lin...res/values/strings.xml :
<?xml version="1.0" encoding="utf-8"?> <res...src/com/android/xmltool/DumpXml.java
package com.android.xmltool; import java.ut...Screenshot Pre-built APK can be downloaded from: http://code.google.com/p/android-binxml-dump/
Created by Dr. Xi on September 19, 2011 16:15:19 Last update: September 19, 2011 16:15:19
By default, svn recursively adds new files into the repository:
$ svn add *But you have to use " * ", using the dot (current directory) does not work (most likely the current directory is already versioned):
$ svn add .
Created by magnum on September 11, 2011 21:31:45 Last update: September 11, 2011 21:32:00
The warning message was emitted by the gcc compiler with the " -Wdeclaration-after-statement " switch:
$ gcc -Wdeclaration-after-statement hello.cfor the following code:
#include <stdio.h> int main(int argc, char* arg...There were no warnings without the " -Wdeclaration-after-statement " switch. GCC manual says: -Wdeclaration-after-statement (C and Objective-C only) Warn when a declaration is found after a statement in a block. This construct, known from C++, was introduced with ISO C99 and is by default allowed in GCC. It is not supported by ISO C90 and was not supported by GCC versions before GCC 3.0.
Created by voodoo on September 04, 2011 14:23:17 Last update: September 04, 2011 14:25:05
I just installed Ubuntu 11.04 desktop on my old Dell laptop, but the cdrom is not auto-mounting. Normally this simply works. I tried various things like adding cdrom to /etc/fstab and installing halevt (which failed), none worked. However, I found out that despite talks of using gnome-volume-manager etc, at least for this version of Ubuntu automount is managed by Nautilus (file manager): start gconf-editor and navigate to /apps/nautilus/preferences/ , media_automount should be checked (but it's checked by default, unless you changed it). In the end, I wasn't able to make cdrom automount, although USB drives automounted fine. Instead of wasting more time to diagnose the problem, I manually mounted the cdrom drive:
$ sudo mount /dev/cdrom /cdrom
Created by voodoo on September 02, 2011 18:12:56 Last update: September 02, 2011 18:12:56
This is how to add the 3GB switch for Windows XP: Remove system and hidden attributes of C:\boot.ini :
C:\>attrib -s -h boot.iniAdd the 3GB switch to C:\boot.ini :
[boot loader] timeout=30 default=multi(0)dis...Add system and hidden attributes:
C:\>attrib +s +h boot.iniReboot
Created by freyo on August 25, 2011 07:24:31 Last update: August 25, 2011 07:24:31
Android adds two permissions by default ( android.permission.WRITE_EXTERNAL_STORAGE and android.permission.READ_PHONE_STATE ), even though there are no uses-permission declarations in AndroidManifest.xml :
<?xml version="1.0" encoding="utf-8"?> <manifes...But this is no longer true for later versions of Android. Those permissions are not added when you add:
<uses-sdk android:minSdkVersion="8" />to the above.
Created by freyo on August 04, 2011 12:27:27 Last update: August 04, 2011 12:30:42
I got this error while building an APK:
[apply] [apply] UNEXPECTED TOP-LEVEL ERROR...Apparently the dx tool was running out of memory. The dx script (shell or bat) provides options to pass in Java options, but it's a lot easier just to bump up the default in dx :
# By default, give dx a max heap size of 1 gig. Th...Here, I changed the default 1024M to 1624M and resolved the problem.
Created by freyo on August 01, 2011 16:06:40 Last update: August 03, 2011 08:32:01
To list all installed packages:
# pm list packagesTo list all disabled packages:
# pm list packages -dpm help:
# pm usage: pm [list|path|install|uninstall] ...
Created by woolf on July 27, 2011 20:56:11 Last update: July 27, 2011 20:56:11
Install the DHCP server:
voodoo@newpc:~$ sudo apt-get install dhcp3-server ...Edit /etc/dhcp/dhcpd.conf (this is the minimum for a local network without DNS):
ddns-update-style none; default-lease-time ...Start the DHCP server:
voodoo@newpc:/etc/dhcp$ sudo /etc/init.d/isc-dhcp-...
Created by meiu on July 21, 2011 09:34:10 Last update: July 21, 2011 11:00:42
Click Project -> Properties Select "Builders" Click "New", select "Ant Builder", click "OK" Select the Buildfile, set the Base Directory Set targets You may or may not want the default "Java Builder". Uncheck it if you don't want to run the default builder.