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 - "contains"
-
This is not a rant, but I just wanted to share some good news! My brother and I have launched an app called Programmer’s Music. It contains our favourite music tracks and tracks suggested by some of our developer/creative colleagues. It’s for listening to music while coding. We have also integrated Pomodoro time management method in it. It’s ad-free and FREE. :) Please check out the app at https://promusic.tech/2mJrw8A. Feel free to leave an honest feedback.
Please feel free to leave us a message with your favourite tracks and we will add them. Please share it, follow on Twitter and/or like our Facebook page. Thank you so much!
Thank you, everyone.
PS.- Atom editor fans would ❤ it.undefined coding programming music music programming coding atom editor do you like it? wired in music for programming60 -
Alright fuck it, let's release this fucker!
https://lynkz.me is the main domain. The interface is *usable* and nothing more than that. I'll invest more time in that soon but for now, hey, it works.
Api is located at https://api.lynkz.me.
Documentation for this (literally some echoes to the screen but it contains the needed information for now) is at that api url.
Found a bug or a security vulnerability? Please let me know!
Yeah I use mariadb but sql injection is luckily not possible due to quite some sanitization ;)
WARNING: if you make a shortened url and forget the delete key, you won't be able to delete it.
Let's see how this goes 😅111 -
⚠️ DEVRANTRON ALERT ⚠️
Make sure you've updated devRantron to v.1.3.6 since previous versions contains an XSS vulnerability.
<b>If this text is BOLD you're vulnerable.</b>
You can download the latest version at https://github.com/tahnik/...20 -
*during my final job interview*
*holding the folder that contains my cv*
interviewer: Wait, before I open this I would like to guess which position you're applying to.
me: Hmm okay sir? Which position?
interviewer: I see you're applying as a back-end developer?
me: Yes sir, I am.
interviewer: Aha! That's because you have a long hair? Like it is a requirement for every devs to grow their hair?
me: *laughs* i think so?
interviewer: Well our devs here also has long hair. You'll meet 'em soon.
...
That sets the mood of my interviewing process that leads me the job offer. LOL.13 -
Did the Kali repos get pwned? Updated to kernel 5.3.0 and rebooted to this. File is 8 bytes, contains just "fuck you".22
-
Yesterday I used a company service account to email over 1,000 internal employees (mostly application managers and the like) about an old OS version their servers are using which must be upgraded in a few months. It's an automated email that will repeat each month until the servers are upgraded.
That is not the part that might get me fired.
The part that might get me fired is an easter egg I left in the html content of the email itself.
In the embedded html of the message, I buried a comment block that contains a full-screen ascii-art drawing of a spooky tree and grim reaper standing beside a tombstone. The tombstone has the OS info and dates on it. Beneath the ascii-art is a bastardized quote in homage to Metallica's "For Whom The Bell Tolls", referring to the OS end-of-life.
The ascii-art is visible in both the html and the internal git repo that contains the email template.
This is a bit of a shoe-horn for this weekly group rant, as I doubt there is any chance I would really be fired over this, as I (sadly) expect that absolutely NO ONE who receives the messages will ever actually see the comments. But it's out there in the corporate network now... and will be sent over and over for the next few months...
There is a better chance someone may catch the easter egg in the git repo, but I kind-of doubt that, too - so I wanted to at least share with my devRant friends that it's out there, so at least someone else knows than just me. 😝6 -
I replaced my friends CMD shortcut with this target:
CMD.exe /k rickroll.bat & cls
The file rickroll.bat contains a script that launches VLC in the background on loop playing Rick Astley - Never Gonna Give You Up at a very low volume. Every now and then it increases the volume.
So original, I know....1 -
A method that contains over 9000 lines of code.....
Are there really production codebases out there with stuff like that? If yes I am scared as hell because I don't want to work with that kind of code once I graduate
Tell your stories!19 -
So... I wanted to share something I made this weekend... 😁😁
Made an ls program which includes colors and icons! It is a work in progress and probably contains some bugs here and there, but I really wanted to share with you all.
The happiest thing to me about it is that I made it in pure C and had a blast creating it! It’s my first actual C project and it also made me realize that there is probably no language I can love more than C.
Take look if you are interested and tell me how it is 😊 suggestions and fixes are more than welcome 😁
https://github.com/Electrux/...
Just wanted to share the experience. Have a good day everyone! 😁33 -
So pm2 (a node process manager package on npm) just caused thousands of CI builds to fail because of an "optionalDependency" on a package called gkt which is requested as a tarball from a server that was returning 503. That package consists of one file which contains this16
-
This is not a joke. This is not something I wrote to be funny. This is not found randomly off the internet. This is a real part of the project I inherited: a function that not only is more cumbersome to use than the simple <Array>.contains that it wraps, but rather than returning the boolean result from the function, sends it through an if statement and returns hardcoded true and false values for... Good luck? I guess?47
-
I have my doubts of being a good developer when my fingers type this thing
Just checking if a string contains itself10 -
Devs: We need access to PROD DB in order to provide support you're asking us for.
Mgmt: No, we cannot trust you with PROD DB accesses. That DB contains live data and is too sensitive for you to fuck things up
Mgmt: We'll only grant PROD DB access to DBAs and app support guys
Mgmt: <hire newbies to app support>
App_supp: `update USER set invoice_directory = 54376; commit;`
----------------
I have nothing left to say....7 -
In the project management system we use with our clients I see file named, 'instructions for backup.'
I open the file and all it contains is my name and phone number.😑4 -
Today I checked out a Repo on Github to help a friend.
Holy shit is this code crap!
Basically one single method contains the whole logic.
637 LINES OF PURE AND UTTER DOGSHIT.
SIXHUNDREDTHIRTYSEVEN LINES!
ONE SINGLE UGLY METHOD.
If I have enough time and energy, I will probably create a PR in 2021.
Some people... wtf.
(not my friend's code, he just uses the program)
(Edit: I had to remove the rant and censor names in the image)25 -
WHAT THE FLYING FUCK WINDOWS???
You change the icon for the multi desktop button... ok fine,
*clicks*
son of a bitch now contains Bing Ads
Fuck you Windows, and Fuck me for not being able to find a linux distro that will fucking boot after install correctly, and FUCK you acer for not having linux support.28 -
Dream : Write todos.
Reality :
Well, i should conserve paper.
Oh, there is a todo app in my phone!
*Contains ads*
Shit.5 -
Dear those who did microsoft sharepoint front-end,
Fuck you
P.S. There is still 3 levels of iframe and table, but I can't show it because it contains data7 -
IF LIVES DEPEND ON A SYSTEM
1. Code review, collaboration, and knowledge sharing (each hour of code review saves 33 hours of maintenance)
2. TDD (40% — 80% reduction in production bug density)
3. Daily continuous integration (large code merges are a major source of bugs)
4. Minimize developer interruptions (an interrupted task takes twice as long and contains twice as many defects)
5. Linting (catches many typo and undefined variable bugs that static types could catch, as well as a host of stylistic issues that correlate with bug creation, such as accidentally assigning when you meant to compare)
6. Reduce complexity & improve modularity -- complex code is harder to understand, test, and maintain
-Eric Elliott12 -
This is the GREAT ROLLING website that I ranted recently. I couldn't share more than this as other parts of the page contains sensitive information that is not out in the internet yet. The whole friggin page is like this. EVERYTHING ROLLS25
-
So... m starting my internship tomorrow. 4 months, 6-8 hours a day, 5 days a week.
M VERY anxious and quite frightened to b honest.
Wish me luck guys 😨😨😅😅
It is kinda what I wanted though... contains web parts but also C++ 😍
Tech stack: c++, JS, Python 😅26 -
Public sector. Guy wants to upload a PDF file into our system that exceeds our file size upload limit by a factor of more than 10. The PDF contains a lot of pictures.
His idea: print the hundreds of pages of the PDF on paper in b/w and scan it because b/w takes less space then colored pictures.
I am perplexed. He asked first though, so we could prevent the actual printing.6 -
CHILD: But how can Santa deliver toys to every little boy and girl on his list in one night?
MEH: (laughs) It's quite simple. The items on Santa's list are called blocks, and each block in his "blockchain" typically contains a hash pointer, a timestamp, and transaction data...6 -
Manager: You use linux? Why?? I’ve only ever used windows and it’s the best of all the computers in my experience. It contains everything anyone needs: email, meetings and the internet.13
-
I really fucking hate when people or companies do shit like this..
Apparently Google is changing the salad emoji, which is a bowl that contains lettuce, tomato, egg, onion and stuff like that, to the same, but without the egg.
Why you may ask?
Well.. they did it to "make it a more inclusive vegan salad".
ITS JUST SOME WHITE PIXELS FOR FUCKS SAKE. How would any vegan, besides the crazy ones, be upset about a moist egg in their crisp salad?
I cant even.. im out of words.. fuck.
Additionally, the news page i read it on have been so kind to host a poll of what people think about it, whether its a good idea or not.
Ill let the image speak for itself, if you really need a translation, dont use google translate, ask in the comments.42 -
Was running tests on a big project I'm doing which still contains a fair amount of bugs but I was sure that all thresholds would succeed and the test wouldn't fire an alert.
Ran the test: alert received any fucking way.
FUCK.
*checks rule*
*waaaait a second, I've set the threshold differently by accident...*
HOLY SHIT THIS MEANS IT WORKS 😵
*pats project* - "good project 😊"1 -
"Can we build an app that works only in South Africa, for multiple clients, with no WiFi connection, each app contains an entire website and database to use offline, where any changes to one database synchronises every client's app, and also save those changes to our servers?"
These clients are hundreds of miles apart and on the other side of the world.7 -
fuckpress.Pi
Yep, thata right. Fuck Wordpress Raspberry Pi. Thanks to my inability to interact with proton mail filtering I just made a script that checks for a new email and if it contains words "wordpress", "help", " hack", "build" and it is not from whitelisted contact, the email is moved to the Fuckpress folder and automatic reply is sent back that I AM NOT FUCKING DOING YOUR GAYPRESS FUCKING SHIT FOR YOUR 5$ CUNT.
rant over4 -
Every fucking day in my company, we get an email from the HR titled "Good Morning, have a nice <DAY_OF_WEEK>", and the message contains a low quality shitty picture grabbed from a random Google search containing a equally shitty quote.
Today's quote read "Happy Friday! Friday is a day to finish your goals of the week!"
lmao like am I suppose to wait till Friday to finish my 'goals of the week'?
I'm so sick of these dumb fucks someone send help 🙄9 -
To me it seems that Software eng has become a „I wanna get rich“ thing..
Too many idiots do it and think they’ll get tons of money..
Not that many new geeks because of that..
Also, I feel like the mentality has switched from quality oriented to shiny oriented..
3/4 of new Software i use contains serious bugs that don’t get fixed because it takes time..9 -
That moment when I realise why the CD of Ultimate Boot CD I have asked the tech team to burn for me does not boot... Because it *contains* the ISO file...5
-
Manager: That last dev you hired is working out well. Where did you get him from?
Dev: *Looking at new hire’s resume which only contains a single bootcamp and nothing else*
Dev: He’s a rescue.11 -
Me:
- Few days ago: Orders thinkpad
- Now: Checks email
- Sees shipping email from lenovo
*YES! Earlier than expected ship date by a full week*
- Opens email
- Package only contains the additional charger that I had ordered, I can't even use it without the laptop
*facepalm*4 -
Switched banks, got new e-banking, unable to set up a new password.
It contains invalid characters.
IT'S A FUCKING BANK ACCOUNT I SHOULD BE ABLE TO USE HASHTAGS OR EVEN HAVE FUCKING SPACES IN IT IF I FEEL LIKE IT.7 -
Really, I hate this composer / bower / npm shitholes!
Why the hell is my app 300MBs?!? Because that shitty pudding composer decided to download the ENTIRE git including README.md, examples, 5 hours of assembly-giraffe porn, my granny's pajamas and two wraps of kebabs!
How hard is it to define the folder that contains the REQUIRED library so that our project might stay at 5MBs instead of 300?18 -
I'm moving some old data into a new database.
It contains some dates that *should* be in ISO 8601...
This is some of the trash that I found:
01/01/70
2010-11-05T08:06:48T08:06:03.7
2007-09-13T
Moreover, it has a column which *should* contains numbers, instead it has been defined using varchar, so it contains also some wonderful 'NaN' values.
I really would like to beat the person who set up all this stuff without some basic validation policies.9 -
So, for an assignment we have a task of developing an IT product for a business to solve one of their problems. One of the project development examples contains the following screenshot.
You can tell, from this screenshot that whoever made a screenshot of this example has no idea what they're doing.14 -
My mobile provider doesn't allow me to set a password that contains any other symbol than letters and numbers for the website where you can look at how much data you consumed (and can order new data, change plans, etc.). Are you kidding me. This is making shit insecure, you fucks!15
-
Here we go again… a new update for devRant unofficial UWP blocked by Microsoft because contains "profanity"...
Interesting fact:
The screenshots which contain """profanity""" (probably bad words are enough to violate the rules) are still the same you can already find in the store, so even without this update they are visible...14 -
As someone in charge of reviewing this code, how would you react to this function that contains, what could be, the longest ever readable return statement.19
-
Things that give me chills early in the morning. A password reset email that contains my password in plain text.
Seriously! 🤦♂️1 -
customer: "hey, feature X is broken!"
me: *asks for details
customer, one week later: "feature X contains information about Y, that *must not* be"
me: *looks at code, at git-history, at related tickets
customer, one year ago: "hey, feature X *must* contain information about Y"
me, all the time: :-|4 -
I told a guy to implement an algorithm in cpp. He wrote this weird 600+ lines of code which contains only global variables and void functions then I told him to make it object oriented and he just put all those garbage in the class and gave me back and on top of that class name is Template and file name is template.cpp. I don't have words to describe his code. May be this picture can help you understand my state. Oh, if you think this matchOn_r1, r2,r3 are different then you are mistaken they are just different with one argument (one global argument). This is just part of the code. He has this shit all over the place. Why the fuck this kind of people exists?13
-
Wow, I'm going to have a hard time remembering this one.
IT have changed after so many years the password criteria for our machines, to the point it's a bit ridiculous.
Like I'm all for securing your accounts and using random passwords but, this is rough.
Minimum of 14 chars
Not the past 6 passwords
Must contain several %}*]=[^{
Must contains numbers
Must contain upper case letters
Must contain Lower case letters
Must not end in a number
Must sacrifice a virgin on every login
Must be changed every 30 daysrant security vs usability kill me - kill me now password managers go hard or go home - oh wait i am home22 -
Decided to throw pi-hole in a bin and found enough resources to throw together my own dns filter in node, which if not on the blacklist - proxies the request to an actual dns, which allows to filter given just a word too (because it's regex matching), "came up" with the idea after @Linuxxx wanted to make (or made?) some big hosts file via php matching and blocking to block anything that e.g. contains "google".
By resources I totally mean I would have ate shit, if it wasn't for: https://peteris.rocks/blog/... as most docs are absolute garbage regarding node-dns54 -
!Tech
How do i explain my friends that if a bottle of whiskey contains 40% alcohol and when i pour some in a glass. The glass will also have 40% alcohol.21 -
GitHub
This repo contains the following languages:
- PHP 58%
- HTML 34%
- Javascript 5%
- CSS 2%
- Ruby 0.6%
- Hack 0.3%
- NASL 0.1%
The last 3 are not in this repo.
Don't fear about AI taking our jobs, it still can't identify what languages it's looking at.18 -
My websites contact form got a submission from some "manjeet" offering me his freelancing services, together with previous projects, where he apparently delivered and... has a login backdoor that he advertises to others to check out?.. with credentials etc.
Also got flagged with "It contains a suspicious link that was used to steal people's personal information. Avoid clicking links or replying with personal information."5 -
I really like how Opera Mini says it has an AdBlocker implemented, yet the app 'Contains Ads' according to Google. Guess it's not an effective blocker.8
-
If anyone wants to create a webapp using React, Express, Webpack, Babel I just created a boilerplate to make things easy for you guys. It contains extremely basic files and the whole file structure including Redux structure. I've struggled a lot to understand and combine this technologies. I've felt like now that I understand I should share with you guys.
GitHub: https://github.com/tahnik/...12 -
Today I started work on a new project that contains a lot of legacy. I asked the developers about unit testing javascript and was told that not only is there none in place, but it's not worth adding any in.
At first, I grimaced and thought fair enough. This is their codebase, it's their choice. I've now been thinking about this for a few hours and have instead decided that screw those guys, I'm adding in a testing framework, a module pattern that's compatible with the existing code, and unit testing the crap out of it. If they don't want it they can refactoring it out, but I can't bring myself to intentionally deliver code I know is crap.
I WILL FORCE CODE QUALITY ON THEM.7 -
!rant 📚 📑
Cybersecurity books @Humble Bundle
https://humblebundle.com/books/...
There is a really great Humble Book Bundle at the moment, starting at 1$. The bundle contains several cyber security books ("Practical Reverse Engineering" and "Security Engineering" have a good reputation).8 -
WTF!!!!! I officially have someone trying to extort me just had this in my email box this morning!
--------
Hello,
My name is [name removed], I'm an IT security expert and I found a security issue on your website.
This email is personal and in no way related to any of my employers.
I was able to access to a lot of files which contains sensitive data.
I attached a screenshot of the files I found to this email.
I would be happy to give you the method I used to access these files in order to let you fix it.
Would be a monetary compensation possible?
Please forward this email to the right person, if your are not responsible for the security of the website.
Best Regards,
[name removed]
---
He can basically see the contents of my wp-config.php. How has he managed this?71 -
When I saw an O(1) algorithm solution. I was so amazed that I got goosebump. Still wondering how one is able to come up with such algorithm.
Another times when I understand how the whole thing works in a project. This class is doing this, that class is doing that, this file contains the configuration, etc. Its like everything is connected.
Other times when you see your pet project start to take shape. You just want to cuddle it.12 -
Started developing a new expansion for C# out of a very personal need. It's called Dyslex-C# and it contains the normal C# functions spelled wrong since I seem to do it all the time anyway. Hello Wrold! Productivity++.3
-
Fuck this
I get to work with API where you CAN authenticate with username/password and get a token
But you CAN'T get user info from token (auth response contains ONLY token)
So what I have to do:
1. Get token
2. Request ALL FUCKING USERS and load them into my DB
3. Search through local DB by username and, yeah, here I go
Now I need to have a cron job to update user DB 1/2 times per day
I can't think of ANY reason not to allow this8 -
Fuck the brains of circular dependency.
On a fresh install of OS X on my hackintosh.
1) Let me install HomeBrew
2) I need Command Line Tools to install HomeBrew
3) Xcode dmg is on my Android. Opens Android File Transfer tool.
4) Error: File is larger than 4GB. Need to use adb.
5) Need to install android-platform-tools, which contains adb.
6) android-platform-tools is available in brew. Goto 1).
Note: Networking is limited to tethering mobile data as Wifi chip hasn't arrived yet.3 -
When you send a new update for devRant unofficial UWP to certification and it get blocked because contains profanity and inappropriate content... WTF? 😂12
-
So I wrote an application that loads data from a 3rd party API. It allows the user to enter a record locator number and pull it up. By design, the value can be a partial match and it will pull up the record still.
The first API call I make only took 2-3 seconds, so I didn't see an issue as it's loading most of the data the app needs. I keep the filters/fields as they are and move on.
Fast forward 6 months. The user is complaining that the records are taking 30-45 seconds to load. Sure enough, load times are terrible. I've made lots of changes to what fields I'm loading through the API, and I'm calling several additional APIs, so I start pulling pieces of code out to see if anything improves. They all barely make any difference--still 30+ second load times. I end up removing everything except the first API call I developed that was taking 2-3 seconds before. Still taking 30+ seconds.
The 3rd party API allows you to filter using "starts with" or "contains". I used "contains" initially and had no issue, but I decided to try "starts with" since it should fit most use cases.
Load time is less than one second. I add back everything else. Load time is just over a second.
It seems that the 3rd party updated the API and multiplied load times by 10 when using that particular filter. I spent almost an hour on this since the platform doesn't support performance or debugging tools very well, and it all came down to a one line fix.4 -
Germany trying to fight Covid with digital tools (at least not another app today): registered for a test with QR-Code, Webform and E-Mail. After being tested by friendly people, I received an email that contains a link to a download of a PDF document.
Inside the PDF, a QR code, and a bureaucratic text like during the time of the Prussian emperor: "Bescheinigung über das Vorliegen eines positiven oder negativen Tests (Antigen Schnelltest) zum Nachweis des SARS-CoV-2 Virus".
Okay, we have a national "Corona Warn App" using Google's bluetooth based distancing detection, that also allows to add a test by scanning a QR code.
Scanned the code, got
"QR code is invalid".
Despite the unfriendly UX writing and the unhelpful description, another proof of the state of digitalization in Germany in 2021.
I am not even surprised.
At least my test result is negative.11 -
We are developing a single page APPLICATION which will be embeded into another single page APPLICATION using iframes (!?!?!?!). The embedded SINGLE PAGE application has POPUPS (browser instances, not UI popups) opened. Every app contains at least 75% of the other apps and they do not share common code. Everything in IE11 and ng4.10
-
My friend developed an app called "sendanyfile - WhatsApp, messenger" which can be used to send file of any extension via WhatsApp. A week later WhatsApp reported the app saying that it contains the word 'WhatsApp' in the app's title and removed the app from play store. Then 2 weeks later this happens....8
-
Going through the list of projects:
Nope...
Absolutely nope ...
Burn it Nope.
Nononono.
Don't touch this.
It's so fluffy, I will die.
Wow. If this was a fungus, it could talk by now.
What the hell was that...?
Uh. Ehm. So old it's already done. Oopsie.
...
2 hours later...
...
Well. Backlog is sorted.
Conclusion: I just don't work anymore.
-.
I think it's time to add a field "pain level" to Jira.
And I doubt that the backlog contains any ticket less than pain level 8 / 10. -.-
But yey. I ordered beer.2 -
I'm currently one of two "pen testers" for the anticheat system of a game.
It all started a few days ago when the developer handed me the obfuscated package and told me to go at it. No big deal, I've bypassed it before the obfuscation, so I just changed some imports and sent in the screenshot.
Fast forward 100+ hours, it's turned into a cat-and-mouse game. He sends us (the testers) an update, we break it within hours. We show him what we exploited and he attempts to fix it. Rinse and repeat.
Finally, today he patched the one hole that I've been using all this time: a field in a predictable location that contains the object used for networking. Did that stop me? No!
After hours of searching, I found the field in an inner class of an inner class. Here we go again.3 -
I just want to share my very first companion. Haha... This is btw my laptop way back 2011, used it to store highschool memories and silly stuff, if you know what I mean. This is the laptop that I first used the labrynth of directories such as A folder contains A to z Folder and again inside one of those contains A to z again lowered and upper. This is also my partner in coding C++ back in the days, I usually write code in paper and when back to school I used our lab's computer. Ohh and I also have my anime addiction started on this too! One time I discovered the side VGA and connected it to our big LCD screen but by the time I plugged it in, it produce explosive sounds, and my grandpa said that that lcd tv is only for 110v not for 220v. I learned the importance of voltages that day. I just went back and open it to backup my highschool memories and stuff to my external hdd. Ahhhhh memories.3
-
Basic OOPS Question -
A unit of computer information that contains data as well as all the procedures or operations is called:
(1) A method.
(2) Encapsulation.
(3) An object.
(4) An OOP
(5) None of these
This question is a bit confusing to me.. what do you guys think? 🙄19 -
I know my profile contains a lot of Light theme ide rants, but i can’t help but posting more of em 😜4
-
Dear all students with a .edu email account.
The GitHub student pack now contains $150 worth of Amazon AWS credits, and bunch of other incredibly nice things. Have fun!
https://education.github.com/pack14 -
I got a kindle paper as a hand me down gift. And I feel I'm reading so much more than before, now!
I'm starting a new small novel
A Wrinkle in Time, I'll be reading alongside my girlfriend.
I'm 52% done with a book called
Python Tricks: The Book
Literally coolest book I've touched. Contains a bunch of different tidbits about the language, granted most of them confirmed my understanding, but it's still neat to read and learn about them in a more rigorous setting.
I'm 13% done with another book called
How to Day Trade for a Living
I'm heading for the crypto currency exchange, but with a catch,
I'm reading another book called
Genetic Algorithms with Python
You can probably already guess where I'm heading.
I feel armed with more knowledge and I feel like this is a really great way to start the New Year off.7 -
I’m an admin of a Facebook page for a small business whose website I built (I don’t personally do anything on the page, I just have admin rights :p). The location is clearly listed on the page, you just have to scroll down a bit on Facebook to see it, just like on every other Facebook page. There is also a link to the website that contains the location. Yet, EVERY WEEK, we get at least one person who sends us a message on Facebook: “where are you located?” Somehow they managed to turn on a computer, sign into Facebook and open a conversation dialog... but to scroll down a bit or visit our website to see the full location is not within their mental capacity. WTF4
-
So Google have come out and confirmed 100% that the Pixel 4 contains project Soli chips and the required radars for touchless gestures....
Need it, need it, need it, need it!!!
Fucking keen to start developing using it even though I'll probably never release anything .-.11 -
https://youtube.com/watch/...
Go to 00:28
Samsung Note 9's commercial background song contains the lyrics "our house is burning"
hmm maybe thats whats gonna happen when you purchase it and it explodes in your face
Note 7 anyone?2 -
moving to cli only because desktop contains distracshiunns.
can someone answer me some questions?
1) where to download a lot of music (hardstyle)
2) how to do project management in vim?
3) how to tmux in multiscreen?
4) how to use github in cli well (ik how it works, but maybe there are some things that are good to knew)
5) is lynx REALLY my only option for browsing the web?
hope my questions can help some fellow ranters, thanks in advance for answering22 -
Fried potatoes with mushrooms.
In Russian, if potatoes was fried with the mushrooms, the word "fried" (жаренная) contains two letters "n".
If potatoes was fried on their own and only then you added mushrooms, the word "fried" (жареная) contains one letter "n".
You can replace frying, mushrooms and potatoes with different things, but as soon as the concept of "processing ingredients together versus independently" persists, the rule applies.11 -
A typical bouba coder:
- thinks a kilobyte contains 1024 bytes
- thinks Object.assign clones an object
- codes in react.js, thinks he knows reactive programming
- “amd is better for games, intel is better for work”
- thinks that the main advantage of ssh is that you don’t need to enter your password manually
- watches porn in incognito mode
- “crapple”
- “uhm, is it immutable?”
- thinks “persistent” means saved to local storage
- thinks designer is an inferior job because “they only draw shapes”
- thinks good accessibility is when the tab key works
- “All non-mechanical keyboards are trash”
- “C is outdated and nobody uses it anymore”
- “Zuck quit uni and now he’s a billionaire, everybody should quit”
- thinks “pointer” is a shape of the cursor53 -
Our company has internal webpage to request software, be it freeware or licensed.
Today, I found there "Software engineering bundle" designated for "software developers and data scientists who require advanced compute and data processing tools".
The software bundle contains PuTTY, 7-zip and Notepad++.6 -
So my pc just decided it doesn't want to run one of my python files no matter what it contains. No errors or anything, just quits as soon as I start it.
WHAT THE FUCK IS GOING ON IT WON'T RUN EVEN IF IT'S EMPTY AND ONLY CONTAINS A PRINT, WHILE THE OTHER FILE WORKS
Edit: I created a new file and pasted the contents and it runs WHAT THE FUCK6 -
Gotta love how the internet remembers everything.
He won't publicly shame the company, but the last commit is named "removed company name", guess what it contains...
https://github.com/krizsoo/...2 -
18 commits later, the unofficial documentation has been ported over to GitBook.
The documentation now lives in a private repo on GitHub which is hooked up to a CI tool to build the book when a commit is pushed.
This will make maintaining the documentation much easier and also allow for collaboration which was previously not possible.
Because this documentation contains some endpoints some of you might not even know about, access is provided on a invite-only basis which is controlled by @dfox.
For new requests, contact @dfox with your name and what you are planning to build.
If you have already created something with the API email me at support@nblackburn.uk with your name and a link and I will send you a invite. -
Working with atlassian products....
Possibility 1
You can either use exactly this one way and only with these specific instructions ...
Which will certainly not work for the project you have.
Possibility 2
There is an feature request which gets ignored for years, someone made a plugin...
But plugin was removed as inactive. :-)
Possibility 3
Atlassian provided in their endless graciousness a plugin.
After hours of deciphering Kotlin / Java code as the documentation is either useless or lacking details...
You did it. You got the REST shit working.
Well.
You just needed a script which wraps the underlying command, parses the commands well defined format like XML with specification.... To a completely gobbled up JSON, that looks like undecipherable shit.
I really hate Atlassian.
https://bitbucket.org/atlassian/...
I just wanted to add code coverage via the REST API by the way.
A really unnecessary and seldomly used future as it seems.
And yeah... The JSON contains a coverage element which contains a semicolon separated key value store, value being a comma separated list of line numbers....4 -
Had a PHP test for a job application yesterday. The test contains nearly 20 questions, most are 2 points. I had to write the answer into a word file and cannot use search engine. I thought I did okay because most of the questions were asking like 'what is php', 'what is isset', etc. which I could answer all of them and pretty confident that I answered correctly but the recruiter contacted back today that I failed...:(
It's my first time applying for a programing job after been working in the field for almost 3 years. Feel so bad.. Feel so unqualified 😥😥7 -
Wtf! I was talking to my SO over the phone about House, the TV series, and now all of a sudden my Instagram explore tab contains photos from House!!6
-
Right, so either Intels CPUID manual is fucking stupid or my qemu CPU has brain cancer in it's fucking silicon head.
x80000004 contains not ascii stuff but x8000003 and x80000002 fucking do.
I'm stranded with two thirds of a CPU brand string.
Fuck6 -
I think I still have a 64MB HDD somewhere on a shelf at my late grandpa's house.
Now they make CPUs with caches of that capacity...
o tempora..
EDIT:
FFS! This CPU cache contains >44 floppy disks! I've never even had that many!!!11 -
Doing browser detection the wrong way, probably dictated by Google marketing policy: any Chromium browser is supported by Google Docs - unless the user agent string contains the "Vivaldi" keyword.
"Issues" like this made the Vivaldi team remove their brand from their default user agent string long ago, effectively hiding the browser's market share in stats, as it will be counted as Google Chrome adding to Chrome's market share.10 -
You realize that the ERP software you use at your company is shit when:
- there is no service-side ERP backend handling requests
- the whole permission system is client-side (!)
- every client directly connects to the MSSQL database with a supervisor user (stored in plain text in a local config file)
- the MSSQL database contains tables with:
- typos
- names like "contract" but then also "contracts"
- mixed german and english words
- the multiple-business-unit implementation uses 4 columns named "Layer 1, Layer 2, Layer 3, Layer 4" in EACH table
- you find out that the ERP software is created with a fucking "software creation tool"
- there is no API, so you have to program one yourself to use for services
Yet, they charge us shit ton of money for their broken ass software.1 -
Me and tech coworker opens office front door. Another coworker starts ranting how he accidentally hit som key combo and started some speech synthesis feature in Windows. Me and tech coworker both declared we had never heard of that feature before.
Ten minutes goes by, then muggle coworker comes by asking for help to turn it off. Tech coworker Googles solution in literally 6 seconds on the phone without even stopping the conversation we had going on when muggle interrupted.
How is it that muggles haven't found out that the Internet contains stuff?! And that it's searchable!!
Gaaaahhh -
suggestion:
by adding nsfw to your tags it should prompt a user that visits your rant with a confirmation screen detailing that this post contains mature content and whether they want to view it or not22 -
Non-techie friend: Does Blu-ray Compact disc will be blue in color or contains blue films ( In India we use blue films to refer porn movies ) ?
Me: :/6 -
+++ Microsoft Genuine Snake Oil: The purest snake oil on the market now contains even less remote code execution vulnerabilities! +++
https://zdnet.com/article/... -
I found out that a major open source project pulled in some of my code for an enhancement I wrote in my own repo. The code was modified some to match the current conventions of the project, but it contains some of my original comments so I know it was based directly off my code. I'm not entirely sure how to feel. On one hand I'm super stoked to know that the maintainers of the project actually looked at my code and included it. On the other, I'm a little bummed they didn't credit me or at least give me a little shout out...2
-
JS method names I still can't remember, even after 6 years of writing in it:
append is called concat,
any is called some,
all is called every,
contains is called includes
I always have to pause for a good long while or look it up when I need to use any of these is annoying, but my brain refuses to adapt to these names.4 -
*Puts the same music in infinite loop through a whole afternoon of coding*
*Gets tired of the music after 2 hours and a half (my playlist contains some dope musics)*
*Removes the infinite loop to let the next music come*
*Head starts to headbang by itself when the next music starts*
*Puts said music to infinite mode*
*Repeat*6 -
One of our clients codebase, once almost completely PHP, now officially contains more JS than PHP code. I don't know if we should celebrate or cry.10
-
I was typing out a command and instinctively pressed tab to see a file list. The directory contains 15k+ files4
-
Warning: This contains spoilers for Silicon Valley S4 E10:
.
.
.
.
.
.
.
.
.
.
.
.
.
At 5:35 Gilfoyle says: "In order to hold that much data we would have to go RAID 0. [...] If we lose even one platter, we lose Melcher's data. Permanently."
But my question is: Why use RAID at all? Just storing the data without RAID would reduce the complexity, and if one disk fails, only the data on that one disk is lost. Also, I doubt speed is a priority at that point, since the whole thing is running on a home broadband connection, which something like a WD Gold data-center-harddrive (200+ MB/s) can easily max out.
Also, wouldn't it be easier to pay the broadband bill out of their own pocket, instead of moving tons of server equipment to Stanford?4 -
That time when one of the npm modules you use gets a patch that contains a breaking change. You fix your code. Then a week later the module patches again and revert the breaking change. :/
-
Oh my fucking god. Austria wants to sell the data of it's citizens to schools, universities museums, and: Companies with enough money. What the fuck?
The data contains shit from the central register of residents, information about name, date of birth, sex/gender, nationality, recidence, health data (!), education, social security/insurance, tax data, E-Card/ELGA Data (system where your doctor visits, prescribed medicines/drugs, all these things, are saved), and other shit.
Welcome to 2018, where you can try as hard as you want to keep your privacy, and then your government sells all the shit you are not able to remove. Fucking bullshit.9 -
My PM wants to take the current website, which really sucks on mobile (one of the worst mobile viewports I have seen) and put in an iOS/Android app.
So basically he wants an iOS/Android app which contains only 1 activity/viewcontroller which contains a webview...
My goodness...
Tried to talk him out of it, but I can't even get him to consider using a hybrid framework.
He doesn't appear to care very much about performance of the app neither does the PM care much about UX.
What the PM does care about is this thing called : ONE CODEBASE.
Any tips how I can try to persuade him to atleast consider a hybrid framework? Any requirements that will force the PM to abandon this stupid idea are extremly welcome!14 -
Tonight, I gave birth to my first fully functional and deployment-ready dockerized application, "lestadium_web_1"!!
The big baby contains a Laravel showcase website with some React already in production! Big bonus with that, it's connected to a database, and I managed to setup some environment variables so nothing too dangerous is built within the image!
Fuck, that was exhausting but I'm so happy to finally understand how to make my stuff work, how they work and how to find some examples to get inspired from 😍4 -
This moment you find a library/software on GitHub which actually does exactly what you looked for/tried to implement by yourself... Then you notice the last commit was in 2010 and there are 3000 open issues... Not a single one contains a response... the typical github repository...5
-
So I just had a bit of a shower thought. Suppose you could get the linguists to break a language down and define all the rules that make up that language as if it were a protocol - exceptions included. If you get an arbitrary string of text, could you match against those rules, then break that down to the information it contains, and use that information against a new rule set to construct a new valid sentence containing the same information. Would you just have made the ultimate translator?16
-
There is a constructed language called Tokipona. It was made to be the easiest language, and it only contains like 137 words or so.
This language is a perfect demonstration of “expressivity”. Tokipona is not very expressive. Before you know it, your sentence is obscenely long, and you didn't even convey the full meaning of what you wanted to say.
It's also the case with “easy” programming languages and frameworks. Code quantities rise exponentially, and the more code you have, the more bugs there are. There is no magic. And then you have to debug it. Not so easy, huh?9 -
Ah, the little subtle things we have to iron out as we progress from Junior Developer to Medior Developer.. things like:
- knowing the difference between a carriage return and a line feed (although having worked with analog typewriters helps) and later knowing that Unix-based systems and Windows NT-based systems implement it differently..
- knowing that serialization is important because not all computers interpret data the same way and some computers allocate 4 Bytes for a construct, others 16 Bytes.. and then we get the funkiness of transferring character sets between machines..
- knowing that a whitespace character is not only an actual space (as is known in ASCII as code 32). This one can cause even medior developers a headache, as in: why the fuck does this string function say that "hello I am a duck" and "hello I am a duck" are not the same?! Turns out then in the debugger that when you expand every character in the string you see that string1 contains 32 32 32 32 as usual.. but then string2 contains -96 -96 -96 -96 and you're like.. what the fuck..? Then you know you have to throw \\h regex at it. Haha.
- finalizing our objects and streams (although modern languages do that for us).. otherwise we have to do funky shit like trying to find what's locking a file, which is not so easy to figure out.
- figuring out why something won't work often requires you to not only break down the problem in smaller steps, to use a debugger, but sometimes it's even better to just create a proof of concept, slap some minimal code in there and debug that.. much easier.
- etc.
:)7 -
Firts social hacking ever 😁😁😁
In the bus at the end of the day
Me:(fake phonecall to Bell)ho you offert me a 10go of data per months for 30$ ! Wow
Guy in bus: he call is phone company and give all is Private information in the bus to have a better deal.
Me: poke him and say "you know now i can create accounts on your billing address for free"
Guy: Holy shit man you are right i need to take care.
Me: now change all you password contains what you publicly said.
Me: have a good day 😋3 -
Documenting. Starting Microsoft Word to fill in a preconfigured template. It contains two numbered lists, but the numbering incorrectly continues from the first list to the second. Right-click > numbering > Set Numbering Value > Start new list. Bang! MS Word fucks up the complete formatting, margins, tabs, paragraph spacing... But the list numbering still continues from the first list to the second.
I SO FUCKING HATE MICROSOFT WORD FOR WINDOWS!!!7 -
I've just taken over what seemed like a simple PHP project, but under the hood, I've discovered that it contains 132 CSS and 719 JS files.4
-
Modbus official documentation contains nice layer diagram with texts in Comic Sans?! What year is it? 2000?5
-
Planning for a new personal project using:
Pico Pro Maker Kit
Contains:
1 Pico i.MX7 Dual Development Board
1 camera module
1 5" multi touch display
USB-C cable and connectors
Feel free to suggest me some good IOT project2 -
Legit Apple Interview
There are three boxes, one contains only apples, one contains only oranges, and one contains both apples and oranges. The boxes have been incorrectly labeled such that no label identifies the actual contents of the box it labels. Opening just one box, and without looking in the box, you take out one piece of fruit. By looking at the fruit, how can you immediately label all of the boxes correctly?
Those who got it answer it directly on Saturday/Sunday until then good luck10 -
FUCK YOU AMAZON! Stop telling me my configuration yaml file contains a tab... THE FUCKING FILE DOES NOT EVEN EXIST!
-
Vodafone India is so shit omfg
Run npm install, ERROR json parse error due to ssl exception
Run pip install, again ssl exception
Run gradle build, again ssl exception!!!
Now everytime i gotta make a new project or install a dependency in anything, i have to pray to the blood god that cache contains a valid/uncorrupted package dependency or else ill have to nuke cache and borrow internet from someone else.
Once i port it to some other operator, i am gonna incinerate this mf sim.12 -
Important rule of programming: don't swallow exception and provide details for troubleshooting.
Visual Studio: The project file contains a property value that is not valid.8 -
Devrant feature request: auto delete posts with -2 or worse rating and contains an attached image.
#sickofshittyposts5 -
My friend asked me if "the thing that contains a character" is a bit or a "bite"
He is a hw guy and has an A from ict, HOW CAN HE NOT KNOW THAT5 -
Whenever I go to some major Mastodon server, the explore page contains at least some of the following:
- a post about "rich" people bad
- a post labelling some group of people as "nazis"
- a post promoting some black / lgbt thing
- a post about "left-wing government good, right-wing government bad"
And at least 20% of the posts on the explore page are about how "we" are better than whatever the current negative topic in the media is.18 -
Unlimited power to do anything with any electronic devices.
Every movie contains a developer(hacker).
Can make non dev shut up with neat dev terms.
Completely understand silicon valley and Mr.Robot(non dev do not get the things like github, method, etc.),
And yeah most importantly devRant. -
Why exacly PHP contains "T_PAAMAYIM_NEKUDOTAYIM".
Yes, I googled what that is, I understand message, yet still it strikes me if PHP creator was high that night and later figured T_THE_DOUBLE_COLON_THING_OF_MAGICK is not what he aims for and out of wtf'ness temporarly forgotten english?
And what is your theory on that8 -
Our makefile contains these lines:
bs: build-and-start
build-and-start:
[...]
So `make bs` is our go-to command -
Some days it feels like visual studio is conspiring to break my sanity.
Compile.... 5 errors
Clean & recompile .... 12 errors
Open file that contains the errors
Error report clears all errors ...
Compile .... 12 errors .... But still bloody runs
Stop program .... No errors
Grrrr
Compile .... No errors
For god sake .... Which is it ... Do I have errors or not FFS3 -
Dear @devRant, when a rant contains a link and I click it, it doesn't open in a new tab so when that happens, I have to click back on the browser which is not fun.
Can you please open the links in a blank tab.
Thank you :-*9 -
I would like to present new super API which I have "pleasure" to work with. Documentation (very poor written in *.docx without list of contents) says that communication is json <-> json which is not entirely true. I have to post request as x-www-form with one field which contains data encoded as json.
Response is json but they set Content-Type header as text/html and Postman didn't prettify body by default...
I'm attaching screenshot as a evidence.
I can't understand why people don't use frameworks and making other lives harder :-/3 -
Soundcloud used to know how to shuffle your liked tracks. Not it only shuffles the tracks that are in the playlist and the playlist only contains the (literally) visible tracks.
Basically, If you want to shuffle more than 30 songs at once you hace to scroll down for it...3 -
For God's sake why can't you just keep consistency across your fucking files? I have to parse 3 different XML files from the same source where I have "ZipCode", "zipCode" and "Code" for the same thing.
Not to mention that the file that contains all the streets in the country have literally one street node for every motherfucking street. Not one city parent and multiple street children that would make sense and would be faster to parse, but clearly that wasn't your intention you retarded cunt.2 -
I'm trying to build VoIP into my browser-based game, and holy shit are sound processing people bad at explaining stuff.
Every stackoverflow answer has badly named variables, noone names the algorithms they're using (which makes research near impossible), and literally every single Web Audio API pipeline I have seen so far contains at least one unexplained effect with no parameters, but it's a different effect each time.
One guy had implemented some kind of smoothing for catching up with the stream after interruptions (where the playback speed is proportional to how far we're behind the intended latency), without ever mentioning it anywhere. And this is meant to be a basic example!4 -
I suddenly have no regrets leaving LastPass when they were bought out and started to go to shit.
Lastpass now contains several trackers.
https://theregister.com/2021/02/...9 -
Deleted 5 databases out of which 3 of them contains important data. A team is working on a big feature from months on those databases. All of the data is gone.10
-
One of my colleagues just tried to deny a buggy code change was his on the grounds that the new code contains logging and he never uses logging.2
-
We have gotten a rebranding 'document' that we have to implement. It contains 1 image, 4 colors and a new font excluding the font name. Nothing more.
How the fuck did the company pay so much for something so bare bones...2 -
Just came across a site with TERRIBLE CSS and some sort of event handling to block the user from accessing the dev tools.
So in my Chrome, no F12 and no Ctrl+Shift+I.
Well, guess what. The Tools menu in the title bar also contains a link to Developer Tools.
Me: 1 Them: 010 -
A "portal" built on Drupal 7. Started by someone who cannot do anything outside Drupal, and overseen by someone who believes JS to be "low level programming" (he literally said that).
What normally would be a table with 7 columns is instead 7 tables joined together. That goes for each data structure.
Each page, built in a separate module, either manually includes the same css files, or simply copy/pastes them.
Old, legacy modules have been hacked, and now depend on newer modules... Which, in turn, depend on the same old ones.
The theme contains huge, hardcoded parts of logic, so it can never be updated.
Worst part of it? It's only 3 years old. And there are people buying it as SaS. Already hitting bottlenecks at 2k users. -
Create DB connection file in every other place and writing password in all those connection files. 😒👿
Then using grep and sed like a pro to change passwords in one go. 🤷
Scratching their heads as to why the script says DB connection error.... After an hour or so; finding out that the password contains '@' sign it was under double quotes. 🤦 -
Using an api: ok, this url (.../xml/endpoint) gives me an xml-document. Oh, and there is a node whose text contains html markup, interesting.
Using the same endpoint, but requesting json: yep, that's the same data, there even is this big html string and... why is this string in a json object wrapped inside "<![CDATA[...]]>"?
If i ever see a courtroom from the inside i'll plead insanity.2 -
- Implemented oauth1 - no body hashing
- URL contains credentials in plain text
- Used Azure API management feature as a proxy of the our API, however the documentation was on the our API, thus exposing the API URL with no management to developers.
- easy resource DDoSing because each trial user got a DB, the registration process did not have bot checks. You could literally freeze the db instance by spamming registration requests. -
recently i prided myself in my high ability to google stuff but i just blank at this problem:
i have 4 HDDs with my photos on it. They are more or less backups of each other, but not quite. The folder structure is convoluted and i am dreading this task since years. I now want to move to a better backup culture and save the data i really care about.
Problem: i may or may not inserted new photos in some versions of the hdds and not in others. So they are like [Photo1], [Photo2], [Photo3] and [Photo4] but [Photo1] contains a,b and d content, [Photo2] contains a and b but not d, [Photo3] contains c.
Now i would like a program that just takes hashes of all files present and compares them and finds differences among those 4 folders so i can combine them in each other. Additional problem points for a being in a different subfolder on [Photo1] as in [Photo2]
Its probably some backup software that can that, but i dont know which one.
Whelp?12 -
+1 if you are interested in Augmented Reality technologies, have some presentations and assignments made and you are writing your Master thesis for Augmented Reality only to find yourself working for a company that wants from you to update somehow a project with 5 years old code written from some secret antisocial society that hates readability and you as a developer and a human being and wants from you to somehow understand why they call C# method only to return a string that contains all the html tags but no data and then insert the data in JavaScript splitting the same string.
Come on, give me a break! I m still trying, though I still haven't found where exactly the program learns the data to insert or it just knows (no questions asked)...6 -
We had to add licensing to a program of us. In the end we chose a small java-library for that and i wrote a convenience script that creates a valid license.
But the script got its input from static strings and that was its doom.
My boss cloned the repo with the script (and jars), replaced the strings with real world data and pushed.
For his conveinience, because there were several clients, he copied the data-section, commented out the first one and put another data into the second section. This happened a few times and HE PUSHED AGAIN.
Now this repository contains a fine record of everyones licenses and their passwords. I know it shouldn't bother me, but it still gets my eye twitching, just like md5-hashing on passwords (which actually happens on that licensed project)2 -
So, I joined a hardware company as a software developer few months back. I'm working on a c++ code base with thousands of files and no idea what the code is supposed to do.
I got one overview of what the product is supposed to do, which contains mostly electrical engineering jargon that I have no clue about.
Now my manager wants me fix a bug in this code. I have no clue what the expected behaviour is and no documentation whatsoever, and literally no one in the entire country who understands the code.4 -
Now that I am on vacation I realise that there was a period of 3 months this year in which I didn't talk to any female at all except for my mom and sister, just because there are almosy no girls that study software engineering... What the fuck is happening here? Could we please make SE more attractive for women? Its not just that I would like to flirt with women, I think that having women around would improve a great deal of things. For instance, I think that a group dynamic is a lot better if the group contains women.
How do you think we can make software development more appealing to women?6 -
Lmfao, in a book teaching Java, there's a chapter that contains a class called AddMeth to illustrate adding a method to a class.
They could have used a better name, though..7 -
Hey guys and girls, quick question.
Im currently writing my own collection-framework in Go.
It has a Collection-Interface, that looks like this:
Clear()
Size() int
ToSlice() []interface{}
Add(...interface{}) error
Remove(...interface{}) error
Contains(...interface{}) (bool, error)
The library should also contains stuff like stacks and queues, so datastructures, that dont fit that interface perfectly.
So should i write a weird implementation of the interface for them, like Remove for stacks (high pitched internal screaming), or should i just say fuck it, and dont implement the Collection-Interface for these specific types ?3 -
Coworker pushed some changes and gave me good reason to rant.
Here's my story:
I start implementing a new feature, senior reviews it and suggest some changes, which are actually good ideas. I continue developing and implement the suggested changes.
The next day, senior keeps working on outdated source and makes similar changes like i did on the day before. Just pushes it anyway and breaks fucking everything.
The api now contains redundant information.
My classes still exist, but aren't used anymore. Let's keep some redundant code in the project, because deleting it is so much work.
All the unit tests broke, but he just commented them out, so everything is green again. We have now 0 tests which actually do something in the project, but at least the build is green...1 -
This crazy guy who created SunVox synth released a single C file that contains a long note sequence AND the synth code itself, with echo and shit, no deps other than SDL to output audio, so you basically compile a single C file, and it PLAYS REAL MUSIC
HOOOOOW
https://github.com/pixicoder/PS
https://youtube.com/watch/...22 -
So here I am trying to understand the database schema in order to write a REST interface. Then I find that one of the tables contains an id and a name columns but the name is Integer not a string!
I contacted the developer who gladly explained that it was easier for them to store the ids in the database but the actual names strings were hard coded in the source files so they can handle translations! -
Have you ever thought to send a security code to the email the user put in the sign up form just to say him later "the password must contains at least 8 characters, etc." and ask him to fill the form again from scratch?
Who is so dumb to put the input check in this order? Honeywell.
- The email is correct?
- Ok, send a code and ask to confirm it
- The password meets the requirements?
- No, ask to confirm the email again just for fun.
I'll just ignore the waste of server resources to send N * Number of users emails for no reason.2 -
So in our last retros some of my colleagues suggested to (forced) limit the number of lines per method in order to "maximize our code quality".
In the one hand I can see the benefits of this, such as easier testability when having more sperate testable blocks of logic.
But on the other side their code contains lots of such one or two lines private methods which get most of the cases not more than one time called. (And which I then can't even test separately)
I don't understand how this should help...
Is this really a thing? Am I just not "clean" enough?
(it's c# btw)3 -
DO NOT, i repeat, DO NOT USE "scapy.all" in python3.
I spend hours figuring this one out. In one commit i added tests and other tests not connected to my tests started failing. I ran the tests several times and also checked the rng-states, but everything was the same as on the commit before...
There was one additional error message i decided to check out, which was the result of "import scapy.all" (that's a module that contains all the scapy-exports). I removed that import and used the right packages and suddenly: all tests passed.
Fuck this inconsistent piece of crapware that has its python2-files in the pip3-repo and gave me that hell to debug.2 -
Ever had to work with a Web backend, which is written in C++, has 30000 lines of code and is contains php, JQUERY, HTML as well as a desktop UI? I have to do that right now. Now, I am not the most experienced dev with Web stuff but this is fucking ridiculous.2
-
ARRAY LIKE OBJECTS
Long story short, i am fiddling a bit around with javascripts, a json object a php script created and encountered "array-like" objects. I tried to use .forEach and discovered it doesnt work on those.
Easy easy, there is always Array.from()..just..it doesnt work, well it does work for one subset called ['data'] which contains the actual rows i generate a table from, but for the ['meta'] part of the json object it just returns a length 0 object..me no understanderino
at least something cheered me up when researching, it was an article with the quote: "Finally, the spread operator. It’s a fantastic way to convert Array-like objects into honest-to-God arrays."
I like honest-to-God arrays..or in my case honest to Fortuna..doesnt solve my problem though2 -
Our company has a giant folder that you have to download every release. It contains all of the dependencies within the company and every config file.
Twice a month your workspace gets fucked...BECAUSE THESE FUCKING GENIUSES CANNOT USE FUCKING MAVEN! What the fuck?! What idiot came up with this stupid idea?1 -
!rant but kinda
Rails 7 got rid of webpack and Node as a requirement, and for this I am super happy. I heavily disliked having to depend on Node for what is in fact a Ruby framework. I understood the need for it, and I always applaud Rails for being at the forefront of the web dev world and all of the trends that it contains. But maintaining both the node modules required, plus the gemfiles etc was just a big hassle for the simple projects I ever worked on.
This is coming from someone that actually likes JS and Node, but I am thankful this was decoupled.6 -
Reminder: if you were tasked with breaking down a work item/story, and your breakdown involved so much incorrect, outdated, and downright incomprehensible gibberish that, when you were approached by another dev, you had to rewrite the whole thing -- after rewriting it into a form that includes almost none of the original and still contains errors and omissions, you do not get to announce to everyone that you were 'helping' said dev to 'understand'. If you do this you are not some machevellian linguistic genius, you are just an asshole who is going to get found out for your bullshit sooner or later.7
-
Yay, I just finished the first stable-version of my configuration-manager wento. (Its only for nix-like OSes)
If you want to try it (or to break it),
You can find it on
https://github.com/thosebeans/wento
(For Linux x64, the latest release contains a binary-version, for other eg. BSD,GNU..., you have to compile it yourself) -
When you have to make a website responsive and you don't have access to the main CSS file, every single line of css you write contains
"!important".9 -
Frontend using async calls same way as sync to load json config which contains backend api url. To make calls to backend API and sometimes file is not loaded before they call Api. This results to calling on current domain instead on domain from json file. Moreover, blaming that be is returning incorrect response.2
-
- My C++ only, Visual Studio 2017 needs to update.
-"sure why not"
- The update needs to download 1.84 GB.
- huh, maybe i can take advantage and uninstall the Node.js tools i don't need anymore (VS Code does better job)
- Now the update + uninstall needs 2.05GB to download.
- The update also contains ASP.NET crap, i don't even have installed the web tools or neither the .NET development platform!.
What?. -
Today, carrying my dinner to a table in our universities cafeteria, I passed by the table of a professor. He had a book on his table titled "Hacking Handbook". It contains chapters on httrack, ping, port scans and the like (I checked that on Amazon).
The professor drank a coffee, then got up to get some food. His table was directly next to the wall separating the food corner from the tables. He stayed away from his computer for two or three minutes. Both table and computer where totally out of his field of vision during that time. His computer was not locked and Outlook was open.
The professor teaches IT security.5 -
when github autocorrects my pull request message that contains the word splunk.
(or when devrant also decides to) -
rant == false && help == true
I usually don't like posting non rant stuff here but I need help.
How do you usually design your service communication class?
I am working on a mobile app which contains talking to a REST service, I usually put all network calls in one class. Down side if it becomes a big class it becomes a pain to maintain. Any thoughts?
For a backend service I usually go with Repository design and it is working out well for me. But for mobile Apps I'd like to see if there is a better approach4 -
ChatGPT, Copilot, React, how to make a link in a frontend website?
To create a link in a frontend website, create a span, a div, or a paragraph that contains the link text. In your JavaScript web app, add an event listener to that element that opens the link on click. If you want to claim you're accessible, add an aria-role to the clickable element. To make debugging harder and only possible for the real arcane experts, let your framework generate generic ids and class name hashes for styling and event handling, like "item_09fcfck" or "elementor_element_foo_bar". Avoid, at all price, to use an a href element!2 -
So a front-end that:
- Contains duplicate data in the same page
- Does not adjust itself well with content that's not lorem ipsum
- Only looks aligned properly on one screen size
- Contains sections that I have no idea what to feed from my backend
k I can be a full-stack dev too. ty front-end guy. -
I sent a recruiter my CV as a PDF file. They replied that they need it as a Word document. They must be joking, right? I always use my website's reader view to generate an updated CV by saving it as a PDF which contains text and images in accessible format. So it can't be hard to convert to Word?
I just installed Microsoft Edge on Linux, because I heard that Edge can save websites as Word documents. It can't. At least not on Linux, using the print or the save as dialog.
I don't even know what to tag this rant. Those people must be making fun of me. What are they supposed to do with a fucking Microsoft Word document? Make sure that the layout gets broken and the content truncated when forwarding it internally?9 -
The more I use snaps on Linux, the more I feel like we came the full circle. Installable package (snap) contains a bundle of all dependencies, and installs them in an isolated system path to avoid version incompatibilities. Snaps can can have some sort of install-time configuration, and they create links to a handful of entry points rather than adding all executables to the path. In short, they do the exact same thing Windows installers have been doing for the past 30 years.18
-
Why do these e-marketing companies always have some kind of manager/consultant/strategist/marketeer/whatever to handle emails between me and their devs. Instead of emailing with another technical person and quickly fixing the problem I end up sending one billion emails to someone who has no clue on what needs to be done to fix te problem. From now on my emails contains a part called "to your developer:" explaining the technical part of the email.
And no - I don't want to plan a conference call... just let me code dammit! -
A customer specialising in identification and security solutions called today, claiming "they" found malware on their website. Then they provided a weird link to some shady malware scanner, and the "malware" turned to be a <noscript> tag which adds ?noscript to the page url, so we can serve no-JS optimised content. As a bonus, the scanner only detected it on two URLs, even though every single page on the site contains that same line of code.
Joke's on them, have fun paying for priority support outside of the business hours for nothing.2 -
A puzzle for you guys(not my invention, so contains bugs):
If a 5-hour candle and a 6-hour candle were lit at the same time, how much time would have to pass before one candle is five times longer than the other?7 -
Customer's idea of checking if hotel delivery is available:
IF ("Location name" CONTAINS "hotel delivery") THEN ...
Note it's a multilanguage site, so location name could be in either of about 30 languages...3 -
Trying to actually use tailwindcss makes me start hating it already. Instead of just adding a CSS style that I know without looking up, I have to look up the documentation to find a tailwind class name that contains the styles that I want to use. I still think it is great for beginners, but otherwise we have to learn two languages (CSS and TailwindCSS) instead of one now?2
-
A junior Dev was assigned a particular task where he is expected to come up with the command to run inside the system. He came up with the commands. I being a senior Dev and who has access to run the command on the pod did it after verifying it. I ran the command with screen sharing it to the junior Dev for him to learn. Now manager asked him to document the steps. I found that the doc contains screenshots from our call. My screens exactly.
Now my question is, I'm feeling that he should have asked or informed before taking a screenshot of my screen? Is this feeling normal?6 -
Is it asking too much that a state agency use any kind of naming convention in their data management? I've come across about 7 different column names that all contain a value representing the number of students. Trying to decide whether I should send a deluge of tickets at their help system by submitting a ticket for every single row that contains any type of error.1
-
I want to read a good Software Engineering book. A modern one, which contains new agile approaches, useful diagrams, etc. Not the classical, not so useful, class diagram.
What do you recommend? I'm currently more into web and mobile apps, and I want to be able to describe my backend and frontend with useful diagrams which describe better to users and other developers my desired design. -
My maths book contains some nice stuff too not just good old boring stuff... But god damn killer bunnies too who will kill you with a right angled triangle.
-
How do you define a app's nationality?
Right now India is banning Chinese app due to India-China border issue.
So how do you define? Based on the company location? Their developers location ? If a software contains a open source Chinese package, do you consider it's a Chinese app?
What about the case of PUBG mobile. The mobile version to publish by Tencent, so is it a Chinese app?8 -
Saw a git repo that contains the node_modules folder and some dependencies and was wondering how'd fuck did this guy get this up here.... Mehn some devs can be super powerful(funny)
-
Gmail > create new rule > Subject contains "Privacy Policy" > move to [Privacy Policy BS]
Hooray! I was going fucking mental from the daily Privacy Policy e-mails. Computaas help us. -
This internal api is killing me. Why the fuck do people return an array of numbers inside a field that has a generic name such as `icons` to convey information such as "hasOptionFooIncluded". Because of course then icons contains '6'. Yet if both 6 and 4 are in there, it means something else. Needless to say there is no documentation whatsoever what each number or group of numbers actually means so I have to ask around to find out what numbers means what in order to wrap that call away into something maintainable. Because the API is deprecated and we don't want to fix shit in there. We just create other shit depending on this crappile. :/
Stop using magic numbers. Just stawp it! -
The database column contains values, yet there is nothing in the code that inserts or updates the values in that column.
I'm not sure if the original author of this program wrote bad code or was some kind of malicious wizard. What I do know is that it scares me.5 -
Fun fact: if your tweet contains the word “Mastodon”, it will be automatically marked as sensitive content.
https://mas.to/@TimH/...13 -
I just noticed the code in the docs of Vue.js contains no semicolons... I literally can't find a single semicolon in their code :O2
-
The 'Not Junk' menu in Outlook contains 'not junk' (as expected) and what...?! Nice one, Microsoft!1
-
Dum acts, Every hacker scene in movies screen contains htop and cmatrix, even sometimes 'sudo apt update && upgrade ' is enough .3
-
In South Park, Eric bought a bottle of double diet Mountain Dew. The double Mountain Dew contains double the sugar, and the diet contains half the sugar.
I just like Eric, bought ryzen 7 2700 for lower power rating, and then over clock it🤦♂️ -
I have to go through roughly 700 data entries and adjust the system's data accordingly ... by hand.😑
We don't have the tools to automate this reliably, the only available tool, tells you that an error occured and what happened but not where. That would've been kinda helpful...
The problem is that the respective data object of the data entry often contains a phone number, which has to be in a standardized format ... which it is not. Every number is formatted in like 10 variations!? A dozen different separators like spaces, commas, slashes and hyphens. And it must be edited manually 😖
My solution: built a goddamn chrome extension to format the string on click. Done. Saves a few seconds each time and a lot of headache in future. Of course given the correctness of the extension.4 -
It reaaaally annoys me when my business logic is sound but the data is corrupted.
For example, find duplicates in a HashMap<String>.. but I didn't take into account the input could contain a space either before or after.. so I end up wondering: if a HashMap only contains unique keys, how come the count of items in the map is the same as the count of the input keys?! Well.. spaces were the culprit.
"12345" != "12345 ".. and therefore the Map sees it as two distinct keys..
What an annoying bug.
Lesson learned: 1) Sanitize input first and never trust it. 2) Never make assumptions16 -
Compiled Gentoo after ~5 days.
It's not ever yet though.
My kernel is now 7.3M, and it contains almost everything I need. Even my network drivers (intel) firmware is built-in.
It boots straight off UEFI (default BOOT/bootx64.efi), and
Managed to install X, Waylan (sway!)
Got dvorak programmer's keyboard defaulted.
df -h:
root 4.7G/14G (exact) used
boot 21M/127M (exact) used
var 701M/~5.5G used
AAAAAAAAAAAAAAAARRRRRRRRRRRRRGHHHHHHHHH
Was doing the installation from a Live CD (UEFI) during school hours, with my toughpad not working and no mouse with me. I feel bad for TAB.
I am, at this moment, still compiling...1 -
*job opening says front end web developer*
*technical exam contains questions they used for the back end/web developer position instead of making a separate one for front end*2 -
Hello all,
Just asking for some advice.
Vultr vs Linode vs DigitalOcean
for a website that contains streaming and high traffic which is best for dev start and then maybe deployment?15 -
“20” twenty static code if conditions...
if() {} else if(){} else if(....
with static code contains the different names of some users... and he still thinking that it the best way to do it!!!! -
Don’t commit your terraform state to github please, especially if it contains over 20 API keys for various services, and database master passwords.
Not speaking from experience of having to do some frantic rebasing of someones PR *eye twitch*6 -
A contains() function for a class to check if there was something in a list. I did not know about the if a in list_b python feature, so I resorted in a loop and a bunch of if/elses.
Efficiency = 01 -
Configuring a 3rd party tool that's essential to the project
Manual used by clients to configure it: this file is auto-generated and contains content you have to modify
Official manual: You have to create that file yourself
My manual:
Noose and snooze1 -
If your company starts handing out a book called “What the heck is EOS?”, be afraid. Be very afraid.
It contains analogies like: there’s a table, sometimes seats get rearranged and there’s no seat for you. No seat = you’re getting laid off.
My last company gave out this book. They even sent it to people they had already laid off (but hadn’t reached their last day yet).
EOS = Entrepreneurial Operating System, in case you were wondering6 -
!rant
TL;DR I want to add a vcodec to FFmpeg but don't understand the how or haven't found the right resources yet.
I just learned the very basics recently and thought it is great for some automation.
For now, I want to use it to compress my anime collection. I found a modded version of HEVC (x265) for anime, which I want to include as vcodec. Unfortunately, even after researching it a bit, I don't understand how to do so. Does somebody here know how to do it?
Modded HEVC.
Warning: Readme.me contains anime images
https://github.com/msg7086/...5 -
JP University Bihar publishes it's result online as a PDF document which contains result of 1000+ students.
Also the PDF documents are generally scanned copy of printed document.
What's the point of uploading result online when I can't even use ctrl+f to find a particular roll number.
Better stick to the wall, it will be more convenient.1 -
I am implementing an API. How do I know what to do? Read the docs! Unless... there's none on the website. Asked by email and they could provide a PDF, which contains some graphics which you're free to interpret ...
Machine readable description? Nope.
How do I get to know about updates to the API? *blank stare*4 -
my old game had this flow every time a client places an object:
Client A creates a new generic object, and attaches texture paths (yep, global paths are allowed), and... lua code as strings to it.
Client A sends the entire object list to the server
Server receives it, replaces it's own object list
Server copies the entire object list and sends it to all clients
Client A and Client B both receive the object list and replace their versions.
All clients see that the object contains some code as strings
They compile and store it, and then run every frame. UNSANDBOXED.
any client could make all other ones execute any code and i was proud of my idea! -
Lets take onlyfans system for example. They have fans and creators. How is database models supposed to be structured? Whats the correct way.
1) a User model that contains all users of all roles, but differentiates them by Role ENUM
2) a separate Fan and Creator model, each having their own unique attributes, while each extending an abstract base User model class that has all the common attributes that both models should use
The 1st approach is simple but gets very large and difficult to maintain and view all the attributes cluttered in 1 class. Not to mention how some attributes will never be used for a user who registered as a Fan.
2nd approach is more modular and easier to understand and maintain by knowing exactly what attributes to put for each model. However problems occurs when you try to join tables and stuff start to become overengineered14 -
I understand technical limitations and maintenance burden, but I think Rust could be a lot more ergonomic if the borrow checker was applied to functions that don't reference invalid types even if the rest of the codebase contains type errors. I have 146 lifetime errors, some of them very fundamental to the design of my solution, which I didn't spot because the borrow checker wouldn't run until I fixed all totally unrelated type errors in parts of the project that literally only interact with this one through virtual function calls.1
-
I detest using `indexOf` to check if a string contains a substring so much I could write a rant about it.
Or is there a better way? One google search later: ES6 supports `string.prototype.includes`[1]
So moral of the story: Before ranting and using something, bother to look if it is still a problem. They might have fixed it.
[1] https://developer.mozilla.org/en/...4 -
I was hearing Mary on a Cross by Ghost, while using ChatGPT for some TreeJS bs, and I randomly asked it to provide me the lyrics to the song and it denied it on the basis that it contains offensive lyrics, I found 0 offense on those lyrics, but then again, I am a shitty Catholic (I don't believe in religion but that is the one I was raised on) and we then went on an argument about even if data is "offensive" it should be something that should be provided20
-
I just used a contact form of a local webshop. I couldnt enter my email address because it contains a +.
I contacted them to tell them about this issue and the response was it is because of security reasons. Since when is following specs a security breach? Unless their system is one leak I don't see how its possible.
Am I wrong or did they either lie or have a leak in their system?2 -
Fixed obvious bugs.
Tests started to fail.
All error messages read similarly—“Feature XXX contains an obvious bug blah blah blah. It’s supposed to fail, but it’s not.”
F____!!!!!2 -
Infrastructure as Code is all fun and games until you end up needing asymmetric environments (as in, staging contains different services to production, that kind of thing) for cost-saving reasons...5
-
Not being able to do refactoring on an app that contains 900+ line view controllers because "its not safe to do refactoring before the demo at the end of the month"
F.M.L -
Aah fuckin ubuntu setup,
I made a some free space from windows disk management for Ubuntu setup, afterwards the turned on ubuntu setup, it showed the free disk space as unusable!!!
I did something,i don't remember,and somehow I entirely erased my E:(contains all my media) Drive 🤦. I was also about to erase my D drive ( contains all my dev work and all).Than I stopped and will sort it later.
I always have my media backed-up on mulitple disks hence I didnt lose much. But Why the fuck does Ubuntu show empty space as unusable ?????2 -
AFAS, we use it for hour registration. Takes 7 steps to book my hours and then it crashes because my internet connection dropped in the train. Also nice error messages sometimes... 'one of the lines contains an invalid project/phase combination. And no it doesn't say which one. Damn how hard can it be....
-
Don't you just love those people who sell projects which require months and months of hard work with a due date of two whole fucking months?! And worst of all, they act all fucking surprised when the project is not finished on time and it contains loads of bugs because of lack of testing time. Drives me insane..
-
There's nothing quite like an app force closing for no apparent reason, and no error log info.
Just spent an hour figuring out that one of the device I test on doesn't like linking GLSL shader programs if it contains a loop even know every other devices I've tested on are totally fine with it. 😑 -
Remembering of when I first learnt about the importance of version control.
There I was, working in Visual Studio, laptop unplugged; the laptop suddenly shuts down - battery dead. Not too worried, might just have to rewrite a few lines I had not saved. Restart the machine, open VS, the file I was working on now contains strange characters - totally damaged.
Google for help, find a question on stackoverflow with the same issue (comforting moment). The answer I get:
"First question, why wasn't your code on source control?"4 -
Many small things.
First
I just realized, my phone number contains 1337. 😁
Didn't for a very very long time.🤔
College asked if I killed someone for it. 😉
Second
have a dead lg29ea monitor that I planed to repair.
It shows randomly coloured stripes on the screen and no picture.🤔
Thought it was the controller.
New controller arrived today after I snatched it on eBay.😀
Guess what!
It's not the controller.
Fuuuuck! Son of a didly -
How do I know if there's a module for the problem I'm trying to solve? How do I know if there's a better module that solves the problem in a better way than the module I'm using? After I found the module, how can I use it if npmjs website contains just a skinny example and no explanation? Should I attend an advanced course for each module in repository?
-
well my username contains "bugs" within itself (rvbugs0), will people trust me to develop softwares for them .😓1
-
Hit into NullPointerException on production then I saw this in the source code,
entity.getKey().getValue().contains("a string"):2 -
My code check-in today contains comments like "Last resort methods, never use except explicitly ordered by lead".
Gotta love legacy code hacks... -
Guys how to get engaged in projects that contains lots of files (either source code or other data's).
The size scares me. So I always procrastinate to get involved in it.
Help me guys !!!4 -
GitHub defaults to only allow squash merging feature branches, and suggests that it is "safe" to delete the feature branch that contains all the detailed commit messages at the place where they belong. Losing history, plus creating unnecessary "conflicts" after continuing to work and adding fixes to the same feature branches later.3
-
I am currently creating a module where I have to put data in xls sheet from a given data, which contains date column,.
I have generated the sheet and the respective date column also has the format of Date which is default of Microsoft Excel.
But the big question noew arises that I am not able to sort the data according to the date column, the sorting is not working correctly.
If anyone has ever worked on this please tell!!3 -
At what point are you an expert in C++?
Herb Sutter's talk tilted "Back to Basics" (available on YouTube) contains the message "it's easy to forget that you're an expert" in the context of writing code that utilizes the latest complicated features of a language to squeeze out the last drop of performance.
So what makes someone an expert? Is it just writing production code? Is it groking the entire panel presented by a standards committee member? Is it contributing to the STL? Is it when you can write your own compiler while blindfolded and juggling rubber duckies in under 60 seconds?
What makes a person an expert in any language, for that matter?5 -
> totally disable logging on console
> logging is redirected instead on some 1200 separated files (no, not "log files rotated through 1200 days"; every part of the program has its own log file, and there's 1200 of them)
> still, in all those files, none of them contains MY log; somehow it disappeared
Why some people even chose to become developers will always elude me2 -
I've been working for so long with API integrations and one part of that is security. We perform ssl key exchanges for 2-way verification and a large percent of those partners provides me with their own pkcs12 file which contains their private and public keys! What's the sense of the exchange!? I think they just implement it just to boast that they "know" how ssl works,
-
Email arrives, contains a list of deadlines AND descriptions of new features and changes to portal... all news to me, Really?! All for next month you say? Didn't we just assign a different project to the team? Did we replace the 50% who leave this week yet? no.... Well done project management... Slow clap for you guys.... It's so idiotic I'm not even mad...
-
Can anyone help me in jquery?
I'm doing a loop of trigger which are 13 in count, but every trigger event contains ajax call and what my problem is that it doesn't wait for ajax response and keep hitting trigger until last trigger fires.
so I'm having my ajax response only on last one.
What can I do for this?9 -
Cable/Internet outage. Tried to contact ISP (Mediacom, who are awful)... Reported outage over an hour ago, but no update.
So, I figure it's time to call then...
In support app, selected "Call someone now." Selected sevices. Drop-down for "Tap down arrow for list"... contains the single placeholder "Tap down arrow for list". Plus, of course, you cannot submit the form without making a selection from the list.
Fuck your fucking support app right in the java-hole, Mediacom.
I did not need any more reasons to hate you - you are already at the top of my list, with no one else remotely close behind.3 -
So, there is this one client, who wants a website to be made for his hardware shop, and wants the inventory display and has given me their brochure's PDF and that fucking PDF contains Images and no text and he fucking expects me to write that shit down >:(
Tried all techniques to get text from the brochure , parser , OCR , everything.
None worked.
And the PDF is 100 pages long and I'm dire need of money .
FML :(8 -
Is there a portable DB format like sqlite but stores data like Mongo.
Each record contains key value pairs.
I guess I could install Mongo again... But kinda want to play with the data first. Pulls from a web api
I guess other alternative is to just save the json responses to disk in separate folders and files for now...
And abstract the DB layer behind an interface6 -
Cisco Jabber is a load of shit. I don't really know how to get chat logs with people I haven't added to contacts from the UI. So I just open the SQLite database it saves locally to read. Every single IM entry contains a ton of HTML/CSS to keep formatting. Who writes software like that!1
-
I have no clue what I just did.
2 months ago I changed my repository name and today when I attempted to pushed an update I realised I had to update my remote key. Which I did.
Now..my repository now contains someone else's repository and my entire code base is non-existent.
Slightly pissed off that I'm now having to redo the entire work again but at same time I'm kinda amused on how I did this.8 -
if you have macos, go to
/System/Library/Image Capture/Devices/VirtualScanner.app/Contents/Resources/simpledoc.pdf
it contains the bitcoin whitepaper. -
When I browsed for a Food Recipes (Especially Indian Food) Dataset, I could not find one (that I could use) online. So, I decided to create one.
The dataset can be found here: https://lnkd.in/djdh9nX
It contains following fields (self-explanatory) - ['RecipeName', 'TranslatedRecipeName', 'Ingredients', 'TranslatedIngredients', 'Prep', 'Cook', 'Total', 'Servings', 'Cuisine', 'Course', 'Diet', 'Instructions', 'TranslatedInstructions']. The datset contains a csv and a xls file. Sometimes, the content in Hindi is not visible in the csv format.
You might be wondering what the columns with the prefix 'Translated' are. So, a lot of entries in the dataset were in Hindi language. To take care of such entries and translating them to English for consistency, I went ahead and used 'googletrans'. It is a python library that implements Google Translate API underneath.
The code for the crawler, cleaning and transformation is on Github (Repo:https://lnkd.in/dYp3sBc) (@kanishk307).
The dataset has been created using Archana's Kitchen Website (https://lnkd.in/d_bCPWV). It is a great website and hosts a ton of useful content. You should definitely consider viewing it if you are interested.
#python #dataAnalytics #Crawler #Scraper #dataCleaning #dataTransformation -
!rant
So I decided to collab with a website's maker (who i wont name here) to create something like r/place. (not an exact copy.)
I decided to start by learning their API, and customizing the server later.
I asked the guy for some help, and HOLY SHIT.
Let's start off by this: I had to request a chunk. The response data was in binary. 4 bits meant 1 pixel, so right away, I had to deal with that in my code.
No problem, just decided to use C# instead of JS. (see https://www.devrant.io/rants/547013)
I was finally done after a couple of mental breakdowns, and decided to implement updates.
I needed to use webhooks, and that was completely fine. But when I got "C1FFFF0000CA06" as response (in hex), I seeked some help.
C1 is the operation type: it means that a pixel was updated.
FFFF and 0000 were the chunk coordinates. But remeber: it's a signed integer. Guess what, I had to use Two's compliment. I decided to be a lazy asshole and only check for "00000000" because I was only displaying chunk 0,0.
CA06: This is a weird one. It's 2 bytes, and CA0 contains the X and Y coordinate of the pixel (in the chunk), and 6 contains the new color of the pixel.
I was sent the following code to work with 0xCA06:
color = 0xF & buffer
x = buffer >> 10
y = (buffer >> 4) & 0x3F
So I tried to do it, and it didn't work. I'm not blaming the developer of the server (original dev is reddit) because maybe I screwed up, but which guy will have a night of frustration and debugging?
Me.
P.S.: Dev, if you see this, I'm sorry. This API is way too complicated. I know we need to save bandwith and stuff, but damn.1 -
I've noticed that on the web view of devRant, the notification counter updates in real time.
So I opened up the Inspect Element and checked for any polling related code (Socket.io) or something.
What I found was that this endpoint is called on a loop -> https://devrant.com/api/devrant/...
And the response format contains ->
{
"success": true,
"rants": [],
"settings": {
"notif_state": -1,
"notif_token": ""
},
"set": "64d68f5a7acd4",
"wrw": 376,
"dpp": 0,
"num_notifs": 0,
"unread": {
"total": 0
}
}
I assume `num_notifs` is the notification counter.
So, my question is is this practice good for implementing real time notifications?3 -
JsonLint ParsingException "composer.json does not contain valid JSON" is an incorrect statement. The file contains 99% valid JSON except for 1 incorrect character which is correctly pointed out as an "Invalid string, it appears you have an unescaped backslash at: \-dev".
And why do people in tutorials keep calling it "Jay's on" instead of "Jason" like "Jackson"? I can only imagine what they would call the "King of Pop" musician ... "my cal Jack's Onn"?6 -
Found a JavaScript string that contains HTML, posts via Ajax just to be echoed back to the client to build HTML based on the returned value. As HTML. Not my code but made me lol1
-
You could use /\D+/.test('498934') == false to check if a string contains only digits. That statement will result to true. /\D+/.test('oijwei3') == false will result to false since the the test argument has letters in them.4
-
old MATLAB versions are such a pain
I can't even check if a char array (sort of a string) contains another char array.
MATLAB is like a sports car for mathematics, but a broken wheel chair for actual programming...... -
I was thinking about linux and it's security.
Many are sayin that do not require an antivirus. BUT
What if you install wine (3.0) .
And after that install a software (.exe) that contains malware. What about that!
I was thinking today, it would get inffected?2 -
Fucking translation service!! (Wordreference)
This morning I got the usual gdpr thingy and I thought "ok let's have a look what this translation service is doing"
You damn bitch that fucking list contains dozens and dozens of rows and I have to fucking manually disable them one by one.
What the hell, did you hire a monkey to code this stuff you utterly incompetent company? I'm never gonna you this thing again4 -
I requested an response from an Json api, the documenting and example showed perfect json as soon as I request it my self I get an array with Json in it.
What fucking logic is it to left your Json api with an array that contains the fucking Json took me way to long to debug that shit.1 -
PrestaShop irony:
* Theirs modules have >3500 lines per class (eg. blocklayered.php)
* Theirs controllers have > 5000 lines and contains a LOT of html code inside
AND when I tried to add own module to theirs addons store they declined it because:
* I had unused $key var in foreach and this is "bad practice" as I was told
* In one hook I was returning 1 line of html code (i had to add global Js var) and they told me that I should put it into separate template file
-.-'2 -
class post
{
public string type = "question";
public string info =
"I made a Notification Drawer for pc. It checks a file every 0.01 second. If that file contains a specific line of code, the notification drawer shows a notification. This way I can make other programs to be able to send notifications.";
public string question = "Is there an easier / better way to make 2 or more programs communicate?"
}8 -
My colleague:
Working in this job double as long as me.
Also my colleague:
isSafari = navigator.userAgent.indexOf("Safari") > -1 (pro tip: almost any browser but Firefox contains Safari in it's user agent, because browsers lie)
Also wasn't able to check if autoplaying a video fails. It's not my primary department, I'm just helping fixing bugs there. They really need an employee with knowledge and experience. The last and only one got fired, so...4 -
This "binaryextensions" NPM package is a fraud (not to be confused with "binary-extensions"!): https://npmjs.com/package/...; it contains a single JSON array of purportedly "all binary extensions", reaches 700k downloads a week, yet only lists 13 binary extensions (https://github.com/bevry/...).
This is a huge danger to security, especially if it's being used in production environments for input checking. For comparison, here is a much more robust version of a repo with the same goal (https://github.com/sindresorhus/...)1 -
Reworking old java apps. Holy shit im gratefull i can use spring boot.
But this code is handsdown awfull. Every file contains more ifs than other words. upto 6 layers deep. Thank god its at least properly commented.
But seriously how did this shit ever pass any QA. All legacy apps around here are a massive pile of if statements.1 -
Can someone please explain me why the fuck the following doesn't work in C#?
Dictionary<string,object> mex=Json.Deserialize(data.ToString())as Dictionary<string,object>;
if(mex.ContainsKey("sessionId") && mex["sessionId"].ToString()!=tkn.GetSessionID())
the previous condition is NEVER true, but the following:
Dictionary<string,object> mex=Json.Deserialize(data.ToString())as Dictionary<string,object>;
if(mex.ContainsKey("sessionId") && mex["sessionId"]!=tkn.GetSessionID())
will actually work as expected.
tkn.GetSessionID() returns a string, of course
and mex["sessionId"] is always an object that contains a string in form of a number, like 152, 552, 6246 and so on and no, it won't ever contain any blank or other character
Fuck this fucking shit from C#8 -
I have a side project which contains very simple data (a URL and a list of strings associated with that URL). I would like a way to automatically generate a webpage for each of those links (I believe the right term is template ?). Does anyone have any suggestions? Is this something like Next.js or Gatsby would be used for? I can provide more info if I’m not clear enough8
-
And here comes the next solution ...
exec("wget ".$foo." > /dev/null 2>&1 &");
$foo contains data from the users query ...1 -
Lifts are the need required by our present society for the simple access of merchandise and enterprises by the organizations for the innovation. It contains the exchange of products just as individuals for the few purposes. The fundamental sorts of lifts for the utilization are Passenger lift, Home Elevator in Ajman, Hospital Elevator, Cargo lift in UAE and so forth by the lift organizations in Ajman for the enormous exchange components to little things. So it requires unique support for the ideal use by the customers.
http://alnaselevator.com/passengers...1 -
I’ve made a list of things I want to learn. Languages, frameworks, etc and i don’t really have too many things on the list that way I can learn them well.
I’ve been struggling with this choice because I’m honestly not sure whether or not I should consider Rust to be on the list.
I like the modern features it contains, and I don’t mind the syntax.
I don’t like it’s way of memory management, I’ve heard it’s performance can be very lacking, and I’ve heard a lot of negative things about the compiler and the efficiency of the language (although I feel like efficiency comes down to the person and how the code is written)
So please redpill me on Rust and try to convince me to add it to my list because it’s close.2 -
Anyone herr tried API Platform?
I know I know. Generic ass name but that is what the framework is called.
Its in php, it contains a lot of goodies from(try and guess...no?? Ok I'll tell ya) the Symfony platform(go figure right) so if you are familiar with Laravel or well....Symfony then I guess that you will be good to go. I ain't...so fuck me because I only know Laravel.
Either way the concepts are very simple. Configs is donde almost entirely with YAML, i dunno how to feel about that, not used at writing routes on yaml, but the framework is thus far quite powerful. About to test jwt auth so wish me luck!4 -
Lost about 4 days debugging bug about date conversion between frontend to backend as an api request.
This shit is mad fucking annoying
The date format was always wrong.
So i gotta ask. Is it better to always have date fields as a Long which contains just a huge number that represents a timestamp, and that way whenever i want to see what date it is i would have to convert it every time on both frontend and backend from timestamp into LocalDateTime, or is it better to keep it as Date/LocalDateTime and not string/long, and that way risk fucking up the date format?
How is it done in real world projects? Whats the right way to do it and why?3 -
Junior frontend here, I really fucked up with SCSS nesting. It's a nightmare to go back and maintain or extend the UI. I really should go back and sort this shit out. Some parts of the hierarchy even contains pointers which I phased out long ago, but somehow it still works.
Let this be a lesson. -_-5 -
THIS is powering the internet:
"[...] was a protocol number, similar to the third argument to socket today. Specifying this structure was the only way to specify the protocol family. Therefore, in this early system the PF_ values were used as structure tags to specify the protocol family in the sockproto structure, and the AF values were used as structure tags to specify the address family in the socket address structures. The sockproto structure is still in 44BSD (pp. 626-627 of TCPv2) but is only used internally by the kernel. The original definition had the comment "protocol family" for the sp_family member, but this has been changed to "address family" in the 4.4BSD source code. To confuse this difference between the AF_ and PF_ constants even more, the Berkeley kernel data structure that contains the value that is compared to the first argument to socket (the dom family member of the domain structure, p. 187 of TCPv2) has the comment that it contains an AF_ value. But some of the domain structures within the kernel are initialized to the corresponding AF value (p. 192 of TCPv2) while others are initialized to the PF value." Richard Stevens 'Unix network programming' -
I don't know what's happening. In passing a char pointer to a function. I'm having issue, so I'm printf'ing the address pointed to by the pointer. Right after I assign it, it contains the right address, but the printf on the next line has it containing a different address. Another printf shows another different value, but all the following printfs show that third value. They're all consecutive printfs with nothing happening in between in the program, and the char* starts it's life as an array. All compiler optimizations are disabled. I don't know what's happening, it's just randomly changing. 😭2
-
Oh yeah, I wanna rant... What is this awful image compression on DevRant?! A lot of time, images posted by ranters are illegible if they contains text. If we are lucky enough, the ranter will then post an Imgur, else... It would be really great to get an image quality equal to DevRant quality... Please!2
-
Stop screen on a widget test
I have a screen which contains a button,
Pressing the button will
1. call a function showloader() to show progress indicator,
2. then awaits to perform some logic.
3. Then calls function hideLoader() to hide the progress indicator.
My question is how do I perform widget test on loader, the problem is when I do tester.pump() it gives timer error and when I do tester.pumpAndSettle() it will go ahead and call hideLoader() and the indicator gets lost and finder cannot find any widget and test fails?
Is there any way of stopping a screen on execution, so that finder can find a widget?1 -
I wonder if I thought about this before.
Project Buildbox ?
A project that contains a very large selection of popular source bases, and everytime a major lib or component is updated or compiler, it tries to compile all of them and run unit tests on their code ?
I FUCKING DID ALREADY FUCK YOU ALL !
THIS WAS A GOOD GODDAMN IDEA !!!1 -
I have a directory "output" in my express project which contains some pngs and I want that every user can download the content of the "output" directory into their local machine can anybody tell me how I do this using nodejs?5
-
Is it me or DBeaver is plain shit and not-so-robust on importing to csv?
In a table that contains bizzare character as: " & + / ( ) ;5 -
Hey everyone! I need your help!
So I am working on a game engine thingy called Polita. Now I want to import Polita's core module (`polita/polita.py`) into the `test/simple.py`, which contains a simple test (See the image). But when I tried to run `test/simple.py`, it saids `No module called 'polita'` (See the image) although I have added `__init__.py` to indicate that `polita` is a module.
Any ideas?6 -
Developed module for e-commerce system to batch upload product information from MS Excel document. First test from user & got error stating that comment is too long. Some input contains about 100 whitespace in end...
Then I found that PHP's built-in trim function isn't trimming Japanese whitespace character. 😓😓😓 ... Quick fix for that..
I doubt i'll never become familiar with that Japanese 2-byte character thing 😶 -
I have a Java project at work that now has some library that's using some other library that has a security issue. We have a scan during the TeamCity build that detects it but error message contains the exact library with the issue. But not the one that defined in the pom. So I can't tell from the error which pom dependency needs to be replaced.
Is there a way to get the full dependency tree? -
I use Apache .htaccess to rewrite requests to .git folder to return 404. Why? Because next web told me I'm using git wrong, that they directory contains source control compromising information but I'm too lazy to figure out what to do and--this is the most important part--I don't know what I'm doing.
-
We have a Solaris Computer here and it makes an awesome beep Sound everytime the comandline contains an error. Does anyone Know how to disable it? The open space is going crazy!2