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 - "rem"
-
FUCK!! It's been 3 days in the new office.
Can't find a single to rant about.
Why is everyone is so fucking nice??13 -
- Be a Devrant lurker.
- Only created an account for upvoting.
- Desperately want that cool profile picture
- Need rant for points.
Why is my appreciation through upvotes not enough? -_-9 -
*We colleagues were cursing Valentine's week*
Team Lead : Committed?
Me: No, I am single.
TL: *confused look* Did you committed that code?
Me: ohh yes! I raised the merge request as well.
TL: Ok. I will review it. *Moves away smiling inside*
Me: *looking at screen* *crying inside*6 -
I write code,
I am a writer.
I fight with bugs,
I am a fighter.
I optimise code,
to make it tighter.4 -
The fact you’re older doesn’t give you the right to call other people’s 8-months’ engineering effort “shit work”, especially if you didn’t even see the code...
Sincerely,
Your tech lead - me :)4 -
I posted a picture previously about my gear stacking adventures. Here is yet another. Took me a little more time.9
-
Why the fuck someone write "used linux to speed up development" in your resume. But when you have to use it, questions like "where to download git for linux?" appears?1
-
001 REM Code review
010 PRINT "Nitpick nitpick nitpick nitpick nitpick"
011 GOSUB REFACTOR
020 PRINT "This function is too complicated, break it up"
021 GOSUB REFACTOR
030 PRINT "Why do you have three methods for this? Put all the logic in one method."
031 GOSUB REFACTOR
040 GOTO 020
041 REM ARGH
998 PRINT "Looks good."
999 STOP8 -
Expecting your client to be nice with you just because you are nice to them is like expecting lion not to eat you, because you don't eat lions.3
-
That moment when you change your mindset from "I'll probably leave the office by 6pm" to "I hope I'll leave before midnight"1
-
Hello (World)! Noob here. I installed devRant around 5 days ago. I just keep reading the rants and didn't created my account because i was not sure if i will stay here for long time coz most (cr-)apps are boring.
After 5 days:
I owe all of you a tons of '++'.
I want a boss like @Linux have. (i know tags work only in comments)
Gonna stay here till i stay in IT industry.(maybe)10 -
So, I've been programming a number of years, mainly .net, I've been looking at python recently and it just seems wrong to use variables without declaring them. It just seems dirty11
-
Pet-peeve: fellow devs who think scoffing/dismissing/not-my-probleming before actually understanding the issue is a sign of intelligence; newsflash: you are being lazy, disagreeable and unprofessional.1
-
This is really creepy. Yesterday I was talking to my parents about buying a Thermosteel flask. Today I opened Amazon and this is what I see.. (attached pic)
I am pretty sure, I didn't looked for it even on Google.
It may be co-incidence but still..20 -
Once I didn't knew anything about coding or development.
Someone suggested me to start with Java.
Still looking for that Mada-foker.5 -
I was depressed doing a course I hated.
3 years in and I switched to Computer Science.
Best decision ever!3 -
Now this is true. Devrant changed me and now, after one of the devranters post I'm finally searching for a new job. Most of the time I was using PHP, but here I've seen lot of rants about laravel. Now I'm building a website with it and going to change my job. Thank you Devrant creators and community.3
-
Stack overflow was down..
I don't know why, but it developed some kind of respect for senior developers who don't had access to stack overflow in their time. -
My day:
5:30AM - 2yo son wakes me up, I send him back to his bed
6AM - wakes me up again, gotta grab a coffee
7:30AM - leaving towards the office
8:30AM - finally arriving to the office, after horrible traffic.
*continue working on major schema change I started yesterday*
12:30PM - Lunch + Beer
1:30PM - Tequila time!
*back to work*
7:30PM - Finally done with coding, leaving the office
8PM - home at last
9:30PM - Beer time
9:31PM - "I'll just write a couple of more lines"
12:30AM - "That's it, no more code for today"
12:31AM - "I'll just scroll through devRant"1 -
left the office early today to see my 2 years old son before he goes to bed.
it's 11pm and I'm working from home, gonna wake up around 5:30am to commute to work.
I really need to move closer to work3 -
2 years ago..
Me : How can i learn Java?
College Senior : Do some online courses.
*did a course for a month! Still not confident*
Me: it ain't working for me.
Senior: Do some project.
*Created an Android App under internship! Still not confident*
After wasting my 6 months on Java, i reached to the conclusion that: "Java Sucks" (at least for me)
No Offence!16 -
I think I can learn English here.
HAHAHA
I can also learn professional knowledge.
**I am a Korean.**
And...
Succeed!
Android studio AVD powered pictures4 -
When someone asks me a tecnical question in something i'm interested in:
"It works like this ... Oh i also should explain you how processors work ... Anyway, when a bufferoverflow arises ... And thats how crypthography works ... and so does blockchain work ... anf thats why bitcoin is causing way too many stress on the power grid."7 -
on one hand- got a new job, on the other hand getting a new MacBook pro just before they release a new generation2
-
To you who enjoyed the Gif/Jiff, Sequel/EsQueEll, Git/Jeet grandiose debates, comes the new phonetic conundrum: DevREnt vs. DevRUnt. Soon, in monitors near you.6
-
That moment when: you lift your gaze from your phone to understand the sudden quiet is because your expert opinion is needed in the meeting.
-
I might be pushing my 4 years old macbook pro too hard with 2 IDEs, 1 instance of datagrip, and tons of open browser tabs, all on 4gb of RAM..6
-
So, I finally decided to figure out how to fucking close vim! Surprisingly, there is a super easy way to rem...[read more]3
-
I only just started learning Js. And it's going smoothly. In two weeks, I should have gone past the Beginner's level. Then what next?7
-
Hello fellow devs, how do you clear your mind when you cant make something work? I think most of you had this feeling like 'fuck that, creating from beggining will be easier'1
-
Just feel like going to a raised platform over my town and scream, "AHHHHHHHhhhhhhhhhhhhhhhhhh....!!!"
-
The datepicker saga
Part one
So I begin work on a page where user add their details, project is late, taking ages on this page
Nearly done, just need a component to allow users to put in some date of births. Look for react components.
Avoiding that one because fuck Bootstrap.
Ah-ha, that looks good, let's give it a go.
CSS doesn't exist, oh need copy it over from npm dist. Great it applied but...
... WTF it's tiny. Thought it was a problem with my zoom. Nope found the issue in github.com and it's something to do with using REM rather than EM or something, okay someone provided a solution, rather I saw a couple of solutions, after some hacking around I got it working and pasted it in the right location and yes, it's a reasonable size now.
Only it's a bit crap because it only allows scrolling 1 month at a time. No good. Hunting through the docs reveals several options to add year and month drop downs and allow them to be scrolled. Still a bit shit as it only shows certain years, figure I'd set the start date position somewhere at the average.
Wait. The up button on the scroll doesn't even show, it's just a blank 5px button. Mouse scroll doesn't work
Fucking...
... Bailing on that.
Part 2
Okay sod it I'll just make my own three drop down select boxes, day, month and year. Easy.
At this point I take full responsibility and cannot blame any third party. And kids, take this as a lesson to plan out your code fully and make no assumptions on the simplicity of the problem.
For some reason (of which I regretted much) I decided to abstract things so much I made an array of three objects for each drop down. Containing the information to pretty much abstract away the field it was dealing with. This sort of meta programming really screwed with my head, I have lines like the following:
[...].map(optionGroup =>
optionGroup.options[
parseInt(
newState[optionGroup.momentId]
, 10)
]
)...
But I was in too deep and had to weave my way through this kind of abstract process like an intrepid explorer chopping through a rain forest with a butter knife.
So I am using React and Redux, decided it was overkill to use Redux to control each field. Only trouble is of course when the user clicks one of the fields, it doesn't make sense in redux to have one of the three fields selected. And I wanted to show the field title as the first option. So I went against good practice and used state to keep track of the fields before they are handed off to the parent/redux. What a nightmare that was.
Possibly the most challenging part was matching my indices with moment.js to get the UI working right, it was such a meta mess when it just shouldn't have taken so stupidly long.
But, I begin to see the light at the end of this tunnel, it's slowly coming together. And when it all clicks into place I sit back and actually quite enjoy my abysmal attempt at clean and easy to read code.
Part 3
Ran the generated timestamp through a converter and I get the day before, oh yeah that's great
Seems like it's dependant on the timezone??!
Nope. Deploying. Bye. I no longer care if daylight savings makes you a day younger.1 -
That moment when: you realize your team has introduced a fatal flaw and lacks the foresight to understand it. The countdown has begun.2
-
Python file truncate instead of actually deleting file contents...
there goes a weekend of log backups.. FML -
What is the most unusual use of a programming language comment that you have come across?
I'll start with this one. On the Sinclair ZX81, a REM comment was used to reserve a space, into which you could poke machine code! -
developer oriented saas? well yeah, you could've at least develop a decent SDK for one language, or just let people send JSON payloads instead of XMLs..a**holes
-
What is DevRant's business model? It's a really great community, and I'm interested about how it's monetized (or plans for the future)4
-
Age+=1
First time, I am this far from home on my B'day. But atleast I am with my friends and these fuckers wrote "Antarvasna writer" on my cake.2 -
tl;dr
You know that feeling when you have your headphones on and somebody is talking to you and then your stomach starts to hurt, because you don't want to put down your headphones because the music is great and your headphones plays it really good?
The post
I cannot code without headphones on. I'm currently on a longterm journey to find the best over-the-head budget headphones for coding, just out of curiosity, I started with cheap Phillips headphones for a couple of euros (9 or 10 i don't rem.), I would say they are usable, for a casual user, but far-far from the best
Then i purchased a Sennheiser HD451 for like 3x the price of the Phillips, really good. I use them in work and wanted to go on with the comparison so i bought a ATH m30x for home, and for gods sake, they are soo fucking good, way better what i would expect from a budget headphone, it cost twice the price of the Sennheiser.
Whats your "daily driver"? What would you suggest to try next?
note: before these I was using earbuds which came with my cellphones and 2.1 systems5 -
After learning a bit about alife I was able to write
another one. It took some false starts
to understand the problem, but afterward I was able to refactor the problem into a sort of alife that measured and carefully tweaked various variables in the simulator, as the algorithm
explored the paramater space. After a few hours of letting the thing run, it successfully returned a remainder of zero on 41.4% of semiprimes tested.
This is the bad boy right here:
tracks[14]
[15, 2731, 52, 144, 41.4]
As they say, "he ain't there yet, but he got the spirit."
A 'track' here is just a collection of critical values and a fitness score that was found given a few million runs. These variables are used as input to a factoring algorithm, attempting to factor
any number you give it. These parameters tune or configure the algorithm to try slightly different things. After some trial runs, the results are stored in the last entry in the list, and the whole process is repeated with slightly different numbers, ones that have been modified
and mutated so we can explore the space of possible parameters.
Naturally this is a bit of a hodgepodge, but the critical thing is that for each configuration of numbers representing a track (and its results), I chose the lowest fitness of three runs.
Meaning hypothetically theres room for improvement with a tweak of the core algorithm, or even modifications or mutations to the
track variables. I have no clue if this scales up to very large semiprime products, so that would be one of the next steps to test.
Fitness also doesn't account for return speed. Some of these may have a lower overall fitness, but might in fact have a lower basis
(the value of 'i' that needs to be found in order for the algorithm to return rem%a == 0) for correctly factoring a semiprime.
The key thing here is that because all the entries generated here are dependent on in an outer loop that specifies [i] must never be greater than a/4 (for whatever the lowest factor generated in this run is), we can potentially push down the value of i further with some modification.
The entire exercise took 2.1735 billion iterations (3-4 hours, wasn't paying attention) to find this particular configuration of variables for the current algorithm, but as before, I suspect I can probably push the fitness value (percentage of semiprimes covered) higher, either with a few
additional parameters, or a modification of the algorithm itself (with a necessary rerun to find another track of equivalent or greater fitness).
I'm starting to bump up to the limit of my resources, I keep hitting the ceiling in my RAD-style write->test->repeat development loop.
I'm primarily using the limited number of identities I know, my gut intuition, combine with looking at the numbers themselves, to deduce relationships as I improve these and other algorithms, instead of relying strictly on memorizing identities like most mathematicians do.
I'm thinking if I want to keep that rapid write->eval loop I'm gonna have to upgrade, or go to a server environment to keep things snappy.
I did find that "jiggling" the parameters after each trial helped to explore the parameter
space better, so I wrote some methods to do just that. But what I wouldn't mind doing
is taking this a bit of a step further, and writing some code to optimize the variables
of the jiggle method itself, by automating the observation of real-time track fitness,
and discarding those changes that lead to the system tending to find tracks with lower fitness.
I'd also like to break up the entire regime into a training vs test set, but for now
the results are pretty promising.
I knew if I kept researching I'd likely find extensions like this. Of course tested on
billions of semiprimes, instead of simply millions, or tested on very large semiprimes, the
effect might disappear, though the more i've tested, and the larger the numbers I've given it,
the more the effect has become prevalent.
Hitko suggested in the earlier thread, based on a simplification, that the original algorithm
was a tautology, but something told me for a change that I got one correct. Without that initial challenge I might have chalked this up to another false start instead of pushing through and making further breakthroughs.
I'd also like to thank all those who followed along, helped, or cheered on the madness:
In no particular order ,demolishun, scor, root, iiii, karlisk, netikras, fast-nop, hazarth, chonky-quiche, Midnight-shcode, nanobot, c0d4, jilano, kescherrant, electrineer, nomad,
vintprox, sariel, lensflare, jeeper.
The original write up for the ideas behind the concept can be found at:
https://devrant.com/rants/7650612/...
If I left your name out, you better speak up, theres only so many invitations to the orgy.
Firecode already says we're past max capacity!5 -
Brewmaster.
I've been brewing my own beer for about 6 months now and super positive feedback keeps on coming :)2 -
Screw Scrum, screw it very much. Is it a task or a story? Oh let's make it a story to track points. What are points, really? *20 minute grilling always follows* Well they're kind of a roundabout way of talking about time without talking about time, mkay? But last time 2 points took you a day, what gives now? What do you mean points are for internal use, but how will management plan ahead for next quarter? Ok, let's mix in all those new people, and propotionately bump the expectation for the sprint, mkay? Yeah, they did 34 points per sprint over there, we'll just add those in. Oh, and by the way, after the 4-day estimation session we had where everyone was seizuring, I scheduled us at 645 points for the coming quarter, mkay? Don't worry, I added 15% for the "unexpected dtuff" so you're safe. Fuck you scrum, scrum-fall, whatever you are. Lost a dev lead role once for being honest about it after a year with a team that loved me, and projects completed more or less on time. Been reconsidered for a dev lead role for being honest about it in another place. Somebody else peddle this kool-aid, this one prefers a walk-on role in the wall to a lead role in the cage.5
-
During my internship, I fixed a bug in android app related to user data updation..
BUT I didn't knew it's root cause and I have no idea how I fixed it.
Also, it was satisfying.1 -
So I developed this proxy server that will throttle down API calls to one of our providers so we don't get blocked for TOS violation...
Some dude had a tool running all day long which crashed 2 minutes before I left work.
This literally ruined my day until I recalled it's all cached!!!!
Mood is back again and I deserve my beer! -
Just spent a lot of time on custom building an Ubuntu docker container, and forgot to save the image before I accidentally reset the whole thing to blank1
-
When your peers lack the technical depth to promote their ideas, you bet they're honing their social skills in those confidential 1-on-1s.
-
Not sure how this made it to production..
Looks like Time Warner Cable updated their site to use rems with a replace all on 'px'.
https://registration.timewarnercable.com/... . -
I want to develop a django quiz app which will show questions to all online users at same time and allot a short time slot(1min) for answering questions.
How can i do that?
Any kind of help/link/hint is appreciated.
Thanks in advance.3 -
Playing around with a POC I'm doing for work, and it works so well I got an IP ban from one of my favorite websites for a massive amount of requests they got from me
-
Getting started with Python's asyncio is probably the worst experience I've had with the language in 2+ years I've been using it.2
-
Going over some NodeJS code, and I feel like the scene from "Dude Where's My Car" - "And then....And then..."
Coming from almost three years of 99% python, this hurts my eyes so much1 -
So I've been on vacation for a week now, still two days to go until I get back to work.
It's been super fun, but I am getting pretty stressed about the shit-ton of work I have to do when I come back.
How do you let go?2 -
What are you currently working on? You can be as vague as possible and let others try to figure it out.
I’m currently working on something to make pelican based blogs look a bit decent.7 -
I'm retarded and never learned or was taught how to CSS
What's the simple toggle/config/property to throw onto things in CSS so different rendering engines will render things to look the same?
I just want 1 line of text, an input text box and a button on a web page opened by an app, to look roughly the same on iPhone, android phone and tablet.
Why the fuck did historically shit get fucked up so we have different rendering engines. I just want my fucking 1.5 em/rem to be legibly readable on these different platforms.
https://xkcd.com/927/
https://webaim.org/blog/...
an extra special fuck you shout out to apple
time to go down the rabbit hole of who knows what, i dont fucking know what a fucking viewport is yet8 -
How long does it take to start writing codes without having to do “too much” looking up of some context?
I’m quite at the intermediate level and I fear I do a lot of cramming(and pouring) than actual coding.
I want to code all on my own, or at least tons of lines before having to check something up.
How do you guys do it? How do I become ‘pro’?6 -
Definitely Android 8.0 is neat.
And it's faster.
I think Android has developed a lot.
Isn't that right? -
!rant
Yesterday my little brother sent me a screenshot of game called robotJS and asked for help. You can't imagine how happy I am that he tries to choose this way -
Lorem ipsum dolor sit amet consectetur adipisicing elit. Illo aspernatur laborum rem sed laudantium excepturi veritatis voluptatum architecto, dolore quaerat totam officiis nisi animi accusantium alias inventore nulla atque debitis5
-
Writing DAL code that I am 99% sure will be replaced really soon along with the database schema.
Angry coding is almost as good as tipsy coding - AMAZING. -
Read about concepts that are new to me and try to implement them.
Code reviews with experienced devs -
Finance lady keeps turning the air conditioning off.
It's either sticky note on the controller or R&D vs. finance lady on an on/off battle...
What do you say? -
Installing the entire system on new machines. Too many configuration files and too much manual work. (New workplace, haven’t automated it yet)
-
on one hand - softlayer is way less intuitive than aws...
on the other hand - when your boss tells you you can bring up up to $1000 monthly valued servers, you can forget about the first hand1 -
So I just refreshed LinkedIn and it has a new look.
It's so bad I can now remember Microsoft bought LinkedIn a couple of months back every time I look at it1 -
Ex-manager keeps trying to boss me around. Not only that- he now tries to get fame for a project I’ve been doing for six months that he actively avoided managing...
-
Camembert cheese in the fridge is great, but how can one survive without the stronger Nespresso capsules ;(
-
No rants about new MacBook pro generation? Obviously one must rant about the absolute need to buy adapters to connect keyboard&mouse (let's be honest, BT devices out there are mostly nowhere near ergonomic)1
-
The biggest distraction is every other bloody department in the organisation, other than development.
-
So I spent about a day on this brilliant priority calculation formula just to come to the conclusion that FIFO would be a better approach for now1
-
POCing a neural network thing.
Luckily it's a shallow network, but it's taking a frickin' eternity to train :( -
Guys, i am a beginner in networking. I want to create my own cloud computing server - (IAAS). Currently, I want to provide storage to the users.
How should i proceed.. Any site link or guidance? Thanks in advance.1 -
Wich programming language is the best one, easiest one to learn, gives a good feeling (when you find in a quick way, how to do it that what you want)it makes more sence then other p.languages, your eyes wont hurt and c# in the future... 🤓9
-
so they brought a senior engineer to our (very small) dev team. I feel like poking my eyes with a nail looking on his code.1