日曜日, 2月 27, 2011
touchMapLite
touchMapLite
light javascript viewer for slippy map tiles, optimized for mobile devices. based on panoJS. developed for - openstreetmap data - (multi-) touch sensitive devices - webkit browser.touchMapLite framework notes
水曜日, 2月 23, 2011
route-me Embedding Guide
■ ○route-me○
https://github.com/route-me/route-me
route-me is using GitHub to share code with you!
Old Stuff:
http://code.google.com/p/route-me/downloads/list
route-me
Open source iPhone-native slippy map.
■Git through a proxy(http://www.rootninja.com/git-through-a-proxy/)
git config -–global http.proxy http://172.20.203.128:808
簡単なやり方:
export https_proxy=http://172.20.203.128:808
■GIT clone over HTTP(http://rip747.wordpress.com/2008/09/12/git-clone-over-http-who-knew/)
git clone https://github.com/route-me/route-me.git
■EmbeddingGuide
▲How-to guide on making an application containing a map
http://code.google.com/p/route-me/wiki/EmbeddingGuide
△route-me Embedding Guide - GitHub
https://github.com/route-me/route-me/wiki/Embedding-Guide
▲Integrating with your own project
http://www.gisnotes.com/wordpress/2009/12/iphone-dev-note-19-route-me-opensource-mapping-for-the-iphone/
“Unknown class in Interface Builder file” error at runtime
“Unknown class in Interface Builder file” error at runtime
- Just call a method it inherits from NSObject, like +class.
- Set the -ObjC linker flag. In Xcode go to Project -> Edit Project Settings, find the "Other Linker Flags" entry and add the following (capitalization important) "-ObjC" without the quotes.
Related linker option:-all_load: This one seems a bit overkill, as all of my unused classes will be kept in the final binary, potentially bloating it.
-ObjC : This seems to be a compiler flag, and overrides the file extension rules.
-lobjc : Need this special case of the -l option in order to link an Objective-C or Objective-C++ program. - Fixed this by copying the text from my class.h and .m, deleting those class files from the project, and creating new class.h and .m files with the same name using "Add File".Then paste the code back into the new files, and everything work great.
火曜日, 2月 22, 2011
月曜日, 2月 21, 2011
Put Mac OS dmg image to USB
Mac : Bootable USB from dmg image
sudo asr --restore --source /Volumes/MountedDMG-Disk --target /Volumes/USB-Stick --erase
金曜日, 2月 18, 2011
木曜日, 2月 17, 2011
火曜日, 2月 15, 2011
Mount hidden partition from command line
Mount hidden partition from command line
- Check bootsector to determine actual filesystrem with a hex/disk editor, like, as an example, TinyHexer
- Use MBRfix to SET partition type to either 0B or 0C (if FAT32) or 07 (if NTFS)
- Backup the MBR with dsfo/dsfi or dd-for-windows, or any similar utility
- mbrwrwin.exe can mount the partition PQSERVICE easily
- mount the partition PQSERVICE easily
- If your PC use Vista or Seven, mount partition easily using diskpart command line.
diskpart
rescan
list disk
select disk 0
detail disk
list partition
select partition 1
detail partition
set id=07 override
list disk
select disk 0
list volume
select volume 0
assign letter=d
for exemple...
setid parameter (diskpart) is not available in xp - Typical examples of "mounting" apps are VDK, or IMDISK or Firadisk or WinVblock, i.e. disk/partition drivers. Or does it behave similar to the MOUNTVOL command or the good ol' mnt/unmnt by Christoph H. Hochstaetter or software like the one by Uwe Sieber:
日曜日, 2月 13, 2011
Beginner's Guide to Creating a VistaPE CD
Beginner's Guide to Creating a VistaPE CD
Creating a Windows PE Boot disk
Windows Automated Install Toolkit (WAIK)
TechNet Library -> Windows -> Windows Vista -> Windows Vista Technical Library Roadmap -> Deployment -> Windows Automated Installation Kit (Windows AIK) -> Phase 4: Image Deployment -> Deployment How-To Topics -> Work with Windows PE -> Windows PE Walkthroughs
WinPE-SRT-Package
Don't panic! This doesn't mean that it was removed from the Windows Vista DVD, but it does mean that our corporate customer's will now need to use the boot.wim from the Vista installation media to install WinRE on the harddisk or on WDS.
The OPK has not changed and WinRE is still part of that WinPE. If your customer has access to the OPK, they can use that in the meantime.
If a customer attemps to mount the WinPE.wim file from the Windows AIK and install the SRT optional component (which is WinRE) using PEIMG, SRT will not be listed as an option. Unfortunately, the “BuildWinRE.cmd” file is still included in the C:\Program Files\Windows AIK\Recovery folder. If a customer runs this batch file, it will fail because the component isn't there.
As a workaround, corporate customer's or those of us with access only to the Windows AIK can use the boot.wim from the Vista installation media to install WinRE to the harddisk or on WDS. Instructions are expected to come out soon, but until then, for those of you that want to get a head start or for those of you who receive calls on this, the instructions are posted below.
Note: I only posted Part 1 as the only thing that has changed is how you create the WinRE image. For the remaining steps, please refer to the topic titled “Walkthrough: Build a Windows Recovery Solution” in the Windows PE CHM file included in the Windows AIK. Just ignore Part 1 and replace it with the following:
Part 1: Creating a Windows RE Image
In this section, you will create a customized Windows RE Image on your technician computer.
Step 1: Copy Windows PE from the Installation Media
In this step, you will create a directory structure and set up a Windows PE image for editing.
1. On your technician computer, click Start, point to All Programs, then Windows AIK or Windows OPK, and then click Windows PE Tools Command Prompt.
The menu shortcut opens a command prompt window and automatically sets environment variables to point to all the necessary tools.
2. Create a directory for the Windows PE image and a mount point
mkdir c:\winre_image
mkdir c:\winre_mount
3. Copy the Windows PE image from the installation media using ImageX
imagex.exe /export /boot e:\sources\boot.wim 2 c:\winre_image\winre.wim “Windows Recovery Environment”
4. Mount the image using ImageX
imagex /mountrw c:\winre_image\winre.wim 1 c:\winre_mount
Step 2: Add custom Windows RE scripts
In this step, you will add a custom Window RE scripts to your image. You will create a script called winpeshl.ini that will launch the Windows RE shell at startup.
1. Using a text editor, create a file called winpeshl.ini that contains the following text:.
[LaunchApp]
AppPath=x:\sources\recovery\recenv.exe
2. Copy this file to \Windows\System32 directory in your working Windows PE directory. For example,
copy winpeshl.ini c:\winre_mount\Windows\System32
Step 3: Add mass-storage drivers (optional)
If necessary, you can include third-party drivers (.inf) in your Windows RE image by using the peimg.exe /inf command. For example,
peimg.exe /inf= c:\winre_mount\Windows
Where is the location of the. inf file.
Step 4: Add custom tools to Windows RE (optional)
You can customize Windows RE shell by creating an .xml file called WinREConfig.xml. WinREConfig.xml enables you to define custom support and diagnostic tools within Windows RE. This step is optional. For more information, refer to the Appendix.
Step 5: Save changes to the image
In this step, you will save all the customizations into the image file.
1. In a Windows PE Tools Command Prompt window, unmount the image by using ImageX. For example,
imagex.exe /unmount /commit c:\winre_mount
2. Copy the Windows RE image and related files onto a UFD device
copy c:\winre_image\winre.wim f:
copy “c:\Program Files\Windows AIK\Tools\PETools\x86\boot\boot.sdi” f:
copy “c:\ Program Files\Windows AIK\Recovery\setautofailover.cmd” f:
This completes Part 1 of installing Windows RE. To install the Windows RE image onto the hard disk, follow the instructions in Part 2a or Part 2b. To create recovery media, for example, a CD-ROM, you can create an .iso file of your custom image and burn it to a CD-ROM. Follow the instructions in Part 3.
Creating a Windows PE Boot disk
Windows Automated Install Toolkit (WAIK)
TechNet Library -> Windows -> Windows Vista -> Windows Vista Technical Library Roadmap -> Deployment -> Windows Automated Installation Kit (Windows AIK) -> Phase 4: Image Deployment -> Deployment How-To Topics -> Work with Windows PE -> Windows PE Walkthroughs
WinPE-SRT-Package
Don't panic! This doesn't mean that it was removed from the Windows Vista DVD, but it does mean that our corporate customer's will now need to use the boot.wim from the Vista installation media to install WinRE on the harddisk or on WDS.
The OPK has not changed and WinRE is still part of that WinPE. If your customer has access to the OPK, they can use that in the meantime.
If a customer attemps to mount the WinPE.wim file from the Windows AIK and install the SRT optional component (which is WinRE) using PEIMG, SRT will not be listed as an option. Unfortunately, the “BuildWinRE.cmd” file is still included in the C:\Program Files\Windows AIK\Recovery folder. If a customer runs this batch file, it will fail because the component isn't there.
As a workaround, corporate customer's or those of us with access only to the Windows AIK can use the boot.wim from the Vista installation media to install WinRE to the harddisk or on WDS. Instructions are expected to come out soon, but until then, for those of you that want to get a head start or for those of you who receive calls on this, the instructions are posted below.
Note: I only posted Part 1 as the only thing that has changed is how you create the WinRE image. For the remaining steps, please refer to the topic titled “Walkthrough: Build a Windows Recovery Solution” in the Windows PE CHM file included in the Windows AIK. Just ignore Part 1 and replace it with the following:
Part 1: Creating a Windows RE Image
In this section, you will create a customized Windows RE Image on your technician computer.
Step 1: Copy Windows PE from the Installation Media
In this step, you will create a directory structure and set up a Windows PE image for editing.
1. On your technician computer, click Start, point to All Programs, then Windows AIK or Windows OPK, and then click Windows PE Tools Command Prompt.
The menu shortcut opens a command prompt window and automatically sets environment variables to point to all the necessary tools.
2. Create a directory for the Windows PE image and a mount point
mkdir c:\winre_image
mkdir c:\winre_mount
3. Copy the Windows PE image from the installation media using ImageX
imagex.exe /export /boot e:\sources\boot.wim 2 c:\winre_image\winre.wim “Windows Recovery Environment”
4. Mount the image using ImageX
imagex /mountrw c:\winre_image\winre.wim 1 c:\winre_mount
Step 2: Add custom Windows RE scripts
In this step, you will add a custom Window RE scripts to your image. You will create a script called winpeshl.ini that will launch the Windows RE shell at startup.
1. Using a text editor, create a file called winpeshl.ini that contains the following text:.
[LaunchApp]
AppPath=x:\sources\recovery\recenv.exe
2. Copy this file to \Windows\System32 directory in your working Windows PE directory. For example,
copy winpeshl.ini c:\winre_mount\Windows\System32
Step 3: Add mass-storage drivers (optional)
If necessary, you can include third-party drivers (.inf) in your Windows RE image by using the peimg.exe /inf command. For example,
peimg.exe /inf=
Where
Step 4: Add custom tools to Windows RE (optional)
You can customize Windows RE shell by creating an .xml file called WinREConfig.xml. WinREConfig.xml enables you to define custom support and diagnostic tools within Windows RE. This step is optional. For more information, refer to the Appendix.
Step 5: Save changes to the image
In this step, you will save all the customizations into the image file.
1. In a Windows PE Tools Command Prompt window, unmount the image by using ImageX. For example,
imagex.exe /unmount /commit c:\winre_mount
2. Copy the Windows RE image and related files onto a UFD device
copy c:\winre_image\winre.wim f:
copy “c:\Program Files\Windows AIK\Tools\PETools\x86\boot\boot.sdi” f:
copy “c:\ Program Files\Windows AIK\Recovery\setautofailover.cmd” f:
This completes Part 1 of installing Windows RE. To install the Windows RE image onto the hard disk, follow the instructions in Part 2a or Part 2b. To create recovery media, for example, a CD-ROM, you can create an .iso file of your custom image and burn it to a CD-ROM. Follow the instructions in Part 3.
水曜日, 1月 26, 2011
MultiBoot USB with Grub2 (boot directly from iso files)
MultiBoot USB with Grub2 (boot directly from iso files)
# install grub2 on usb pen
grub-install --no-floppy --root-directory=/mnt ${DEVICE}
# install grub2 on usb pen
grub-install --no-floppy --root-directory=/mnt ${DEVICE}
火曜日, 1月 25, 2011
月曜日, 1月 24, 2011
日曜日, 1月 23, 2011
Extract the official vmware tools for Mac Os X
Extract the official vmware tools for Mac Os X
- install VMware fusion 2.0 and copy these files
- extract the 2 files from the archive and rename them with the name of guest OS : if choose "freebsd 32 bits" in the VMware server, rename them freebsd.iso and freebsd.iso.sig (same thing if put in the configuration file "darwin", rename them darwin.iso and darwin.iso.sig".
木曜日, 1月 20, 2011
iPhone load map offline tiles
From:iPhone load map offline tiles
downloaded the tiles from OpenStreetMap with the Global Map Download Tool.
map2sqlite tool 1.0 from route-me inside groups.google.com
About RMDBTileSource:
Assuming that the database is called "mymap.db" ,change the
tile source init code as follows:
- (void)viewDidLoad {
[super viewDidLoad];
...
RMDBMapSource* dbTilesource = [[[RMDBMapSource alloc]
initWithPath:@"mymap.db"] autorelease];
[[[RMMapContents alloc] initWithView:mapView
tilesource:dbTilesource] autorelease];
...
}
DB tile source for offline maps:
storing the map tiles in an sqlite database and index the tiles using the RMTileKey() function. For best performance it makes sense to disable the internal route-me
database cache as all tiles are already stored in a database. I have
accomplished this using a routeme.plist file.
The code consists of a custom tile source (RMDBTileSource) and a new
tile image (RMDBTileImage). The RMDBTileSource.m file contains the
documentation of the database layout and the name/value pairs for the
meta data.
To get started , need to create an sqlite db with the two tables
(preferences and tiles) and store the tile images as blobs in the
tiles table and index them with the RMTileKey() function. Then add the
minimun and maximum zoom level as well as the tile size to the
preference table and you're done.
downloaded the tiles from OpenStreetMap with the Global Map Download Tool.
map2sqlite tool 1.0 from route-me inside groups.google.com
About RMDBTileSource:
Assuming that the database is called "mymap.db" ,change the
tile source init code as follows:
- (void)viewDidLoad {
[super viewDidLoad];
...
RMDBMapSource* dbTilesource = [[[RMDBMapSource alloc]
initWithPath:@"mymap.db"] autorelease];
[[[RMMapContents alloc] initWithView:mapView
tilesource:dbTilesource] autorelease];
...
}
DB tile source for offline maps:
storing the map tiles in an sqlite database and index the tiles using the RMTileKey() function. For best performance it makes sense to disable the internal route-me
database cache as all tiles are already stored in a database. I have
accomplished this using a routeme.plist file.
The code consists of a custom tile source (RMDBTileSource) and a new
tile image (RMDBTileImage). The RMDBTileSource.m file contains the
documentation of the database layout and the name/value pairs for the
meta data.
To get started , need to create an sqlite db with the two tables
(preferences and tiles) and store the tile images as blobs in the
tiles table and index them with the RMTileKey() function. Then add the
minimun and maximum zoom level as well as the tile size to the
preference table and you're done.
火曜日, 1月 18, 2011
git
git cookbook of recipes
See also: jeff garzik's linux pages and gkernel(This project is a random collection of Linux kernel-related projects and source code.)
See also: jeff garzik's linux pages and gkernel(This project is a random collection of Linux kernel-related projects and source code.)
Understanding memory sections and the OEMAddressTable in Windows CE 5.0 and 6.0
Understanding Memory Sections in config.bib, boot.bib, and OEMAddressTable in Windows CE 5.0 and 6.0
http://blogs.msdn.com/b/ce_base/archive/2006/09/01/understanding-memory-sections-in-config.bib_2c00_-boot.bib_2c00_-and-oemaddresstable-in-windows-ce-5.0-and-6.0.aspx
Understanding memory sections and the OEMAddressTable in Windows CE 5.0 and 6.0
http://www.windowsfordevices.com/c/a/Windows-For-Devices-Articles/Understanding-memory-sections-and-the-OEMAddressTable-in-Windows-CE-50-and-60/
http://blogs.msdn.com/b/ce_base/archive/2006/09/01/understanding-memory-sections-in-config.bib_2c00_-boot.bib_2c00_-and-oemaddresstable-in-windows-ce-5.0-and-6.0.aspx
Understanding memory sections and the OEMAddressTable in Windows CE 5.0 and 6.0
http://www.windowsfordevices.com/c/a/Windows-For-Devices-Articles/Understanding-memory-sections-and-the-OEMAddressTable-in-Windows-CE-50-and-60/
月曜日, 1月 17, 2011
Run UAC restricted programs without the UAC prompt
●By Programming
Launch your application in Vista under the local system account without the UAC popup
http://www.codeproject.com/KB/vista-security/VistaSessions.aspx
Subverting Vista UAC in Both 32 and 64 bit Architectures
http://www.codeproject.com/KB/vista-security/SubvertingVistaUAC.aspx
如何在Vista中不弹出UAC以本地系统账户启动程序
http://dev.firnow.com/course/3_program/c++/cppjs/2008917/143206.html
Teach Your Apps To Play Nicely With Windows Vista User Account Control
http://msdn.microsoft.com/en-us/magazine/cc163486.aspx
●By Tools
Run UAC restricted programs without the UAC prompt
Aaron Margosis' "Non-Admin" and App-Compat WebLog
Launch your application in Vista under the local system account without the UAC popup
http://www.codeproject.com/KB/vista-security/VistaSessions.aspx
Subverting Vista UAC in Both 32 and 64 bit Architectures
http://www.codeproject.com/KB/vista-security/SubvertingVistaUAC.aspx
如何在Vista中不弹出UAC以本地系统账户启动程序
http://dev.firnow.com/course/3_program/c++/cppjs/2008917/143206.html
Teach Your Apps To Play Nicely With Windows Vista User Account Control
http://msdn.microsoft.com/en-us/magazine/cc163486.aspx
●By Tools
Run UAC restricted programs without the UAC prompt
Aaron Margosis' "Non-Admin" and App-Compat WebLog
土曜日, 1月 15, 2011
木曜日, 1月 13, 2011
Windows CE 5.0: What I need to konw?
Disable the VMINI Ethernet sharing library
See alse: How to Add a CEPC to an Ethernet Network and Windows CE 5.0 on MSDN
- KERNELNOSHAREETH=1
- BSP_NOSHAREETH=1
See alse: How to Add a CEPC to an Ethernet Network and Windows CE 5.0 on MSDN
水曜日, 1月 12, 2011
How to install the 'Snow Leopard' Mac OSX (10.6) on almost any Intel based PC or Laptop to create a Hackintosh!
月曜日, 1月 10, 2011
How to REINSTALL GRUB with LiveCD
How to REINSTALL GRUB with LiveCD F10
When the busted system is in a single ext3 root partition (say, /dev/sda5)...
When the busted system is in a single ext3 root partition (say, /dev/sda5)...
mkdir /mnt/tempWhen the busted system has separate ext3 boot and root partitions (say, /dev/sda5 and /dev/sda6)...
mount /dev/sda5 /mnt/temp
grub-install --root-directory=/mnt/temp /dev/sda
mkdir -p /mnt/temp/bootWhen the busted system has a separate ext3 boot partition (say, /dev/sda5), and the root partition is a logical volume (say, /dev/VolGroup00/LogVol00 according to lvdisplay)...
mount /dev/sda5 /mnt/temp/boot
mount /dev/sda6 /mnt/temp
grub-install --root-directory=/mnt/temp /dev/sda
mkdir -p /mnt/temp/bootIf grub-install fails with a read error or the boot loader still doesn't work, always try the GRUB shell (and vice versa). They both accomplish the same thing, but different things occur in the background. It's not necessary to mount partitions when using the GRUB shell commands in the LiveCD. Change x & y in the example to the busted system's boot partition...
vgchange -a y
lvdisplay
mount /dev/sda5 /mnt/temp/boot
mount /dev/VolGroup00/LogVol00 /mnt/temp
grub-install --root-directory=/mnt/temp /dev/sda
/sbin/grub
grub> root (hdx,y)
grub> setup (hd0)
日曜日, 1月 09, 2011
Install Mac OS X Snow Leopard on a PC using VMware
Install Mac OS X Snow Leopard on a PC using VMware
install VMware tools:
As a noob the best solution I found was to power up the Snow Leopard installation then use Safari to re-download the Snowy_Vmware_files.tbz2 file mentioned in the installation instructions. Open (click click)the file in Finder which then unarchives it into a Snowy_VM folder. Inside that, the darwin_snow.iso can be deftly mounted with a right click >>open>>disc image mounter (i’m new to hacks)which then prompts to install VMware tools. The SL screen res is fully adjustable after that. Back to the snowy_vm folder where one can unarchive EnsoniqAudioPCI.mpkg.tar.gz with another swift clickclick and then rclick>> open with >> installer which prompts the sound driver installation. And presto! Perfect sound via my soundblaster audigy, and 1680×1050 res. A convoluted but effective method.
crash on power off:
edit vmx from “smc.present = true” to “smc.present = false”
Change Graphics Mode:
How to Increase Mac OS X Snow Leopard Virtual Machine Screen Resolution on VirtualBox and VMware
Increase Screen Resolution with Wide Screen support for Mac OS X Virtual Machine in VMware Player and Workstation
change the screen size by pressing F8 on boot and entering “Graphics Mode”=”WidthxHeightxDepth” (Including “).
For example:
“Graphics Mode”=”1280x1024x32″
And for screen refresh rate you can add @Rate so you get:
“Graphics Mode”=”1280x1024x32@75″
32 (Depth) as in 32-bit colors.
install VMware tools:
As a noob the best solution I found was to power up the Snow Leopard installation then use Safari to re-download the Snowy_Vmware_files.tbz2 file mentioned in the installation instructions. Open (click click)the file in Finder which then unarchives it into a Snowy_VM folder. Inside that, the darwin_snow.iso can be deftly mounted with a right click >>open>>disc image mounter (i’m new to hacks)which then prompts to install VMware tools. The SL screen res is fully adjustable after that. Back to the snowy_vm folder where one can unarchive EnsoniqAudioPCI.mpkg.tar.gz with another swift clickclick and then rclick>> open with >> installer which prompts the sound driver installation. And presto! Perfect sound via my soundblaster audigy, and 1680×1050 res. A convoluted but effective method.
crash on power off:
edit vmx from “smc.present = true” to “smc.present = false”
Change Graphics Mode:
For example:
“Graphics Mode”=”1280x1024x32″
And for screen refresh rate you can add @Rate so you get:
“Graphics Mode”=”1280x1024x32@75″
32 (Depth) as in 32-bit colors.
月曜日, 1月 03, 2011
How to determine and to recover from Winsock2 corruption in Windows Server 2003, in Windows XP, and in Windows Vista
登録:
投稿 (Atom)