Archive for May, 2009

how to install ipa files on an iPhone or iPod Touch?

1. You need to be on jailbroken iPhone with Cydia installed. For this, you may use QuickPwn, PwnageTool, or WinPwn.

2. Install OpenSSH from Cydia on your iPhone. Click on Cydia and then click Install (Sections)>Networking>OpenSSH then click Install>Confirm (if you get a running out of disk space error click “ok”).

3. Log into WinSCP. The first time you try to login you may get a connection timeout error, click retry several times (up to 20 times!) and it should work. If you still get an error, reboot your iPod/iPhone and try again.

4. Navigate to /private/var/mobile/ folder

5. Set the permission of the Applications folder to 777 (make sure reclusive is checked).

6. Stay in the /private/var/mobile/ folder.

7. Create a folder called “Documents” in the /private/var/mobile/ folder. Make sure to spell “Documents” correctly, with a capital “D”.

8. Set the permission to 777.

9. Navigate to the root level and open the /Applications folder.

10. Create a folder called “Documents” inside the /Applications folder and set permission to 777.

———Note: You will only need to create these two Documents folders once———

11. Go to <root> /System/Library/PrivateFrameworks/MobileInstallation.framework

12. Rename the file “MobileInstallation” to “MobileInstallation.bak”

13. Download this patched MobileInstallationfile from HERE. Note that you have to download the patched file for the firmware you are running. ie. if you are running 2.1, you need the MobileInstallation 2.1 patched file.

14. Place the patched file into the /System/Library/PrivateFrameworks/MobileInstallation.framework folder and set the permissions 775 for the patched MobileInstallation file. If there is some type of extension (ie .dylib), then you need to remove that extension.

15. Reboot your iPhone/iPod Touch

16. Download at least one App from Apple App Store (Free or Paid). What I do is I download one app from the App Store using iTunes, then I sync my iPhone and reboot it. Then I download one app from the App Store on the iPhone and reboot the phone. THIS IS VERY IMPORTANT: Otherwise you will get an error! [Only need to do this once]

17. Drag and drop the .ipa file you downloaded into the iTunes Application library.

18. Sync your iPhone/iPod Touch and enjoy!

P.S. Apps can be found at: http://www.iphoneapplist.net/

mobileinstallation-221

No Comments

iPod touch 上 睇到中文eBook

終於在 iPod touch 上 睇到中文eBook了。
用的是Stanza,eBook reader 可以經App Store install 在iPhone/iTouch 上。

至於點先可以create ebook 和send 去iPhone/iTouch,就要download 這個software.

http://www.lexcycle.com/download

No Comments

Business Objects XI R2 Automated Backup Script

I wrote this quick little script to automatically take a backup of a BOXI R2 system.

It assumes a very simplistic, (development), environment where all BOXI services and a MS SQL 2000 database are all running on the same server.

If this is not the case things get a bit trickier. I will post a more advanced sample someday.


REM Ryan Fitzgerald - 2007-07-12
REM BOXI R2 System Backup Script
REM This script will backup the entire BOXI R2 system so that it may be restored at a later date
REM this may be used to rollback a failed release or in the event of a disaster as a recovery mechanism.

STOPPING SERVICES – must do this first so there is no activity on the CMS during the backup.

net stop “Central Management Server”
net stop “Input File Repository Server”
net stop “Output File Repository Server”

Set a date variable to create a new folder for the backup (this makes it easy to schedule weekly or whenever).

rem SETTING DATE VARIABLE
set dateString=%date:~10,4%%date:~4,2%%date:~7,2%
mkdir c:\BOXIR2Backups\%dateString%\

The /E specifies trusted login, you will probably want to replaces this with a /U and /P for username and password pair.

osql /E /Q “begin declare @CMSBackupFile varchar(255) set @CMSBackupFile = ‘C:\BOXIR2Backups\’ + CONVERT(VARCHAR(20),GETDATE(),112) + ‘\CMS’ + CONVERT(VARCHAR(20),GETDATE(),112) + ‘.bak’ backup database {CMS_DATABASE_NAME_HERE} to disk = @CMSBackupFile end”

The next OSQL command does the Audit database, this is not required but good to backup if you are using it.

osql /E /Q “begin declare @AuditBackupFile varchar(255) set @AuditBackupFile = ‘C:\BOXIR2Backups\’ + CONVERT(VARCHAR(20),GETDATE(),112) + ‘\Audit’ + CONVERT(VARCHAR(20),GETDATE(),112) + ‘.bak’ backup database {AUDIT_DATABASE_NAME_HERE} to disk = @AuditBackupFile end”

Copy the filestores, folders which hold all .rpt files and others, to the backup folder; your filestore may be located somewhere else. Check the Input/Output Filestore Server settings in CCM or CMC to see where your filestores are.

xcopy “C:\Program Files\Business Objects\BusinessObjects Enterprise 11.5\FileStore\” c:\BOXIR2Backups\%dateString%\

Start the services back up:

net start “Central Management Server”
net start “Input File Repository Server”
net start “Output File Repository Server”

And you’re done, congrats.

No Comments

How-to solve MOSS cannot find Microsoft.SharePoint.ApplicationPages

The error is ‘Microsoft.SharePoint.ApplicationPages, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c’ Access Denided

It may due to the first access to MOSS is the search crawling function from search server, the crawling user doesn’t have right on following folder:

C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files

Usually in MOSS, if a normal user login to SharePoint, the SharePoint web app will use the account dmssiteapp as the user.

However, for the crawling timer job, it will uses dmscontent or other account as the user, therefore, if the first user cannot generate compiled dll to the asp.net temp folder, all other user login after that will not able to use SharePoint.

To solve the problem

granting the domain\dmssiteapp, dmscontent, or even all local user account Read and Write permissions to

C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files

No Comments

Convert .jar to .exe for java deployment

JSmooth .exe wrapper

JSmooth is a Java Executable Wrapper. It creates native Windows launchers (standard .exe) for your java applications. It makes java deployment much smoother and user-friendly, as it is able to find any installed Java VM by itself. When no VM is available, the wrapper can automatically download and install a suitable JVM, or simply display a message or redirect the user to a web site.

JSmooth provides a variety of wrappers for your java application, each of them having their own behaviour: Choose your flavour!

Download: http://jsmooth.sourceforge.net/

JarToExe 1.8

Jar2Exe is a tool to convert jar files into exe files.
Following are the main features as describe in their website:
-Can generate “Console”, “Windows GUI”, “Windows Service” three types of exe files.
-Generated exe files can add program icons and version information.
-Generated exe files can encrypt and protect java programs, no temporary files will be generated when program runs.
-Generated exe files provide system tray icon support.
-Generated exe files provide record system event log support.
-Generated windows service exe files are able to install/uninstall itself, and support service pause/continue.
-New release of x64 version, can create 64 bits executives. (May 18, 2008)
-Both wizard mode and command line mode supported. (May 18, 2008)

Download: http://www.brothersoft.com/jartoexe-75019.html

Executor

Package your Java application as a jar, and Executor will turn the jar into a Windows exe file, indistinguishable from a native application. Simply double-clicking the exe file will invoke the Java Runtime Environment and launch your application.

Download: http://mpowers.net/executor/

Advanced Installer

Advanced Installer lets you create Windows MSI installs in minutes. This also has Windows Vista support and also helps to create MSI packages in other languages.
Download: http://www.advancedinstaller.com/

No Comments

Prevent Out of Memory in Eclipse

Add following lines in eclipse.ini

-vmargs
-Xms128m
-Xmx512m
-XX:MaxPermSize=128m

,

No Comments