The OFFICIAL programming thread
-
-
@wingmann said in The OFFICIAL programming thread:
I was about to bash you for mathing up the fucking forum, but then I saw I do some similar shit at work with map projections, great circle calculations, etc. Some of that was pretty cool actually. One analysis I did was to figure out if our cheating ass customers were arbitraging our pricing. We have a device we sell in two flavors, one for land and one for aviation. It’s the same thing basically but we charge more for the aviation one because it’s aviation. They thought some of the customers might be putting the land ones in airplanes and pocketing the difference. We don’t get the altitude off the device when it transmits the call data to us, so I had to come up with a different way. So basically what I did was to calculate the distance and time between two points transmitted by the device and convert into freedom MPH. So the shit that was moving fast could be an airplane. The distance had to be calculated with the haversine formula because you are traveling across the globe, so that took some googling to find a code snippet already written for me, plugged it into a function and ran it through my call records. End result is our customers apparently aren’t that smart.
-
@wingmann said in The OFFICIAL programming thread:
I watched a couple of his earlier vids making the same game (I think it was the same project anyway. It was like a year or two back) - they were invaluable for learning how to do procedural terrain geometry.
-
@hog Does he have a video on medieval leg meshes? I know someone that needs some help.
-
I believe this could be true…

-

-
This tickles me. You click on the guage icon in the top toolbar and it opens this popover:

In the actual app (not the above screenie) the needle dramatically rotates from left to right like a tachometer and the data and time savings spin up like a reverse countdown timer from a bond film. It’s only a half second animation so is maybe more subtle than it sounds but it helps draw the eye to it and subconsciously impresses on the user that the values aren’t static but are growing with time.
Anyway, in the real world, the minimum data savings would be kilobytes after first using it but would quickly grow to megabytes etc. But because I’m iteratively developing and testing with small queries, the savings for me get reset regularly and often don’t amount to more than a few bytes. But the animations still kick in every time I open the popover, making my 4 bytes of bandwith saved seem hella impressive.
Edit: oh, and it’s not really called the “Hog 2000”.
-
@hog What browser is that?
-
@tazz said in The OFFICIAL programming thread:
@hog What browser is that?
Edge. Not that you can see any of the browser in that screenshot. The toolbar at the top is from the client’s ERP system (ie the browser search bar etc would be just above it if I hadn’t cropped it out).
-
Thought this was pretty cool. Ascii art-like video:
Above is a few second clip with the results but he writes the whole program (while explaining it) in only 22 minutes.
-

-
HAR HAR HAR HAR, programmer humor.
HAR HAR HAR HAR
-
Boooooooooooooo !!!
-
Yeah, lawyer jokes are funnier.
- The attorney tells the accused, “I have some good news and some bad news.” “What’s the bad news?” asks the accused. “The bad news is, your blood is all over the crime scene, and the DNA tests prove you did it.” “What’s the good news?” “Your cholesterol is 130.” 3. A lawyer defending a man accused of burglary tried this creative defense: “My client merely inserted his arm into the window and removed a few trifling articles. His arm is not himself, and I fail to see how you can punish the whole individual for an offense committed by his limb.” “Well put,” the judge replied. “Using your logic, I sentence the defendant’s arm to one year’s imprisonment. He can accompany it or not, as he chooses.” The defendant smiled. With his lawyer’s assistance, he detached his artificial limb, laid it on the bench, and walked out. 4. How many lawyers does it take to change a lightbulb? None, they’d rather keep their clients in the dark. 5. Someone mistakenly left the cages open in the Reptile House at the zoo, and there were snakes slithering all over the place. Frantically, the keeper tried everything but couldn’t get the slippery animals back into their cages. Finally, he yelled, “Quick, call a lawyer!” “A lawyer? Why?” “We need someone who speaks their language.”
-
At least we know how to use paragraphs.
-
-
Why did the picture get arrested?
It got framed.
-
What do you call a bear without an ear?
b
-
When does a joke become a dad joke?
When it becomes apparent.
-
@pakoon said in The OFFICIAL programming thread:
When does a joke become a dad joke?
When it becomes apparent.
I am so stealing that one for my quotes.txt.

