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
![](/static/devrant/img/pipeless-devrant-banner-white.png)
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Search - "point"
-
Yesterday I had to modify a python script that was written by the previous dev,
There was no documentation to understand the code, I had to read 10 files almost 900 line each, after a looooooooooong 7 hours, at the top of one of the scripts, the author name was same as mine
😂😂😂😂😂😂😂😂😂6 -
Yesterday my friend was telling me that he was hacking some federal server in my country, and his girlfriend interrupted him and he couldn't complete the hacking
Such a lier 😏
We don't have girlfriends5 -
Did you know that you can mention your self in DevRant ??
And the best part of it that you get a notification for it!!
hehehehehe12 -
Recently buyed some toilet paper.
Now i just want to have an intense discussion about floating point precision with the idiot who developed the cutting machine...
Also, please stop printing cars or birds there. Thanks.3 -
Last meeting of the day was actually good. Managed to get to the point! Booking this room over and over again!5
-
Best non-technical description of why we hate to post in forums (shamelessly copied from Shamus Youngs blog found here: http://shamusyoung.com/twentysidedt...) ->
ALLEN: Hi, I’m new to driving and I need to move my car back around 5 meters. How can I move the car backwards?
(2 days later.)
ALLEN: Hello? This is still a problem. I’m sure someone knows how to do this.
BOB: I can’t believe you didn’t figure this out yourself. Just take your foot off the gas and let the car roll backwards down the hill. Tap the bake when you get to where you want to be. Boom. Done.
ALLEN: But I’m not on a hill. I’m in my driveway and it’s completely flat.
CARL: Dude, I don’t know what you’re trying to accomplish, but you should never be driving backwards. It’s dangerous and will confuse the other drivers. See the big window in FRONT of you? That’s your first clue. Don’t drive backwards.
ALLEN: I’m not trying to drive backwards. I just need to move back a little bit so I can get out of my driveway and start driving forwards.
CARL: So just drive in circle until you’re pointed the right way.
ALLEN: I don’t have enough room to turn around like that. I only need to move back a few meters. I don’t understand why this has to be so hard.
CARL: Sounds like your “driveway” isn’t compatible with cars. It’s probably made for bikes. Call a contractor and have them convert some of your yard into driveway to be standards-compliant with the turning radius of a car. Either way, you’re doing something wrong.
DAVE: I see your problem. You can adjust your car to move backwards by using the shifter. It’s a stick located right between the passenger and driver seats. Apply the clutch and move the stick to the “R” position.
ALLEN: But.. I don’t have a clutch. And there isn’t a stick between the seats.
CARL: Sounds like you’re trying to drive in Europe or something.
ALLEN: Ah. Nevermind. I figured it out.8 -
It happened 2 nights ago.
We had a whatsapp project for the distributed application programming class, my project mate and me were coding for 2 weeks whole day to finish it, especially with the end-to-end encryption feature that teacher asked, till 2 nights ago the project was trash, the private chat wasn't working and and nothing else is done we had only the UI, we was really doomed especially we had 1 more day to deliver the software, and we decided to deliver the project as a trash and get marks from the UI and the presentation.....
Till the night before deadline at 8 pm
I wanted to try fix some interface pictures and to make it better......
The next thing it was 6 am and the project is full working..
When I told my project mate he was not believing, I had to swear multiple times fot him and hat to go and show him the project by the eye.
We delivered the prohect and got 22/25 😁😁😁
It was incredible I didn't believe my self at first place.
Sory for the long story 😓.3 -
First thing every developer should do when buying a new computer is to download chrome using the built in downloader
1. Just click on start menu
2. Search for "chrome downloader"
3. Click on the downloader icon
4. From here it should be easy :)12 -
Anyone had this situation ?
Compile:
It returns null
Change something:
It returns error
Undo the last something and compile:
Works perfectly
😵😵😵😲4 -
Not a rant.
Whoever came with the idea to implement an automatic restore point in Windows... BLESS YOU!!
Just had some problems and the PC won't boot. I entered the troubleshooting option and saw that there was an restore point from 22 this month. Just saved my ass.4 -
Why would someone do this to his/her laptop????
There is a point after which this "stickers on a laptop" thing starts looking like shit, and in this case the point is long gone. Also at this point most of the stickers start to lose meaning.13 -
console.log(0.47-0.01===0.46);
Output: false :/
That got me stuck for quite a while..
Learned more about floating point arithmetic and representation 😊7 -
1. Read about software engineering/design patterns, tools etc.
2. Adopt information to my requirements
3. Write code
4. Delete my shitty code from point 3.
5. Goto point 34 -
I just started training 3 weeks ago,
I have to accomplish some knowledge during the training period or the company won't let me stay, when I told the coworker that is sitting beside me, he told me don't worry, as long as you want this job, we will help you learn everything in order to get what you want. -
Indian tech companies can put in weird skill requirements at times. See point 2, for fuck's sake is this real?! And it obviously contradicts point with point 5 right?6
-
Is there a point in debating iOS vs Android?
My friends keep fighting over which OS is better iOS or Android.
Both have almost all the features that the other one has and are constantly being developed by tech giants. There is no point in debating, it's just personal preference at this point.21 -
What grinds my gears:
IEEE-754
This, to me, seems retarded.
Take the value 0.931 for example.
Its represented in binary as
00111111011011100101011000000100
See those last three bits? Well, it causes it to
come out in decimal like so:
0.93099999~
Which because bankers rounding is nowstandard, that actually works out to 0.930, because with bankers rounding, we round to the nearest even number? Makes sense? No. Anyone asked for it? No (well maybe the banks). Was it even necessary? Fuck no. But did we get it anyway?
Yes.
And worse, thats not even the most accurate way to represent
our value of 0.931 owing to how fucked up rounding now is becaue everything has to be pure shit these days.
A better representation would be
00111101101111101010101100110111 <- good
00111111011011100101011000000100 < - shit
The new representation works out to
0.093100004
or 0.093100003898143768310546875 when represented internally.
Whats this mean? Because of rounding you don't lose accuracy anymore.
Am I mistaken, or is IEEE-754 shit?4 -
The new holy war in C#:
Point p = new Point(5, 3);
vs.
var p = new Point(5, 3);
vs. (new)
Point p = new (5, 3);
and... FIGHT!!43 -
So, we have this ma'am at work that is the least direct person I know.
She can transform one sentence in a paragraph and the meetings/talks with her I usually end up in my "happy place" at the middle of her phrases and come back latter when she isn't finished and I'm like
"wtf is she talking about yet? Damn I went away again, shit... Just nod and smile..."
We had a meeting scheduled with her and some clients today... She missed it... MOST FUCKING PRODUCTIVE DAY EVER!
Thank you.7 -
Steeling crime in our office
My mug is stolen and being used by a colleague
I am suspecting the newbies that started 2 weeks ago19 -
Personally I am starting to think that any development tools, resources and sites should not be allowed to use marketing dribble.
It should go
-> Land on home page
-> Hi, we are a realtime database cloud host
-> no you cannot host it yourself
-> here is code to speak to our servers
-> here is the cost
->now take it or go.
Something like that, and not
We provide clients with the leading cloud and hosted data solutions that can scale vertically and horizontally on and offline data management keeping people connected and saving kittens.
Fuck you show me one kitten you saved? Lying pieces of shit that do not want to just say hey this is what we have , this is ours, it may not be much but it is what we believe in and if you would like to use it here is how , thank you now move the fuck along our server can't handle so many concurrent connections.2 -
Apparently, floating point math is broken.
=SUM((2.1 - 2.0) - 0.1)
In PHP and Haskell this also happens10 -
I barely ever drink, so.. Almost every holiday party I've been in was awkward :)
there was this Christmas once where one of my family members got unexpectedly wasted and embarased me and himself in front of my newly wedded wife. A few next christmas in the fam were awkward.
There was this christmas party in my student days with othet students. Like they say, medics study hard and party hard. Everyone got wasted and fel asleep a few hours past midnight. We had lectures next morning so I didn't sleep [as I was the only one sober and had] to wake everyone up for 9am lectures. Never ever had I attended such parties since.
At even younger age [high school] I was in a new year party. Incidentaly only couples were there. Soo.. After the fireworks went off - the lights were turned off and all I could hear were kissing and other noises of this kind. Everyone's wasted ofc, but me
needless to say now I'm very picky who to celebrate with. A closest family, a glass of bubbly or some hot wine is enough and I'm comfortable with everyone.1 -
I recently fucked my pc up by installing the latest AMD drivers. Couldn't get past the lock screen.
I tried to revert to a restore point but, well, it failed and the installation would not boot at all afterwards.
Thanks a fuck ton, AMD and MS.8 -
Researchers were able to store 3 bits of data per cell in phase-change memory, beating the previous limit of 1 bit per cell, IBM said. PCM competes with dynamic random-access memory.
5/19/2016.2 -
Today
I was working on a project for the uni, went to have a nap and take a break.
The problem I was coding java in my dream.
I WANT A BREAK!!!!!!!!!! -
aaAAaaAaaAaaAaAAAAAaAaaa floating points!
I debugged my algorithm for quite a while, wondering why it sometimes gives out "Circle(Point({1.7976931348623157E308,1.7976931348623157E308}),1.7976931348623157E308)" as the smallest circle around a group of points.
Figured out that it sometimes just never found any circle defined by two or three of the points which included all points (which is mathematically impossible).
Then finally I made it print out the points it thought were not inside the circle:
"1,7,8: Circle(Point({0.6636411126185259,0.535709780023259}),0.4985310690982777)
skip, 1 not inside"
So it defined the circle with 1 being on the edge, but then thought 1 was outside. Thank you, floating point Math.
For anyone wondering about the notation: That way I can directly copy/paste it into Geogebra to have a visualisation.7 -
How annoying are video tutorials!!! You lose a lot of time trying to find the interesting point. If you jump over the video you will end losing the point and playing backwards...8
-
So my IT teacher wrote his own web server framework for NodeJS and he forces us to use it for assignments. Would be fine if:
1. It worked properly.
2. It had any kind of documentation.
3. He knew how it worked.
But no, we have to debug his shit and edit the js files in node_modules to get shit working.
Is he open to suggestions? Not really. If you have a fix, you have to create a gitlab account and send a pr. Even if you tell him what exactly is wrong. He won't do anything about it.
Why use express when we can learn something we'll never use again?
At this point I think we're using it only so that he gets downloads on npm.
Oh ya, he also copies package.json from project to project instead of creating a new one with up to date dependencies.
🙃2 -
Oh boy, converting the whole codebase from vb.net to c#
Pain point 1: CType all over the place (Convert.To*)
Pain point 2: almost everything is static!
Pain point 3: "I learned about DI just 3 months ago..."
Paint point 4: deployments ever happened by hand!
But I'm happy to be there because the guy who's running the thing is a very nice one and he's absolutely grateful for every bit of learning lesson I give him.5 -
Today I heard my boss counting 14,15,16,17 multiple times, then he said OMG 4 days, I asked him about the issue
So he said the easter will make 4 non-working days, I was surprised
Then he said yes
Turns he was counting Saturday and Sunday 😂 -
Working on Django as a server side programming, and having a little bit work with htmls and JavaScript.
What I am called then ?
A. Software Developer
B. Backend software developer
C. Web developer
D. Other. Mention it13 -
I know its too old and a repost
but I wasn't expecting to see it in real life
I thought if was a myth
hehehehehehe -
Look at this amazing chaos game fractal.
Three vertices of an equilateral triangle and a random point p between any two vertices are taken,then we generate a random integer between 1 and 6 (just like throwing a dice) .if 2 or 4 comes on the dice we draw a point between the random point p and the vertex v1.similarly if 3 or 4 comes on dice , we draw a point between the previously drawn point and vertex v2.for 5 or 6 the vertex is v3.after a few iterations we get to see this amazing pattern30 -
How the fuck does Facebook know about the points of interest in videos, so as to play an ad just before that point?3
-
My worst coding mistake
In my last project for the distributed application programming, I was working on encryption for messaging between two users, the mistake was after decrypting the message you should trim it, and I was trimming before which made the message corrupt, this mistake costed me 2 weeks of delay since I couldn't find the problem, the code was like this
Message=decrypt(message.trim());
Where it was supposed to be
Message=decrypt(message).trim(); -
My cousin was studying computer science, and he was telling me about the coding and the programming stiff, I got inpired by him and I since then I wanted to be a dev, especially when you can make some thing from nothing, unlike other jobs you have to get tools a parts and start to attach them together in order to make a product, while programming all you need is your laptop and couple of softwares and you can make as products as you want.
It is MAGIC2 -
Story points aren't supposed to be mapped to time directly.
Spikes and investigations should be timeboxed.
How do you story point spikes and investigations? Just have the same arbitrary story point value for all spikes?15 -
Hi,
every day I turn my laptop at work, I have to run like more than 10 programs in order to start working.
I have a question, anyone know how if there is a way make custom set of programs to run by just a click, this is really being annoying14 -
Today my boss sent me something that smelled fishy to me. While he was trying to simulate Excel's rounding he faced what was to him unexpected behaviour and he claimed that one constructor of the BigDecimal class was "wrong".
It took me a moment why this was happening to him and I identified two issues in his code.
I found one fo the issues funny and I would like to present you a challenge. Can you find a number that disproves his claim?
It's Java if anyone was wondering.
double d = 102.15250;
BigDecimal db = new BigDecimal(d)
.setScale(3, BigDecimal.ROUND_HALF_EVEN);
BigDecimal db2 = new BigDecimal(String.format("%f",d))
.setScale(3, BigDecimal.ROUND_HALF_EVEN);
BigDecimal db3 = BigDecimal.valueOf(d)
.setScale(3, BigDecimal.ROUND_HALF_EVEN);
System.out.println(db); // WRONG! 102.153
System.out.println(db2); // RIGHT! 102.152
System.out.println(db3); // RIGHT! 102.152
P.s. of course the code itself is just a simple check, it's not how he usually writes code.
P.p.s. it's all about the numerical representation types.8 -
Colleague: Why doesn't this line of code print something out?
Me: Are you sure this line of code has been executed? Try Adding a break point here.
(add break point and debug...)
Colleague: Oh. WTF?!3 -
I once was righting a C project for my professor, and I had a problem that I didn't know the solution, once I copied the script in the main into a function it worked perfectly.
And still have no idea of what happened.1 -
So been working with the COSMOS framework and I have litteraly spent more time reworking the CLI to be so much more functional... Still haven't implemented a simple echo command but hey... Shit looks pretty that's all that matters... Right... Right?
-
-fills out web form-
-company sends txt message-
Txt Message: "Thanks for contacting us about X, would you like to schedule <insert thing>?
Me Thinking: Oh awesome I can just schedule it via txt!
Me: "Yes, I would like to schedule time to get an estimate on <insert thing>."
Txt Message: "Please call us at..."
Me: "wtf... yeah I know your number."2 -
Today we received a new scrum master. Seems nice enough.
Now he wants to remove the fucking swimlanes from OUR jira board and change them into separate sub tasks.
Wtf.4 -
If you tried to fix a bug
And put it on stage, but still not working!!!
MAKE SURE HAVE HAVE REBUILD YOUR SOLUTION3 -
You know that moment when you write a long code, then you undo many times to see something that was before, and when you "ctrl+y".......
Just happened
😒5 -
You have Total 4 Points
* You lose a point if you are reading this on your computer screen
* You lose a point if you are barefooted
* You lose a point if you are tired of everything and want a vacation
* You lose a point if you want a chilled beer
How many points you have now ?10 -
Although it was simple
My coolest project I made was a 2 game java app(minesweeper, tic-tac-toe) it was for the java class last year
But now I am working on a sudoku game project for the artificial intelligence class and I am having hard time with it since I am obliged to use game editor to make it, since game editor doesn't help in debugging 😭😭😭😭😭 -
Knowing I'm probably more experienced and a better developer than most of my peers but not able to show it in interviews to land a job that actually would use it.2
-
When a bugs comes out and you are not able to fixed
Do you start talking to your self ?
Being talking to my self for a while......7 -
What is the gist of a function point analysis of a mobile app? I need to do one and have 2 days to learn what it is
-
How about a share feature
Like selecting a picture from gallery and pressing share
And you can find devRant icon in the list
❤️❤️ ❤️dream come true❤️❤️❤️2 -
At this point in tech, what's the point of sending a company your typed resume instead of just a link to your LinkedIn?10
-
JUST HAPPEND
tariner and coworker: when getting a dto lets make sure to get the object by a query before the function then pass only the object found
<couple of lines later>
see her the thing again....
me: this function you did it.
tariner and coworker: um.....mmmmm.
yeah this thing is wrong you should never do this...
(as if he made a mistake and covering it by telling me not to do it) -
“The point of making a native app is to make it faster and more reliable than the web version”
Well, I guess Facebook Messenger for Windows misses that point entirely.2 -
Just working with numbers these days i wonder if i can compile gcc with fixed point support , like if i use float in source it should implement my fixed point implementation rather than ieee floating point standards7
-
I've gone from my app crashing at a certain point to VS crashing at that specific point.. Not sure if I'm moving forward.. lol But maybe I can make Windows crash next..1
-
Anyone working with unity3d??
What are the main topics that I should look for, in order to get a good introduction for usage a working with unity3d??3 -
I'm at uni learning about floating point numbers and IEEE 754 and its so different to what I learnt at A-Level and it seems that using twos compliment floating point numbers is more efficient than storing numbers than IEEE 754 as IEEE 754 seems to use sign and magnitude. So why do we use IEEE 754?1
-
current language vba.
(14 / 24) - (8 / 24) > (6 / 24)
compiled to true. apparently rounding to 8 digits did the trick. quirky was that debug.printing each calculations showed exactly '0.25' for both not giving a hint about some float issue in the first place. ah, and rounding to 4 digits wasn't right either. -
Ok. I GIVE UP! ...for at least a couple hours...
I'm not a big believer in... well anything suitable to the literal definition of believe. But there's only so much 'wtf? How is this even possible?' and any answer u can come up with is nearly statistically impossible...
I am a neuro-atypical (and just extremely atypical even if i somehkw was neurotypical) being, based on logic, finely calculated statistical probability and the most raw data and as unbiased as realistically possible, algorithms and interpretation (usually recursive pattern recognition with several highly detailed historical sources.
...but at some point statistical improbability and a collation of separate, yet relatively closely occuring events/circumstances makes logic, itself a primary suspect of corruption.
What was the breaking point that caused me to (temporarily) give up and tell logic to f off for a bit cuz maybe the illogical and mythical is the real logic, leaving me in a losing battle with 'the' fates?
Trying to get all my sourcing/purchase orders in/paid for/on the literal boats b4 end of the workday/week in china...
1st, had to drop a supplier cuz they have limited reps. When the one ive had 7+ years left, i got the aloof blonde girl societal trope of a rep... who for the 2nd time (despite the several very blunt complaints above her, incl me) she sent out a promotional update to the entire client list (ie, inherently competitors) as CC not BCC... over 200 business email accounts with tailored info of their sourcing.
2- totally diff company/ industry a former rep i was glad be rid of apparently just sfarted back for "awhile" as i needrf to restock/scale...apparently she forgot everything we discussed at length... lke if you want a chance on my business im not gonna be wasting time looking through your gui "mini store to then inquire about everything individually insead of a simple spreadsheet(which i print and put in a 3-ring binder rotating current catalogues in the same format i require everywhere)
3.dog was an ahole, my packed schedule got delayed and morphed.. a bunch of little bs thatd normally have no extra thought impact, hyperfocused forgetting one of my alarms til i realised my idiopathic fever was back and i didnt take/apply meds (pain/muscle relaxers mainly so despite this odd free time and needing to shower. I gotta sit on my rear, leg elevated/non-productive far 40min b4 i can shower (as functional legs and lack of syncope is almost a req to shower)
4. A new-ish rep of a company/factory i like/respect enough to not mention in relation... he makes invoice 1.. slight error thst was easily resolved...#2 was flawless... he goes to officially generate the contract(alibaba... verrrry simple with lots of extra explanation buttons). Price and all items match, its near workweek end so i was waiting for it so i could quickly pay/have it on the boat b4 it left and few fdav days are behind...
I put in card info, get to the 2 cbeck boxes (imo should be only 1 but whatever) asking if billing address is same ss delivery(its always default yes)... then i see a few lines in chinese (i can read enough for business negotiations... typical words/sentences innately look different than things like individual letters/address and postal indicators.) After a few loops of double checking, mentally trying to dismiss my i Intial judgement cuz it'd be too ridiculous... even resorted to google .... nope... initial wtf was spot on... recipient name/address was indeed the company(multi factory producer)i was purchasing a wholesale, via sea freight, bulk of products from.
Im pretty sure the system would've flagged it as an invalid contract within an hr... but seriously... ive been handling alibaba (and other) international sourcing since before high school(mainly small businesses i made sites/little tools for that found anything with a light up screen intimidating) and a purchase then shipment to the originating company/factory actually entered into a contract(the form is sooo simple)... im faced with ridiculously improbable obstacles actually existing and changing in such nonsensical statistically improbable ways so often that 1. I wouldn't trust a dr (or most humans) that didnt 1st assume i was crazy of some form...unfortunately im not, despite hkw much simpler and probable itd be 2. Id be super suspicious/converned if statistic norms were my norm for over a day.
But seriously wtf???
Someone give me some wisps of a frame of ref here... where's a typical 'fuck this, im out!' Breaking point?1 -
I wish the U.S. didn't "pasteurize" eggs, because without that, eggs are shelf-stable, which would mean I could keep them in a basket on my countertop and label it "npm"2
-
Why do we still use floating-point numbers? Why not use fixed-point?
Floating-point has precision errors, and for some reason each language has a different level of error, despite all running on the same processor.
Fixed-point numbers don't have precision issues (unless you get way too big, but then you have another problem), and while they might be a bit slower, I don't think there is enough of a difference in speed to justify the (imho) stupid, continued use of floating-point numbers.
Did you know some (low power) processors don't have a floating-point processor? That effectively makes it pointless to use floating-point, it offers no advantage over fixed-point.
Please, use a type like Decimal, or suggest that your language of choice adds support for it, if it doesn't yet.
There's no need to suffer from floating-point accuracy issues.26 -
A rant but not devrant
I was just sending a video that I took with my phone while explaining a concept to my friend, the video took too long, the Internet was really slow 😒
When it was done I went and checked the size of the video, it was like 340 MB 😅😅
The problem was my phones camera
Sony Xperia z1 camera 16 MP😁 -
[`script(x) ` for x in iterable if condition else command] [#:#]
Complex code in one line
#python
PS. That can be more complex, but I am lazy to continue with this -
Hi
maybe a stupid question :) I have two Django apps, I need one of them to use the functions of the other one without importing them. as if I am requesting them using API, is there a way I can get an instance of a function and use it, I don't want to do the following:
response = requests.get('HTTP://URL/example/', data)
data = response.json()
I want instead to do something like this
function = requests.get('HTTP://URL/example/')
and execute the function as follows
data = function()
thanks4 -
Outsourced a friggin existing magento(php) work to freelancer including screenshots what to do . He literally asked me the names of the file to make the changes i needed.