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 - "ir"
-
Reinventing the wheel can be very valuable. Even if you don't create a better wheel, you'll learn a lot about how it works, which can really help you out in the long term.16
-
This is when writing a script that sets up your dev environment pays off...
Having 6 new employees join our startup. The script installs pretty much all dev tools and apps as well as sets up the device management profiles. 😎24 -
Brain: hey kiddo, want to stay home and work on your side project today? I'm feeling good.
Me: fuck yeah finally!
*call in sick.
*open laptop. Tabs and editors already waiting.
*play music, no sound.
*system is all laggy.
*fuck, restart.
*
*Installing windows updates...
*leaves for work.18 -
A couple of years ago, I was working in a computer shop as a "technician", I was 15, first job I ever had.
One day an elderly lady came into the shop, probably 50'ish, she and her whole family "suffered" from electromagnetic radiation, and the mother had the worst suffering. She complained about her TV box that just had died.
I accept the tuner and see it's wrapped with 10 layers of aluminium foil, with a tiny hole for the IR receiver.
The whole box smells like burnt electronics, and the foil gets darker for each layer I unwrap. I try explain to her that the box gets warm and overheated by wrapping it like this, and she's lucky that it didn't catch fire.
I further explain to her that she will not get a new box, because the warranty does not cover _this_. The mother tells me she has to wrap it like this, because she gets headaches when she's watching the news.
She then proceeds to go into a rage mode and gets her whole family into the shop, where all of them starts yelling at me, the younger kids start throwing stuff down from the shelves and touching the TVs with sticky fingers (literally, sticky, like yuck!).
Unsure what to do, boss is in a meeting, and my colleague is busy in the back.
So I calmly tell them that in this building there's 4 wireless networks, 3 wireless phones, high voltage cables run in the wall behind me, there's factory tracks 20 meters behind the building, next door business is an electrician, you're standing in front of wall with 30-40 TVs, 5 HDMI splitters, 3 TV boxes and a Blu-ray player. And they've all been standing in front of them for the last 10 minutes.
They all suddenly feel really sick and run out of the store, never to be seen again. From that day, I decided I'll never work in a shop again, and pursued my dreams to become a developer.
TL;DR: Family is "sensitive" to electromagnetic radiation, almost put burnt down their house because of stupidity, yelled at me. I decided to pursue my dream as a developer.16 -
Pm: Can you make a prototype in 3 weeks?
Me: Sure, but just for the sake of demoing something to the customer. It will take more time for production ready code.
(3 weeks later)
PM (to customer): We can sign you up today and you can use it tomorrow.
Me: 🙄🙄🙄🙄🙄6 -
My experience with Adobe...
(I recently moved to Canada)
Me: I want to give you money. (Tries to pay with Canadian card)
Adobe: Sorry, you have a US account, you must use a US card.
Me: Okay, what are my options to pay with my Canadian card?
Adobe: We have to delete your US account and create a Canadian one.
Me: Okay... Why can't you just switch the country from US to Canada on my account?
Adobe: *bullcrap response*
Me: Okay, delete it and transfer everything.
*Kicks me out of the chat.
*I log back in. Try to reconnect to customer service chat.
Adobe: AdobeID unable to participate in chat.
*I'm 30 minutes into this ordeal
Me: (to myself) I could literally torrent this program in 5 minutes 🤔
Lesson: if a company wants people to not torrent their software make it easier for a willing fucking customer to buy your software!
Since the chat doesn't work anymore, I called customer service and am still on hold.... 😤😤😤
Why does the internet have borders?11 -
Because controlling your AC with your IR cell phone requires getting the phone number of my friend Robert?7
-
Css is most definitely a woman who's mad at you but won't tell you why.
"What's wrong? what did I do? "
"Nothing..."8 -
Fuck fuck fuck. Microsoft is maybe taking over github.
Source: http://businessinsider.com/2-billio...47 -
I'm building a website for a new company and the boss doesn't understand technology at all. says he doesn't want me using any html because it is old and I have to use python because it's a 'hot language.' I try to explain that html is for websites and he replies 'not mine.'19
-
Reviewing coworker's code:
Me: I see you're doing a convoluted sort for every element twice to get your two lists in sync... 😐
CoWorker: Yeah. *straight face, no regrets* That's the only way to do this.
Me:... Uh... No? You can just manage one list with a simple struct and then use the the standard sort.
Coworker: Yeah sure I know. But it'll take time. We don't have time.
Me: *aghast* This is embarrassingly bad code!
Coworker: Don't worry, later on I'll use a hashmap for it. But this needs to be pushed now.
Me: *to myself, no you don't need a hashmap*
Okay, you do you but I can't back you on this. It isn't going to take a lot of time to correct it.
Next day.
Coworker: Hey can you review my code again?
Me: You've made the changes already? *in a bored tone, knowing that they wouldn't have changed shit*
Coworker: No this is a different file. Our manager agrees that we can worry about performance later.
Me: Sure. *😀🔨🔨*
Few weeks pass by:
QA: The operation takes absurdly long time to complete even with the smallest data. Ten minutes for X is unacceptable.
Me: Who would've known? ☺️21 -
I hate how people think that to be a "hacker" or hacking is this special job title. lol. Hacking is just using something in a way in which it was not intended to be used.
So pretty much think ...anal sex.
There. Now many people are "hackers"6 -
My internship at startup:
Dream: Lots of coding
Reality: Maintaining Excel sheets for API functions.😑14 -
QA: Please Look at this Defect.
Me: Okay not a problem!
QA: Thanks
Me: <Starts to look at Defect>
QA: 2 mins later. Do you have an ETA on when it will be fixed?
Me: Not yet, I'm still looking at it.
QA: Do you know what time it can be fixed? I have a deadline.
Me: I don't know what's wrong yet, I can't tell you when it will be fixed if I don't know what's wrong.
QA: Okay. Update Me.
Me: Opens Dev Rant.5 -
Radio Shack store closed near my house. Had a huge fire sale. Electric circuit components were 90% off.
My wife thought I'd gone insane when I got home with two huge bags full of LEDs, resistors, switches, IR sensors, photocells, capacitors, bridge rectifiers, a spare breadboard, a pair of helping hands, etc.
My only regret is that I didn't catch the fire sale in time to grab all their Arduinos.3 -
I... I can up vote a post? Without having at least X points? Psh, this place is way better than Stack Overflow.3
-
Me: *reinstalling windows10 using the recovery disk.
"Your partitions will be reformatted if needed... warnings this, that... Continue?"
Me: do it already!
"Recovering... 1%..."
.
.
"Recovering... 1%..."
.
.
"Sorry cannot recover. We didn't change anything."
Me: *reboot
.
.
.
.
"No bootable drive found"
YOU MOTHERFUCKING LIAR! *throws away the thumb drive with the laptop attached out of spite22 -
I went on an interview was given an algorithm to solve, solved it in 30 mins and they had allocated 20 mins for it. So I guess I suck. I build shit, I don't do algos that often so I'm obviously rusty.
interviewer: so why should we hire you over a CS graduate.
me: cause I can get shit done.
... akward silence
interviewer: what do you mean by that? like html and CSS?
me: as you can see, I have built large scale real-time web apps with React/Redux (the stack they supposedly use and the position they're hiring for!) the knowledge I have is practical, it can't be learned from books, and it can't be learned from a course. Only building, breaking and rebuilding over time will teach you this knowledge. So essentially a CS grad, who hasn't committed the same amount of hours as I have, can't possibly match me. But they probably can better explain the real world applications of using linked lists...and won't have to Google what Pascal's triangle is like I had to....
interviewer: I see. we will be in touch.
lol well I guess they'll be in touch..9 -
That awkward moment when you realise that your machine is doing more learning than you this semester.5
-
So the company I work for had a critical project they needed done in 8 days.
We told our boss it wasn't possible because of the scope of the project but he went on with motivational speeches about how anything is possible. So he hired 12 devs for 8 days.
The scope of the project is already big enough but everyday upper management either add 10 new features, modify 2, or delete some already.
We basically sleep 2 hours a day and today is the last day. 5 minutes ago we just had a meeting that we're supposed to change a core feature. We don't even have a stable system yet and everyone is fucking pissed.13 -
Was asked to make an e-sign system that manipulates PDFs to insert an image and the date at different coordinates on x number of different pages.
200 hours later, it was done. Now I'm the PDF guy2 -
Writing a tic-tac-toe player in Prolog. So much fun solving a problem with only rules and no loop control 😍2
-
My most intense day as a dev was when we had a product announcement day (with 70 engineers from dozens of companies invited) and the night before the app still didn't run all of the way through.
My team and I worked all night and had our first successful run-through at 10am when the announcement presentation and demo was at 1pm. All I can say is that I didn't breath when that demo was running live... But it worked flawlessly.
After that experience I realized that I had enough of non-tech management setting unrealistic deadlines, quit that job, and am now helping to build a startup. It has been so much more fulfilling and now I set the deadlines. 😎7 -
Avicii died. 😞😢
At just 28.
He got me through some tough and grueling times. I still use his tunes while coding. I'm still shocked that he left so early. But he made it count. He might've lived short but he lived large.
I'll miss him. I'm sad that he left so early. But his work will live on. I hope to become as good at programming computers as he was at using them to make music. His music was perfection. RIP.11 -
AI robo revolution 😁joke/meme machine learning tensorflow keras ml opencv ai to overtake humanity soon ai face recognition
-
Oh yeah that shouldn't take too long right? I mean it's just the front end.
No shut your fucking dumb ass mouth up. It will take long. The front end is very complicated, and your stupid fucking ass who couldn't learn to code is in no position to estimate how long it will take. Do us all a favor and stick to the "business" side. Fucking incompetent idiot.
If you're not a programmer, when it comes to estimating how long a task will take. Just shut the fuck up. Just cause you work in this industry does not qualify you to estimate a task. Just shut the fuck up.1 -
I got a magical IR remote!
When i press and hold that button to dim down my RGB LED strip, my Bluetooth speaker turns on!6 -
*Presents finished product to client
Client: We won't pay until you add this new feature that was never in the original specs.
*One week later after adding new feature
Client: Uhh, actually there's something else we want, do that then you get paid.
😬😬😬😬😬😬😬9 -
I got a bug report with a typo in it. The subject read "...action X takes long time thank expected."
The thank is supposed to be "than".
I chuckled and immediately created a snapshot that shows the result of the action and the success message says, "Action successful, thank you for your patience."
I shared it with my team but no one even acknowledged it. 😞2 -
I been seeing spam on devrant lately. It is usually a new account which only have 1 rant (a spam)
Maybe devrant should include some kind of "Are you a developer captcha" which make you fix a bug before creating an account.17 -
It will never stop happening... people who don't know shit about code, assuming some conclusion and giving their opinions on software.3
-
Took me 6+ full days.
The feature does not work. Repro is unknown, so only prod is experiencing the issue.. Which rules out the debugger option. Sometimes there's an entry seen in logs: "java.lang.StringIndexOutOfBoundsException". Nothing more - just that. No stack, no class, no nothing. Is it my code that's buggy? Is it some config? Integration? Unexpected response...? A bug in a lib? Is dimm faulty ir maybe server's shared libs are off?
Turns out I used a closing parentheses instead a closing curly bracket in an error message that's supposed to be interpolated...
String message = "{some-business-rule-related-error-message-key)";
took me 6+ full days... But I found it. Took the rest of that Friday off to walk in a park and enjoy my life :)9 -
> reboots PC
> goes to work
> goes to hang out with friends after work
> comes home 14 hours after rebooting PC
FML... damn thing even has an SSD in ir for crying out loud6 -
To get myself into a better relation with golang, I started working on an electronless, cancer free, cross platform lightweight slack client.
I will be using the Fyne UI lib, and am already in love with it.
So far my mockup UI compiles into a fully portable >20Mb binary. the netcode shouldnt take any more than that, hoping to end up with a ~50Mb project.
TL;DR:
- theres gonna be a lightweight slack client available at one point
- fyne is awesome, get it at https://fyne.io/8 -
I hate the idea of a programmer's day.
I like the logic (256th day) but hate the idea.
It feels full of bullshit. It feels fake.
I guess it had that wannabe impersonator vibe to it that makes me nauseated.
I have similar feelings towards other kinds of such days.7 -
Me: *presenting a demo of tool in office presentation*
Meanwhile an audience is browsing Facebook on his phone...
Me: *Finish demo*
*Said member of audience calmly places his phone on the table.*
Douche: "So can you go over that once more?"
Me: ...3 -
Slapping idiots around.
This needs to be a trend.
---
Actual rant :
I'm sitting in this idiot haven completing my mandatory hours doing nothing. Earlier I would spend this time learning stuff but I'm too fed up to do anything. This place is driving me mad and just today I had to suffer through more madness that is blocking me from resolving a bug.(I don't have the license to run the product I'm supposed to be fixing)
The number of inept idiots is too damn high. I try not to be bothered but I can only try so much.4 -
Over the past week I've been working on a game written in JavaScript (in the browser) which can be played with hand gestures seen by a camera (wanted to use an IR camera but couldn't get one in the time I had). It is the well-know Shell Game!
Blood, sweat and tears went into this because I wrote my code extremely bad so it became a huge clutter.
Will refactor some day, but I'm happy with the result!4 -
Every time I have to recall how to LaTeX, it's a huge pain in the ass. It's like learning to code in Greek (I don't know Greek). Happens every single time (it can be months before I need to use it again).
However.
Every time I finish my creation, I fall in love with LaTeX all over again.5 -
!rant
I made internet radio player with raspberry pi. It uses IR remote controler and also play music from my collection. Pi is really usefull device. So happy.2 -
Don't you just love it when you have to debug someones years old project, who left ages ago and you see1
-
Have IR in your smartphone? You must try this.
Go to the nearest bar or a place where there is a TV show/match going on. Turn the TV off and run :D. (Order pasta run fasta)8 -
Apple app signing and certificates: how do people even circumvent/hack these things? I'm hardly able to do it legit.4
-
'Hey I found a bug in your code, it's probably a typo, see here.'
Me: Oh right, yeah. How stupid of me. Thanks, I'll push it.
'It's okay. You can push it or I can do it too after you push the changes we just discussed. I actually simplified one of your methods.'
Me: You, what... ?
(You crammed multiple lines in a single line with your stupid as fuck, rigid constructs, removing my error handling, loosely coupled service, in the name of simplification?)
' Yeah it's just four lines in a single function now, no need to call the function again and again.'
Me: (No... Just no. This totally undos whatever little I could do to avoid supporting your idiotic object in the first place.)
Oh... okay, we'll see. I'll let you know.
What life.
Life in a company full of ignorant, inflated egos is no joke.
Details:
I created a service that reads a configuration file and returns the configuration. This person needs five entries for his app logic. He collected them in a object. Quite alright. Except that the class prototype is shitty. I, like a normal person, made my service return a value based on input. I was asked to incorporate this awful object so that I can return the five entries together, which is awful because the service is not supposed to know about how the entries are clubbed. It should most certainly not know about the data members of the object!4 -
Family expectations from an engineer in India:
Go fix the ceiling fan, it's very slow these days.
😖1 -
What if - when you want to switch off the light or anything, you are supposed to get electrocuted and die.
But instead, your consciousness switched to an alternate reality and live, and you wouldn't notice.
Jeez..I need to stop watching scifi. I wont look at switched the same again.2 -
Company's HR team has launched a eco drive. As part of the initiative they're asking everyone to use only one tissue paper (among other things) to save trees.
.
.
So they've printed that message on thick glossy papers and pasted them, at least four per washroom among other places.
Okay, I guess.8 -
Went to an interview.
Interviewer said "X language is easy compare to our stack".
The next month, I saw on a job post that they're looking for that X role.
I should buy some sandwich2 -
Brought a stressball into work today (not a devrant one) and it popped within 10 minutes, of course causing more stress.
-
For some reason the backend kept throwing errors when I tried to save a long string containing markdown. Initially I assumed I must be escaping things incorrectly but that all looked fine. Asked the backend guy to take a look.
Turned out that in order to count the number of words they were using a regex, which seems fine, unless you construct the regex out of my string and run that over the word count regex... 🤔 -
What the fuck is wrong with Google?!!
Trying to log into Gmail.
Forgot password.
Gmail: To reset, code from authenticator app is required.
Me: Super. Good thing I set it up.
Enters code.
Gmail: Recovery email.
Me : Uh... Forgot that too.
Gmail: Some email address to communicate.
Me: Super!
Enters some other email address.
Receives mail with a link.
Me: Finally!
Opens link
Gmail: "When did you create your account?"
Me: Uh... If I had that kind of memory, we wouldn't be dancing right now.
.
.
.
Gmail: Sorry we couldn't verify you.
WHAT THE FUCK, GOOGLE?!
What sort of sadist play is this?!
Dropped them a mail to get access back. Got a link in the auto reply that explains how to repeat the above process. WTF?!
What the actual fuck?!10 -
It took me a while to figure out why my systemd timer wasn't working
Ir was missing a line break at the end of the file :(5 -
IT Dept creates an update installer with a Message of "Your computer will restart now to install updates" with only an OK button when your in the middle of work with multiple apps and windows open...
1. Kill Process
2. Resume Work6 -
@Condor did you mention this?
One of my final projects... To connect gas, movement, IR pir and do a all arround protection sistem. I'll build the on-off for the gas difectly in the box for the arduino, it's the easy way, since I can now make an app to control it online.
Sorry forgot the pic20 -
Looking at some new dev tools I spotted this gem:
"If install fails, keep trying to install a few times."
Thanks for the tip!1 -
Student Account Password at the university. No changes the default. It's their DOB and first two letters of the name.
Injection steps:
Open Database ( I am the Placement Representative )
Copy DOB
Paste
Add the first two alphabet
Unlocked3 -
How surprising is it when a person designs code in a very clear and impressive structure and just when you think about asking them for guidance, they reveal themselves to be complete turds?
I've been working with this person's "infra" code, at work. I've rewritten some classes to use their infra. I had a vague idea of how the classes work. I had no idea of how their code works. Expectedly, there were some issues but now only minor ones remain.
I asked them for a description of what I'm supposed to do for the few bugs I'm facing. They replied in such a condescending tone, it made me want to punch them through the screen.
Almost a month later, we're still going back and forth with emails. I've been swallowing it and responding calmly. I never got direct answers. Always deflections to irrelevant things or veiled insults. I took it because they did correct one silly error of mine that actually my code reviewer should've caught. (What's worse is that it got introduced by me just before my review and commit.)
But does that give them the right to insult me in front of the whole team including my project manager? I got a reply today from them with everyone of note in cc implying very clearly that I have not done any work. They highlighted a line from my code with some todo tag (that was not meant for them) to make their invalid point. A line that's unrelated to the bug I asked them about. This is after I proved them wrong when they insisted that I had done something wrong about a feature related to the bug.
If you don't understand what I asked for fucking ask me to ask again. But do not fucking try establish yourself on higher ground by pointing out irrelevant things in my code.
I was shocked and enraged that they'd do such a thing. I double checked everything like a mad man. Despite knowing that the fix has to come from them, I was instantly transported to the noob stage, grasping at straws. I wanted to send a really scathing reply right away but my manager asked me to wait.
My mind is now a see saw shifting between a panicked noob questioning every fucking thing I ever did in my nada life and a hungry enraged monster looking to maul that fucking shithead for burning me like that.1 -
Best: building a compiler in C and using LLVM as an IR tool
Worst: my job, and a group project of 5 people which I ended up working on alone1 -
When it's 20C & sunny and the only thing I have planned during my afternoon is some good 'ol SQL. #liveTheCode4
-
When you have a Database Theory final exam in 2 hours and you're cramming a 1/4 of the module. #uni #student
-
Why do humanity collect things that they will never use? More importantly why do I have many ebook that I will never read?3
-
If anyone looking to start learning blender because of any reason (like being a masochist among others), check out blederguru's tutorials.
The guy is doing God's work. At least animation Gods. Funny, awesome & detailed content. -
YouTube if you want to monopolize the browser at least make it right.
You told me that my browser is not supported and I should "update my browser" and when I click the link , you said4 -
Guys, a company's HR mailed me for a position that requires strong experience of ">3 years in Python with C or C++".
Does it mean Python and C/C++?
Or do they need someone who is using C/C++ to write Python?
I have some experience with adding Python support to C++ code. Does it count? 😁8 -
How many of you wear shades at work?
I started doing it after I faced some problems due to the extremely bright lights. It's such a complicated problem that no one in the management or admin team can do anything about it. 🙄12 -
I will never understand why my university is requiring me to take upper level physics. I understand the need to understand electricity and circuitry but this semester has been mostly quantum and I don't see how this will apply to development.9
-
I met my crush last day, she is a junior from the same college, everything was fine until when she wanted to find a recharge shop to recharge her phone. I opened PayTm(One of the Mobile Wallet here in India) and said I'm doing it.
Her reaction : What ? How ? You can do recharge right away from your phone ! wow !
I lost my interest on her :(
She is BTech Final Year Student
Tragedies2 -
Spending the day sending emails back and forth with your client because they can't be bothered to prepare a single overview of what properties the endpoint expects, and instead expect you to piece it together from 6 PDFs of which at least 2 contain contradicting information, another is outdated, and the last one seems to have been exported from word and is missing half the content.
Fun times! -
Anyone else annoyed by their scumbag brain that is hard to please but gets content easily?
Or is it just me?2 -
Been at it inconsistently for two weeks and a few days now. Hitting approx 30 wpm with dvorak! Starting to slowly integrate it into my daily work. I'm on my way to becoming ambitextrous. 😎8
-
To all fellow Java devs out there. Remember the Java life: "We code hard in the cubicle"
https://youtu.be/b-Cr0EWwaTk -
Started off in College learning the basic Java and C#. That was enough to land my first internship, during that internship I'd go home each night and teach myself whatever I needed to know to get through the next day.
Within a year I became the project lead on an API for my groups application.
1. Fake it till you make it.
2. Act like you've been there before.
3. Never stop learning.1 -
I just have a weird dream.
I am talking to a person and I enter into a dream land for a few minute (I think it a few minute) since I am really tired.
The weird thing is I am still having a conversation with the same person in my dream about the same topic. Now I am awake and that person doesn't notice that I was asleep (Good job my unconsciousness,good job my auto reply system).
Now here is a problem.I cannot distinguish the dream from reality and the detail of the conversation merge together. For instance I don't remember what is the correct price of the item since the price of the item differ from my dream and real world. The price of the item may be 2000 or 1800 , which one is it?
There are also various details which merge together.2 -
2nd post progress of this project https://devrant.com/rants/9985730/...
I went to shop to buy missing ir diode and bluetooth for arduino.
Launched arduino today with ir receiver and I managed to reverse engineer protocol.
Turns out it’s just NEC remote codes.
I used this library https://arduino.cc/reference/en/... to easily send and receive ir signals.
Everything took me whole day cause I’m rookie in hardware.
I can now remote control medion md 19500 using arduino.
Next step is to make it riding itself.
I need to measure speed and turn angle with error rates.
I will probably use pen and paper and let vacuum cleaner draw angle for me and after that I will use the most modern, accurate and cheapest angle measurement tool that is protractor - school welcome back
Speed can be more complicated and need another external complicated tool that is tape measure and a clock.
I also bought second robot because I got this stupid idea to allow people to control robots using internet.2 -
My life was troublesome today, had to help a non programmer to run jar files.
The jar executed well from command line in Windows 10 but didn't work on double click.
Did all the tricks, registry edits, cmd commands and at last I found a miracle tool called Jarfix.
Just double click and all okay.
The root cause of the problem was 7zip.
This bug is reported in the Oracle bug reporting and they have closed it as " Will not fix" low-priority report.2 -
I lose motivation to do anything today.
I don't want to watch movie , I don't want to eat , am I facing a different form of burnout or am I depressed?
I hope I will be feeling better tomorrow.6 -
Coding is like drinking.If you code too much you get muscle pain (hangover) the next day.
I am having a muscle pain but I still want to code.19 -
Still waiting for that confirmation email. Multiple resends and still nothing. My inbox has nothing from devrant. Now I can't ++. I want to ++. Seems like I can't have anything I want at all.
.
.
.
.
That's old. I deleted and created my account again but the rant was still saved so I thought why not start with it.8 -
Some things never change
> Have to deploy only one feature to production
> Create branch from latest tag, cherry pick the correct changes
> Mess up merge
> Almost deploy resulting broken code to production
> Realize at last moment
> Let out a loud sigh, start over
Every damn time.4 -
I've been meaning to sign up on dev.to for a while now.
Finally started the sign up process. They require you to agree to follow their code of conduct which states that they will prioritize empowering the marginalized communities and in order to do that they will *not* act on complaints of reverse-isms. Reverse (sexism | racism), cisphobia, etc.
Am I the only one who thinks that this is wrong? I'm all for empowering people, tolerance and not getting trolled but outrightly rejecting complaints on topics that seem politically incorrect sounds superfluous to me. Am I interpreting something wrong? (I hope I am because in general I find the community to be nice and positive)3 -
We came across a bug that only manifested itself in Edge if, and only if, the developer console was closed. Which we only discovered once it went live since during testing we always had the console open to monitor things... D:2
-
Funnily enough my initial experience with Java at uni dampened my enthusiasm for programming I had harboured as a kid. Discontinued the course and studied something else. Cue three years later; took an elective programming in C and some other coding subjects and fell in love with coding. Ended up writing code for my bachelor thesis, lots of free time coding, teaching the elective I had taken only a year before, and now it's my job and I love it. :)
-
Did I get old or did I just finish plucking all the low hanging fruit?
When I started on a programming journey about a decade ago everything feel exciting and I learn a lot of things per day (variable,loop,method,class,---etc)
Now a decade later I am more concern with the overall system design,algorithms usage (Big O Notation),how reliable the system it,and how the configurations are set up and how easy is it to change them.
I now notice that I don't really learn anything learn new.Everything feel the same.
Want redundancy? Use more server
Want faster performance? Make a parallel system.
Want program to run on low end device? Think about how memory and storage will be used in system.
Is this a stage everyone went through like puberty? or I am just having a mid life crisis?
PS : I haven't even reach 30 yet but I feel too old.4 -
How do you guy (think of) prototype UI?
I have used the pen and paper approach but when you add the interactions such as clicks and animation on the paper,it become messy.
I feel that coding up a full blown front end for prototyping is overkill. Because when you want to prototype the list , you also need to insert the dummy data in order for you see probably clicks and drag animation.11 -
I am fairly convinced coding in a non dark mode editor will slowly ruin your code due to excessive exposure2
-
My office WiFi is freaking fast upto 25mbps, should I download Torrents using it. Is there a possibility that corporate networks are under more surveillance ?7
-
Buy dell, hp, lenovo and any other craptop company out there and fire all the numbnuts working there so that they slowly die of unemployment in the fucking gutters where their useless asses rightly belong. Oh and castrate them too so that they don't reproduce.
I'm considering going full Lannister on them but that might be too harsh.5 -
Scott Meyers.
He's just amazing. The way he thinks, he teaches, is absolutely wonderful. He's inspired me on many occasions.
Herb Sutter.
Absolute beast of a programmer. His guru of the week series is a simple but effective way to communicate concepts and techniques in a language.
There are a lot more - Scott Hanselman, Martin Fowler, Andrew Koenig, Andrei Alexandrescu, Barabara Moo and many more.
They remind me of why I chose programming. It wasn't for money or fame, just to solve puzzles in cool ways. It's the way you can take a simple concept and apply it to great effect that brings me joy and these people do it relentlessly.4 -
I always used to think that Linux + Intel == <3
And here I am, ordering Qualcom and Realtek wifi cards to replace my Intel one.
Fuck you Intel for removing the lar_disable iwlwifi parameter!!!
FTR: https://dev.to/netikras/...10 -
Can We Mark Up This?
I've see this interface and i though this can be seen better with a Mark Up language, like HTML.
So i will send a message about this to improve this app. If You want, do It too.
Sorry, my english isn't very good. Ir You understand my work is made.
And yes, i am a web designer :)2 -
Sending a request to link accounts.
Response: {
errorCode: 200009,
errorMessage: 'Accounts Linked'
}
Wait what? So I checked the docs and this is actually how it is supposed to work... >_<1 -
I bought medion md 19500 vacuum cleaner refurbished for about 74 usd, it can be controlled using ir remote
I disconnected vacuum top and it’s still working so my plan is to use arduino instead of attached remote to control robot
I can try to identify where ir sensor is to directly connect to it, but don’t know if my skills are enough to do it.
edit:
to compare, roomba create 3 costs 450$ and I can buy this vacuum used without remote for 38 usd24 -
I shot myself in the foot again!!
These incident usually happen at restless night.
Some night I become too restless so I do what any programmer would do, I program.
The "novel" idea just come up and I code until I become too tired. I usually finish the prototype of the project before I fell asleep.
I usually found out that I have reinvent the wheel the next morning! Great. My "novel" idea is not too "novel" after all.
It is hard to find the novel project these day since it is too hard to beat the decade of collective intelligence of programmer.8 -
What do you think of online tests (for hiring) with a mandatory webcam?
The webcam part is making me anxious enough to back out.23 -
Worst disturbance? This person who sits behind my back. I've gotten used to them not minding their own business and snooping into mine but to counter that they've taken to distracting me and others all the time.
Sample this incident from just a few moments ago (inspiring the rant).
Me: *debugging while listening to some ambient music channel
Them: *rushes to my desk, putting a hand behind my back
Me: *politely takes off headphones asking, What?
Them: *after peeking at my screen, nvm, I'll tell you later, I have a meeting to go to.
Fucking hell, idiot! It already takes me hours of pushing myself to come to work at this good for nothing place and then actually get to working. Just flush your head in the toilet so you don't take a dump on me with your shitty restlessness.1 -
Weekly drama call 1.
(the number reflects the devrant broadcast count not the actual count).
We work with a remote team and the project manager there just loves to talk. It started as something adorable(?) but it's just plain annoying now. He keeps on talking and talking and talking. We just muted him, had a good laugh and missed nothing. Nobody has any idea when he'll stop.
:/
.
.2 -
Hi. I am new here. I have a question. I have been using window my whole life until now. I want to try linux now. Which one best? And is there any place where i can get all info(installion n all) about it....15
-
It's too late for this but I just realized it so I'm sharing it anyway.
How do I get through tough dev days?
Depending on how tough it is going :
House music
Soundtracks for focus
Soundtracks for action (any Assassins here?)
AC soundtrack with chocolate.6 -
Woke up in the middle of the night, got an idea , write an idea into notebook , went back to sleep.5
-
Last rant update:
I won't have to take a leave after all and won't have to force myself to a wasted day full of useless awkward interactions or roaming around in a park.
Phew! -
Surprised noone has yet preached the amazingness of this font here.
https://tobiasjung.name/profont/15 -
A dedicated team has built an "infrastructure" for creating UI for c++ developers in the company. What looks like a poor attempt at recreating what Microsoft did with XAML at first glance, it actually is a horrible exercise in force feeding people the stinking pile of shit that their code is.
The idea is to make it easy to create UI for developers who aren't used to front end development. They should just need to declare the layout. Very noble.
But.
If you want to do anything more than show a checkbox or a radio button, if you dare to define relationships between the UI controls or worse, if you get ambitious with creating a simple UI that uses a lot of similar controls and similar relationships with dynamic content... be prepared to eat your own barf from eating too much of their shit.
Not only do you now need to write front end code (including JS among others), you need to do it with limited or poor support and you have to make sure that it sits well with the house of moist, crumbly cards the team proudly created. Or resort to some very stupid and performance costing "bypasses" that further cripple your application code. Usually you have to do both of these things.
To think that scores of other teams have welcomed this amazing enhancement with full support without any resistance. It's sickening.
I waste too much of energy (and good jokes!) with these people.rant poor infra complicated as fuck punch holed abstractions we do what we want brain farts materialized in code no brains needed4 -
Pretty recent one. I found that I can use Perl to edit files using a single cmd line (with regex search and replace). Loved it.
-
One of the founders of my startup does not write tests....
Me: we have to all write tests. I explain unit tests, integration, etc.
Him: I do... I have a test that checks if the app crashes or not.
Me: that is not what I meant (writes test because he won’t) 🙄1 -
Is there is an extension in VSCode where the ";" is added (when needed) if the file extension is for the programming language which support ";" ?
I been switching back and forth from the python and C++ and my sub-conscious is killing me.
Now it's a C++ I need a ";" , moment later I am coding in python and python don't need ";" .2 -
Finally I have something decent for my résumé.
I was going through some LaTeX hell before someone started a cv tools discussion. It was good to learn that json cv is a thing. But it was too late for me. LaTeX posed a challenge and I was bored. It became personal.
After a lot of kicking around and landing on XeLaTeX, I finally have a decent layout. I had to compromise a tiny bit but that's on me for having little content.
(I wanted a graphic résumé but I'll need to do more to sufficiently fill a page. Besides I'd need to design icons and shit for it.)
Now it's done and my job hunt can start!3 -
I know it's old but it happened again and I had to waste a few minutes because I couldn't disable the bloody task this time.
But using psexec tools worked.
Guess micro and soft describes their ux team.
Look at the balls on their micro cocks. "Heads up". How dare you scare me like that on *my* fucking machine that I paid for, god dammit.
"We're going to make Windows better...". Can it suck my dick after updating? Because I'd like to choke the retard genes out of it.
The only thing that comes close to it is the fucking swiping keyboard that I'm using to type this rant. -
## Learning k8s
Interesting. So sometimes k8s network goes down. Apparently it's a pitfall that has been logged with vendor but not yet fixed. If on either of the nodes networking service is restarted (i.e. you connect to VPN, plug in an USB wifi dongle, etc..) -- you will lose the flannel.1 interface. As a result you will NOT be able to use kube-dns (because it's unreachable) not will you access ClusterIPs on other nodes. Deleting flannel and allowing it to restart on control place brings it back to operational.
And yet another note.. If you're making a k8s cluster at home and you are planning to control it via your lappy -- DO NOT set up control plane on your lappy :) If you are away from home you'll have a hard time connecting back to your cluster.
A raspberry pi ir perfectly enough for a control place. And when you are away with your lappy, ssh'ing home and setting up a few iptables DNATs will do the trick
netikras@netikras-xps:~/skriptai/bin$ cat fw_kubeadm
#!/bin/bash
FW_LOCAL_IP=127.0.0.15
FW_PORT=6443
FW_PORT_INTERMED=16443
MASTER_IP=192.168.1.15
MASTER_USER=pi
FW_RULE="OUTPUT -d ${MASTER_IP} -p tcp -j DNAT --to-destination ${FW_LOCAL_IP}"
sudo iptables -t nat -A ${FW_RULE}
ssh home -p 4522 -l netikras -tt \
-L ${FW_LOCAL_IP}:${FW_PORT}:${FW_LOCAL_IP}:${FW_PORT_INTERMED} \
ssh ${MASTER_IP} -l ${MASTER_USER} -tt \
-L ${FW_LOCAL_IP}:${FW_PORT_INTERMED}:${FW_LOCAL_IP}:${FW_PORT} \
/bin/bash
# 'echo "Tunnel is open. Disconnect from this SSH session to close the tunnel and remove NAT rules" ; bash'
sudo iptables -t nat -D ${FW_RULE}
And ofc copy control plane's ~/.kube to your lappy :)3 -
Unsure of what path to take as a developer.
I'll be graduating from uni next year and I'll probably go into web dev but I'm not really passionate about it building websites for a living.3 -
Anyone seeing this rant from Sydney? If yes, why is it so hard to get any IT/Dev jobs for an international student? Sucks.
-
It is so frustrating working in a pure waterfall environment. My current work is constantly interrupted by QA and UAT defects. Many of which have nothing to do with my code. But they still require me to stop what I'm doing and research what happened. It's 2:43 and after meetings and research I haven't written a line of code on my current project. Ugh!
-
!rant
Is there anyway to support dev rant using Google Play credits instead of donating "real" money?3 -
I been doing a online course and they provide a exercise to do in Jupyter notebook.
I notice that the exercise they wanted us to do this time is too complex. After finishing the exercise I submit it for review.
I thought I am doing an exercise but I had actually done an assignment and submit it :(
Lucky I pass that assignment. It is the worst misunderstanding I have done during my student life. -
In my company there is a weekly employee benefit that each employee can get. The advantage is not carry over to next week if you don't take it the current week.
There is a junior in my department who is not taking a weekly benefit. I am sure he know about the weekly benefit because I have explain it to him before.
I said to him if he is not taking his portion of weekly benefit , can I take his instead? I explicitly said it to him that he can said "No" if he wanted and he don't need to consider the junior-senior relationship since I was mentoring him.
He said "I can take his portion if I want".
I know I got his permission but he is a quiet and reserved person (nothing wrong with it) , I am a reserved person myself.
I have to initiate a conversation and give him a chance to speak up like "What do you think about ... ? " , "X,do you think it is a good idea to ..." ,
My question is that does my junior give his permission to take him weekly benefit because he is a reserved person and doesn't like to tell "No".
What do you guy think?18 -
Best: rediscovering auto hotkey. It's weird how much it pleases me. 😳
Worst: Oh so many. I've tried to overcome these with varying success rates but there's one that is still a big pain: job.1 -
Trying to debug my program but it only behaves correctly when I run it on debug mode not when I actually run the damn thing :/2
-
Wired's ads to subscribe cover half the page and get annoying so I use the only super power I have to get rid of it.
Good bye "paywall-bar paywall-bar--visible"1 -
I need to add new feature into the program which I wrote years ago so I start digging up the source code. The project is written in a language which I no longer code in.
That code is really poorly written with most of them don't have tests. I also find out that previous self is really a genius since he can keep track of huge project with almost no documentation.
To make matter worst, there are unused components (class,feature) in the source code. "Current me" have a policy of "just adding only a feature you need and remove unused feature" but it seem the "previous me" don't agree with the "current me".
The previous me also have the habit of using writing insane logic. I can remember what particular class and methods is doing but I can't figure out the details.
For example one method only have 5 line of code but it is very hard to figure out what those do.
The saving grace is that he know the important for method signature and using immutable data structure everywhere.
I was under the influence of caffeine and have a constant sleep deprivation at the time (only sleeping about 4 hour every day) so I can't blame him too hard.
I can't blame him too hard, right?
Could someone invent a time machine already? Invent time machine not to save the world but to save the developers from himself.4 -
Best: realizing that development could be a career and switching to it as a major
Worst: first dev job working on a 15 year old legacy visual basic project with over 3 million lines -
I need to write the maintenance document in case I die.
Any idea what to include?
I have written a lot of software which include family business and other business depend on by myself.
I have an idea of adding my git user name and password. Email and social media user name and password.Configuration file/Configuration property. Troubleshooting information.Program overview.5 -
I been looking at the job listing at my country and I can only found the job for web.
What happen to the quality desktop application development?30 -
By looking at the prototypes and technical ideas which I fail to implements due to various reason , I got an idea.
I got an idea to have a kind of grave yard where people can bury their fail prototype and technical ideas and other people can dug them for inspiration or profits.
As the saying goes "One man trash is another man treasure."
I hope this idea of making a grave yard will not be "an actual fail idea"5 -
There's a game called Virtual Beggar. I don't usually like these mindless games but since it was so easy and I wanted to see what jokes the developer has hidden in it, I played it for a few days. I got to a point where you're asked to make the ultimate donation and restart the game. That's apparently asked multiple times in the game. You become a millionaire and then restart. Billionaire, again restart.
That's what I see now when I see people deleting their accounts and returning the next day.1 -
Winning in the chrome dinosaur game means playing without dying till the internet comes back in and it automatically terminates the game screen !!
-
So, I need to figure out what ir protocol a controller board uses. I know how to do it with a remote, but how would I do it with the board? Can I reverse engineer the ir reciver to find it's protocol?10
-
Still wondering what it says about me when I tell my wife it was a good day because no one emailed or pinged me 😁1
-
I am wondering what secure app do you guys use for texting/voice/video.
I know Signal but I am looking for something that uses a username like devrant instead of a phone number.6 -
Just found half a box of these dinosaurs in my desk drawer, right next to a 2003 Digitech Electronic Organizer, a Dell Pocket PC, and a Sega IR 7000. Retro treasure trove ftw!2
-
Today I fought against a monster named as CSS and I sort of won.
I am having a problem in that the grid layout don't work with the scroll bar (overflow)
After hours of trying thing out I remember that I am just creating the prove of concept that the system can actually be build.
I said "Hey this is just a prototype, it doesn't need to be pixel perfect, and finally use height in css".
I really appreciate it if anyone can advise me on less dirty method. Here is the source code
https://jsfiddle.net/rc0f9t5j/
The input box should stay at the button no matter how much text the container have. The fiddle have the intended behavior.4 -
So I'm here after a long break coz my life is shit all over again, and only devRant allows me to rant officially.
I was selected by a recruiter visiting our college in very early days of the campus placements, September last year,
Problem 1:
I wasn't allowed to sit in any of the other recruitment drives by the college, even when I didn't really like the job profile I was in
Problem 2:
The company is taking 12 tests and wants me to work on 3 Projects of bootstrap, rails, and react each, before they give me joining.
Here I am working like an asshole with all frustrations after my college got over to finish the tasks without a penny.
This frustration is only causing more and more delay in my work. -
The moment when your client gives you a Pi Zero and 4 IR transceivers, tells you it worked on Arduino now writes them a driver that bit-bangs them into 4 TTYs.4
-
4 hours later and my code is finally working and as usual it was only one line causing everything but on the bright side I now now how to use mocks and spies
-
I have the misfortune of reading the source code that there are comment on who change what line of code at "actual source file" instead of just using version control.2
-
So anyone think this Viv app (demoed in TechCrunch) is going to be a hit, when Siri and Alexa failed?2
-
Update to my last rant:
I wrote a reply to the person. Not scathing (as I'd have liked it to be) but firm and in a no nonsense way. My manager supported me. My project manager talked with the person to in order to convey what the issue is and to undo any misunderstandings due to written communication (we have different native languages).
I have not received a reply but my project manager told me that they are analyzing the problem now. I was also told that they are not a bad person. ^^
I think I'd like to believe that. We all make mistakes after all. -
I wanted to know what is the worst mistake you make on database.
I have actually implements the logic of token access control on database and not on business logic layer.
The database have a login procedure which accept username and password. That login procedure actually hash the password and try to authenticate user.
If it is a correct user , it generate a token. In other to use other procedure on database , you must provide a token. By using that token , the procedure know who is it and what permission is granted to that user.4 -
I have a question i want to learn java and php. So is it ok if I learn it together. Or should learn one first completely than second?3
-
Dvorak users, how do you manage your shortcuts, like in vim?
I can't quit it anymore! 😜
I am too scared to remap everything.6 -
I got a fuzzy understanding of differences between Platform as a Service (PaaS) , Infrastructure as a Service (IaaS), and Software as a Service (SaaS).
I wanted you guy to clarify it for me. For me
IaaS = You choose how much RAM , CPU , Storage you wanted and the provider create the OS for you by virtualization technology and you can do whatever you want on that OS
PaaS = The provider said here is a services (database , docker ,---etc) we offer to help you develop your own software. You use the service we offer and we charge you by how much you use our service.
SaaS = The provider said here is the complete software. You can just use the software and we charge you how many request you send or how many data you store,--etc.
Is the differences between IaaS and dedicated server is that in IaaS you may share the server with other client by virtualization and dedicated server give you the whole server?13 -
Fuck when the app builds on everyone else's machine in the company but yours and you have no idea why. I pulled the same branch from the source control, made sure everything was right, even tried just copying it directly from a co-worker's machine but it just won't fucking work. Fuck you extjs for not letting me work for now almost 5 hours. Fuck you.2
-
I have a choice to either take a leave without me wanting to or to go waste my day with the people in a theme park that I already don't much like.
All because someone wants their picnic figures to look good.3 -
Anti climactic story time (as in there's no promotion in this story):
Sometime ago there were some organizational changes happening in my company that put me in a very tricky place. Theoretically, I was put on a level that was supposed to be an upgrade from my previous level. Practically, it didn't come with any benefits and it was actually a downgrade because anyone who joined the company in the six months before these changes was in the same level as me (who'd been in for roughly 2 years).
It felt really insulting because I was about to be actually promoted. My manager and his manager tried to gaslight me into believing that I'm not at all affected in any way, before giving in and agreeing that a mistake was made. I was promised that next year it'll be corrected and I'll be promoted two levels. Even the HR assured me of that. I knew it was too good to be true but I was too demotivated to find another job.
Fast forward one year. My bosses are all praises for the work I put in. But, no two level promotion. Reason? They tried but couldn't get the management to agree. The boss apologized to me and asked me if I wanted him to try again. What an insolent arse!
Fast forward one more, extremely glum year.
This time I am part of a different team so the team lead is different but the manager is same. The team lead really went all out with showing appreciation for me. He talked for almost an hour(!) about how I exceeded his expectations and went on to claim that his app's release would have been impossible if it weren't for me, the new team member. It was really humbling and satisfying. But what did I get? A limp handshake from the manager with fucking loose change.
Silver lining. At least the manager did away with the 'well wisher, on your side' pretense this time. No mentions of failed promises, just regular empty promises for the future.
Fast forward 3 months.
Still here. Recovering. I am mulling over a much better offer than what my current boss can give me. Thinking about how long it takes before I'm in the dumpster again. I have stopped giving any fucks about anything here. I try to do the minimum required unless it benefits me in some way.
The end.4 -
I went to an interview and they say they will call me within 2 week if I pass the first round of interview.
They don't call me so I assume I fail the interview and life went on.
I received the call today said I pass the first interview and if I wanted to come for second interview. My first thought is Fuck Off.
My acquaintance work for that company and we have a frank conversation. What is going on is that they are overwork and the other department complain that they don't have output from IT department.
When they ask IT department why don't produce output, head of IT department said they don't have enough people. HR department reluctantly allow them to hire more people and they phone me. My acquaintance apologize for the move that their company make. My acquaintance also said that he/she will also pass my decision to their department head.
I have meet everyone is that IT department whom I am going to work with and I like them. They are not only knowledgeable but also a nice person. More importantly they value the quality of work. They are the kind of person I like working with.
What I don't like is their HR department and they only call me when their departments work stale.
Here is my problem, I like the people I am going to work with but I don't like the company that they think I am kind of "backup". The company is the reputable company and it will be easier for me to find other job if I decided to quit and apply for other job.
I know the price range that they are willing to hire me due to first interview and the probing question I asked.
I was thinking of asking for salary outside their price range and think how it goes. If they are willing to hire me despite the ridiculous salary I asked , I may tolerant to work with them.
How do you think I should handle the situation?2 -
Best choice: Getting into the technical stuffs... And blowing up my mind almost everyday with a never seen before problem.
Worst choice: Getting stuck into an IT 😐 -
I got the question about the ownership of the technology.
I understand If I develop my own technology outside of company work hour and without using company resource,I own the technology. Let call this technology "X".
If the company want me to work on "X" during company hour with company resource to profit off it, do I still own "X"?11 -
I been teaching someone python for a few day with 2-3 hour each day. It has been very pleasant to teach him programming since he have a goal in mind. He already know what kind of program we wanted to build.
He is a novice and not familiar with programming. It have been a good chance to see how the novice look at the python. I been given a chance to ask the answer like
"Why do we throw exception?" ,
"Why do we put define function at the top of the file and not at __main__?"
"Why do I need to use constructor?" ,
"Why should I call parent constructor in the child constructor?"
Here is the main question.
I have been wondering "should I teach him multi inheritance and the diamond problem?" I haven't been using multi inheritance for a while other than the exercise I done when I started programming and cannot think of the situation to use multi inheritance. I know in other language we use multi inheritance (kind of) regularly by extending multiple interface. I wanted to ask if multi inheritance is common in python.
Another question I have is how should I introduce him to gui programming in a simple manner? I am thinking of introduction him to the gui framework which haved WYSIWYG editor like "Remi"10 -
Hi dev community! As we aré in the Spooky Month I would Like ti know tour scary ir chilling experiences as a dev. For instance: delete the database without where, etc. Or weirda experiences being a Dev.13
-
I hate my internet provider.
I configure everything to work remotely and when I try to login to it I got "Http Status 502".
I thought I misconfigure something and recheck everything and still got "Http Status 502".
When I use the internet connection provided by different provider, it works!
Everything is hard to debug without you messing it up internet provider. It like trying to debug the code and find out the problem is in compiler.8 -
Fellow devranters, I need your help for a... NodeJS question... (and I won't bother asking the question on SO, because all the questions/answers I found won't work)
You see, this client we have says they want their app to be login-less; once the app starts, ir automatically knows who is the ldap user that 'logged' in the app.
I've been struggling with it for weeks, trying to use npm modules, retrieving info from process.env, and I'm sure it is completely impossible without at least providing a username.
So here I am, asking anyone out here who can answer me this question: is it possible to login without providing anything?7 -
Fuck testcomplete, fuck having to spend 40 minutes mapping out every element just to still hang 5 minutes every time you try to check the existence of one, fuck having a software who's sole purpose is to automate testing and save time take hours upon hours to do what a person can do in seconds, and fuck me for having to use this piece of shit to test every single change made to our site.
-
Stupid windows update. You really want to update at the most inconvenient time.
I do manual update on my current computer but I boot up the old computer which I have store away. Remind me the reasons why I hate windows update and to disable automatic update.3 -
Is there a file manager which let me manage all my cloud drive , local drive , network drive in one place?3
-
I notice something in the news network.
They can be either bias or don't take a stance.
For some topic their reporting is very bias. Only giving a single point of view and just use facts to confirm it. I call it being bias.
For topic which they can be criticize for taking either side they use the so called "expert discussion"
They gather various expert and discuss about the topics.
Start = Undecided
End = Still undecided with a lot of confusions.
Some people will call it Democratic news channel , Republican news channel. They are wrong. There is only 1 news channel since they are all the same.
I am losing trust on the news channel (which I should not be feeling)
Do you guy feel the same?4 -
I am thinking of how I can make data upload reliable. I am sure that I am making it more complex as it could be and I need some pointer.
My goal is to have a pause/resume feature in file uploading.
Here is how it would work.
In order to start uploading , you give the server
1) File Name
2) Folder path you want to upload it to
3) Checksum of the file
Here the server will check whether you can upload it to a folder, whether the file have been previously uploaded (by file name and checksum)
If you could actually upload to the folder , server will return "unique file token" , "folder path" , "unique byte token". Let call it init_upload().
The client will use "unique file token" (to identify the file) , folder path (to know where to upload it to) , "unique byte token" and byte[] (data which to actually upload). Let call this operation data_upload().
If the operation is actually complete , server will return new "unique byte token"
Internally it will actually work like this.Let say we want to upload "file.mp3", when the client call init_upload() it will create
file.mp3 and unique_byte_token.file.mp3.
When the client upload data first time , it will append data to unique_byte_token.file.mp3.
When the client upload data second time , it will check whether the "byte token" that client put is the same as previous "unique_byte_token". If it is same ,
1) we move the data from unique_byte_token.file.mp3 to file.mp3
2) Delete unique_byte_token.file.mp3
3) Create new unique_byte_token.file.mp3
4) Append data to unique_byte_token.file.mp3
The reason I am using "byte token" is because I want to check whether previous upload is actually success.
Let say we need to call 50 part of data_upload() will put 49 part to file.mp3 and 1 part to byte_token.file.mp3.
Finally the client need to call data_upload_complete() which will
1) Put reminding 1 part to file.mp3
2) Remove byte_token.file.mp3 as cleanup6 -
If we really try to reinvent the wheel, and if we did that successfully, I bet it will be 2x better than at least all the unfancy stuff in the dev-market
-
I couldn't be the only one who thought of teaching ape how to make fire using stone and releasing them into the wild to accelerate their evolution.
Think about having non-human conversation partner we can debate with. The new kind of view they will bring to existing and future due to their sense (different from us)
And then I remember they will likely be bully due to species-sim because we cannot even solve our racism issue. Maybe it will solve the racism issue or spread more fire due to their presence.1 -
Been working on integrating mail gun into the MVP of the webapp I am creating. Couldn't figure out why I kept getting a 400 response. Check the mail gun documentation and realize that it's expecting post parameters not JSON...
Well there goes those 5 hours. -
Type coercion in JavaScript. I appreciate it's trying to help me out, but it'd be cool if it just told me I made a mistake.1
-
Saw this in some legacy code today at work:
Long sid = object.getSid();
Long returnValue = (Long) sid.longValue();
Never can be too careful I guess...
/s -
The heck is wrong with the testing framework. I can obviously see that it a correct value why doesn't the test case pass.
FAILED:
REQUIRE( positive==static_cast<double>(0.7352941176) )
with expansion:
0.7352941176 == 0.7352941176
===============================================================================
test cases: 1 | 1 failed
assertions: 1 | 1 failed10 -
I am not tired enough to sleep but I am not awake enough to fully concentrate.
It has been going on for 3-4 days. Am I burn out?2 -
There weren't enough barbed poles in my sorry ass apparently. For I have inserted in a big one by deciding to use blender. 😬
Zero background in animation but I want to create a little animation and PowerPoint isn't proving enough for it, and after fucking around with Synfig I realized I actually need a 3d animation tool.
So yeah. Basically, fucked myself. -
Trying to set up a FIX connection for my project, but the guy who provides the credentials replies once a day at 11 at night. He works in the US too. I'm convinced he's a vampire now.
-
C++ is the worst thing ever happened to the developer community.
Doesn't have a stand of its own. Always changing. -
Do you guy know that there is a lot of short query name like "f" in web development?
We are discourage from using single character variable name and the query key is too short. Is there any specific reason for using short query name?6 -
AL freakin M
Seriously some of the most frustrating SW I'd have to work with.
runner up is CA Service Manager. -
I am freaking out as se hace lo ir schemas and in all of them table structure is different... Doesnt people know about tools like Liquibase ?...2
-
If you use PHP with DI, in a single cli application, why don't you go get pegged with a catus.
- source wasting an hour trying to debug, why DI keeps feeding wrong arguments to objects4 -
Why the hell does mysql not have boolean fields? why do I have to use a whole integer for a bit? REEEEEEEEEEEEE10
-
I got to create the data platform with Azure Data Factory. I am new to data platform.
Any advise on what to look out for?
Could you guy please tell me if you know any good use case I can look at or any obvious pitfall which drain all the credit and so on?
I just a vague idea of what Azure data factory can do.4 -
💡 Have an idea to develop a system
*browse what language to use
*browse what template to use
*meh, I should write my own template cause I'm too smart
*F it, I realized im dumb, back to browse template
*browse why x better than y
*browse which company use x
*browse which hosting to use
*find admin template
*browse cat fighting with subtitle
This rabbit hole. And the project hasn't started yet for weeks and months. -
When you test on production server
"Your system folder path does not appear to be set correctly. Please open the following file and correct this: index.php"1 -
Please show me the error message if I cannot post a rant. Just don't silently fail without any error message.1
-
I use a Windows 10 OS and the browser popup sometime (not always so it hard to debug) when I open my computer.
Does the browser goes to other website?No the browser just show default page.
Is it a malware?I always keep my update AV so I am not sure.13 -
So, what do you think as a perfect routine as a student and a developer ?
thankx in advance !
edit: mainly in quarantine ;)2 -
I need to add 44,000 image to git repo. I try to use git-lfs but it's too slow when I run "git add ." command. Is there any faster solution?
Extra Information : The image are the data set for my AI model. The reason I use git is because I wanted to manage my data set easier since I am going to add/remove images to that data set.18 -
Sometime I want to name a library "ABC" or "XYZ" just to make a heck out of it.And make it popular enough just for confusion. So they will be like the "ABC" here , is that a placeholder or a library name?6
-
Rest In Peace my Hermes E2 mechanical keyboard. I have been using it for about 4 year and today the shift key on the left side of the keyboard broke.
I think the shift key is physically broken since I already try to clean the keyboard but it isn't working anymore.
The keyboard should still be workable for normal user but programming with that keyboard is a hell.
You only notice how much left shift key is important for programming when you try to program with alternative (right shift key)15 -
I know it a strange thing to ask but I need help with English grammar ( I am not a English native)
I am doing an assignment on context free grammar program.
What the program need to do it "Produce a grammar tree based on the rule"
For example a sentence "Jame sat.", It will need to produce a grammar tree like this.
S
_____|___
NP VP
| |
N V
| |
holmes sat
The only thing I need to do it give a grammar rule to the program like this
S -> NP VP
NP -> N | Det N
VP -> V | NP
What the above rule said is that the sentence is composed of Noun Phrase and Verb Phrase and Noun Phrase is either is a Noun or a determiner and Noun.
Now here is the meat of the question.
I am having trouble parsing a grammar tree for this sentence "She never said a word until we were at the door here"
I have provided my grammar rule below. I think I forget to add some grammar rule or some of my grammar rule are incorrect. I am not a native English speaker so I am having trouble on it.
The search engine have fail me (I have look up various grammar tree) so I am asking for help on devrant. Grammar nazi are warmly welcome :)
S -> NP VP | S Conj VP | S Conj S
NP -> N | Det NP | N PP | Adj N | Det Adj N | Det N
PP | Det NOM | Det N PP
VP -> V | V NP | V NP PP | V PP | V NP PP Adv
VP -> Adv V NP | VP PP | VP AVP | V PP PP | V
ADJP
PP -> P NP
AVP -> Adv | Adv Adj | Adv AVP
NOM -> Adj Adj N | Adj N | Adj NP
ADJP -> Adj | Adj PP
**I am not sure about these two clause below**
VP -> V | Adv
NP -> Adj Adj N22 -
In C++ we give my code is still compiling as an excuse to stack off.
Now that I have using machine learning , I can use my model is still training as an excuse. -
...patience...
...patience...
...patience...
...patience...
...patience...
I had been waiting for a hour to finish compiling and it show me the output above.