Processing.org 64-bit workaround

November 1, 2011 at 22:07 | Posted in Guides | Leave a comment
Tags: , , ,

If this is the error you are receiving on your 64-bit Processing installation, fear not:

[susie@neptune processing-1.5.1]$ ./processing
[susie@neptune processing-1.5.1]$ Exception in thread “main” java.lang.UnsatisfiedLinkError: /home/susie/processing-1.5.1/java/lib/i386/xawt/libmawt.so: libXtst.so.6: cannot open shared object file: No such file or directory
at java.lang.ClassLoader$NativeLibrary.load(Native Method)
at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1803)
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1699)
at java.lang.Runtime.load0(Runtime.java:770)
at java.lang.System.load(System.java:1003)
at java.lang.ClassLoader$NativeLibrary.load(Native Method)
at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1803)
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1720)
at java.lang.Runtime.loadLibrary0(Runtime.java:823)
at java.lang.System.loadLibrary(System.java:1028)
at sun.security.action.LoadLibraryAction.run(LoadLibraryAction.java:50)
at java.security.AccessController.doPrivileged(Native Method)
at java.awt.Toolkit.loadLibraries(Toolkit.java:1605)
at java.awt.Toolkit.<clinit>(Toolkit.java:1627)
at processing.app.Base.<clinit>(Base.java:445)
Could not find the main class: processing.app.Base.  Program will exit.

I have a simple workaround for you.

  1. Locate Java

    [susie@neptune ~]$ whereis java
    java: /usr/bin/java /usr/share/man/man1/java.1.gz
    [susie@neptune ~]$ stat /usr/bin/java
    File: `/usr/bin/java’ -> `/usr/lib/jvm/java-6-openjdk/bin/java
    Size: 36            Blocks: 0          IO Block: 4096   symbolic link
    Device: 803h/2051d    Inode: 561896      Links: 1
    Access: (0777/lrwxrwxrwx)  Uid: (    0/    root)   Gid: (    0/    root)
    Access: 2011-11-01 21:31:18.565298115 -0400
    Modify: 2011-07-21 12:59:19.000000000 -0400
    Change: 2011-09-21 12:29:33.009908239 -0400
    Birth: -

  2. Use that Java instead

    [susie@neptune processing-1.5.1]$ mv java java.bak
    [susie@neptune processing-1.5.1]$ ln -T /usr/lib/jvm/java-6-openjdk ./java –symbolic

Tada! 奇跡です。

Softmodding an XBOX via Ndure, xboxhdm, and hotswapping

August 14, 2011 at 02:04 | Posted in Guides | Leave a comment
Tags: , , , , , ,

(source), includes screenshots and much more detail.

You will need:

  • original XBOX (not 360)
  • Torx 20 screwdriver
  • A PC with a free ATA slot (not SATA) + 4-pin molex power cable, and CD burner
  • one blank CD
  • any music CD
  • NDURE 3.0
  • updated ndure backup script (right click, save as…)
  • xboxhdm 1.6

 

 

  1. Start up your XBOX and head to MS Dashboard>Settings>System Info. Write down the Kernel number (K:) and Dashboard number (D:) at the bottom
  2. Run Ndure.exe. Select the checkboxes of the features you would like, taking care to select the proper kernel numbers found in step 1 (in format 1.00.XXXX.01)
  3. Hit next and save to /xboxhdm/linux/, where you extracted xboxhdm to. Hit install, wait for it to finish, then hit next and finish
  4. Move the updated ndure backup script (ndure, with no file extension) to /xboxhdm/linux/ndure/ where you extracted xboxhdm to
  5. Go to /xboxhdm and run make-iso-win.bat — it will create an iso image
  6. Burn the iso image with your favourite iso-burning program
  7. Set your PC to boot from disk via BIOS
  8. Put a music CD into your XBOX
  9. Turn off your XBOX and open your XBOX with the torx 20 screwdriver
  10. Connect the XBOX hard drive to your PC’s power supply
  11. If your PC’s hard drive is occupying the primary master slot, disconnect it
  12. Boot your PC (into your burned CD) and turn on your XBOX simultaneously
  13. On your XBOX, copy one track of your music CD to the hard drive, play it from the hard drive, and then pause (this will unlock the hard drive)
  14. “hotswap” your hard drive by disconnecting the xbox ATA cable and connecting instead to the PC’s ATA cable while both are running (NOTE: try to keep the drive as still as possible– the slightest vibration will cause step 15 to fail, and you will need to restart from step 12)
  15. Press “1″ on your PC keyboard, then at the next prompt, type “xbrowser” and hit enter
  16. navigate to the ndure folder, then highlight the ndure file and hit enter
  17. select option 4 to backup C drive to E:/backup. Wait until it finishes
  18. select option 1 to install Ndure. Wait until all three parts are finished installing
  19. When the screen says “done, now exiting”, turn off both XBOX and PC
  20. disconnect the XBOX hard drive from the PC ATA cable, and reconnect it to the XBOX ATA cable
  21. reconnect your PC’s hard drive to your PC ATA cable
  22. screw your XBOX case back together
  23. (optional) boot up into your softmodded XBOX!
  24. (optional) Install XBMC :P

Joy2Key Logitech Dual Action Minecraft Configuration

July 20, 2011 at 20:53 | Posted in Guides | Leave a comment

If you have a Logitech Dual Action and want to use it to play Minecraft, you’re in the right place. If you’re running windows, you’ll want to download Joy2Key here. Otherwise, the sourceforge page is here.

Copy and paste the following into a text editor and save it as Minecraft.cfg in the same directory where your J2K executable is.

[General]
FileVersion=37
NumberOfJoysticks=1
Use8Axes=1
UseDiagonalInput=0
UsePOV=1
Threshold=0
KeySendMode=0
[Joystick 1]
Axis1n=1, 41:00:00, 0
Axis1p=1, 44:00:00, 0
Axis2n=1, 57:00:00, 0
Axis2p=1, 53:00:00, 0
Axis3n=2, -50, 0, 0, 0, 0, 0, 0
Axis3p=2, 50, 0, 0, 0, 0, 0, 0
Axis4n=0
Axis4p=0
Axis5n=0
Axis5p=0
Axis6n=2, 0, -50, 0, 0, 0, 0, 0
Axis6p=2, 0, 50, 0, 0, 0, 0, 0
Axis7n=0
Axis7p=0
Axis8n=0
Axis8p=0
POV1-1=0
POV1-2=0
POV1-3=0
POV1-4=0
POV2-1=0
POV2-2=0
POV2-3=0
POV2-4=0
Up-Right=0
Up- Left=0
Dn- Left=0
Dn-Right=0
Button01=2, 0, 0, 0, 1, 0, 0, 0
Button02=1, 20:00:00, 0
Button03=2, 0, 0, 0, 0, 0, 1, 0
Button04=1, 45:00:00, 0
Button05=2, 0, 0, 10, 0, 0, 0, 0
Button06=2, 0, 0, -10, 0, 0, 0, 0
Button07=1, 10:00:00, 0
Button08=0
Button09=0
Button10=1, 1B:00:00, 0
Button11=0
Button12=0
Button13=0
Button14=0
Button15=0
Button16=0
Button17=0
Button18=0
Button19=0
Button20=0
Button21=0
Button22=0
Button23=0
Button24=0
Button25=0
Button26=0
Button27=0
Button28=0
Button29=0
Button30=0
Button31=0
Button32=0
[Joystick 2]
Axis1n=0
Axis1p=0
Axis2n=0
Axis2p=0
Axis3n=0
Axis3p=0
Axis4n=0
Axis4p=0
Axis5n=0
Axis5p=0
Axis6n=0
Axis6p=0
Axis7n=0
Axis7p=0
Axis8n=0
Axis8p=0
POV1-1=0
POV1-2=0
POV1-3=0
POV1-4=0
POV2-1=0
POV2-2=0
POV2-3=0
POV2-4=0
Up-Right=0
Up- Left=0
Dn- Left=0
Dn-Right=0
Button01=0
Button02=0
Button03=0
Button04=0
Button05=0
Button06=0
Button07=0
Button08=0
Button09=0
Button10=0
Button11=0
Button12=0
Button13=0
Button14=0
Button15=0
Button16=0
Button17=0
Button18=0
Button19=0
Button20=0
Button21=0
Button22=0
Button23=0
Button24=0
Button25=0
Button26=0
Button27=0
Button28=0
Button29=0
Button30=0
Button31=0
Button32=0

Start up J2k and select the Minecraft profile. Leave it running while you play and everything should work out fine. Here are the controls I set, it should be easy enough to figure out how to change them to your liking:

Burn an mkv with mkvtoolnix, ffmpeg, dvdauthor and K3B

July 13, 2011 at 13:54 | Posted in Guides | Leave a comment
Tags: , , , , ,

Avidemux is crashing for me right now, so here’s how to transcode for DVD command-line style.

  1. Display the track information for the mkv you wish to burn:
    $mkvinfo movie.mkv
  2. Extract the audio and video tracks you need:
    $mkvextract movie.mkv 1:video_output.mpg 2:audio_output.aac
  3. Combine the two tracks with ffmpeg: (use pal-dvd if you live in Europe)
    $ffmpeg -i video_output.mpg -i audio_output.aac -target ntsc-dvd movie.mpg
  4. Prepare the movie file for DVD by authoring it:
    1. Create a new textfile named movie.xml with the following contents:
      <dvdauthor>
      <vmgm>
      </vmgm>
      <titleset>
      <titles>
      <pgc>
      <vob file="movie.mpg" />
      </pgc>
      </titles>
      </titleset>
      </dvdauthor>
    2. Create the DVD structure in a new outputfolder with dvdauthor:
      $dvdauthor -o outputfolder -x movie.xml
  5. Open K3B and start a new DVD video project
  6. Drag the contents of outputfolder/VIDEO_TS to the project’s VIDEO_TS folder
  7. Insert a blank DVD and hit burn!

Edit — As it turns out, K3B is also not working for me, due to HAL not being present because it requires v4l from the kernel, which has been removed in the latest version I have. Anyway, here’s how to BURN from the CLI as well, instead of using K3B.

  1. $mkisofs -dvd-video -udf -o dvd.iso outputfolder
  2. $growisofs -Z /dev/dvd=dvd.iso

You can also test the .iso by mounting and making sure it plays correctly before you burn it.

How to edit your XBLA SA1 Chao Garden savefile

June 24, 2011 at 11:48 | Posted in Guides | Leave a comment
Tags: , , , , , , , ,
  1. Format a USB flash drive as an XB360 storage device (how-to)
  2. Copy your Chao Garden save file to your flash drive (My Xbox > System Settings > Memory)
  3. Insert the flash drive into your computer
  4. Install modio
  5. Run modio and select “Open from a device”
  6. Select your gamer profile, then SA1, then your chao garden save data
  7. Select the “File Contents” tab at the top
  8. Right click on savedata.bin, select “Extract File”, and save it to your hard disk
  9. Install a HEX editor if you don’t have one already (I use MadEdit)
  10. Open the extracted savedata.bin file with your HEX editor

Now comes the actual HEX editing. This part is easier if you have named your chao with the naming machine. Locate the section of code that looks like this:

I found my chao, MINAKO★, by doing a Ctrl-F search for her name, minus the first character. It will be similar for all chao, for example, here is the section of code that relates to my other chao, HOTARU~.

As you can see, the name information starts in offset *20, column 0A for both (and all) chao. This will make it easier to find the appropriate row and column the chao stats are located in.

Emerald Lance of xboxdev.net provided this handy stat cheat sheet:

Remember, these values are in HEX format, so if you want your chao stat to be 99, you must convert that decimal value to a hex value, making it 63. A chart with number conversions can be found here.

A list of which value corresponds to which trait can be found here. However, do not pay attention to the information there that tells you which offset/column each is found in, because those locations are true only for the PC version of SA1, not XBLA. If a list of possible values is not given, it is safe to assume it is looking for any HEX value: for example, a swimming grade of 99 would correspond to the hex value 63 in offset *40, column 08.

When you are finished editing the file, save it. Then go back to the window from which you originally extracted the savedata.bin file, and right click on it again, instead selecting “Replace file” this time. Select your editted savedata.bin file and hit open. Select the General File Info tab, and press “Rehash and Resign”. Finally, click “Save to Device” in the upper right-hand corner.

Eject your flash drive, plug it back into your Xbox 360, and all should be well.

Rooting and Installing Custom ROMs on the Droid X

May 25, 2011 at 02:15 | Posted in Guides | Leave a comment
Tags: , , , ,

Rooting

Rooting Your Droid

Note: This is only applicable for Froyo. If you have Gingerbread installed, you’ll need to use another method.

Rooting (getting access to the root account) is fairly simple using the guide at Lifehacker here. Here are the cliffnotes:

  1. Get SuperOneClick with the USB driver pack here
  2. Enable USB Debugging mode under Settings > Applications > Development
  3. Select “Charge Only” under USB Connection in the notifcation bar at the top (can be swiped down)
  4. Run SuperOneClick on your Windows computer
  5. If you see a message that says “Root files have been installed!”, your droid has been successfully rooted

Post-Root Applications

What can you do with a rooted droid? Here are a few things I’ve done:

  • AutomateItEnable reboot and other functionality in AutomateIt
  • droid VNC serverRun a VNC server on your droid
  • Tether your wifi (share your phone’s internet by broadcasting wifi) without charges from your phone carrier
  • Install a custom ROM (more info below)

Installing a Custom ROM

Foreword: The bootloader on the Droid X is locked — this means practically that you cannot install popular ROMs like Cyanogenmod, and will need Droid X-specific “ROMs”, which use a workaround to install, and alter the stock rom, rather than installing a fresh, new ROM (AFAIK).

Also worthy of mention: Your droid MUST be rooted in order to install a custom ROM.

Choosing a ROM

There is a brief review of many popular ROMs for the Droid X here. Otherwise, Google is your friend. After selecting the ROM you would like, download its associated .zip file and copy it to your droid’s SD card.

Installing the ROM

  1. Enable the installation of non-market apps under Settings > Application > Unknown Sources
  2. Download Koush’s Droid X bootstrap app here. (Official page here)
  3. Copy the bootstrap app (.apk file) to your Droid’s SD card
  4. Navigate to the location of the app using Files or ASTRO, etc, and install the app
  5. Open the app and choose the first option, then the second option (reboot)
  6. Use the volume up/down buttons to navigate the menu that appears, and the camera button to select. Choose the option to wipe phone memory/cache **THIS WILL ERASE ALL DATA STORED ON YOUR PHONE AND RESET TO FACTORY DEFAULTS**
  7. Choose the option to install a .zip file from SD card
  8. Navigate to the location of the .zip file on your card and select it
  9. Hit the back button and reboot your Droid into your new ROM

Index of textbook downloading sites

January 8, 2011 at 16:17 | Posted in Uncategorized | Leave a comment

I’ll list all the sites I came across, functional or not. You decide. Remember to consider looking for a collection torrent, and then specifically downloading the file you need within it. It’s also handy to have the ISBN of the book you need.

Google | The Pirate Bay | Mininova | Demonoid

Functional

Nonfunctional

Formatting an MKV container into DVD format with Avidemux, Mkvtoolnix, dvdauthor, and K3B

October 8, 2010 at 12:53 | Posted in Guides | 1 Comment
Tags: , , , , , , ,
  1. If there are subtitles in the MKV that you want to appear in the video, download/install mkvtoolnix and mkvextract-gui. With the GUI, open the MKV file, check the box next to the subtitle track you want, and extract.
  2. Open the MKV container in Avidemux. At the first dialogue, “H.264 Detected”, hit cancel. At the second dialogue, “Index is not up to date”, hit yes.
  3. From the top menu bar, select Auto > DVD
  4. If you extracted subtitles earlier, click “Filters” under “Video” on the left-hand side-bar. Select “Subtitles” from the list, choose the type of subtitle that you extracted, press add (“+” button), and navigate to the subtitle file (in the folder with MKV file by default)
  5. If your video is in widescreen 16:9 aspect ratio, you’ll want to click “Configure” under “Video” and change it accordingly, or else it will default to 4:3 aspect ratio.
  6. Select “File -> Save -> Save Video…” and save it as “your_filename_here.mpeg”. This step will take a long time, as your video is encoding to another format.
  7. Create a new textfile called “movie.xml” and save the following as the contents:
    <dvdauthor>
    <vmgm>
    </vmgm>
    <titleset>
    <titles>
    <pgc>
    <vob file=”your_filename_here.mpeg” />
    </pgc>
    </titles>
    </titleset>
    </dvdauthor>
  8. In the folder with your mpeg file and xml file, do the following command as regular user: dvdauthor -o outputfolder -x movie.xml
  9. Open up K3B, and select New Project > New Video DVD Project
  10. In the upperhalf of the window, navigate to the outputfolder created in step 8
  11. Copy the contents of VIDEO_TS into the VIDEO_TS folder in the lower half of the window.
  12. Insert a blank DVD, press Burn, and fill in any additional parameters for your DVD.

It’s magical! Here’s the article I expanded on: [plug]

Restoring/Downgrading ipod firmware to 3.1.3

August 19, 2010 at 18:48 | Posted in Guides | Leave a comment
Tags: , , , , , ,

Note: I did this with a jailbroken ipod. Step 3 may WILL be invalid for you if you don’t have a jailbroken ipod, or did not choose the “Make my life easier” button when you first opened Cydia.

Also important: BY DOING THIS, ALL YOUR MUSIC, APPS, CUSTOM SETTINGS, ETC WILL BE GONE. This will restore back to factory default settings.

  1. Make sure you have a version of iTunes that is lower than 9.2 (if not, then uninstall and install version 9.1.1 (64-bit version here))
  2. Download ipod firmware 3.1.3
  3. Append the following line to your C:/windows/system32/drivers/etc/hosts file: “74.208.10.249 gs.apple.com” (without quotes)
  4. Plug ipod into computer via USB
  5. enter DFU mode
    1. hold power button and slide to power off ipod
    2. hold power button and home button simultaneously for 10 seconds
    3. release power button, continue to hold home button for 10 seconds
  6. iTunes should pop up a dialogue that says you have plugged in an ipod in restore mode, close the dialogue
  7. select your ipod from the sidebar, and shift-click the “Restore” button
  8. select the downloaded ipod firmware version 3.1.3

Tada! It’s magical.

How to transfer files wirelessly to your ipod touch/iphone

August 10, 2010 at 13:58 | Posted in Guides | Leave a comment
Tags: , , , , ,
  • Jailbreak your ipod/iphone
  • Install “openssh” from the Cydia app store
  • Find the local IP address of your device under Settings>WiFi>Your_Connection_Here
  • Open your favourite FTP client (Filezilla, FireFTP, etc)
  • Connect with your IP address via SFTP, port 22, username “root”, password “alpine”
  • Ta da!
Next Page »

Blog at WordPress.com. | Theme: Pool by Borja Fernandez.
Entries and comments feeds.

Follow

Get every new post delivered to your Inbox.