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."32 -
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.22 -
*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 BITCH10 -
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 -
Me: *selects text, Ctrl+c*
Me: *places cursor in next text box, Ctrl+v*
Computer: *does nothing*
Me: *selects text again, presses CTRL+C WITH FORCE*
Me: *places cursor in next text box again, presses CTRL+V WITH FORCE*
Computer: *pastes*
Me: "That's what I thought."19 -
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.22 -
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!31
-
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.10 -
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
-
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
-
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
-
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!54 -
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 -
"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 -
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 -
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
-
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 -
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 -
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 -
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 -
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 -
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 -
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 -
Based loosely on the popular "git" command, I am happy to announce my new product, "hit"!
Essentially, hit hooks into "git blame" and automatically slaps the shit out of whoever wrote this garbage.
It uses SOHTTP (Slap Over HTTP) to deliver a nice firm wallop to any subpar script kiddie that had the audacity to come up with this bullshit.
Careful, the user is not immune to the effects8 -
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 :312 -
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 -
All right Bois, it's my first 3D model in years: a lamp post's base.
Jesus fuck this shit has a learning curve.14 -
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 -
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
-
!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 -
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 -
Today, social media databases around the world will be forced to accept billions of shitty firework photos.1
-
Confirmed, Walmart runs on Linux, and their promotional photo stream is in a folder called
/walmart/teaser9 -
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 -
Since everyone seems to be talking about getting places late, here's my not-so-significant story about my most recent interview.
So I was told that GPS probably wouldn't work. But the instructions that I got were not specific enough to guide me - something I learned only once I arrived in the general area that I was supposed to be in.
Ended up going one street too far and talking to the wrong front desk. They kindly gave me instructions to get to my destination.
These instructions were also wrong. They left out one step and viola, I'm at the gate of the sheriff dog training facility.
Turn 'er around and finally get on the correct road. My 20 minutes early turned into 10 minutes late, just like that.
They were understanding and I got the job.5 -
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
-
Genuinely upset that I don't have wifi
Fuck Irma
Fuck this.
I can deal without a/c, not wifi.
Kill me.4 -
Okay, sublime text is amazing. Super fast and easy on the eyes. If I had $70 I would purchase a license.19
-
Dear devRant,
I know you will hate me if I do this, so please set me straight,
I have urges...
Urges to create my own, fucked up flavor of markdown....
and worse yet.....
to make it a JavaScript templating engine.................
and publish it to NPM......................
I know you can do it. You can stop me before I commit this atrocity.12 -
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
-
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
-
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
-
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!
...tonight4 -
The worst part about using the computers at my school is that my $200 mechanical rgb programmable keyboard with macro keys is at home.6
-
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 -
Power-out inspired pi project!
Just a simple flashlight. Brightness and color can be controlled by the joystick. It runs off a phone battery pack5 -
Computer science students and data scientists rejoice, "All algorithms" implemented in many common languages:
https://github.com/TheAlgorithms16 -
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 -
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 -
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 -
Jesus Christ, how did that even get past QA. Non-resizable widget that nobody asked for where the text doesn't even fucking fit.. and that's not devRant compression... the text is fucking blurry for some reason????11
-
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 -
Today, implemented Binary Tree from scratch and then wrote a unit testing suite from scratch in my personal project.
Pretty neat.7 -
FUCK capitalist greed! I have befallen to their tricks once again. The daily dosage on my gummy vitamins was three a day but the total gummies in the container wasn't divisible by three so I had to buy three containers and eat one from each per day!21
-
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!8 -
Algo algo1 = new Algo();
Algo algo2 = new Algo();
algo1.setOpacity(.5);
algo2.setOpacity(.5);
// The following image is ENTIRELY unedited:12 -
Dear management,
I require one vertical monitor for my JS, one vertical monitor for my HTML, one vertical monitor for my CSS, and two stacked ultrawide monitors for testing in browser.
Thanks,
Many loves,
Algo.12 -
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
-
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 -
I don't know if you guys caught this but everyone's binary scores are negative. The first bit is 1.
Yay7 -
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 cool6
-
Today I couldn't decide if I wanted an h4 or a p so my fingers did the most intelligent thing available and went with "<hp>"
Smh -
People who actually implement DRY: "Don't repeat yourself!"
People who "implement" DRY but are morons: "Don't repeat yourself, never say the same thing twice, and try not to be redundant."11 -
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
-
"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
-
Opened up my SSH port to the internet out of curiosity on a useless box.
Wow..... so, so many requests.15 -
ME in XAML:
<Grid><Grid><Grid><Grid><Grid><Grid><Grid><Grid><Grid><Grid><Grid><Grid><Grid><Grid><Grid><Grid><Grid><Grid><Grid><Grid><Grid><Grid><Grid><Grid><Grid><Grid><Grid><Grid><Grid><Grid><Grid><Grid><Grid><Grid><Grid><Grid><Grid><Grid><Grid><Grid><Grid><Grid><Grid><Grid><Grid><Grid><Grid><Grid><Grid><Grid><Grid><Grid><Grid><Grid><Grid><Grid><Grid><Grid><Grid><Grid><Grid><Grid><Grid><Grid><Grid><Grid><Grid><Grid><Grid><Grid><Grid><Grid><Grid><Grid><Grid><Grid><Grid><Grid><Grid><Grid><Grid><Grid><Grid><Grid><Grid><Grid><Grid><Grid><Grid><Grid><Grid><Grid><Grid><Grid><Grid>9 -
Lots of oof in one image.
I like how they had the audacity to say (and I fucking quote): "this is good news!"
I don't like to complain about sites generating revenue. I understand it is important and I even feel morally obligated not to use an adblocker. But all I will say is that the site has sustained itself for a very long time without the use of poor-quality and unrelated ads, and this feels like a lot more of a money grab than something the site actually requires.
Anyways, happy to see a -400 score on it. And I guess I can't wait to get Amazon ads on SO.6 -
And already, I have completed my New Year's resolution! (SPEED RUN!)
I've just published my first completed project!
https://algorythm-dylan.github.io/t...
It allows you to make advanced cross-platform console applications. It's cross-platform curses, basically.
I spent quite a lot of time on the docs, so you can read all about it there. There's still a lot of stuff to do, but the very foundation is there, and it's everything you need(ish). It can just be a little inconvenient at times without helper functions for drawing, or adding strings, and such.
I'm currently binding it to Lua, which is going to be super fun to use!
Happy with this first version5 -
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 -
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 -
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 pi10 -
I love Windows Subsystem for Linux for one reason.
#include <ncurses.h>
I love making ncurses shit.
Fuck. YES.6 -
When npm modules bring in 1500 micro dependencies for a service you could build in 15 minutes, it makes you wonder if you should, in fact, rebuild the wheel.4
-
We all know you can't "learn x programming language in a day" without travelling to the Arctic and catching a day that last half a year.
But what's the worst language to try and learn in a day?
I vote c++. Manual memory management, multiple inheritance, static compilation, operator overloading, and generally non-human syntax ( Like std::cout << "This is how you print!" << std::endl; ) make it a difficult one to attempt in a day.26 -
Ordered $12 worth of electronic bits and bobs. They came a day ago and tonight I hooked them up to my raspberry pi. Made some lights blink, pressed some buttons. A solid re-introduction to electronics. This time on my own time and not in school, so I don't automatically hate it. I only got a cheap kit so I don't have many toys to play with but I'm excited to get more. Maybe even buy an Arduino. Maybe even make them talk to each other idk. I'm happy.8
-
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 -
What happens when you take a childish and aggressive attitude to an intelligent discussion. Get called out!2
-
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
-
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 -
-Active hours set
-Update regularly
-No programs that interfere with the normal update process
5:30pm (INSIDE SET ACTIVE HOURS) my computer reboots IN THE MIDDLE OF ME USING IT with NO WARNING OR PROMPT
Windows you dork -
According to Steam Stats, Ethiopia has downloaded 1.5 terabytes of games in the past 7 days. Madagascar has downloaded 5.2
China is in the lead with 79 PB, followed closely by America with 60.11 -
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 -
I feel totally empty inside, it's 3:30 AM, but I got emoji's working in the Linux terminal AND Windows terminal using the same c code.
What you're looking at here is Linux (top left), Windows (starting slightly right of the top left), and the source code for both platforms. It also runs until you press the 'q' key so just displaying an Emoji would be much less code.
It took literally all day of learning about Unicode, Unicode in c, Unicode in ncurses, Unicode in Linux, and Unicode in Windows. But fuck me, I did it.
Only the new Windows Terminal (Preview) renders emoji. The old CMD.exe and powershell.exe will only render what their fonts offer, which isn't much. This got me stuck for a while.
Check out the lib here... leave a star for my ego.
https://github.com/AlgoRythm-Dylan/...5 -
Good morning everyone, may your notifications be full of ++s and mentions rather than new comments.3
-
I wrote this and wonder if it is actually useful. This is a function that eliminates the need for document.getElementById. In the HTML you just set an attribute (jsv) to some value and this scoops that up and puts it in the global scope for you to use.
Neat or shit?12 -
The state of modern information. Top post: based on feelings, completely uninformative.
Second, almost half as upvoted: actual answer to question (Which was "Why don't Presidential debates disable the candidates' microphones while it's not their turn to speak?").
No wonder people don't have a clue what they're going to spew when they open their mouth.
Post:
https://politics.stackexchange.com/...8 -
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 -
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 -
What the fuck happened? Yesterday I spent about an hour downloading ~40 files and after a restart they disappeared???15
-
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.
-
Depends. No one took for the job. VSCode is really good for web and Python. I use Visual Studio for c#, c++ and c. Jetbrains for Java stuff, including Android studio.
When writing SQL I usually use vendor-provided editors like MySQL Workbench. They're the tool made for the job.
Visual Studio Code is my generic editor thanks to it's easy-access terminal. Makes running anything a breeze.
It doesn't feel as snappy as other editors though and installing plugins just for intellisense to work can be annoying, which is why I use other tools for other workflows.
Generally, I avoid things like vim. Sorry, but I have a mouse AND a keyboard. Paid for em both, and I intend to use em. Sometimes I wanna find a setting in a menu and not fuck around with config files after googling what the right setting is called.
I used Sublime for a while, but never really got too into it. It's okay.1 -
It's official. I'm making multiplayer Minesweeper.
There's a Trello board, Discord server, and GitHub repo.
Initial gamemodes will be singleplayer, public (like agar.io) and vs (2+ players, support for teams is planned).
My big idea besides that is to have interesting powerups you can buy or find, adding a component of luck and some exciting new rules to the game.
And I may even put ads on it and try to feed myself.15 -
Read "How to implement a programming language" (http://lisperator.net/pltut) and it was very cool and enlightening. I have decided to use what I learned to make a math evaluator with a proper lexer and extensible library and stuff like that. Not a full programming language but a nice and advanced math evaluator.10
-
*Writes email*
*Reads over email*
*Reads over a second time*
*Skims over one last time*
*Sends*
*Goes to outbox*
*Reads what I just sent*
"Hope I didn't miss anything"2 -
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
-
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
-
Incredibly drunk last night.
Decided to take the CD/DVD drive out of my old PC (now a server) and put it into my new gaming PC.
Required a partial rebuild because:
1) GPU was too close to PSU to plug in a new SATA power line
2) CPU cooling lines were directly in the way of the space for the DVD/CD bay
3) Had to route the new power cables of course
Incredibly, even though I couldn't stand, I was able to perfectly execute the maintenance on both machines and I'm even using the new PC to write this rant now.
I must be a God.5 -
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 -
Quite happy with myself, I just made a 60 line backup script that takes in a super simple JSON file and backs up your files in multiple formats. Attached to a cron job and boom. 60 line home baked backup solution4
-
This week in positive news: "Video Editor" comes to Windows 10, so I can finally uninstall my hacked-together version of Movie Maker8
-
An interesting python function I just made. Probably not the first to do so.
def printf(fmt, *args):
print(fmt, args, end="")9 -
Okay, mine is actually mildly interesting.
I was, at the time, obsessed with operating systems. The only thing I knew how to do (and I only knew how to do it poorly!) was make websites. And thus, Frames(TM) was born.
It was really labored for what it was. The whole thing worked off iframes to create different "Windows" which you could drag around the screen in a typical window-based environment. It had a start menu (Without search - I wasn't that good yet), task bar, background image, the whole 9 yards.
Some highlights from that project:
- Not hosted anywhere. Everything was file:/// protocol
- Originally, everything was statically created, and I learned about document.createElement during this project
- To communicate between the "Operating system" and the different frames, I used localStorage, which was continuously exec'ing anything it could find. Smart smart boi.
- Of course, the only thing available was web storage. The "Hard drive" was about 5MB, and if you cleared browsing data, goodbye everything!
Hours and hours happily dumped into that project, but I am definitely happy it is gone forever. -
HEY GUYS, welcome back to your IDE! Don't forget to update and change your color scheme, and SMASH that run button!3
-
RPi 4 is hard to get your hands on it seems.
Really debating buying it though, 4 GB is enticing, but I just don't see a place for it. I have a surplus of machines which are much more powerful and accessible (Display ports - not mini HDMI)
And let's not forget the sub-2GHz clock speed. My desktop goes to 5, and my server isn't far behind. And my laptop isn't far behind that. And my other laptop isn't far behind that. But this new Pi would be far far behind that.
Not to mention the ARM architecture. There have been leaps and bounds made since the Pi first came out in terms of support for ARM (Most certainly fueled by the Android craze) but it still isn't x64, is it?
If I were 13 again and I didn't have all of the toys that I do now, I would be elated at the launch of the Pi 4. But as it stands, I don't see a use for it. Maybe nostalgia.19 -
So something annoying about the bathrooms here is that they are automatic flush only. There's always used toilet paper in the bowl because as soon as you move an INCH to wipe, it flushes. And you can't flush again.10
-
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 -
Emoji support, default color support, double-buffering... my library is really coming along well!
Getting the default colors in Linux was a one-liner. But Windows.......
https://github.com/AlgoRythm-Dylan/...4 -
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 -
Tried c++ and Qt today
Expected output: "Hello world"
Running normally: (garbage)
Running normally, but outputting the length of the string to qDebug: "Hello world"
W H A T7 -
The display on my new RPi4 doesn't work properly. Plugged the SD card into a model 3 and everything is fine. RPi4 boots and I can SSH into it but any display I connect it to detects nothing.
Fuckin piece of shit.10 -
We have phonetic alphabets to clearly describe spellings (d as in Delta, etc.)
What's your best misleading phonetic alphabets? I'll start:
P as in pneumonia
H as in honest18 -
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 -
I have a discord server where I'm writing the bot. I'm making games, utilities and other activities.
It's a very small server because I have not been actively recruiting players, but if you would like to join, here is the link. I would be happy to make some devRant commands and integrations.
https://discord.gg/sEnwGdjB
Right now, we have Blackjack, connect 4, crossword, and trivia. There's also a "stock market" where you buy shares of other players (rather than stocks).
It's early. There's some stuff to do but I'll admit, not a ton just yet. Maybe a few bugs, testing team is considerably small. But it is good fun and I am actively working on it. Maybe join and play while you're "working" from home :)7 -
BOOOOOYS
I just figured out after a year of owning the machine why the monitors felt like they were running a bit sluggish in Windows. They were!!
Even though they are 144hz monitors Windows locked them down to 60hz! Fuck, that's so dumb!
Linux didn't do that. Fuck, that's so dumb!8 -
Guess I asked for it by joining the Windows Insider fast lane but my desktop background has disappeared :((3
-
> 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? -
SELECT * FROM PEOPLE WHERE GIRLFRIEND = 'Y';
> 0 rows returned
*Sigh*
SELECT VIDEO FROM WEBSITES WHERE URL LIKE '%hub%';19 -
Do you guys find yourself ignoring things you should be using just because you're too stubborn to learn how they work? Because I just used std::shared_ptr for the first time today.1
-
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 get pretty much exclusively Army ads on Twitch lately. I like to think the reasoning behind this ad campaign is the Army thinks:
A) Everyone watching gaming videos has no career path because they're gaming losers, so this is a good place to recruit people who won't make it to college
B) Gamers are violent because they play video games and are therefore good fits for the army
C) Both A & B
And that's kinda funny to me12 -
I know this is sort of off topic but I think Psychology is pretty great sometimes and while it doesn't explain why we behave the way we do, it does a great job studying it, at least. So to explain why fake news is so rampant and why despite us being in the middle of the technology age, so many are still ignorant, they conducted a study on what makes a source credible. It's a very long and thorough study, so I will like it for you to read, but the gist of it is this: any long text which is too boring to read word for word is automatically taken for truth. Images add credibility. And simply adding a reference - even if it isn't a credible reference or if it's not related to the information at all - will make readers assume truth, and most won't even think to validate the links.
Here's the full story:
https://en.m.wikipedia.org/wiki/...2 -
Dear Windows,
Why can't you FUCKING remember my choice to "Open folder to view files"? WHY BOTHER asking every single time I plug in a USB if you can't be fucked to remember what I say?? Why is this even an issue?3 -
Maybe a stupid question but I can't seem to google the right words.
In Linux, how do I reference the same device (disk) through reboots? Like, there's no guarantee that /dev/sda1 will be the same device twice, right?
Like, if I have three or four disks and I want one for "backups", how do I choose that disk *every time*?4 -
I'm getting caught up on my personal project because I need to generate a lot of Dynamic HTML using JS and it's just a pain. I hate adding dependencies to a project, especially personal projects with no deadlines, so tomorrow I will be writing a vanilla templating system, and hopefully that will un-funk me.3
-
I actually feel accomplished because I'm starting to turn one of my side projects into a real project, even if it isn't popular.
I have a discord bot (exclusive to one server, so more of a discord server) that I have been working on for a while with a couple minigames, like connect 4, crossword, blackjack, etc.
It started off very small, but now I see the project really exploding in size. I have a bona fide testing environment, website with domain and HTTPS with sitemap and everything submitted to google, unit tests, and the scope keeps expanding.
I am continuing to only add value, but have legitimate plans to try and make some income from it if things go smoothly.
Now I just need more than 10 users.2 -
I finished a side-project and made a simple C# and WPF program to help you track financial goals. It splits up your paycheck based on what you want (like 10% towards a new car, and $25 towards dinner out).
It has zero netcode and is open-source. There isn't even the most basic
of analytics
https://github.com/AlgoRythm-Dylan/...9 -
Rant portion:
Fuck me, there's not a ton of great resources for Lua. I have the book, and it's actually fucking incredible, but as soon as I have a question which I would usually Google, either it's a SO question that almost hits the mark (but absolutely does not answer my initial question) or a mailing list that DOES answer my question but holy FUCK it's difficult to read!
I 100% recommend the Lua book, though. It's remarkably helpful and covers just about every little detail of the language and it's corresponding c API, and even some of how Lua works behind the scenes.
Non-rant portion:
Finished up the first version of my library and now I'm binding it to Lua and this time around I'm using all the best practices including setting and checking metatables so that Lua can't segfault. It's going great, I properly learned about the Lua stack, and I feel good. Cross-platform double-buffered command line via a scripting language... What a way to enter 2020. Everything went so smooth that I got to 3am before I realized what even happened.1 -
I just got mindustry (which is currently on sale for $3) and it's a great tower defence, resource production, machine builder, tech tree researcher, sort of game! Really really worth the $3 and will probably appeal to a lot of people here.7
-
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. -
Spent a good minute figuring it out, but ES modules are pretty great. Using Node.JS 13 (and the --no-warnings flag) I can use the exact same file on both client and server. Wonderful!2
-
Anyone else notice that the error checking in Visual Studio sucks sometimes? I'll see the error pop up in the editor, read what it's complaining about, double check all the code, think for a minute, get confused about it, comment out some stuff - wait no, it wasn't that, uncomment it....
then save the file and it rescans. Boom, error gone. It was just a phantom error wasting my time.3 -
I have a nightmare project that I will probably be ranting about quite a lot in the coming weeks, but I don't want SEO to pick up the specifics on the off chance my peers Google the issues we're facing and my profile comes up.
Let me set up the scene by describing the predicament, and then I'll get to the most outrageous thing I've heard while working at this job. It gives you a CLEAR idea of why we're in this situation in the first place.
Anyways, the nightmare project only runs in IE with compatibility mode set to version 6. So it only runs in IE 6 at the latest.
And it is massive. I'm talking real, real enormous.
The most recent roadblock I ran into while Chrome-ifying it is the extensive use of a browser API that was removed 8 years ago.
It involves synchronous data input and I know for a relatively certain fact there's no way to fix it without combing through every single reference to this API and converting the ones that need sync data (not all of them do) to callbacks. How big of an issue is that?
Well, just one of that 15-ish modules has over 900 references to it. Even just creating a spreadsheet of "commented out / doesn't need a fix / needs fix" for each reference in 1/15th of this project would take days of manual labor.
Here's the rant.
So after discussing this issue in the meeting (we ended on "they don't believe me that we can't just replace it with jQuery") I brought up the next issue. One of our 3rd party libraries is so old it doesn't work anymore and we can't modify that code (it's compiled).
They said that even if it was backwards compatible (no fucking way. This version is like, at least 10 years old, I guarantee it) they can't simply replace it because we don't have a subscription to this product anymore (suggesting we find an alternative).
And I fucking kid you not, this is what happened next.
They then began discussing how this is why you shouldn't use 3rd party code. Because it becomes obsolete and you can't even fix it yourself because it's not yours to edit.
Yes. They said this DIRECTLY after we discussed our 900+ references to a browser API >>REMOVED<< 8 years ago. Yes, they said this about a 3rd party library that receives regular support but is totally FUCKED because we NEVER updated it after adding it and we never even renewed the LICENSE.
What the FUCK2 -
What you do: copy and paste existing code from the project
How you explain it to your boss: "conformed to existing code style" -
Hey just brainstorming a business/ startup idea I may try out sometime down the line. I wanted to put it in writing available to my peers for review. If that sounds boring, sorry.
So I've had an idea and I know it's a million dollar idea because it's absolutely boring as fuck.
Recently I have been learning about NoSQL and it has gotten me pretty excited about unstructured data.
Now the first thing you should know about me is I like to make business software. I don't like games or social networks or blah blah blah, I like business stuff. One dream I have always had is to make THE business solution. I've noticed so many specific business solutions for very specific areas of work. Specific software for car washes, which is separate from the software for car maintenance, which is separate from the point-of-sales software, which is separate from the [...]
One of the problems with this is the inconsistency. Modular is good, but only if the modules are compatible. They aren't. Training needs to be provided for each individual system since they are all vastly different. And worst of all, since all of these different applications reach their own niche market, they charge out the butt for things that are usually very simple "POST a form over http(s)" machines.
I mean let's not get too dreamy here. My solution is an over-complicated form-builder. But it would be a game-changer for small and medium-sized businesses. Allowing users to build their own front-end and back-end disguised as a drag-and-drop form builder would be THE alternative, because they could bring all of their solutions into a single solution (one bill!) and since THEY are the ones that build what they need, they can have custom business software for the price of a spreadsheet program.
The price difference we could offer would be IMMENSE. Not only would we be able to offer "cookie-cutter" pricing as opposed to "custom" pricing, but since this generic solution could be used for essentially all of their systems, we aren't just decreasing one bill. We're decreasing one bill, and eliminating the rest entirely. We could devastate competition.
"BUT ALGO", you scream in despair, "USERS AREN'T SMART ENOUGH TO DRAG AND DROP FORM PARTS TO MAKE A FORM"
I mean ya true. But you say that like it's a bad thing. For one, we can just offer a huge library of templates. And for another, which is part of the business plan, we can charge people support dollars to help them drag and drop their stupid fucking forms!! Think of the MONEEYYYY YOU COULD MAKEE BY EXPLAINING HOW TO COLLECT FIRST AND LAST NAMEEE. Fuck.
The controls library would be extensible of course. You would be able to download different, more specialized controls if you need them. But the goal would be to satsify those needs with the standard collection of controls (Including interesting ones line barcode scanner and signature input and all that). But if all else fails, maybe someone made an open source control for you to implement and ignore that stupid donation button. We all do.
This could PURGE the world of overpriced and junky specialized business software, and best of all, it's aimed at smaller businesses. With smaller businesses making more profit, they will stay afloat better and may start to compete with their larger foes. Greater for the entire economy.
Anyways, I'm sure it's full of holes. Everything always is. But I still think it's something I'll try before I die.24 -
I really liked the Mojang API. I've told this story before but my first real project was a Python script that ran through all of the words in the dictionary looking for "OG" names that were available
-
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 -
Looking for recommendations:
I have a retropie set up in the living room TV that my parents play. They want an arcade-style joystick. It needs to be wireless, preferably not bluetooth. Known compatibility with retropie is a plus. Four buttons a plus, two is required.11 -
c++ tip: modern cpp standard libraries have std::optional, which allows you to declare a variable that may or may not have a defined value:
std::optional<std::string> optional_string;
(I've started a journal of interesting c++ things I have learned: https://github.com/AlgoRythm-Dylan/... ) -
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