Skip to main content

Posts

Showing posts with the label using

Battle Realms Change Sounds Main Menu using H2OTool

Ive changed Koi Pond_Normal.wav with my favorite song ... I use h2otool.. Here to Download H2otool file : http://sourceforge.net/projects/h2otool/files/h2otool/1.0/h2otool.1.0.zip/download Steps : 1. I convert aishiteru.mp3 to aishiteru.wav then changed its name to Koi Pond_Normal.wav 2. extract file music.H2O D:DownloadsCompressedh2o>h2otool exctract music.h2o d:downloadscompressedh2omusic 3. overide my file 4. build music H2O D:DownloadsCompressedh2o>h2otool build music.h2o d:downloadscompressedh2omusic 5. Overwrite the original files with new music.h2o that I created .. dont forget to backup the original file music.h2o after that I could hear that song in the main menu...

Batch converting photos using Imagemagick

Our store has a 7-inch photo frame, with a 2GB stick in it. So we can just drag-and-drop lots of photos onto the stick. But how can we use Imagemagick, the command-line photo editor, to batch-resize a whole bunch of images...perhaps as part of a script? Heres one way to resize a single photo: $ mogrify -sample 480 foldername/filename.jpg Heres one way to resize a whole directory of files from 4000 x 3000 to 400 x 300. $ mogrify -sample 400 foldername/*.jpg This resizes the original(s). Making copies (before the resize) is a separate command: $ mkdir copies $ cp original/image.jpg copies/ $ mogrify -sample 400 copies/image.jpg $ mv copies/image.jpg stick/

Be aware of the count 0 when using Pythons re sub to find and replace text

I have an xml file and I want to remove a whole section of element without actually parsing the XML file. I wrote an Python script to do just that. I first tested it out like this: import re input_text = open(my.xml).read() result = re.findall(r<library-ref>.*</library-ref>, input_text, re.S) print(result) The result IS what I wanted, so I thought I can quickly replace it with something like this: result = re.sub(r<library-ref>.*</library-ref>, , input_text, re.S) And to my surprise this does not work. It took me a while to notice that I mis used the method according to the documentation, which has this signature: re.sub(pattern, repl, string, count=0, flags=0) At first glace, I thought that count is already default to zero and I do not need to set it, but because that is a positional parameter, you must include it! So you suppose to call it explicit like this: result = re.sub(r<library-ref>.*</library-ref>, , input_text, 0, re.S) Or, if you like, yo...

Banks Still Using Windows XP Could Pay Millions For Extended Customer Support

Despite so many warnings from Microsoft and Cyber Security Experts, Windows XP is still being used by a number of Government organizations, Financial institutions as well as big Corporations all around the world. If we look at the statistics then almost 30% of computers you will find that still run Windows XP, including banks, airline companies, and other huge enterprises, the count in real is likely to be even higher than the estimated. But If you stick with Windows XP after April 8 2014, you might be at a great risk as XP will take its last breath officially on that day and will die! This fact poses danger to its users as they will be exposed to all kinds of treats. Almost thirteen years after it was �first released� i.e. April 8 when the Redmond, Washington-headquartered Corporation will stop support for its longest running and most successful OS, Windows XP. Continue using Windows XP after April 8, it will serve you as a Dead Zombie, because Microsoft will no longer support its own...

Barack Obama Prohibited From Using iPhone for Security Reasons

  U.S. President Barack Obama said that he is not allowed to use iPhone for security reasons, thus, he is deprived of the most famous product of Apple. Perhaps this is in the interest of the crumbling company "Blackberry", because the U.S. president is the most prominent customers of BlackBerry, where he use BlackBerrys smartphone since coming to the White House in 2009. According to Snowden leaks, Apple is considered of the most prominent accused of collaborating with the National Security Agency to spy on the leaders of the countries of the world and wiretapping inside and outside the United States . However, the company denies these accusations.   And thus the U.S. president join the list of persons deprived of iPhone after Germany decided earlier to prevent MPs and senior officials in the state to use iPhone for security reasons as well. ---------------------------------------------------------------------------------------------------------------------------------- S...