• What are you working on? October 2015
    1,070 replies, posted
Please tell me something went wrong with copy pasting code and that's not how it actually is
Been doing documentation for work the past few days. Worked yesterday and I'm working today on it. Basically I'm updating a 3-year-old software test procedure that we've been using since before I started working there. This thing was kinda just cobbled together out of random test cases and no one ever bothered to come by and clean it up. So testing our software takes like... 100 man-hours and can't be done by anyone who doesn't understand the software inside and out. I'm reorganizing things so that we can test multiple things at once or at least test them in a much more fluid way and by someone who doesn't know absolutely everything about our system. I can only hope I finish by the end of the day. This is due by tomorrow morning and then I've gotta get to work fixing all the bugs I found by testing the software in the less roundabout way. We release next Saturday. :(
by using a lookup table implementation of sin (admittedly that only works in 0.1 degrees and has 1/100 precision) I am able to do sin calculations 30x faster than the really bad avr sin implementation. I also managed to do my first math today, just took a dot product. it was relatively fast too. My ram usage is pretty low so far, and the math is mostly ints with only the magnitude function outputting floats. Still working on a fixed point implementation, but this does sorta lower my range and introduce errors. I feel like bragging about printing hello world to the console compared to the talent in this thread, but baby steps :D and i really like the challenges of embedded electronics, feels more tangible and closer to hardware. I don't feel any particular enthusiasm of actually modifying the avr stuff though, thats a bit [I]too[/I] low level i think. It is amusing how much I took RAM for granted when writing other programs though, here I celebrate saving 1kbyte since thats 12.5% of my capacity
[QUOTE=paindoc;48982177]by using a lookup table implementation of sin (admittedly that only works in 0.1 degrees and has 1/100 precision) I am able to do sin calculations 30x faster than the really bad avr sin implementation. I also managed to do my first math today, just took a dot product. it was relatively fast too. My ram usage is pretty low so far, and the math is mostly ints with only the magnitude function outputting floats. Still working on a fixed point implementation, but this does sorta lower my range and introduce errors. I feel like bragging about printing hello world to the console compared to the talent in this thread, but baby steps :D and i really like the challenges of embedded electronics, feels more tangible and closer to hardware. I don't feel any particular enthusiasm of actually modifying the avr stuff though, thats a bit [I]too[/I] low level i think. It is amusing how much I took RAM for granted when writing other programs though, here I celebrate saving 1kbyte since thats 12.5% of my capacity[/QUOTE] Doom used three lookup tables for trigonometry: one for sines, one for tangents, and one for arctangents. It also used fixed-point instead of floating-point for numbers. [url]https://github.com/id-Software/DOOM/blob/master/linuxdoom-1.10/tables.c[/url]
[QUOTE=elevate;48982229]Doom used three lookup tables for trigonometry: one for sines, one for tangents, and one for arctangents. It also used fixed-point instead of floating-point for numbers.[/QUOTE] That's really neat! Its funny, a lot of the resources I've been finding have been hilariously outdated. I've thought of buying something more powerful like an msp430 or an s2000 from TI, but so far i'm having fun trying to optimize to ridiculous lengths and I think more power would be a bit more boring
[QUOTE=paindoc;48982259]That's really neat! Its funny, a lot of the resources I've been finding have been hilariously outdated. I've thought of buying something more powerful like an msp430 or an s2000 from TI, but so far i'm having fun trying to optimize to ridiculous lengths and I think more power would be a bit more boring[/QUOTE] The challenge of embedded programming is very educational. When a beginner programs on a modern computer, speed almost never becomes an issue, and yet some beginner programmers still worry about speed. Embedded programming shows them when speed actually matters, and just how powerful modern processors really are. I certainly don't worry about speed in most of my programs anymore.
Oooh, content, from me of all people. I have a Pebble smartwatch, and ability for 3rd party apps to access the microphone (well, dictation anyway) was added a little while back, so I figured the best course of action was to bring it over as an event for Tasker. Ignore my girly squeal at the end... [video=youtube;o8hFS2M6x_U]https://www.youtube.com/watch?v=o8hFS2M6x_U[/video] Good fun, and went well for my first real attempt at Android development
Yaaaay!
Fiddling with networking/replication in unreal, and what a ride that was. The result is a small game where you cast spells by ordering a set of orbs the correct way to do different spells. There are only two spells right now, so it's kind of boring. But the multiplayer works and that's all that matters! [video=youtube;vDM1t73Dg2Y]https://www.youtube.com/watch?v=vDM1t73Dg2Y[/video] Also I'm bad at thinking of original game concepts :freakout:
[img]http://i.imgur.com/A0uMgRi.png[/img] itt: how to spend 80% of the time doing your paper trying to get that ONE table just perfect. [editline]26th October 2015[/editline] I fucking hate LaTeX but I need to salvage something this semester man. :suicide: [editline]26th October 2015[/editline] It's a WIP so I know its shitty, don't judge me yet.
LaTeX papers look so damn pretty they almost make me want to write academic papers..
[QUOTE=srobins;48984495]LaTeX papers look so damn pretty they almost make me want to write academic papers..[/QUOTE] Don't do it. You will be too busy making the paper look fancy to write the paper. My exam notes that only I was going to ever look at took twice as long as they needed because I keep going back and tweaking tables. It's a curse.
Instead of studying for my multivariable calc exam on polar coords and vector math i just expanded my vector math library more I added the scalar projection, since thats pretty useful, and I'm working on an implementation of the vector projection. Which is even more useful since it spits out a quantity that I could multiply by a force or time-factor to use for guidance, but its really weird trying to calculate it.
[QUOTE=paindoc;48984610]Instead of studying for my multivariable calc exam on polar coords and vector math i just expanded my vector math library more I added the scalar projection, since thats pretty useful, and I'm working on an implementation of the vector projection. Which is even more useful since it spits out a quantity that I could multiply by a force or time-factor to use for guidance, but its really weird trying to calculate it.[/QUOTE] Highfive, Instead of doing my paper I spent time doing pretty tables and shitposts.
[QUOTE=JohnnyOnFlame;48984649]Highfive, Instead of doing my paper I spent time doing pretty tables and shitposts.[/QUOTE] afaik its par for the course for engineering and tech types "hey did you study for our diff eq exam?" "no but I did rebuild my 3d printer" or in the case of my cse roommate "hey did you study for machine learning or whatever?" "hunh? hey look i made a sudoku solver but accidentally ddos'd a solutions database site oops" [editline]edit[/editline] that actually did happen btw, he managed to get us IP banned from like 4 of these huge sites dedicated purely to being databases of sudoku puzzles
[QUOTE=JohnnyOnFlame;48984649]Highfive, Instead of doing my paper I spent time doing pretty tables and shitposts.[/QUOTE] Instead of making a presentation I spent 3 days making a Haskell library for making presentations.
This is the Final-Final-Final-V2-(ForRealThisTime)-FINALFIX.pkg build for Among the Sleep on PS4 [vid]https://imgrush.com/8ifCzOWbYvCF.mp4[/vid] [I](Can't show anything else though, but this is what I've been working on since january, release date is in december)[/I]
[QUOTE=AtomiCal;48985288]This is the Final-Final-Final-V2-(ForRealThisTime)-FINALFIX.pkg build for Among the Sleep on PS4 [vid]https://imgrush.com/8ifCzOWbYvCF.mp4[/vid] [I](Can't show anything else though, but this is what I've been working on since january, release date is in december)[/I][/QUOTE] Congrats I guess?
[QUOTE=pinecleandog;48985457]Congrats I guess?[/QUOTE] Thanks. I know it's just "work stuff" and nothing new really. But I'm really happy that we're so close to release and I just want to get it out there. So, this is what I am working on. I really want to get back into prototyping cool shit like you guys are doing. It has been a while. Haven't given the vive a real go yet.
[QUOTE=Rocket;48985683]seems like you're not really writing a sudoku solver if you're just looking up the solutions[/QUOTE] Maybe to verify?
I just spent the last 3 days looking for a bug in my OpenGL visualization. It was caused by me thinking that (unit vector+offset vector)*vector length == unit vector * vector length + offset vector... Should I be happy that I finally fixed it after going through the whopping 15 lines of code dozens of times or sad, because I'm pretty sure I wasn't this stupid a year or two ago? Also, I'm going to make for an excellent engineer :hammered:
[QUOTE=`impulse;48985890]Maybe to verify?[/QUOTE] why would you need to go to a sudoku solver website to verify your answers like sudoku has a very specific ruleset lol
[QUOTE=Map in a box;48986195]why would you need to go to a sudoku solver website to verify your answers like sudoku has a very specific ruleset lol[/QUOTE] If you're making an algorithm for solving stuff, I'd assume you'd want to check to see if it's working correctly, no? I don't know about checking it against that many puzzles though, since you could assume it works fine after the first 10 or something.
[QUOTE=`impulse;48986281]If you're making an algorithm for solving stuff, I'd assume you'd want to check to see if it's working correctly, no? I don't know about checking it against that many puzzles though, since you could assume it works fine after the first 10 or something.[/QUOTE] if you don't know how sudoku works then you shouldn't be making a solver. sudoku puzzles can be solved in more than one way so using a solver to check your work is absolutely insane
I ported the CRT shader Ziks made to UE, there's a bit of ghosting but I kinda like it. [vid]http://files.facepunch.com/Layla/2015/October/26/2015-10-26_17-12-49.mp4[/vid] I just noticed I can change how bright the pixels are. Sexy as fuck [vid]http://files.facepunch.com/Layla/2015/October/26/2015-10-26_17-33-07.mp4[/vid]
Weapon/apparel sync :> [t]http://up.nlan.org/KbcVu.jpg[/t] Literal item code from Fallout Wikia or the string representation can work with addItem. [code] gamemode.on('spawn', function (packet, player, first) { if (first) { player.sync = true; // Enable entity sync player.pos.freeze(); // Freeze them into position. player.openUI( Globals.UI_NAME ); } player.addItem('WeapBBGun', { equipped: true }); player.addItem(0x001258c2, { equipped: true }); // Formal wear player.addItem(0x000340fd, { equipped: true }); // Eyeglasses player.addItem(0x0010ea7f, { equipped: true }); // Dapper gambler hat }); [/code]
that godlike feeling after writing an entire algorithm in C and it runs perfectly on the first try
[QUOTE=layla;48986586]I ported the CRT shader Ziks made to UE, there's a bit of ghosting but I kinda like it.[/QUOTE] Looks sweet. I'm interested to hear what you think of working in Unreal, versus working in Unity? I heard the compile times in UE are quite long, that kinda drove me off using it a while ago.
[QUOTE=Silentfood;48986791]Weapon/apparel sync :> [t]http://up.nlan.org/KbcVu.jpg[/t] Literal item code from Fallout Wikia or the string representation can work with addItem. [code] gamemode.on('spawn', function (packet, player, first) { if (first) { player.sync = true; // Enable entity sync player.pos.freeze(); // Freeze them into position. player.openUI( Globals.UI_NAME ); } player.addItem('WeapBBGun', { equipped: true }); player.addItem(0x001258c2, { equipped: true }); // Formal wear player.addItem(0x000340fd, { equipped: true }); // Eyeglasses player.addItem(0x0010ea7f, { equipped: true }); // Dapper gambler hat }); [/code][/QUOTE] Whats your end goal with this? Are you trying to make the entite game multiplayer, where can I learn more?
I think it was for an assignment where he had to write a parser or interpreter to read the solution files from a website, and the TA gave a couple example ones. He just went overboard and wanted to test how fast he could download and parse the files. Turns out it was pretty fast. He did get a really good grade on that one. Initially the program was really simple, but eventually he ended up expanding it to include completely customizable grid sizes, hints, controls, score tracking, shading based on probability of a cell having a given number, and stuff like that. It actually came in really useful for him with his internship at zillow this summer, he did a ton of database backend work to better organize data and metrics. Impressed his boss apparently and he claims that the Sudoku project taught him a lot :v: [editline]edit[/editline] honestly my roommates were absolutely mental at programming. its what happens when you're at one of the top 10 cs schools and your admittance to your major can be decided by literally one assignment since the field is so flooded and competitive. I'm half surprised they didn't try to start killing each other or destroying each others' work, its stupendously competitive. And here I am not even that fussed about my departmental admittance. I swear most people forget we exist the CSE hype is so real
Sorry, you need to Log In to post a reply to this thread.