Unbricker for New GENE (HTC 8XXX), Stucks at Bootloader

Posted by Bhushan Ahire | Posted in Pocket PC, WM6 | Posted on 12-03-2009

4

Thats worked unbricker for newer Genes, broken by old gene_hspl.

Using:

1. Unpack all in some folder.
2. Press and HOLD “Camera” button and turn on device.
3. If you see 3-colored screen, release “Camera” button, else try again.
4. Kill ActiveSync on computer – Press Ctrl+Shift+Esc, found “wcescomm.exe” process and terminate it.
5. Connect USB-cable to device.
(In the left bottom corner of the screen to appear the text “USB”)
6. Run mtty1_42.exe programm, and press button “USB”.
7. In the opened window type the text:

Code:
       set 32 1

Press Enter. (You must type this text by hand, not copy/paste)
8. After you will see answer from device in window.
9. Type in window that text:

Code:
      ls boot.bin

Press and HOLD “Camera” button on device, and press Enter in mtty window.
10. After a while the device screen becomes white.
Wait 2-3 second, and release “Camera” button.
11. Close mtty programm.
12. Run RomUpdateUtility.exe programm and follow her instruction.

If device will not flashed, try once from first.
Gene Unbricker for New GENE

See your most frequently used commands

Posted by Bhushan Ahire | Posted in Uncategorized | Posted on 10-03-2009

0

history | awk '{print $2}' | awk 'BEGIN {FS="|"}{print $1}' | sort | uniq -c | sort -n | tail | sort -nr

Generating ZIP files via Ruby on Rails using rubyzip

Posted by Bhushan Ahire | Posted in Rails, ruby | Posted on 03-03-2009

2

gem install rubyzip

Then, in the model that I’m using to generate the zip bundles, I add a couple “require” statements:

require 'zip/zip'
require 'zip/zipfilesystem'

class Album < ActiveRecord::Base
  (...)
end

Next, I added a class method called bundle, which when called will use rubygem to generate the zip file. Note: the “permalink” attributes of Album and Artist are populated when an object of those models is created. I’m using them because it makes for nice filenames, too.

# create a zipped archive file of all the tracks in an album
def bundle(name = self.permalink, set = self.artist.permalink)
   bundle_filename = "#{RAILS_ROOT}/public/uploads/#{set}-#{name}.zip"

   # check to see if the file exists already, and if it does, delete it.
   if File.file?(bundle_filename)
     File.delete(bundle_filename)
   end

   # set the bundle_filename attribute of this object
   self.bundle_filename = "/uploads/#{set}-#{name}.zip"

   # open or create the zip file
   Zip::ZipFile.open(bundle_filename, Zip::ZipFile::CREATE) {
     |zipfile|
     # collect the album's tracks
     self.tracks.collect {
       |track|
         # add each track to the archive, names using the track's attributes
         zipfile.add( "#{set}/#{track.num}-#{track.filename}", "#{RAILS_ROOT}/public#{track.public_filename}")
       }
   }

   # set read permissions on the file
   File.chmod(0644, bundle_filename)

   # save the object
   self.save
end

Next I added a method in my controller:

def create_bundle
   album = Album.find(params[:id])
   album.bundle
   flash[:notice] = 'Album was successfully zipped.'
   redirect_to album_url(album.artist, album)
end

And edit my routes.rb accordingly:

map.create_bundle 'create_bundle/:id', :controller => 'albums', :action => 'create_bundle'

Now it’s just a matter of creating a link in the view for the admin to click whenever he/she wants to generate the zip file:

<%= link_to('Create Album Zip', create_bundle_path(@album)) %>

…and a link for the user to click to download the zip file if it exists:

<% unless @album.bundle_filename.nil? %>
<%= link_to "Download Album Zip", @album.bundle_filename %>
<% end %>

That’s it! Refer to the rubyzip documentation for more info.