Sunday, February 26, 2012

Thread Ripper

Thread ripper is a tool coded in C# and as it's name suggest it's a link ripping tool from threads(web forums)It is designed for special case scenarios like you had a 1000 page pictures thread in any web forum and you accidentally deleted all those images from your HDD,and want to recollect them all.Then thread ripper can be a good solution for you.

how it works......
first find the target thread you want to grab pics/links from.
suppose it's
now this thread has 45 pages.

Analyze the link structure

if don't already know,this window opens by right clicking on any image and selecting view image info in Firefox,you can directly see page source if this option is unavailable to you for some reason.As you can see all images in this thread starts with so it will be much easier to find now.

Setting thread ripper

We already know that we are using this
thread as target.So lets see how pages are managed in this thread,try to copy the link for page 2
so now we know how pages are managed in this thread or we can say this web-forum.

1. Target URL :
(Note: we are going to use multi page option here and  the page no. will be added after the url so we are not using .html at the end of the target URL,if you are going to use a single page then you have to paste the complete URL.)

2. Search for :

3. Stop at : border="0"

Why? because when you open page source and analyze the link it will look like this.........

< img src="" border="0" alt="Name: Katrinainterweb1.jpg Views: 28465 Size: 79.9 KB" />

and we just need   part of all images,that's why.

4. Enable multy page option,now you can enter range of page no. you want to grab the links.
5. we are going to start from page 1
6. to page 5
7.  Have to add .html at the end of the link.
8. lets run this puppy.

9. 168 links found! You can save this links in a text file and import it to IDM or any other download manager.

There are some other options which i didn't mention yet,lets talk about that.

- Replace : With
This feature is useful when downloading images from thumbnails etc.For example some host like didn't allow direct linking of images instead they provide thumbnails of images.
so the link in the forum looks like this... 
but the link for original image will be... 
So in such case you can replace thumb with image.

-offline sorting
This feature allows you to edit the resultant links in offline mode,keep reading for more detail on this option

Target URL :
In this thread images are from different sources(different servers) so we have to grab all the image links in it and filter the links we want.

If you can see,there are many different image links including forum avatars,signatures,adds and some html parts,lets clean this mess.The links we are interested in,starts with http://img and ends with ".
Enable the offline sorting,two buttons will be enabled inside it.First one << is a back button if any thing goes wrong you can go back to previous result.The second one performs the sorting,just enter what to search,where to stop and replace:with (optional) and press this this......

After sorting we have left only with plain image links that we were interested.

 -Save Settings
Simple and sweet save settings button saves all the information in the Search for,Stop At,Replace,With text boxes in the settings.ini file,so you can use them later to search links from the same thread or web-forum.

That's all folks. :)

Download Thread Ripper-

Tuesday, February 21, 2012

How to play *.XM / *.MOD files in VB.NET (Using reflection)

Note: This article was originally posted by me at 2 years ago,and you can see the original post here for the details.

If you are not  already aware that i am too a proud member of (a mod. actually) and lots of guys asking there this same question that "How to play *.XM / *.MOD files in VB.NET " .

You might ask what's the problem just use any free audio library to do this,you are correct.But the actual problem was that guys want everything inside a single executable file without using a packer even the *.DLL files itself and to do this we have to use a feature called reflection.

So when i found a solution i code a module so anybody can use *xm/*mod easily without need to understand whole reflection thing.

So here's my module..........

(*.vb module with a demo *.exe)

(*.vb module only)

-the dll and music will be in resource so you don't need pack it again.
-size is less (atleast compare to a wav file)
-And it's in the module so you don't need to understand the code but that would be recommended.

how to use:-

1. Add my module to your project(right click on solution explorer and click add existing item).
2. Add 3 files bass.dll , , and the music you wanna play,in the project resource.

download bass.dll

download Bass.Net.dll

3. GO and register for free to otherwise it will show a trial version message.

register here    BASS.NET : Registration


you need to call this function before any other functions of my module.

note:- if you not registered then put anything in both string place,it will run with a trial version message.

dim status = music(my.resource.filename_of_xm_mod,"registered email-id","registration_code")

now there are 4 functions call any where you need


private sub button1_click()

    if status=0 then
        exit sub
    end if
End sub