I was bored

All off topic discussions go here. Everything from the funny thing your cat did to your favorite tv shows. Non-programming computer questions are ok too.
User avatar
nekros
Member
Member
Posts: 391
Joined: Wed Mar 05, 2008 9:10 pm
Contact:

I was bored

Post by nekros »

I was bored and I made a simple program to screw up a text file :D
It looks like crap, but have fun.
Attachments
main.c
STUPID MANGLING PROGRAM
(855 Bytes) Downloaded 49 times
User avatar
Zacariaz
Member
Member
Posts: 1069
Joined: Tue May 22, 2007 2:36 pm
Contact:

Post by Zacariaz »

you think you know about boredom?
I once wrote a ink lbop test. Unfortunantly i have drown away the source, but i still have the windows binary.


Damn that 64k limit sucks...
Attachments
inkblop.part1.rar
(64 KiB) Downloaded 63 times
inkblop.part2.rar
(9.55 KiB) Downloaded 66 times
This was supposed to be a cool signature...
User avatar
nekros
Member
Member
Posts: 391
Joined: Wed Mar 05, 2008 9:10 pm
Contact:

Post by nekros »

I thought my little prog was funny.... :D Yep, very very very bored.


I just tried it on the source for the program: WHOA! :D
User avatar
Zacariaz
Member
Member
Posts: 1069
Joined: Tue May 22, 2007 2:36 pm
Contact:

Post by Zacariaz »

nekros wrote:I just tried it on the source for the program: WHOA! :D
I'm sorry, I don't quite understand what you mean by that, but it sound positive. :wink:
This was supposed to be a cool signature...
User avatar
nekros
Member
Member
Posts: 391
Joined: Wed Mar 05, 2008 9:10 pm
Contact:

Post by nekros »

I used the program to mangle it's own source :D
User avatar
Zacariaz
Member
Member
Posts: 1069
Joined: Tue May 22, 2007 2:36 pm
Contact:

Post by Zacariaz »

cool, i don't think i'd be able to understand the output.
This was supposed to be a cool signature...
User avatar
Zacariaz
Member
Member
Posts: 1069
Joined: Tue May 22, 2007 2:36 pm
Contact:

Post by Zacariaz »

couldn't sleep:

Code: Select all

#include <iostream>
#include <vector>
#include <stdint.h>

class Prime {
	std::vector<uint32_t> P_list;
	uint32_t test;
	uint32_t Get(uint32_t n) {
		while(n >= P_list.size()) {
			test += 2;
			for (uint32_t i = 1; test >= P_list[i] * P_list[i]; i++) {
				if(test % P_list[i] == 0) {
					test += 2;
					i = 0;
				}
			}
			P_list.push_back(test);
		}
		return P_list[n];
	}
public:
	Prime() : test(3) {
		P_list.push_back(2);
		P_list.push_back(3);
		int32_t n;
		while(true) {
			std::cout << "type in a number greater than 0 to get the corosponding prime or type 0 to exit: ";
			std::cin >> n;
			if(!n) break;
			std::cout << "the " << n;
			if(n % 10 == 1) std::cout << "st";
			else if(n % 10 == 2) std::cout << "nd";
			else if(n % 10 == 3) std::cout << "rd";
			else std::cout << "th";
			std::cout << " prime number is: " << Get(n-1) << std::endl;
		}
	}
};
This was supposed to be a cool signature...
User avatar
B.E
Member
Member
Posts: 275
Joined: Sat Oct 21, 2006 5:29 pm
Location: Brisbane Australia
Contact:

Post by B.E »

I was bored once and made a program that bar graphed random numbers with radom colors and with RBG, graphed the color component.

I also added a line to show the averages of the random numbers.

All programmed in Delphi.

Can't seem to find it again though
Image
Microsoft: "let everyone run after us. We'll just INNOV~1"
eddyb

Post by eddyb »

the output

Code: Select all

#i#ilulu < <didih>h>ininudud<s<slilih>h>ininudud<s<s/t/teses>
>
clcle e ysystatah>h>ininudud<f<ftltl>
>
clcle e ninid.d.
t
tdedeunungngn s srtrtOROR



crcrtwtwd(d(RDRD)/)/ncncptpta a RDRDndndetetnsnshehencncptpt w wd
d
 = =WOWO)")"TTTT
r
rrnrn;
;
vovo d dwowo(W(WD D 
{
{= = /2/2}
}
t t ininntntrgrgchch * *gvgv)
)
ririf(f(ekekfifi m mglglg g ogogm\m\););ntntococptpt o on(n(gvgv],],RDRD););ntntrrrrs;s;ntntiziz = =;
;
ucucstst c catatWOWO n nypyp
v
v * *f f &n&nypyp
v
v * *ufuf & &tata
i
iococptpt)
)
ririf(f(RRRR: :  S SH H LELEN N ISISIRIRTOTO\n\n;
;
urur0;0;



(a(av[v[,s,sf)f)prprtftfTHTHSISI O OTHTHFIFI I I%d%dYTYT\n\ncscst.t._s_se)e)sisiw w cscst.t._s_se e 2;2;inini i 1;1;hihi(i(i=(=(tataststiziz2)2){
{
d(d(crcrt,t,f,f,zeze(W(WD)D)
c
ctwtwd(d(ryry););riri(t(tryry,b,b,s,seoeoWOWO))))i+i+
}
}ririf(f(ONONn"n"
r
rrnrn;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
I used also on the prog :lol: now it's dont work anymore :lol:
User avatar
nekros
Member
Member
Posts: 391
Joined: Wed Mar 05, 2008 9:10 pm
Contact:

Post by nekros »

The long line of colons is kinda weird. :D
User avatar
AndrewAPrice
Member
Member
Posts: 2299
Joined: Mon Jun 05, 2006 11:00 pm
Location: USA (and Australia)

Post by AndrewAPrice »

Zacariaz wrote:you think you know about boredom?
I once wrote a ink lbop test. Unfortunantly i have drown away the source, but i still have the windows binary.
I'm suppose to be writing finishing my C++ network chat program (which is nearly done) - you control 3D avatars and the speech bubble above your head fills as you type.

But I've been procrastinating and writing a multiplayer first person shooter for PC and Xbox 360 (with cross network connectivity). It's really cool since you just need the bare game (<100 kb now, but may increase later) and when you join into a game and don't have the map, the map and all content is automatically transferred to your system.

I'm making a level editor which will run on the 360 and PC, but "Content Packs" (they hold textures, meshes, sounds, etc) must be created on a PC and transferred over a network, since it's kind of pointless browsing an Xbox for textures/meshes/etc (unless I wrote a photo-editing program for it, but that's another entire project).
My OS is Perception.
iammisc
Member
Member
Posts: 269
Joined: Thu Nov 09, 2006 6:23 pm

Post by iammisc »

Maybe it's just me, or maybe it got downloaded wrong, but you do realize that you're program doesn't do anything right.

Look at the encrypt function:

int cryptword(WORD w)//encrypts a WORD and returns the encrypted word
{
w = (WORD)"BUTT";
return w;
}

what does that do?

it does nothing, w isn't a pointer and the return value is never used so the function could have absolutely no side effects on the program's output. If you remove the call to cryptword and run the program again, you'll get the same output. All that happens is that everything is offset by two because the file position pointer is offset by two from the read. Then you write and the position pointer is offset by two again and then you read the next two.
That is why you get the same character at the end all the time.
User avatar
nekros
Member
Member
Posts: 391
Joined: Wed Mar 05, 2008 9:10 pm
Contact:

Post by nekros »

I'm aware of all of this. I was tired, bored and why the heck does it matter? It's a pointless program. It can't do anything wrong if it isn't meant to do something right.
Working On:Bootloader, RWFS Image Program
Leviathan: http://leviathanv.googlecode.com
Kernel:Working on Design Doc
User avatar
inflater
Member
Member
Posts: 1309
Joined: Thu Sep 28, 2006 10:32 am
Location: Slovakia
Contact:

Post by inflater »

I once made a "driving game" in Delphi, where you had to spin your mouse wheel as fast as possible (the spinning didn't had to be continuous loop). First, you would set a time thresold between 10-50 seconds and then, every Windows event "MouseWheelMove" was recorded and in the end, you would get up with a score. I also made there a "gear shifter" that would move the Windows's "slider" component according to your score, "status LEDs" for "gasoline", "motor" and "gears", plus I've added some weird car sounds.
(C) 2005 :D

If you would like to try it,
"sekúnd" - number of seconds
"benzín" - gasoline
"motor" - engine
"prevodovka" - gears

"Naštartuj auto" - Start the car
"Zabrzdi" - Break
"Získal si (...) bodov!" - You scored (...) points!

Should run even on Wine.
Beware: This program is useless, I created it because I was really bored. :)

Here it is, http://ayeto.zaridi.to/inflater/weird_game.zip
User avatar
AndrewAPrice
Member
Member
Posts: 2299
Joined: Mon Jun 05, 2006 11:00 pm
Location: USA (and Australia)

Post by AndrewAPrice »

I finished the above mentioned chat program :) I got up to 6 people all moving/typing smoothly across the college network.
Image
My OS is Perception.
Post Reply