[QUOTE=broo20;22114833]-snipped programming problem-[/QUOTE]
It's not that hard... until you try to figure out which way the two rectangles are intersecting and how to subtract that area. I finished it; you can download the exe [url=http://anyhub.net/file/broo20_c.exe]here[/url]
broo20_c.exe has encountered a problem and needs to close. We are sorry for the inconvenience.
[QUOTE=Chad Mobile;22115359]I got bored, so I made a simplified web browser and fixed an old bug that I could never figure out :v:[/QUOTE]
*sigh* I must resist temptation..
I've been distracted lately, can anyone fill me in on what's going on? Is there a new programming fad?
[QUOTE=broo20;22114833]-snip-[/QUOTE]
It's not that hard:
1. You know how to read in files. So read in the coordinates of each rectangle.
2. You know how to calculate the area of them.
3. Checking for intersection of rectangles... pretty easy.
4. Subtracting the intersection area from the calculated area.
5. Outputting it into a file.
Is it?
If you have problems with a specific step, rather ask a specific question than demanding a whole program ;)
Instead of downing Chad, you could offer him ways to progress further in his development, maybe up to the point of coding his own Web Renderer. No need to shit on his parade.
[QUOTE=NorthernGate;22118821]Instead of downing Chad, you could offer him ways to progress further in his development, maybe up to the point of coding his own Web Renderer. No need to shit on his parade.[/QUOTE]
I never shat on it.
[QUOTE=Joshyy;22118548] Is there a new programming fad?[/QUOTE]
Graphing programs, advanced mathematics seems to be the order of the day.
Chad, I bet if you used something like [url=http://webkitdotnet.sourceforge.net/][u]this[/u][/url] instead of the IE control nobody would be bashing you.
[QUOTE=voodooattack;22119522]Chad, I bet if you used something like [url=http://webkitdotnet.sourceforge.net/][u]this[/u][/url] instead of the IE control nobody would be bashing you.[/QUOTE]
That is for C++ so I don't think you can use it with VB nor C# applications. Correct me if I'm wrong.
Also does anybody know if you can make android apps with C#?
Nah, it's Java only: you can't even have other JVM languages (Groovy, Jython, JRuby etc), because android targets the dalvik virtual machine, which needs a different compiler.
I'm no longer a ban virgin! Sorry, about the moronic comment. In my slight defense I was ill, which makes me angry, and even more socially inept.
[QUOTE=Poodle;22119655]That is for C++ so I don't think you can use it with VB nor C# applications. Correct me if I'm wrong.
Also does anybody know if you can make android apps with C#?[/QUOTE]
It's Webkit.NET.
[QUOTE]WebKit .NET is a WinForms control library wrapper for WebKit written in C#. The aim is to make it easy for developers to incorporate WebKit into their .NET applications.[/QUOTE]
So you apparently can use it with C# or VB
[QUOTE=Robert64;22105246]Be warned, you won't be able to use the unsigned int type if it's bigger than 4,294,967,295
[editline]07:13PM[/editline]
Fuck I don't deserve page king[/QUOTE]
[img]http://i46.tinypic.com/2enceus.png[/img]
[QUOTE=itsbth;22114452]Trying to write a small app for Android, but...
[img_thumb]http://i.imgur.com/T4qN2.png[/img_thumb][/QUOTE]
Why are you using the Android 1.5 emulator?
[QUOTE=TheBoff;22119803]Nah, it's Java only[/QUOTE]
Oh, okay, I've never programmed in Java but I can program in C# so I probably shouldn't have any problems writing in java?
[QUOTE=Darwin226;22119901]It's Webkit.NET.
So you apparently can use it with C# or VB[/QUOTE]
oh didn't know that, I'm gonna look into it then
[QUOTE=efeX;22095328]setting up box2d and creating a few shapes with velocity isn't boring?[/QUOTE]
First off, it's Farseer.
Second off, no, it isn't boring, because the end result is worth it. And playing around with physics is way more fun than playing around with mathematics!
[QUOTE=Dlaor;22121026] And playing around with physics is way more fun than playing around with mathematics![/QUOTE]
Aren't they one and the same?
[QUOTE=Tuntis;22120032]Why are you using the Android 1.5 emulator?[/QUOTE]
Because HTC has still not released 2.1 for the Hero.
[QUOTE=itsbth;22121430]Because HTC has still not released 2.1 for the Hero.[/QUOTE]
You should still compile your app for the latest SDK version (2.2) and set the minSdkVersion to 3 in the application manifest. That will allow it to run on 1.5. Building your app with the 1.5 SDK is a bad idea because it doesn't support different screen densities, unlike 1.6 and above.
I test my app on a 2.2 emulator, and before release I make an 1.5 emulator and test it to make sure it works on older devices.
[QUOTE=Poodle;22121228]Aren't they one and the same?[/QUOTE]
Nah: physics is a branch of applied mathematics!
It's interesting though, as so is computing really.
Did someone in the last WAYWO say they managed to DL Visual Studio off DreamSpark without being a student? Can you tell me how? My friend goes to school that doesn't have that and I want to stop him from download it from TPB.
[url=http://downforeveryoneorjustme.com/love2d.org]Apparently love2d.org wasn't down.[/url] For some reason the website just won't load for me from this address (Firefox can't find the server). I can still reach the site if I just use a [url=http://freeproxyserver.net/]proxy[/url].
I'll post a few pics of my game once I get some stuff done (effects / firing projectiles), not much to see currently.
[QUOTE=Darwin226;22121675]Did someone in the last WAYWO say they managed to DL Visual Studio off DreamSpark without being a student? Can you tell me how? My friend goes to school that doesn't have that and I want to stop him from download it from TPB.[/QUOTE]
You can buy a subscriber account from somebody who has an admin account on those kinds of sites (they are a few bucks, and you get access to all of their stuff)
[editline]01:01PM[/editline]
I am not condoning this, though, I am just saying how to.
I think it's legal too.
[img]http://i46.tinypic.com/xc2554.png[/img]
[code]Hook Place()
MAP_WID = 24
MAP_HEI = 16
DEFAULT_TILE = Array.New( True, "null" )
CreateGrid()
Local x = 1
While x < 4
Local y = 2
While y < 5
SetTile( x, y, Array.New( False, "null" ))
y += 1
EndWhile
x += 1
EndWhile
x = 4
While x < 22
SetTile( x, 3, Array.New( False, "null" ))
x += 1
EndWhile
BuildGrid()
PlaceEntrance( 2, 5, False )
EndHook
Function CreateGrid()
MAP_BUFFER = Array.New()
Local i = 0
While i < MAP_WID * MAP_HEI
MAP_BUFFER = Array.Push( MAP_BUFFER, DEFAULT_TILE )
i += 1
EndWhile
EndFunction
Function GetTile( tile_x, tile_y )
Return Array.GetItem( MAP_BUFFER, tile_x + ( tile_y * MAP_WID ))
EndFunction
Function SetTile( tile_x, tile_y, tile_val )
MAP_BUFFER = Array.SetItem( MAP_BUFFER, tile_x + ( tile_y * MAP_WID ), tile_val )
EndFunction
Function BuildGrid()
Local x = 0
While x < MAP_WID
Local y = 0
While y < MAP_HEI
If !Array.GetItem( GetTile( x, y ), 0 )
CarveRoom( x, y, 1, 1 )
EndIf
y += 1
EndWhile
x += 1
EndWhile
BuildInterior()
EndFunction[/code]
I know I have a shitty array interface, but it will do for now.
Now to write a good dungeon generating algorithm in my language :3:
[QUOTE=Robert64;22121913]-code and stuff here-
[/QUOTE]
What language is this? It looks like Visual Basic but I see some differences.
[QUOTE=Poodle;22122636]What language is this? It looks like Visual Basic but I see some differences.[/QUOTE]
[QUOTE=Robert64;22121913]
Now to write a good dungeon generating algorithm in [U]my language[/U] :3:[/QUOTE]
[QUOTE=Darwin226;22121675]Did someone in the last WAYWO say they managed to DL Visual Studio off DreamSpark without being a student? Can you tell me how? My friend goes to school that doesn't have that and I want to stop him from download it from TPB.[/QUOTE]
Not that I'm trying to condone warez or anything, warez is bad. But isn't using a fake student account just as bad?
If you download something from TPB, that's illegal and bad but if Microsoft made an error in their system that you can exploit then in my eyes it's their fault. Not saying that it's legal, I just think that it's ethically correct.
--
I made a web crawler since we did SEO in school and it woks fine except I have no idea what to do with it. Currently, it goes to one page and then to all the links/URLs on that page, then on all the ones on those pages and so on. Since I don't plan on making my search engine it doesn't index them, just loads the page and parses the URLs. Any ideas what do with it?
[QUOTE=Darwin226;22123399]If you download something from TPB, that's illegal and bad[/QUOTE]
Torrents aren't illegal :\.
[QUOTE=Darwin226;22123399]if Microsoft made an error in their system that you can exploit then in my eyes it's their fault. Not saying that it's legal, I just think that it's ethically correct.[/QUOTE]
That is a horrible viewpoint. You are the reason we can't have nice things.
So you are defending downloading from TPB but not downloading from DreamSpark?
Look, I downloaded it legally and he will download it from a torrent so I think that this is a better alternative.
Sorry, you need to Log In to post a reply to this thread.