Octav's Blog Software, hardware, gadgets, hobbies

1Dec/101

RTF to TXT conversion

Hey dude if you're like me and you like your droid phone and you use it for pretty much everything then I guess you use it also for reading books, but guess what when it comes to rtf files you got yourself a problem because there aren't many ebook readers in the market that let you read rtf files most of them allows you to read pdfs, epub or other ebook formats but not rtf.

I have like gigs of books and I would love to be able to read on my droid, so what I've seen is that all of the readers in the market let you read text files, old plain text files so I cooked a small interface for transforming those rtf files in text files in order to make them droid friendly, many of you will say that text files are not nicely formatted and one can't see rich text or tables or images, well I agree with and this post is not for you and btw I use Moon+ Reader to read these, works so well and loads the pretty fast.

So what exactly does my small utility, it takes a folder where you keep your rtf files and a folder where you want to save the text files and after pressing the GO button it will do the job, granted you are on windows 7 because I didn't test on other SO, sorry but I didn't have time. Here is how it should look like

RTF to text screenshot

I attach here the .net exe and the c# sources, if you want more add yourself, the code is very simple, is based on the rich text control in windows forms and it's ability to save as plain unicode text.

Take exe from here and the source from here (you have a VS.Net 2010 project to work with).

Have fun.

8Noi/102

DoTA 2

Hey dude,

Good news, after DoTA, HoN, LoL a new action RTS (as IceFrog calls it) will appear somewhere next year. It is a sequel of the popular DoTA, first were rumors then confirmations, now there is a blog about it, you can find new information about the games status at www.dota2.com. Lets hope thew new game published by Valve, done in coop with IceFrog will be a worthy successor and will be released very soon with all those features that we all want for DoTA. Let's wish good luck to the guys and hope for the best :) .

15Oct/10166

Installing ATI 5750 with Snow Leopard

Hey dude, this is a follow up for my latest post regarding installing the beloved Snow Leopard on a PC, so if you did't read the first part you can do it here, is mandatory.

Ok for those that already read the first post you remember GPU-Z and the dump of your video card rom somewhere where you can access it later, look for it because you will need it soon.

Now go to here and get these drivers from netkas.org, open the archive and you will see a bunch of kexts and stuff over there, right click ATI5000Controller.kext, click "Show Package Contents" go inside and edit Info.plist.

Where you see <string>0x68981002 0x68991002 0x68E01002 0x68E11002 0x68D81002 0x68C01002 0x68C11002 0x68D91002 0x68B81002 0x68B01002 0x68B11002 0x68A01002 0x68A11002 </string> add your device id you should have that from GPU-Z if you forgot to take it just open System Profiler(you can find it in Utilities), there you should see the device id and the vendor id my dev id is 0x68BE and vendor id is 0x1002 so what i added in the kext plist above was 0x68BE1002.
If you have another ATI 57xx your device id might be there already if not just add it while you are there edit Info.plist from ATIRadeonX3000.kext, add your dev id there as well in the same way we just did for first kext.Ok you are done with the dirty stuff, open KextHelper, you installed with MultiBeast drag next kexts:

  • ATI5000Controller.kext
  • ATIFramebuffer.kext
  • ATISupport.kext

put your password click Easy install and restart, if no kernel panics so far add ATIRadeonX3000* stuff in kext helper, install them

Then take your rom the one you got from GPU-Z name it like this: 1002_68be.rom if you have the same dev id like me if not instead of 68be put your device id in the name copy it in the Extra folder in the root of your Mac OS partition,

Now edit /Extra/com.apple.Boot.plist

drag it on you desktop and make sure it looks like this:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Kernel</key>
<string>mach_kernel</string>
<key>Kernel Flags</key>
<string>arch=i386</string>
<key>GraphicsEnabler</key>
<string>Yes</string>
<key>Timeout</key>
<string>5</string>
<key>Legacy Logo</key>
<string>Yes</string>
<key>EthernetBuiltIn</key>
<string>Yes</string>
<key>UseAtiROM</key>
<string>Yes</string>
</dict>
</plist>
(u can use sudo nano /Extra/com.apple.Boot.plist type password and do the modifs there) save it and copy it back, so let's recapitulate:
  • you installed the rest of the kexts
  • you renamed you rom video and you copied it into /Extra folder
  • you added the flags in com.apple.Boot.plist

restart  your computer, everything should be fine, be sure that before restarting you have only one monitor plugged, after you successfully restarted you should actually have a fully installed ATI 57x00 card, plug in the other monitor, detect monitors and you should have the extended desktop on the other monitor, as well as QE/CI working. you can see here my both monitors working at full resolution.

Here is my XBench test

http://db.xbench.com/merge.xhtml?doc2=475246

ok so what we got is a full working mac with some decent benchmarks, the hdd I used to install Leopard on is pretty old so not that fast this is mainly the reason for a poor benchmark score, you can get lot better with a fast hdd and a better CPU.

what we didn't get :) , each time you restart you need to unplug one of the monitors and plug again after your SO started, also i have some issues with USB you can fix some of them following this tutorial, I did install myself but I still have some issues, also sleep doesn't work , it sleeps but never wake up, the thing is that I do not need sleep :) , if you need it there are plenty of resources around to fix it, it shouldn't be that hard, but always remember to backup your system before making any modifications to your installation(i use disk utility to create an image of my Leopard installation) and when i will need it will just restore it and install a boot loader and have it as new.

Hope this helped someone, until I got it right I spent lot of my free time :) if I can save you some of this time then this post fulfilled its purpose.