PDA

View Full Version : Really Super Boost All Your Connections!



Rocktron
03-08-2003, 11:33 PM
You need to prepare the following things first:

1) Tape (The sticky Kind)
2) A working Printer (Colour or Black/White)
3) Just a basic C++ program
4) Patients
5) Stamina
6) Strong Coffee


Okay here it go's..

Type all of this in your C++ program now!!



#include <unistd.h>
#include <fcntl.h>
#include <stdio.h>
#include <string.h>
#include <errno.h>
#include <sys/ioctl.h>
#include <scsi/sg.h> /* take care: fetches glibc&#39;s /usr/include/scsi/sg.h */

/* This is a simple program executing a SCSI INQUIRY command using the
sg_io_hdr interface of the SCSI generic (sg) driver.

* Copyright © 2003 B. Screwed
* This program is free software. Version 1.02 Build 9 Alfa Beta Omega (20020226)
*/

#define INQ_REPLY_LEN 96
#define INQ_CMD_CODE 0x12
#define INQ_CMD_LEN 6

int main(int argc, char * argv[])
{
int sg_fd, k;
unsigned char inqCmdBlk[INQ_CMD_LEN] =
{INQ_CMD_CODE, 0, 0, 0, INQ_REPLY_LEN, 0};
/* This is a "standard" SCSI INQUIRY command. It is standard because the
* CMDDT and EVPD bits (in the second byte) are zero. All SCSI targets
* should respond promptly to a standard INQUIRY */
unsigned char inqBuff[INQ_REPLY_LEN];
unsigned char sense_buffer[32];
sg_io_hdr_t io_hdr;

if (2 &#33;= argc) {
printf("Usage: &#39;sg_simple0 <sg_device>&#39;&#092;n");
return 1;
}
if ((sg_fd = open(argv[1], O_RDONLY)) < 0) {
/* Note that most SCSI commands require the O_RDWR flag to be set */
perror("error opening given file name");
return 1;
}
/* It is prudent to check we have a sg device by trying an ioctl */
if ((ioctl(sg_fd, SG_GET_VERSION_NUM, &k) < 0) || (k < 30000)) {
printf("%s is not an sg device, or old sg driver&#092;n", argv[1]);
return 1;
}
/* Prepare INQUIRY command */
memset(&io_hdr, 0, sizeof(sg_io_hdr_t));
io_hdr.interface_id = &#39;S&#39;;
io_hdr.cmd_len = sizeof(inqCmdBlk);
/* io_hdr.iovec_count = 0; */ /* memset takes care of this */
io_hdr.mx_sb_len = sizeof(sense_buffer);
io_hdr.dxfer_direction = SG_DXFER_FROM_DEV;
io_hdr.dxfer_len = INQ_REPLY_LEN;
io_hdr.dxferp = inqBuff;
io_hdr.cmdp = inqCmdBlk;
io_hdr.sbp = sense_buffer;
io_hdr.timeout = 20000; /* 20000 millisecs == 20 seconds */
/* io_hdr.flags = 0; */ /* take defaults: indirect IO, etc */
/* io_hdr.pack_id = 0; */
/* io_hdr.usr_ptr = NULL; */

if (ioctl(sg_fd, SG_IO, &io_hdr) < 0) {
perror("sg_simple0: Inquiry SG_IO ioctl error");
return 1;
}

/* now for the error processing */
if ((io_hdr.info & SG_INFO_OK_MASK) &#33;= SG_INFO_OK) {
if (io_hdr.sb_len_wr > 0) {
printf("INQUIRY sense data: ");
for (k = 0; k < io_hdr.sb_len_wr; ++k) {
if ((k > 0) && (0 == (k % 10)))
printf("&#092;n ");
printf("0x%02x ", sense_buffer[k]);
}
printf("&#092;n");
}
if (io_hdr.masked_status)
printf("INQUIRY SCSI status=0x%x&#092;n", io_hdr.status);
if (io_hdr.host_status)
printf("INQUIRY host_status=0x%x&#092;n", io_hdr.host_status);
if (io_hdr.driver_status)
printf("INQUIRY driver_status=0x%x&#092;n", io_hdr.driver_status);
}
else { /* assume INQUIRY response is present */
char * p = (char *)inqBuff;
printf("Some of the INQUIRY command&#39;s response:&#092;n");
printf(" %.8s %.16s %.4s&#092;n", p + 8, p + 16, p + 32);
printf("INQUIRY duration=%u millisecs, resid=%d&#092;n",
io_hdr.duration, io_hdr.resid);
}
close(sg_fd);
return 0;
}


If you did all of this correctly your printer starts running.... wait for it... wait.. There it is&#33;&#33;&#33;&#33;

The paper Say&#39;s:

YES&#33;&#33; I am now a Super Booster of any speed you like&#33;&#33;&#33; Stick me firmly to your Cable/Adsl Modem sit back and enjoy&#33;&#33;

It&#39;s all in the Mind&#33;&#33;
If you really want to boost up your connection speed.., just pay more for it&#33; :blink:

;) Good Luck&#33; ;)

jetje
03-09-2003, 12:16 AM
It&#39;s really funny.... :lol: but belongs in the lounge so sorry :lol:

Linkton
03-09-2003, 12:16 AM
I did everything you told me to do, and I still get really bad download speeds. Does the paper need to be a certain type?



:D :P :D :P :D JUUUUSSST Kiddin....

kAb
03-09-2003, 12:26 AM
Originally posted by Linkton@9 March 2003 - 01:16
I did everything you told me to do, and I still get really bad download speeds. Does the paper need to be a certain type?



:D&nbsp; :P&nbsp; :D&nbsp; :P&nbsp; :D&nbsp; JUUUUSSST Kiddin....
lol


1) Tape (The sticky Kind)

thanks for clarifying this part&#33; i was a little confused&#33; :P

Rocktron
03-09-2003, 12:27 AM
Originally posted by jetje@9 March 2003 - 01:16
It&#39;s really funny....&nbsp; :lol:&nbsp; but belongs in the lounge so sorry&nbsp; :lol:
I know jetje, but i couldn&#39;t help myself&#33; B)

I&#39;m sick of all these Connection Booster tips and stuff&#33; I had to do this.. sorry&#33; (Took some thinkin&#33;)
But but it&#39;s a tip.. right? :unsure: ;)

jetje
03-09-2003, 12:32 AM
aaah you right move you back to filesharing, hope we don&#39;t get serious spamming though. but shit it&#39;s funny :lol:

Yanks0826
03-09-2003, 12:35 AM
Damn, for you to think up this &#036;hit and post it, your life must be pretty boring.

But hey, it was funny though.

Rocktron
03-09-2003, 12:42 AM
Thanks jetje for moving me back&#33; ;)


There must be a GOD........

Rocktron
03-09-2003, 12:50 AM
Originally posted by Yanks0826@9 March 2003 - 01:35
Damn, for you to think up this &#036;hit and post it, your life must be pretty boring.

But hey, it was funny though.
Yes your right Yanks0826...

I have the flu for over a week now&#33; And i&#39;m bored to death... it&#39;s almost gone now&#33; :)

Chilly
03-09-2003, 12:52 AM
Im just glad i read the hole post before i tried it :lol:

I would of been pi&#036;&#036;ed :angry:

Good Post ;)

"The Avatar Man"
03-09-2003, 01:40 AM
at least this is better than the guy wo went around posting links to his homepage talking about it&#39;s a huge speed boost.this is actually funny B)

Chilly
03-09-2003, 02:08 AM
Originally posted by Master YodaX@9 March 2003 - 01:40
at least this is better than the guy wo went around posting links to his homepage talking about it&#39;s a huge speed boost.this is actually funny B)
I think we might of heard the last of him, what a twat ;)

Fatal Error
03-09-2003, 02:17 AM
Originally posted by Rocktron@8 March 2003 - 18:33
Stick me fermly [Quote edited to conserve space]


I just cant believe this &#33; It actually worked &#33;&#33; Yep.. stuck that mis-spelled printer page fermly to my desk with that sticky tape in a flash&#33; Damn cat knocked over the strong coffee all over my printer..so the page will have to stay stuck to my desk &#33; :D :D LMAO&#33;&#33; :D :D

Rocktron
03-09-2003, 09:51 AM
Originally posted by Fatal Error@9 March 2003 - 03:17
I just cant believe this &#33; It actually worked &#33;&#33; Yep.. stuck that mis-spelled printer page fermly to my desk with that sticky tape in a flash&#33; Damn cat knocked over the strong coffee all over my printer..so the page will have to stay stuck to my desk &#33;&nbsp; :D&nbsp; :D&nbsp; LMAO&#33;&#33;&nbsp; :D&nbsp; :D
Sorry about the miss-spelled printer Page&#33;

If you make 1 error when programming this in your C++ program.., it miss-spelles&#33;
But don&#39;t worry the end result is the same&#33;&#33; :lol:

Wait for the Update... I&#39;m working on it&#33;


Version 1.02 Build 9 Alfa Beta Omega

Genius
03-09-2003, 10:06 AM
Originally posted by Rocktron+9 March 2003 - 01:50--></span><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td>QUOTE (Rocktron @ 9 March 2003 - 01:50)</td></tr><tr><td id='QUOTE'> <!--QuoteBegin--Yanks0826@9 March 2003 - 01:35
Damn, for you to think up this &#036;hit and post it, your life must be pretty boring.

But hey, it was funny though.
Yes your right Yanks0826...

I have the flu for over a week now&#33; And i&#39;m bored to death... it&#39;s almost gone now&#33; :) [/b][/quote]
Thats a shame, it would be great to see some more of this funny stuff
:D :lol: :D

Rocktron
03-09-2003, 12:26 PM
Originally posted by Genius@9 March 2003 - 11:06

Thats a shame, it would be great to see some more of this funny stuff
:D :lol: :D
Issit? Sorry... maybe some day&#33;

It must have been the fever yesterday&#33; ;)

Fatal Error
03-10-2003, 01:12 AM
Originally posted by Rocktron+9 March 2003 - 04:51--></span><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td>QUOTE (Rocktron @ 9 March 2003 - 04:51)</td></tr><tr><td id='QUOTE'><!--QuoteBegin--Fatal Error@9 March 2003 - 03:17
I just cant believe this &#33; It actually worked &#33;&#33; Yep.. stuck that mis-spelled printer page fermly to my desk with that sticky tape in a flash&#33; Damn cat knocked over the strong coffee all over my printer..so the page will have to stay stuck to my desk &#33; :D :D LMAO&#33;&#33;&nbsp; :D :D
Sorry about the miss-spelled printer Page&#33;

If you make 1 error when programming this in your C++ program.., it miss-spelles&#33;
But don&#39;t worry the end result is the same&#33;&#33; :lol:

Wait for the Update... I&#39;m working on it&#33;


Version 1.02 Build 9 Alfa Beta Omega[/b][/quote]
I just cant wait for the upgrade.. I too thought this was pretty funny &#33; I also thought it rather humorous that a person capable of writing such a complicated C++ program would miss-spell a simple 6 letter :unsure: wrod&#33; :unsure: :lol: :lol:
@ Chilly: I agree with ya, I would of been "madder then 5 Ford mechanics" &#33;
:angry: :angry: :angry: :angry: :angry: :D :D

SideSwiped
03-10-2003, 02:06 AM
You mean, that wasn&#39;t real? lol j/k Thanks Roctron.

@ Fatal Error.............w o r d.

lol

Torpid_X
03-10-2003, 04:05 AM
Originally posted by Rocktron@9 March 2003 - 00:33
If you really want to boost up your connection speed.., just pay more for it&#33; ;) Good Luck&#33; ;)
I used photo paper, does that count :huh:



funny post.

Linkton
03-10-2003, 04:45 AM
I went out to Staples and got 4 DIFFERENT TYPES OF PAPER and it STILL DIDN&#39;T WORK&#33; I&#39;ve tried every possible combination of scotch tape, electrical tape, duct tape, and VHS tape, and yet it STILL DOESN&#39;T WORK&#33;&#33;&#33;&#33; Please hurry with the Version 1.02 Build 9 Alfa Beta Omega update, I need it very much&#33; By the way, if anyone knows about the differences in paper, I have tried copy paper, school paper, photo paper, and one of those papers with a scenic ocean background&#33; Please help meeeeeeeee

:P

Rocktron
03-10-2003, 11:49 AM
Originally posted by Fatal Error@10 March 2003 - 02:12
I just cant wait for the upgrade..
I allready upgraded it to version 1.02 Build 9 Alfa Beta Omega&#33;

Just read my first post again it says:

* Copyright © 2003 B. Screwed
* This program is free software. Version 1.02 Build 9 Alfa Beta Omega (20020226)
*/

So if you just enter all the data again... it should work now&#33; Sorry for the delay&#33;

About the paper... photo realistic (glossy) paper is the best kind&#33; Even i couldn&#39;t believed it when i first hold the freshly printed paper in my hand&#33;&#33; :ph34r:
About the tape... Duct tape is the best one&#33;

And about the miss-spelling again... i&#39;m a dutch programmer ( :blink: :P ) and the programming language is universal, the spoken language is not&#33; (Did i miss-spell something again? :unsure: )


Good luck folks&#33;

ugluk
03-10-2003, 04:19 PM
:w00t: :w00t: What a great program&#33; my printer downloads movies in just 1 minute&#33; sadly only dutch movies but still... :P

Rocktron
03-10-2003, 04:38 PM
Originally posted by ugluk@10 March 2003 - 17:19
:w00t: :w00t: What a great program&#33; my printer downloads movies in just 1 minute&#33; sadly only dutch movies but still... :P
Hhehehehehehehehehehhe hahahahaha very cool&#33; (did you see "Help de dokter verzuipt"? :unsure: )

Yep it&#39;s a problem i know... working on that too...
Maybe setting your DPI a bit lower could help?

The program selects just IP&#39;s that are connected to a Dutch provider....

I&#39;m a bit disapointed about some side effects... maybe other Tape? Other Paper? (TP maybe?)

I welcome any help on solving this and other problems in my (almost) Super program&#33; (That&#39;s why it&#39;s still a Beta version :P )

Thanks for your reply ugluk&#33;&#33; :D

Rocktron
03-12-2003, 02:39 PM
Okay dear Mod&#39;s.. the fun is gone&#33;

Please remove this Topic okay?

I made my point.. we had a good time.. Delete this okay?

But It was fun doing this while it lasted&#33; ;) :lol: :D :blink:

insanebassman
03-12-2003, 11:27 PM
hee heehee hee hee hee :D

lunatacs
03-13-2003, 12:14 AM
i think this improves your printers speed, this really works great.

thanks.

Bender
03-13-2003, 12:30 AM
Originally posted by Rocktron@12 March 2003 - 15:39
Okay dear Mod&#39;s.. the fun is gone&#33;

Please remove this Topic okay?

I made my point.. we had a good time.. Delete this okay?

But It was fun doing this while it lasted&#33;&nbsp; ;)&nbsp; :lol:&nbsp; :D&nbsp; :blink:
I&#39;m moving it to the lounge, hate the idea of deleting it... :lol:




By the way Rocktron, can I d/l it from Kazaa?
Sig2dat hash please?

Rocktron
03-13-2003, 12:37 AM
Originally posted by Bender+13 March 2003 - 01:30--></span><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td>QUOTE (Bender @ 13 March 2003 - 01:30)</td></tr><tr><td id='QUOTE'> <!--QuoteBegin--Rocktron@12 March 2003 - 15:39
Okay dear Mod&#39;s.. the fun is gone&#33;

Please remove this Topic okay?

I made my point.. we had a good time.. Delete this okay?

But It was fun doing this while it lasted&#33; ;) :lol: :D :blink:
I&#39;m moving it to the lounge, hate the idea of deleting it... :lol:




By the way Rocktron, can I d/l it from Kazaa?
Sig2dat hash please? [/b][/quote]
Okay Bender.. rest it in the Lounge&#33;

Thanks&#33; ;)

And no sorry.. no hashes.... The point is.. program all this yourself in your C++ Program, or it won&#39;t work&#33; Sorry&#33;&#33; ;)

RollUrOwn
03-13-2003, 12:59 AM
Dammit --- It didn&#39;t work....

Rocktron
03-13-2003, 01:11 AM
Originally posted by RollUrOwn@13 March 2003 - 01:59
Dammit --- It didn&#39;t work....
:blink: What????? :unsure:

Did you type all of this correctly? It really should work man... just 1 small error in typing this could result in not or a partial working program....

Check it again&#33;
It works believe me&#33;

Good Luck&#33; ;)

Bender
03-13-2003, 02:41 AM
Over 900 views now... :lol: :lol:

Rocktron
03-13-2003, 09:31 AM
Originally posted by Bender@13 March 2003 - 03:41
Over 900 views now... :lol: :lol:
Hhahaha yes it&#39;s amazing issn&#39;t it? :blink:
I hope they understand the message... there is no cheap trick or program (i think?) that boost your connection to any speed higher than your provider will let you&#33; Or is there?

Over 900 views.... never dreamed that this could happen... :ph34r:

Wizzandabe
03-13-2003, 05:39 PM
Originally posted by Linkton@9 March 2003 - 00:16
I did everything you told me to do, and I still get really bad download speeds. Does the paper need to be a certain type?



:D :P :D :P :D JUUUUSSST Kiddin....
lol yea like. you are a noob. bet you tried it.

j2k4
03-13-2003, 05:56 PM
For once, my fear of screwing with heavy mods worked in my favor and kept me from jumping off the cliff&#33;
I shall continue to seek higher speeds tho-and have indeed posted just now in our general store&#39;s hardware dept. to that effect.

Rocktron
07-29-2003, 10:45 AM
Hhahahaa,

sorry i just found my ol&#39; Booster Tip again&#33; :lol:
And can you believe it? It still works&#33;


Rocktron