[QUOTE=fewes;49733879]Wahey got shadows working:
[img]http://puu.sh/n6Bw8.jpg[/img][/QUOTE]
So this looked REALLY fine on my s5 screen when I saw it on mobile
but seeing it now on my actual monitor, [I]goddamn[/I] this looks fine and is such a neat aesthetic. Don't think I've ever seen 2.5d done this well, if I played this I'd be liable to stop and just look at the environment rather than play the bloody game :v:
[QUOTE=proboardslol;49734975]What do you dislike about ubuntu? I've never had a problem with it and apt itself is enough reason to use ubuntu[/QUOTE]
Have you used any of the other package managers? I definitely like apt the least from what I've used.
Do you ever mess with a piece of code until it does what you want, and have no clue how it works?
[QUOTE=mojangsta;49736221]Do you ever mess with a piece of code until it does what you want, and have no clue how it works?[/QUOTE]
Comment your code more, learn how stuff works behind the scenes a bit. This kind of bugfixing can cause you lots of problems down the line.
Hate to post here w/o anything to show, but who was working on that mirror awhile back that showed you the weather, time, temperature, and other small tidbits?
[QUOTE=mojangsta;49736221]Do you ever mess with a piece of code until it does what you want, and have no clue how it works?[/QUOTE]
That's how I learned to code in C, by messing with code I had no idea what was doing until somehow it decided to accept my command.
[QUOTE=JohnnyOnFlame;49736461]That's how I learned to code in C, by messing with code I had no idea what was doing until somehow it decided to accept my command.[/QUOTE]
so segmentation faults until it worked? thats my experience trying to get some of the n-body code to work lol
[QUOTE=mojangsta;49736221]Do you ever mess with a piece of code until it does what you want, and have no clue how it works?[/QUOTE]
Sometimes I'll be messing around with graphics stuff and trigonometry, and I'll have a gigantic 200 character single line trig function which makes some weird waves or a circle or something and I think "math is cool"
[QUOTE=proboardslol;49736696]Sometimes I'll be messing around with graphics stuff and trigonometry, and I'll have a gigantic 200 character single line trig function which makes some weird waves or a circle or something and I think "math is cool"[/QUOTE]
I love writing these blocks of mistifying integer math code segments that nobody in their right mind would try to read. I feel so chaotic evil. [url=https://www.beyond3d.com/content/articles/8/]This is my biggest influence.[/url]
Then something wrong happens and I need to debug it. Fuck.
[QUOTE=paindoc;49736512]so segmentation faults until it worked? thats my experience trying to get some of the n-body code to work lol[/QUOTE]
Sometimes I go back to old code and I have no idea how the fuck that works, because it clearly shouldn't.
Fun times man, fun times.
[QUOTE=proboardslol;49736696]Sometimes I'll be messing around with graphics stuff and trigonometry, and I'll have a gigantic 200 character single line trig function which makes some weird waves or a circle or something and I think "math is cool"[/QUOTE]
I do this but with (lately) integrators I find on arxiv
"oh hey look random cool integrator, let me program that" *hour later* "what the fuck am I doing what is this code doing why is everything segmentation faults"
[QUOTE=proboardslol;49734975]What do you dislike about ubuntu? I've never had a problem with it and apt itself is enough reason to use ubuntu[/QUOTE]
old packages compared to stable debian(which is jessie now), unitlol, hilarity with some stuff( like why did they replace ffmpeg with their own fork, avconv? agenda pushing?), makes it not worth it IMO. I'd just skip the middleman and go full debian or mint
I made noodle eating simulator 2016. [url=https://gist.github.com/JohnnyonFlame/8a00b1bff5751fcb2347]Feel free to evaluate my bad code. License is "don't give a shit public license".[/url]
[img]http://i.imgur.com/muDUbNA.gif[/img]
[editline]14th February 2016[/editline]
(I removed transforms/rotates and other crap from my main raster loop- effectively lowering processing by a bunch)
[editline]14th February 2016[/editline]
Vroom vroom
[img]http://i.imgur.com/qBMyNp7.gif[/img]
[QUOTE=JohnnyOnFlame;49737990]I made noodle eating simulator 2016. [url=https://gist.github.com/JohnnyonFlame/8a00b1bff5751fcb2347]Feel free to evaluate my bad code. License is "don't give a shit public license".[/url]
[img]http://i.imgur.com/muDUbNA.gif[/img][/QUOTE]
Is this Evaldraw? Consider me impressed!
[QUOTE=Nookyava;49736446]Hate to post here w/o anything to show, but who was working on that mirror awhile back that showed you the weather, time, temperature, and other small tidbits?[/QUOTE]
If you mean this post:
[QUOTE=johnnyaka;49529649]Mirror finally arrived :dance:
Also finished weather-forecast and news-support. I only added a german one, but adding more is very simple. (X-Ray is such an awsome Node.JS Web-Scrapper!)
Some screenies:
[t]http://i.imgur.com/5dGWC4e.jpg[/t][t]http://i.imgur.com/WVVoFf7.jpg[/t][t]http://i.imgur.com/OcL0YtH.jpg[/t]
Next up are alarms and todo-list, but I wonder if the voice-recognition is sufficient...[/QUOTE]
Well, hello :v:
I'm about to write how to build something like it etc. on [URL="http://blog.johnnycrazy.de/"]blog.johnnycrazy.de[/URL], but I still got no wooden-frame or anything for it (I'm more like the software guy). But I plan to release a "What-To-Buy"-part soon.
[QUOTE=johnnyaka;49738955]If you mean this post:
Well, hello :v:
I'm about to write how to build something like it etc. on [URL="http://blog.johnnycrazy.de/"]blog.johnnycrazy.de[/URL], but I still got no wooden-frame or anything for it (I'm more like the software guy). But I plan to release a "What-To-Buy"-part soon.[/QUOTE]
I made my own remote desktop protocol :D
[vid]http://a.catgirlsare.sexy/wypimp.webm[/vid]
[IMG]http://i.imgur.com/7S7s1vi.png[/IMG]
[QUOTE=Leystryku;49740573]I made my own remote desktop protocol :D
[vid]http://a.catgirlsare.sexy/wypimp.webm[/vid][/QUOTE]
I've always been interested in this sort of stuff, do you mind sharing what and how you used it?
[QUOTE=tW4r;49740761]I've always been interested in this sort of stuff, do you mind sharing what and how you used it?[/QUOTE]
Well I used
x264 from VLC for encoding the images
[url]http://www.videolan.org/developers/x264.html[/url]
FFMPEG for decoding them
[url]https://www.ffmpeg.org/[/url]
QT for the GUI
[url]http://www.qt.io/[/url]
and for everything else ( input blocking, sending characters etc. ) the C library & Win API.
The packets are currently being sent via TCP and serialized by my buffer class.
The Server tells the client via udp that it wants to screenshare & the settings, the client replies with a acknowledgement and connects to the TCP server.
The server then waits for the encoded frames, decodes them to rgba& feeds them into qt.
The client takes a full screenshot using BitBlt, encodes it using x264 & sends it to the server.
Whenever I click anywhere or type something, the server suppresses the input using windows hooks and sends the client a packet telling it to emulate button x/click somewhere.
Every time the client sends a image to the server it sends [identifier][width][height][nals].
Edit: before my WIP gets more complaints, tcp/udp being switched up is a renmant and will be changed
It sounds like you're using TCP and UDP the opposite way of how they're supposed to be used?
[QUOTE=Ducky3426;49740893]It sounds like you're using TCP and UDP the opposite way of how they're supposed to be used?[/QUOTE]
It's a remnant of the initial version :v:.
Changing the networking is on my todo though, but I need to get the input working properly first
[QUOTE=Hypershadsy;49738516]Is this Evaldraw? Consider me impressed![/QUOTE]
Yes it is. It's an amazing tool for prototyping.
[editline]14th February 2016[/editline]
A 'proto-c' IDE that compiles stuff automatically and requires no setup of stuff like SDL. You just can't not like it.
[url]http://programmingisterrible.com/post/139222674273/write-code-that-is-easy-to-delete-not-easy-to[/url] The COPYPASTE is becoming more popular........
[QUOTE=adnzzzzZ;49741172][url]http://programmingisterrible.com/post/139222674273/write-code-that-is-easy-to-delete-not-easy-to[/url] The COPYPASTE is becoming more popular........[/QUOTE]
now I feel you're just trying to start more drama
[QUOTE=roastchicken;49741193]now I feel you're just trying to start more drama[/QUOTE]
Discussion*
And we should always strive to discuss these topics. It's always knowledge gained if both sides actually have arguments to further their claims.
[QUOTE=MattJeanes;49613581]I wrote a basic API in Node.js which converts YouTube videos to MP3s using youtube-dl and ffmpeg and streams you the response as it's still being converted, then caches the conversion for later requests.
I designed it mainly for use inside GMod to play YouTube videos through the BASS library.
[IMG]http://i.imgur.com/o507mmQ.png[/IMG]
[IMG]http://i.imgur.com/1tdL1Ok.png[/IMG]
[IMG]http://i.imgur.com/nUzwumZ.png[/IMG]
Also has a 10 minute max video length as it's designed for music and I don't want requests bogging down the server too much!
[t]http://i.imgur.com/Tn8o0Ei.png[/t]
Integrated it with my web interface too.
Feel free to try it out: [URL]https://abyss.mattjeanes.com:8090/[/URL][get/play]?id=[youtubeid] - you'll need to call 'get' on a video to request conversion then you can call 'play' as soon it returns success.
Would anyone be interested in the source? I'm thinking of putting it on GitHub.[/QUOTE]
If anyone is interested - I put it on GitHub!
[url]https://github.com/MattJeanes/YouTubeDL[/url]
[QUOTE=adnzzzzZ;49741172][url]http://programmingisterrible.com/post/139222674273/write-code-that-is-easy-to-delete-not-easy-to[/url] The COPYPASTE is becoming more popular........[/QUOTE]
All of these issues could be avoided if people thought up a bit more modular frameworks instead of engines, like me... :smug:
In all seriousness though, I don't quite get why there's so much limiting code now that we have widespread generics, lambdas and automatic type inference in most often-used statically typed languages and class equivalents and prototype systems in dynamic ones.
If you make a habit of plopping down generics wherever possible and make a small effort to make your code reasonably independent from other parts of the program (and make it do only one thing (broadly speaking)), there's no reason to later modify or copy it because you can just call it slightly differently with the original signature.
If you want to easily use them together later but they aren't directly dependent, you can just make a thin proxy module to automate the bootstrapping.
Example: I have a module that [I]records[/I] and I have a module that [I]deduplicates[/I]. Both aren't huge but not quite straightforward compared to their interface. Since it makes a lot of sense to use them together (but not always), I made a small wrapper around the former's set-up procedure that integrates the latter into the process. There's no code duplication, it still works with whatever I throw with it and doesn't affect the old system, and the new functionality only depends on the first library's simple public interface.
To be fair though, this approach requires really good idiot-proofing of all the modules involved.
You can't hide mediocre code somewhere deep in the system if the maximum private call depth is low.
(Duplicating one module wouldn't be a big deal, but I've never come across a reason to do so so far.
My idiot-proofing style is "make it make sense", so I don't limit or tailor the code to specific use cases.)
[editline]15th February 2016[/editline]
The post you linked suggests this too, but there it's step 6 and the last straightforward advice that isn't a summary of previous points.
I really don't think making a messy system and then trying to extract a good API out of that is a sensible or efficient idea. You don't have to fully implement everything immediately, but make [I]what[/I] you write a semantic unit that can stand on its own.
[url]http://carbon.medcat.me[/url]
I spent more time and effort on this than I wanted to.
[editline]14th February 2016[/editline]
note: the dns records may still be propagating, so give it a bit
[QUOTE=Ac!dL3ak;49741857][url]http://carbon.medcat.me[/url]
I spent more time and effort on this than I wanted to.[/QUOTE]
Font on that website needs to be thicker. Half the letters look like you took a shitty eraser to them
So I've solved the same problem way too many times now and it's starting to get obvious that my memory has very finite limits. So to tackle this I thought about keeping a journal where I'd always write a summary of what I did to fix a problem.
Does anyone do this? What service do you recommend for this? It basically doesn't need any features, but an infinite text box and a VERY good search engine so I can look up solutions later.
[QUOTE=Ac!dL3ak;49741857][url]http://carbon.medcat.me[/url]
I spent more time and effort on this than I wanted to.
[editline]14th February 2016[/editline]
note: the dns records may still be propagating, so give it a bit[/QUOTE]
Text is pretty unreadable for me:
[t]http://vgy.me/MTDPLG.png[/t]
(click for full size)
Firefox on Windows 10
[QUOTE=Ac!dL3ak;49741857][url]http://carbon.medcat.me[/url]
I spent more time and effort on this than I wanted to.
[editline]14th February 2016[/editline]
note: the dns records may still be propagating, so give it a bit[/QUOTE]
You, uhhhh, might want to look into this
[img]http://i.imgur.com/idcH5ZS.png[/img]
Also why dashes in identifier names?
[code]IO::Stdout.print-line("hello, world!\n");[/code]
Sorry, you need to Log In to post a reply to this thread.