Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Search - "algorythm"
-
Website design philosophies:
Apple: "...and a really big picture there, and a really big picture there, and a really big picture there, and..."
Microsoft: "border-radius:0 !important;"
Google: "EVERYTHING MOVES!!! And most websites get material design. Most."
Amazon: "We're slowly moving away from 2009"
Wix: "How can we further increase load times?"
Literally any download site: "Click here! No, click here! Nononono!! Click here!!..."
Facebook: "We can't change anything because our main age demographic is around 55"
University websites: "That information isn't hard enough to find yet. Decrease the search accuracy and increase broken links."34 -
Me: *puts small piece of tape over webcam*
NSA: Okay guys, shut it all down. No way we can record from the microphone, log keys, access the file system, USB devices, network data or watch the screen. He did the tape.23 -
*Working on personal project*
Don't get excited about another project
Don't get excited about another project
Don't get excited about another project
Don't get excited about another project
...DAMNIT16 -
*code doesn't work*
-Run three times, just to be sure
-Its NOT the code, must be the project. Full rebuild.
-Run a few more times after rebuild didn't fix it.
-Google the issue.
-Stackoverflow must be wrong. The code is JUST like their solution.
-Run a few more times, but with your lucky underpants
-Reboot. Must be an operating system thing.
-Tea break. Give the issue time and it will fix itself.
-Run a few more times. Still unfixed
-Contact customer support.
-Walmart said they can't help.
-Consider writing your own language without this OBVIOUS flaw
-Kickstarter for c++++
-Raise $50,000
-Start a family
-Contact customer support again
-Run a few more times
-Now banned from Walmart
-Oh shit, missing a semicolon24 -
Friend texted me some binary.
Decided to impress him and decode it by hand.
Spent 5 minutes decoding "I eat ass".6 -
According to the internet so far:
If you dislike Windows, you're a hater.
If you dislike Linux, you're wrong.
If you dislike iMac, well, yeah. That's okay.14 -
The cool thing about side projects is you can do whatever you want.
The shitty thing is you never complete whatever you want.7 -
Compilation completed. Output file size: 15KB
*Adds a JSON library*
Compilation completed. Output file size: 1.4MB
SON OF A BITCH9 -
CS Teacher: *provides shitty code written in (I kid you FUCKING NOT) Microsoft Word, sans font*
Me: *Submits beautiful, fully working and commented code*
Half a point off because I didnt write how many points the assignment was worth at the very top of the code.
ARE YOU FUCKING KIDDING ME YOU CUNT GOBBLER?! YOU JUST **HAD** TO TAKE THAT HALF A POINT OFF, DIDNT YOU? MAYBE YOU'RE INTIMIDATED BY THE FACT I DONT USE MICROSOFT WORD TO WRITE C++?? God, I hope you take a nail gun to the eye.16 -
My parents have never had a router faster than 10Mb/s. When our most recent one finally bit the dust, I urged them to buy a decent one, because everyone uses the internet now. LOOK AT THE SPEED WE'VE BEEN MISSING.
9 -
Me: I know so many languages, I don't need to learn c++ to follow along with this 3D OpenGl tutorial!
Narrator: Oh, but he did need to know c++ to follow along with the 3D OpenGl tutorial.4 -
"devRant has changed" "I'm so fed up with this site" "Its a bunch of hate and memes, it was so much better before"
A rebuttal.
devRant is approximately the same as it was when it was just a newborn. Remember the days of semicolon jokes being unironically funny?
Look at the top rants of all time, for fucks sake. #2 ever is:
"A different error message! Finally some progress!"
Posted three years ago. That's the second most upvoted rant in history (Remember, this was a "rant" because the joke/meme category didn't exist back then), it made it's way into the app store screenshots, and was a welcome post.
Now imagine that posted today. It would probably go over okay, in fairness, but it's certainly at risk of any number of pretentious pricks complaining about how this is "devRANT not 4chan" or how they had seen the joke before and it's a shitty repost.
And sure, the repost bullshit is fair. I'm not saying that all the reposts are good content. What I'm saying is devRant has always been full of reposts - they just weren't reposts in the early days. The quality of content is the same.
There's also the common misconception that your posts need to be directly related to tech to post on devRant. This is a myth propagated by 0 IQ heathens that don't read any further than the name of the application. Your posts can be anything that isn't prohibited, like porn, spam, and, importantly, politics (commonly overlooked rule)
"All the memes are just too much". Oh you poor fucking baby, let me pour you a healthy serving of pity juice. First of all, you can turn off the memes category, and while they will still find their way to your feed, the concentration will be much lower and it will once again be bearable for your pitiful, weak little soul. Do you seriously get annoyed that severely by shitty posts that you need to leave the app altogether, or do you just want the attention of being a "cool hipster that hates on xyz"?
"This place is just filled with hate! Why can't you just respect xyz technology, it isn't actually that bad!"
This is probably the most stupid fucking thing you could possibly ejaculate from your fingers into whatever device you are using to type. Welcome to devRant, we hate on shit. That's at our core. No, xyz technology ISN'T actually that bad, you're correct. But we're here to tear it apart because it probably has frustrated us in the past. I fucking hate JS because it was my first language and it confused the shit out of me. JS is a great language. But I still talk shit about it, and that's what we're here to do.
Like seriously, I know a lot of people post stuff they're proud of here, and then they're met with "Would be great if you didn't use xyz tech", and that hurts, but holy shit, this is devRant. If you're sensitive to criticism, or even just straight up being made fun of, don't post shit that you're proud of. You won't have a good time. It's just not what we do here.
Quick interlude before the conclusion, "My girlfriend dumped me after I named a class after her. She felt I treated her like an object." is also on the first page of all-time most popular posts.
In conclusion, devRant has not changed. Reposts have been a nuisance since day 0, and just because reposts look different these days doesn't mean the quality of content has decreased in any manner. The two main sources of your frustration are the volume of low-quality posts (Mind you, not the concentration of them, but the volume of them) and your own prejudices about the platform. You're looking back with rose-tinted glasses.
Here are some tips for a more enjoyable experience:
-Make sure you have the "Hide reposts" setting ENABLED in settings. Any posts marked as repost will be hidden in your feed, pulling down the concentration of low-quality posts.
-Keep to the algo sorting method. Obviously, algo is a bot, and there's still gonna be some shit content in there anyways, but if you're in recent, you are absolutely guaranteed to see low-quality posts. It's unfiltered.
-Keep in mind that what you consider a "quality" post is not what others consider a "quality" post. Just because you don't like memes doesn't mean memes are poor content. There are people here who have never seen the bobby tables comic. And they deserve the same experience we got when discovering dev humor.
-Don't be a prick. And if you cannot help yourself, leave. Ironically, you're making the site worse by complaining about how bad the site is. You can always come back if you aren't a prick anymore. And you can leave permanently if you choose as well.
-Downvote and move on. You're not doing anything but making yourself more aggravated by leaving a shitty comment about how shitty the shitty post is.
-Think critically. Obviously optional, and I know not many people like to use their brain when a phone is suspended between their hands, but if you want a better experience, remember to use your head and not to lose it.21 -
Historically, tattoo artists would operate free of charge on women's breasts. This was an attractive offer for both sides, and spawned the phrase "tit for tat", which now represents two sides of an argument offering items of equal value.
This is a fact I just made up, like "Java runs on 4 billion devices"9 -
I was googling what happens when an ambulance gets stuck in traffic, but was reminded that I am a dev...
11 -
Do devs really fight or do we just mildly assert differing opinions then ignore each other for extended periods of time?3
-
Pi Project
It's pinging Google and measuring the response time every three seconds, then graphs the result on the LED SenseHat. It's graphing wifi stability.
11 -
SO GUESS WHAT
IF YOUR SHITTY WIFI CRAPS OUT DURING A VISUAL STUDIO UPDATE, VISUAL STUDIO FUCKING COMMITS SUICIDE
MICROSOFT CAN SUCK A BIG, VEINY COCK. IM SO DONE WITH THEIR SENSITIVE, CONVOLUTED, SLOW IDE.19 -
Okay, it just happened to me.
Researching jobs, found one that requires ReactJS 7+ years of experience.
Initial release: May 29, 2013; 5 years ago6 -
There are two things about arrays that sometimes confuse me:
[0]: They start at zero
[1]: They end at one less than the length14 -
Progress on my UWP file explorer! Here's some screenshots. I really enjoy the Acrylic material, and my favorite page is the "There's nothing here" page because it came out EXACTLY as I wanted it. More images in the comments!
29 -
In a previous rant I said I was gonna flip some bits. I couldn't wait until the weekend. I flipped some fucking bits, right fuckin now.
17 -
People on Stack Overflow are SUCH FUCKING ASSHOLES
"You didn't show us where you declared this unimportant array, please review this article for how to ask questions"
My question doesn't concern the array, my question concerns how the system works, all code I provided was only for clarity. Read my fucking question you arrogant asshole. You have lots of points, fine, go tell your mother, but you assume I don't know how to ask a question which you clearly did not read.9 -
I've always wanted to experiment with encryption but never do. This weekend, I'm fucking doing it. Even if I'm just flipping a few bits around, I'm fucking gonna flip those bits like they've never been flipped before and they are gonna FUCKING LIKE IT.4
-
Websites got ads, so user got adblock, and thus, websites got adblockblock and users got adblockblockblock and websites got adblockblockblockblock and users got adblockblockblockblockblock and websites got ad blockblockblockblockblockblock and users got adblockblockblockblock blockblockblockblockblockblock and websites...20
-
The devRant community:
@dfox: Our lord and savior, a rockstar who gets his comments ++'d just for being dfox
@trogus: The designer who lives in the shadow of dfox, but is still beloved
@tisaconundrum: Has 1 ++ for every time someone has tried, and failed, to pronounce his username in their head. (It's a lot)
@letmecode: The most consistently angry rants
@calmyourtities: I see him a lot
@me: I get mentioned every time the google assistant makes the "algo-rhythm" joke
@linux, @linuxxx, and @linuxforfun are linux users.
Continue in the comments!53 -
Dabbling in 3D modeling, I noticed the top of one of these fireworks has polygons visible while the others are shaded smoothly. Good job, Clash of Clans...
11 -
I always use brackets for clarity even if there is only one statement inside them
if (boolean){
function ();
}
Cus it's so much easier to read, and if I need to add statements after the if I don't need to remember to add brackets. Plus the else may need brackets and an if with no brackets but an else with brackets looks awful.14 -
Holy fuck, the state of npm
Question: "How do I make a GET request in NodeJS"
Accepted answer: "Use the http library it has built in get functions, its quite simple"
I FUCKING KID YOU NOT, THE NEXT 10 ANSWERS: Use this npm library, it's super great ;)22 -
"I thought you were supposed to be good with computers"...
Yeah, let me just pull my fucking printer fixing degree out of my crusty asshole so you can bitch more about some other technology that I almost never use but assume I can just immediately fix just because I'm a dev
...mom2 -
Ah, just followed a 35-line tutorial to create a window with a line in it using xlib.
Time to put "Professional Linux Graphical Developer" in the olde resume -
Seeing someone prototype a 3D game with complex lighting using OpenGL in a 15 minute video (It was sped up about 4x but, still, fuck me)
Using c. Not c++.
He also did 3D graphics in BASIC from scratch to explain how they work, generally.15 -
Brought two laptops: Linux and windows
Forgot charger for windows.
Graphics not working properly in linux
Three hours of package installation, documentation diving, package removal, driver fuckery and other assorted fun
I can now play Minecraft.4 -
I had to open the desktop app to write this because I could never write a rant this long on the app.
This will be a well-informed rebuttal to the "arrays start at 1 in Lua" complaint. If you have ever said or thought that, I guarantee you will learn a lot from this rant and probably enjoy it quite a bit as well.
Just a tiny bit of background information on me: I have a very intimate understanding of Lua and its c API. I have used this language for years and love it dearly.
[START RANT]
"arrays start at 1 in Lua" is factually incorrect because Lua does not have arrays. From their documentation, section 11.1 ("Arrays"), "We implement arrays in Lua simply by indexing tables with integers."
From chapter 2 of the Lua docs, we know there are only 8 types of data in Lua: nil, boolean, number, string, userdata, function, thread, and table
The only unfamiliar thing here might be userdata. "A userdatum offers a raw memory area with no predefined operations in Lua" (section 26.1). Essentially, it's for the API to interact with Lua scripts. The point is, this isn't a fancy term for array.
The misinformation comes from the table type. Let's first explore, at a low level, what an array is. An array, in programming, is a collection of data items all in a line in memory (The OS may not actually put them in a line, but they act as if they are). In most syntaxes, you access an array element similar to:
array[index]
Let's look at c, so we have some solid reference. "array" would be the name of the array, but what it really does is keep track of the starting location in memory of the array. Memory in computers acts like a number. In a very basic sense, the first sector of your RAM is memory location (referred to as an address) 0. "array" would be, for example, address 543745. This is where your data starts. Arrays can only be made up of one type, this is so that each element in that array is EXACTLY the same size. So, this is how indexing an array works. If you know where your array starts, and you know how large each element is, you can find the 6th element by starting at the start of they array and adding 6 times the size of the data in that array.
Tables are incredibly different. The elements of a table are NOT in a line in memory; they're all over the place depending on when you created them (and a lot of other things). Therefore, an array-style index is useless, because you cannot apply the above formula. In the case of a table, you need to perform a lookup: search through all of the elements in the table to find the right one. In Lua, you can do:
a = {1, 5, 9};
a["hello_world"] = "whatever";
a is a table with the length of 4 (the 4th element is "hello_world" with value "whatever"), but a[4] is nil because even though there are 4 items in the table, it looks for something "named" 4, not the 4th element of the table.
This is the difference between indexing and lookups. But you may say,
"Algo! If I do this:
a = {"first", "second", "third"};
print(a[1]);
...then "first" appears in my console!"
Yes, that's correct, in terms of computer science. Lua, because it is a nice language, makes keys in tables optional by automatically giving them an integer value key. This starts at 1. Why? Lets look at that formula for arrays again:
Given array "arr", size of data type "sz", and index "i", find the desired element ("el"):
el = arr + (sz * i)
This NEEDS to start at 0 and not 1 because otherwise, "sz" would always be added to the start address of the array and the first element would ALWAYS be skipped. But in tables, this is not the case, because tables do not have a defined data type size, and this formula is never used. This is why actual arrays are incredibly performant no matter the size, and the larger a table gets, the slower it is.
That felt good to get off my chest. Yes, Lua could start the auto-key at 0, but that might confuse people into thinking tables are arrays... well, I guess there's no avoiding that either way.13 -
I have a co-worker that always uses "I'm too old" as an excuse.
You're 33. You're just a lazy piece of shit that doesn't take care of his body.
Fuck you, do work.7 -
After a long time in .NET and JavaScript, I have returned to Java today. I was quite happy about it for a few minutes!3
-
This one hits home a bit.
So my friend from my first college hits me up, asks about what's going on and shit. It's all chill, we took a bunch of programming classes together, so it we weren't intimate friends just kinda familiar with each other. He says he's having trouble finding work, they all turn him down due to a lack of experience. I suggest we work on a project together. Anything. He thinks it's a good idea and we plan to meet up.
We meet up, long story short decided on an Android app. I failed setting up git but whatever, I'll fix it at home. He seems excited, I'm excited...
...Never heard back from him again. Won't answer texts, Skype, anything.10 -
Boils my fucking blood.
How many billions of dollars is Microsoft worth again? And they still make me update my fucking updater?
Why is there even a separate program for updating??
16 -
Take my dollar. Take. My. Dollar.
TAKE MY DOLLAR. I WANT A DR PEPPER. THIS IS A GOOD DOLLAR. ACCEPT IT. YOU ARE MY MECHANICAL BITCH. I WISH TO EXCHANGE MONEY FOR GOODS. I WILL LITERAL-
Oh, okay. You took it. That's what I thought.4 -
I didnt make my root partition big enough fuuuuuuuuck
Stupid fucking tutorial said "10GB should be enough!"
Should have listened to myself. Fuck me.18 -
Like a bad relationship
Be really excited for the first month or so then once the new car smell starts to fade, lose interest and dump it.3 -
You know your codebase is large when you expand your project tree and it's larger than a literal tree.4
-
I know it's not too impressive, but got this working using my Windows console double-buffering system and literal bitmaps for the large numbers.
I have posted about both previously if you want more details :3
11 -
HURRICANE INSPIRED PI PROJECT!
So in anticipation of hurricane Irma I built this little thing which measures barometric pressure using my raspberry pi's sense hat! It also adds the data to a graph. Very fun!
9 -
Scripting languages, markup languages, database querying languages, etc. Are all types of programming languages. A program is a set of instructions for a computer to follow.
HTML is a programming language, fight me.48 -
!rant
devCraft MineCraft server update:
Thanks to my friends YoungWolves, Mehrsun, and @AlgoRythm, the server spawn is looking nice! we're working on the Survival world
Special thanks to algo for the icon resizing!
All you need is ComputerCraft 1.75 (for 1.7.10) to join!
the Port is 25565 / default.
ip: 66.243.225.5169 -
My PlayStation 1 has never needed an update, but these days, everything comes with an updater. Like, "oh, boy, my TV needs to update again". There's something wrong.26
-
Me: *unsubscribes from Twitter emails*
Twitter: successfully unsubscribed! We're still gonna see you emails tho, lmaoo2 -
Prooooo gamer tip!!!
If your computer is overheating and you need to piss, just kill two stones with one bird and piss on the computer.
Brought to you by PBS kids, which is made possible by viewers like you.10 -
HELL. YES.
I wrote a complex grid rendering system in c++!
It accepts pixel values and * values (Grid values)
Works very similar to WPF grid, which I LOVE.
The few lines of code needed (On the front end, at least) to do this are in the comments. VERY FUCKING HAPPY RIGHT NOW.
13 -
Might sound weird but I pretend somebody is watching me through my own eyes. Somebody I want to impress, or make jealous, of my productivity and skill. Elaborate, but it works.3
-
Today, social media databases around the world will be forced to accept billions of shitty firework photos.1
-
So my hard drive as making a weird, cracky, crunchy, popping noise and I was super scared. DONT QUIT ON ME NOW.
And then I was super relieved to find out it was in fact my stomach.
Another few seconds go by and I realize I was just HAPPY to find out my laptop was fine, and it was ME that was unhealthy.2 -
Okay, sublime text is amazing. Super fast and easy on the eyes. If I had $70 I would purchase a license.19
-
Confirmed, Walmart runs on Linux, and their promotional photo stream is in a folder called
/walmart/teaser
9 -
Recently, Comcast limited my bandwidth to 1TB. I'd be upset, but my service is so slow I don't think I could use it all in just a month!6
-
Genuinely upset that I don't have wifi
Fuck Irma
Fuck this.
I can deal without a/c, not wifi.
Kill me.4 -
Each sticker on a race car increases speed by a small amount, which is why they all have so many. Same thing with laptops.3
-
I'm making multiplayer minesweeper using NodeJS and so far so good but I can NEVER FUCKING FOCUS ENOUGH. Like damn, I should be way further along with this shit.9
-
I bet this guy feels real fuckin helpful, editing not only the question, but literally every answer in the entire thread. His contributions include:
Capitalizing names.
Adding italics to links (Really, he took the time and clicked "edit" just to do that to an answer)
Adding the word "The"
The fact that people spend their time religiously doing this makes my head spin.
Also aren't these edits bad? the title should be in google speak (i.e. short and broken English) so that they can be found from a search engine. I'm sure SO has some rules about the title or something, but I feel like it would be better in google speak.
13 -
dfoxy, you may have noticed someone being stupid with your beautiful API for about a half hour.
I'm sorry, but I won't be making any more bad requests!
...tonight
4 -
Power-out inspired pi project!
Just a simple flashlight. Brightness and color can be controlled by the joystick. It runs off a phone battery pack
5 -
Computer science students and data scientists rejoice, "All algorithms" implemented in many common languages:
https://github.com/TheAlgorithms16 -
The worst part about using the computers at my school is that my $200 mechanical rgb programmable keyboard with macro keys is at home.5
-
I know it's not done yet but OOOOOH boy I'm proud already.
Writing a JSON parser in Lua and MMMM it can parse arrays! It converts to valid Lua types, respects the different quotation marks, works with nested objects, and even is fault-tolerant to a degree (ignoring most invalid syntax)
Here's the JSON array I wrote to test, the call to my function, and another call to another function I wrote to pretty print the result. You can see the types are correctly parsed, and the indentation shows the nested structure! (You can see the auto-key re-start at 1)
Very proud. Just gotta make it work for key/value objects (curly bracket bois) and I'm golden! (Easier said than done. Also it's 3am so fuck, dude)
15 -
deadmau5 exclusive on tidal streaming.
Fuck, okay.
*Sign up*
>> enters email, password
>> redirect to different signup page
>> enters email, password
>> redirect to original signup page
>> ????
>> enters email, password
>> redirect to second signup page again
>> ????????????
>> try to login
>> enters email, password
>> nope
>> listen to preview of album
>> please enable flash
>> okay, fuck you, deadmau5.9 -
A LOT of this article makes me fairly upset. (Second screenshot in comments). Sure, Java is difficult, especially as an introductory language, but fuck me, replace it with ANYTHING OTHER THAN JAVASCRIPT PLEASE. JavaScript is not a good language to learn from - it is cheaty and makes script kiddies, not programmers. Fuck, they went from a strong-typed, verbose language to a shit show where you can turn an integer into a function without so much as a peep from the interpreter.
And fUCK ME WHY NOT PYTHON?? It's a weak typed but dynamic language that FORCES good indentation and actually has ACCESS TO THE FILE SYSTEM instead of just the web APIs that don't let you do SHIT compared to what you SHOULD learn.
OH AND TO PUT THE ICING ON THE CAKE, the article was comparing hello worlds, and they did the whole Java thing right but used ALERT instead of CONSOLE.LOG for JavaScript??? Sure, you can communicate with the user that way too but if you're comparing the languages, write text to the console in both languages, don't write text to the console in Java and use the alert api in JavaScript.
Fuck you Stanford, I expected better you shitty cockmunchers.
31 -
Sorry, but I gotta go with the inevitable. Apple.
Of course, their older slogan is ironic now. Used to be does more, costs less. Now you can't even upgrade the RAM in most devices and legally can't repair their shit without their permission. The only reason people love Apple is because of the ecosystem. Everything Apple works great with everything else Apple, plus it's very trendy to have that logo plastered everywhere. It's too convenient to leave.10 -
Researching theme shit with UWP. They had some interesting contrast suggestions in their docs.
Actual image from Microsoft's actual website.
5 -
Biggest pet peeve of languages are those that use single quotes for strings.
It's single quotes for characters, double quotes for strings. Suck my diiiick25 -
Hey hackers! It's me again 😀
If I wanna be an awesome pentester / bug hunter , what should be my main focus?
Network?
Data sciense?
Algorythm?
Low level programming?
I've already passed network + and basics of ccna and I already know pentesting using kali and I know c and python as well.
Just not sure where to go next and keep using kali packages makes me feel like a script kiddie (which is aweful 😬)
Dreaming to be able to write my own exploits and have my own 0day bugs👑
Thanks for any recommandation you would39 -
Android development: Just got a RecyclerView to use two different types of ViewHolders. What a bitch to get working, but the performance benefits will always keep me coming back...7
-
So fucking apparently, you can text a phone through email! Yeah, TIL about something called sms gateways, which most mobile providers have, which allow you to essentially email the phone number, and have a text message delivered to that number. For example, I have MetroPCS so mine would be
6666666666@mymetropcs.com
Fucking amazing!7 -
The code for some of the backend of my 100% custom media server in front of the blurred frontend of my media server. It just looks cool
6 -
Algo algo1 = new Algo();
Algo algo2 = new Algo();
algo1.setOpacity(.5);
algo2.setOpacity(.5);
// The following image is ENTIRELY unedited:
12 -
I don't know if you guys caught this but everyone's binary scores are negative. The first bit is 1.
Yay
7 -
"Detective Pikachu" actually looks fucking amazing. Pikachu is voiced by RYAN REYNOLDS and it's a movie that recognizes that a lot of original Pokemon players are adults now, and balances that well with their current target audience of children. I am very, very excited.5
-
Couldn't remember how to write to console in c#. Refused to Google it. Wasted probably a good 10 minutes being stubborn. Turns out it was Console.WriteLine not Console.WriteLn5
-
My best source of motivation is bad software. The feeling of "I can do better" gives me an immutable energy to actually do better.2
-
I got devRant working in python using only the standard libraries
But tkinter is an awful, hellish library that only supports gifs. But at least it runs native on raspberry pi
10 -
Agh, holy shit. devRant, I need some love.
I have successfully double-buffered the Windows console (cmd.exe) but all hell breaks loose when you resize the fucking window. The currently active buffer will receive the change in dimensions while the inactive buffer will not, resulting in the window quickly oscillating between the two sizes as the buffers change size.
That got me stuck for about a day. Today, I got it sort of working but it wasn't satisfying at all. I can get it to resize LARGER, but if you resize the window SMALLER, the actual buffer inside the window doesn't change size, so scrollbars appear and I have NO IDEA HOW TO FIX THAT. I somehow need to calculate, or use the API to find, the perfect dimensions (In rows and columns) for the console buffer INSIDE the window buffer for them to not have scrollbars.
And I just - -
I cannot gather the energy to do so right now.
I spent hours finding the solution to this bullshit and ONLY SOLVED HALF MY PROBLEM.
And stack overflow isn't exactly helpful. My problem is so specific that nobody even writes comments on the question.
I guess I need to calculate the amount of characters the screen can hold given the font size and the window size, but fuck, that's a lot of work to do just for something that probably won't even work anyways.
Well, off to the code editor again. Time to inevitably waste my time doing something that won't work.
Yay, programming.27 -
I love Windows Subsystem for Linux for one reason.
#include <ncurses.h>
I love making ncurses shit.
Fuck. YES.5 -
You know what just gets to me about garbage-collected languages like c# and Java? Fucking dynamic memory allocation (seemingly) on the stack. Like it's so bizzare to me.
"Hey, c#, can I have an array of 256 integers during run-time?"
"Ya sure no prob"
"What happens when the array falls out of scope"
"I gotchu fam lol"8 -
What happens when you take a childish and aggressive attitude to an intelligent discussion. Get called out!
2 -
Let's play "Count the operating systems in my household"! I'll start:
- Windows 10 Pro on 1tb drive in desktop
- Windows 10 Enterprise VM on desktop
- Ubuntu 18 VM on desktop
- Ubuntu WSL on desktop
- Ubuntu 18 on seconds drive in desktop
- Manjaro on Cheap laptop
- Manjaro on old, expensive laptop
- Windows 10 Pro on new expensive laptop
- Windows 10 Enterprise VM on new expensive laptop
Just realized I have no dual booters :o17 -
Hey guys I'd like to share a Lua-based shell I've been working on the past few years. It's entirely complete, allows for all windows and Linux commands. I've been working very hard on it so I'm super excited to share it with you all. Here's the source.
--[[
The Lua Shell (lush) by AlgoRythm
]]--
while true do io.write(">> "); os.execute(io.read()) end4 -
Whenever I feel like too much of an idiot to be a developer, I go to settings and tap my device info 10 times.2
-
Good morning everyone, may your notifications be full of ++s and mentions rather than new comments.3
-
I'm not much a fan of JavaScript. In fact, I am not very fond of any dynamic language, but JavaScript is one of my least favorites.
But this isn't about that. I use NodeJS for all of my web serving. Why would I do that? Am I a masochist? Yes.
But this isn't about that. I use NodeJS because having the same language on client and server side is something that web has never really seen before, not in this scale. Something I really really love with NodeJS is socket connections. There's no JSON parsing, no annoying conversion of data types. You can get network data and use it AS IS. If you transmit over socket using JSON, as soon as that data arrives on the server, it is available to use. It gets me so hard.
JavaScript is built to be single-threaded, and this is rooted deep into the language. NodeJS knows this isn't gonna work. And while there's still no way to multi-thread, they still try their best and allow certain operations (Usually IO) to run async as if you were using ajax.
With modern versions of the language, the server and client side can share scripts! With the inclusion of the import keyword, for the first time I have ever seen, client and server can use the same fucking code. That is mindblowing.
Syntax is still fluffy and data types are still mushy but the ability to use the same language on both sides is respectable. Can't wait for WebASM to go mainstream and open this opportunity up to more languages!10 -
Ah, the old locked up non-gui thread. Bastard gets me every time. My monkey brain says "Button still work, so no infinite loop". Oh, but there DO be infinite loop.
-
The project I have been working on on/ off since Christmas is finally interesting enough to show off!
In short, it's a faux GUI system in the console, with a lot of advanced features that you would see in web browsers and other professional GUI systems.
Most of the core items are now implemented, and it's only time to make it functional in a usability sense.
Here's the tech demo; readme.md is a HUGE essay about everything that's going on. Plus some pretty damn good instructions on how to get it running:
https://github.com/AlgoRythm-Dylan/...
Happy to hear your thoughts!16 -
Last night tried to use VLC to rip DVDs for my home media server.
All three failed in some manner! What a waste of time! Trying HandBrake today.23 -
Wish Microsoft would open-source their secret UWP file explorer because even though it's terrible, they're doing things I can't figure out.7
-
I have a confession. I have always used IDLE because I love it. It's slow, lacks a number of features, and is just all-around outdated.
So today I went and I got rid of it. I tried PyCharm in the past but it was too complicated for Python. I like JetBrain's IDE for Java, but not for Python. Instead, this time, I opted for Spyder. I tend to get quite excited about new IDEs, and I do like this one a fair bit. The editor offers a dark theme but the UI surrounding it does not. This is offensive, but acceptable, for the time being. Here's a screenshot. Any thoughts?
15 -
This week in positive news: "Video Editor" comes to Windows 10, so I can finally uninstall my hacked-together version of Movie Maker8
-
My friend has a smart watch, and he is always watching the time. Texting. I meant to say texting. He's always texting at work. I have a traditional watch, so I like to make fun of him by very loudly saying "Hey Siri" into my watch a few times and acting confused when it doesn't work.2
-
An interesting python function I just made. Probably not the first to do so.
def printf(fmt, *args):
print(fmt, args, end="")9 -
I love how odd very intelligent things can (seem to) be. Cryptography is incredibly complex, and the reason the computer was created in the first place. But that doesn't stop them from being all
"Heyyyy, y'all got any of them P R I M E N U M B E R S? We like em BIG, we'll paaaaay"3 -
Here's some screenshots of my c++ learning project, CursesWidgets! (Or ConsoleWidgets, it's officially just named "CW")
Just got layout managers done - pretty nice step forwards since now widgets don't need to render their children themselves; they can (and by default DO) delegate the work to a layout manager.
Here are the StackingLayoutManagers, which are the equivalent of WPF StackPanels or just the normal way HTML works. They have different orientations, however, and will soon have different alignments (Start, Middle, and End, which is the same thing as the typical Top, Middle, Bottom, Left, Center, Right, except SME can be used for either horizontal or vertical alignments)
Anyways, enough of my rambling. Here are some screenshots. If you made it this far you earned the knowledge that I plan to make a beastly terminal devRant client using this technology.
3 -
Y'all know those classes where you get 100s on the assignments and understand the material, and participate in class discussions, but get low 50s on the tests?
yea. Fuck those classes.4 -
> Moment you thought you did a good job, but ended up failing
> Times the bug wasn't actually your fault
> Times you took the blame for a junior or other dev
> Times someone took the blame for you
> Times you got away with something you shouldn't have.
> Most valuable data loss
> The bug you never fixed
> Most satisfying bug to fix
> Times where a "simple" task turned out to be not so simple
> Debug code left in production?
> Moments you wish you could undo
> Most satisfying optimization
> Have you ever been ranted about? -
Who has too much time on their hands and wants a throwaway project? :)
Say there are some poll results. Like this one. Each item has xx.yy% of all the votes. The task would be to come up with an algorythm that would read in those results and make a few predictments on how many participants were in this poll :)
I don't need it, I just came up with it and thought it might be a fun project for someone. I know I'd go for it if I had free time on my hands :)
P.S. if you're up for it, sharing a solution code is more than welcome!
20 -
Wrote some docs in a simple format. Really KISS here with the docs and the tech they describe. How's the readability?
https://algorythm-dylan.github.io/q...3 -
I'm going to re-try my ConsoleWidgets/ CursesWidgets project from complete scratch. Here are some things I learned and will do better this time with:
- Keep people updated on progress to maintain motivation (Hence this post)
- Centralize drawing, eliminate curses entirely besides in this static class.
- Don't worry about complicated rendering until basic rendering is done. I really got stuck up on text rendering last time.
- Sort out a color system from the very beginning, and make it as simple as possible. Working with curses, it is a good idea to have a color manager.
- Research how to logically render two items - both sized to 50% of the screen - when there are an odd amount of pixels available.
- Only make one type of widget at the beginning. Don't worry about Buttons and Sliders and such until the base Widget class is completed.
- Truly decide if I want to call them Widgets or Controls
- Don't worry about supporting multiple curses windows. Got hung up on that too. stdscr will do for everything I need.
- Cache inflation values so that they need not be re-calculated each render. Re-calculate on resize.
- This is more of a c++ thing, but drop pointers in favor of references. It's 2018. I have already started to do this in other projects but THIS IS THE ONE. -
I hate being belgian. Half of the time the algorythm think you're dutch.
Bitch I can't speak dutch.
@retoor what does that mean????
8 -
just so you guys know, I'll be busy with school, and won't have time to be on the devCraft server much.
I trust the judgement of *Mehrsun, dsteiner, *YoungWolves, AlgoRythm, and privateGer. These people get the say when i'm not around.
Thank you all who came those first few days - really l8fted my spirits. i'm happy you all have another way to "socialize" over the net with eachother.2 -
Computer science in high school...
Creating algorythm block diagrams using a beta version of app that is 15 years old
and is FULL of bugs.
You do not even have conjunction or disjunction
operators, so you have to create more blocks in order to check more complex conditions, for example.
So I asked the teacher if I can solve those tasks
in C++ and the answer was NO ...
:(3 -
Do anybody have a Nice Code on a sorting algorythm to sort arrays with. The algo shall be in Javascript please sens answer IF you have.4










































