• What Are You Working On? V13
    5,003 replies, posted
[QUOTE=esalaka;24996829]I never claimed Java sucks :saddowns:[/QUOTE] My post was meant to be broadcast, not unicast.
Does Visual Studio still "forget" to throw exceptions if an error occurs in the constructor of a 64-bit application? [editline]0[/editline] Apparently so.
So, uh, is Notepad our new fad or what? [IMG]http://gyazo.com/51de35e7b16185877b121aaa11287ba9.png[/IMG] C# and Winforms. Started learning both yesterday.
Next fad must be a browser. We will make Facepunch Fistbrowser if we die trying. [editline]11:35AM[/editline] 10s later: We died trying.
I predict many entries using the WebBrowser control in .NET
[QUOTE=BlkDucky;25002095]So, uh, is Notepad our new fad or what?[/QUOTE] If anyone wants to write a notepad you should just read [url=http://doc.qt.nokia.com/4.7/gettingstartedqml.html]this[/url] :v:
[QUOTE=Libertas;25002252]Next fad must be a browser. We will make Facepunch Fistbrowser if we die trying.[/QUOTE] I was playing around with PyWebkit a few years ago (I don't know exactly when, but it was really new at the time). I made a paned browser. Basically, no tabs. The page titlebars (not the window decoration) are stacked from left to right and double as progress bars. You switch to a page by clicking its titlebar, and ctrl-clicking another bar would expand that window also. The idea was to make the best use of the horizontal space these new-fangled widescreen monitors provide. You can expand as many panes as you want and the space would be divided horizontally among them. It looked like this: [code] &#9581;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9582; &#9474;<- -> ___________________ X &#9474; &#9500;&#9472;&#9516;&#9472;&#9516;&#9472;&#9516;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9516;&#9472;&#9516;&#9472;&#9508; &#9474;X&#9474;X&#9474;X&#9474; &#9474;X&#9474;X&#9474; &#9474; &#9474;a&#9474;h&#9474; &#9474; &#9474;e&#9474; &#9474; &#9474;i&#9474;c&#9474; FACEPUNCH &#9474;y&#9474;v&#9474; &#9474; &#9474;d&#9474;n&#9474; LOLOLOLOLOL &#9474;a&#9474;i&#9474; &#9474;e&#9474;e&#9474;u&#9474; &#9474;d&#9474;l&#9474; &#9474;l&#9474;p&#9474;p&#9474; &#9474;a&#9474;e&#9474; &#9474;g&#9474;i&#9474;e&#9474; &#9474;k&#9474;k&#9474; &#9474;o&#9474;k&#9474;c&#9474; &#9474;c&#9474;a&#9474; &#9474;o&#9474;i&#9474;a&#9474; &#9474;a&#9474;u&#9474; &#9474;G&#9474;W&#9474;F&#9474; &#9474;H&#9474;Q&#9474; &#9492;&#9472;&#9524;&#9472;&#9524;&#9472;&#9524;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9524;&#9472;&#9524;&#9472;&#9496; &#8598; &#8598; pretend this text is rotated 90 deg CCW. Then if you ctrl-clicked a second pane, it would appear as: &#9581;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9582; &#9474;<- -> ___________________ X &#9474; &#9500;&#9472;&#9516;&#9472;&#9516;&#9472;&#9516;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9516;&#9472;&#9516;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9516;&#9472;&#9508; &#9474;X&#9474;X&#9474;X&#9474; &#9474;X&#9474; &#9474;X&#9474; &#9474; &#9474;a&#9474;h&#9474; &#9474; &#9474; &#9474;e&#9474; &#9474; &#9474;i&#9474;c&#9474;FACEPUNCH &#9474;y&#9474; HACKS! &#9474;v&#9474; &#9474; &#9474;d&#9474;n&#9474;LOLOLOLOLOL&#9474;a&#9474;LOLOLOLOLO&#9474;i&#9474; &#9474;e&#9474;e&#9474;u&#9474; &#9474;d&#9474;OLOLOLOLOL&#9474;l&#9474; &#9474;l&#9474;p&#9474;p&#9474; &#9474;a&#9474; &#9474;e&#9474; &#9474;g&#9474;i&#9474;e&#9474; &#9474;k&#9474; &#9474;k&#9474; &#9474;o&#9474;k&#9474;c&#9474; &#9474;c&#9474; &#9474;a&#9474; &#9474;o&#9474;i&#9474;a&#9474; &#9474;a&#9474; &#9474;u&#9474; &#9474;G&#9474;W&#9474;F&#9474; &#9474;H&#9474; &#9474;Q&#9474; &#9492;&#9472;&#9524;&#9472;&#9524;&#9472;&#9524;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9524;&#9472;&#9524;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9524;&#9472;&#9496; [/code] I actually really liked the result, but I abandoned the project because GTKWebkit/PyWebkit was totally unstable at the time. I kinda wish I saved the code so I could start working on it again :\
Maybe I'll give that browser with hardware accelerated rendering project a try again.
[QUOTE=ROBO_DONUT;25002846]I was playing around with PyWebkit a few years ago (I don't know exactly when, but it was really new at the time). I made a paned browser. Basically, no tabs. The page titlebars (not the window decoration) are stacked from left to right and double as progress bars. You switch to a page by clicking its titlebar, and ctrl-clicking another bar would expand that window also. The idea was to make the best use of the horizontal space these new-fangled widescreen monitors provide. [B]You can expand as many panes as you want and the space would be divided horizontally among them.[/B] ... I actually really liked the result, but I abandoned the project because GTKWebkit/PyWebkit was totally unstable at the time. I kinda wish I saved the code so I could start working on it again :\[/QUOTE] That sounds pretty cool, though surely the more tabs you have open, the less room you have to browse in? Edit: My bad. Re-read the post. Rate me bad reading or whatever.
WPF is strange to work with.
Ick. I wanted to make a robotic prosthesis for my science fair project, but apparently we aren't allowed to 'experiment' on humans (I wasn't thinking of binding the nerves, just have a headpiece with buttons on it) so I couldn't do it, now I have to make an arm that does stuff better than humans. :saddowns:
How is pressing a few buttons experimenting on humans?
[QUOTE=Robber;25004371]How is pressing a few buttons experimenting on humans?[/QUOTE] It isn't. I mean, this is high school, chances are I wouldn't be allowed to bind the neural synapses of a person, but a remote control fitted to react to head movements should be fine. But it apparently isn't.
[QUOTE=neos300;25005140]It isn't. I mean, this is high school, chances are I wouldn't be allowed to bind the neural synapses of a person, but a remote control fitted to react to head movements should be fine. But it apparently isn't.[/QUOTE] Make a remote control fitted to react to hand movements. :v: Seriously, I doubt they'd stop you doing that, why not head fitted?
How about a robotic arm that can do a magic trick I've never seen one (though undoubtedly quick youtubing would yield some results)
Or go completely out of the box: IR filters over a few strategically placed webcams + Stick IR LEDs at critical parts of body + Some programming = Motion capture. :v:
[img]http://www.fortfn.co.uk/images/ue2/ue2_5.png[/img] I'm so happy. I finally got my non-blocking clientside TCP/IP socket to work in my C++ game engine using winsock2 (linux users can get lost, just making it work in windows was hard enough). This one evaded me for 4 days, during which I scoured every single website with the word "socket" in and tried to implement every socket IO model known to mankind. I also decided that threading in C++ is too complicated for me to deal with. I finally settled with a solution that uses WSAEventSelect. I still gotta figure out how to receive data from the socket and somehow store that data in a convenient packet structure or something, then bind it all to Lua so I can read the data. The only Lua bindings I have so far are the basic stuff: [lua]local sck local function cmdSocketTest( cmd, args ) local key = args[1] if (key == "") then return end if (key == "create") then sck = Handle( net.CreateConnection( tonumber( args[2] ), "127.0.0.1" ), "connection" ) end if (key == "open") then sck:Open() end if (key == "close") then sck:Close() end if (key == "delete") then sck:Delete() end print( "Test socket [" .. key .. "]" ) end command.Add( "sck", cmdSocketTest )[/lua]
[QUOTE=Tezzanator92;25005944]Or go completely out of the box: IR filters over a few strategically placed webcams + Stick IR LEDs at critical parts of body + Some programming = Motion capture. :v:[/QUOTE] I can't really do that, it's a science fair, I have to test something, I was going to test to see if the robotic arm could draw/stack better than a human.
[QUOTE=pikzen;25003930]WPF is strange to work with.[/QUOTE] It's epic once you get it.
[QUOTE=Ortzinator;25006358]It's epic once you get it.[/QUOTE] Do you have a good guide on starting to use WPF?
[QUOTE=arienh4;25006601]Do you have a good guide on starting to use WPF?[/QUOTE] [url]http://stackoverflow.com/q/1405739/13395[/url] If you're looking for a book, WPF Unleashed is as good as it gets. Just make sure you look at the MVVM pattern as well.
If I'd need a book to learn WPF properly I think I'd just to stick to winforms..
Whats with these shit threads popping up in our dear programming forum?
[QUOTE=Chris220;25002608]I predict many entries using the WebBrowser control in .NET[/QUOTE] Laaammmee. :P
I am working on "theories" of Dynamic 2D shadows, rather I'm trying to come up with an efficient method of rendering dynamic shadows in 2D without any assistance from outside knowledge bases. I believe I've come up with a pretty efficient method of rendering sexy shadows. Assuming the light is omni-directional, in our case has a range of 360 degrees. The light will be represented by a square ( I don't see much point in a circle with lighting, it seems like it'd just cost more calculation wise ) with clever coloring to give the appearance of a circular fade ( if the light is being blocked more points will be added to squeeze the light into the tight area ). Anyways, each light will be passed a location, intensity, and color. The engine looks for any items in the rectangle of the light and grabs them, if they are set to cast then they are passed to a vector to later have their shadows calculated and drawn into the scene, if they aren't set to cast they are tossed and the item checker makes sure it has every castable item in the region. The light will have it's intensity stored to the float origInt, which is the original intensity, or the intensity of the light at the very center of the object. The light now grabs the points on the objects pre-calculated convex shape and calculates the distance delta of the point to the light as well as the slope between the point and the light. The length of the shadow is then calculated with: length = (origInt/distanceDelta)*10 and a point is placed in the shadow map the length away at the angle the point is from the light. This is done for every point in the convex shape, even those outside the range of the light, so long as a single point is located within the lights range. The length formula works well for this as any shape outside the range of the light will have a much smaller shadow. Shadows are rendered under all objects, above all terrain and level geometry. Lights are rendered above all. Anyways, that's the method I have down so far, any criticism or improvements would be adored, though I am a bit proud for coming up with this all on my own, as simple as it may be in retrospect.
Working on HackThisSite programming challenge #3. I can't get my head around it.
Progress on Star VOS! [img_thumb]http://filesmelt.com/dl/Starasofnowlol.png[/img_thumb] Added a clock, working on a system tray and pondering custom scripting for applications.
[QUOTE=shill le 2nd;25013236]Working on HackThisSite programming challenge #3. I can't get my head around it.[/QUOTE] I'm probably missing some huge thing, but how the hell do you solve basic mission 2?
[QUOTE=Overv;25016378]I'm probably missing some huge thing, but how the hell do you solve basic mission 2?[/QUOTE] I just went there. Can't remember how I solved it the first time but now I just pressed "Submit".
[QUOTE=Overv;25016378]I'm probably missing some huge thing, but how the hell do you solve basic mission 2?[/QUOTE] you press submit :derp: [editline]10:38PM[/editline] ninja'd
Sorry, you need to Log In to post a reply to this thread.