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 - "hat"
-
!rant I think I may have a way smaller head than the pattern I was using seemed to assume. 😅
(Or my stitches got messed up along the way. Either is possible.)5 -
Working in security for many years only granted me world-class paranoia about taking pictures of myself and my family. It even made it hard to keep in touch with my friends as we don’t live in the same country anymore.
The good side is that it pays well enough to grant me a platinum foil hat.8 -
Why am I so fucking bad with estimates? I am literally 20 hours over on this one thing because it’s so goddamn annoying to deal with.10
-
> asks for better pay
> starts trying to evaluate the quality of our efforts
> complains about doing things that are not good in the long run
> spends time mastering best practices
> unemployed2 -
Still on the primenumbers bender.
Had this idea that if there were subtle correlations between a sufficiently large set of identities and the digits of a prime number, the best way to find it would be to automate the search.
And thats just what I did.
I started with trace matrices.
I actually didn't expect much of it. I was hoping I'd at least get lucky with a few chance coincidences.
My first tests failed miserably. Eight percent here, 10% there. "I might as well just pick a number out of a hat!" I thought.
I scaled it way back and asked if it was possible to predict *just* the first digit of either of the prime factors.
That also failed. Prediction rates were low still. Like 0.08-0.15.
So I automated *that*.
After a couple days of on-and-off again semi-automated searching I stumbled on it.
[1144, 827, 326, 1184, -1, -1, -1, -1]
That little sequence is a series of identities representing different values derived from a randomly generated product.
Each slots into a trace matrice. The results of which predict the first digit of one of our factors, with a 83.2% accuracy even after 10k runs, and rising higher with the number of trials.
It's not much, but I was kind of proud of it.
I'm pushing for finding 90%+ now.
Some improvements include using a different sort of operation to generate results. Or logging all results and finding the digit within each result thats *most* likely to predict our targets, across all results. (right now I just take the digit in the ones column, which works but is an arbitrary decision on my part).
Theres also the fact that it's trivial to correctly guess the digit 25% of the time, simply by guessing 1, 3, 7, or 9, because all primes, except for 2, end in one of these four.
I have also yet to find a trace with a specific bias for predicting either the smaller of two unique factors *or* the larger. But I haven't really looked for one either.
I still need to write a generate that takes specific traces, and lets me mutate some of the values, to push them towards certain 'fitness' levels.
This would be useful not just for very high predictions, but to find traces with very *low* predictions.
Why? Because it would actually allow for the *elimination* of possible digits, much like sudoku, from a given place value in a predicted factor.
I don't know if any of this will even end up working past the first digit. But splitting the odds, between the two unique factors of a prime product, and getting 40+% chance of guessing correctly, isn't too bad I think for a total amateur.
Far cry from a couple years ago claiming I broke prime factorization. People still haven't forgiven me for that, lol.6 -
I have a dream that I will find a group of programmers that enjoy their craft and we are able to bond together and create the coolest shit we want and monetize it. We will inspire programmers to overthrow corporate America. We will all live in a big house and everyone will have their different hobbies and we can learn from each other and work on whatever we want to do each day. We will have unlimited dried mangoes, chocolate chips, and chips n salsa. We will create a kingdom.9
-
That feeling when you realize your work friend isn’t actually your friend, and you have no connection with anyone you work with anymore.8
-
I found a vulnerability in an online compiler.
So, I heard that people have been exploiting online compilers, and decided to try and do it (but for white-hat reasons) so I used the system() function, which made it a lot harder so i decided to execute bash with execl(). I tried doing that but I kept getting denied. That is until I realized that I could try using malloc(256) and fork() in an infinite loop while running multiple tabs of it. It worked. The compiler kept on crashing. After a while I decided that I should probably report the vulnerabilites.
There was no one to report them to. I looked through the whole website but couldn't find any info about the people who made it. I searched on github. No results. Well fuck.7 -
I have such a nasty pride habit with programming. Think I’m soo top boy international until I discover something everyone else knows, like RSS this week 🤦♂️10
-
Back in the day I tried to get the domain conspiracy.com. But a group of powerful elites from around the world banded together to thwart me from getting that domain.
-
I’m so fucking tired of having to work with shitty code day in and day out and not being able to optimize it. I want to quit so bad without having a job lined up… I fucking hate being a developer now thanks to these fucking pieces of shit.7
-
My key ring :)
An old friend (remember the guy who had a miniature Red hat?), gave me an old RAM from a work machine (he worked in data center team).
We had many spare ones so, I picked one and been using it since then.
Photo in comments because dR is fucking up the resolution.5 -
Anyone ever hide away after a night of drinking like a lil hermit? I feel like I won’t be able to face society for several days lol.3
-
Boss needs certain stats pulled from database once a year for board meeting. This time I delegate it to a junior dba/sysadmin. He looks at my 3-year-old docs that I hastily jotted down and pasted and included my rambling notes with results from way back then. Mostly they were just to jog my own memory, not to be a really neat, clean instruction guide. He does the queries correctly, but in ticket for boss he pastes also all my notes from the docs. boss gets confused, "what is this other number, I don't get it?!" We have to have a meeting of the 3 of us and waste an hour or so just to figure out what went wrong, finally I realize what junior guy accidentally did. Moral of story: to avoid baffling the nontechs, always simplify, simplify, simplify. Alternate moral of story: before delegating a task that seems old hat to you, always review your notes/docs and make sure they're ready for someone else to use them.2
-
!rant
For all of youse that ever wanted to try out Common Lisp and do not know where to start (but are interested in getting some knowledge of Common Lisp) I recommend two things:
As an introductory tutorial:
https://lisperati.com/casting.html/
And as your dev environment:
https://portacle.github.io/
Notice that the dev environment in question is Emacs, regardless of how you might feel about it as a text editor, i can recommend just going through the portacle help that gives you some basic starting points regarding editing. Learn about splitting buffers, evaluating the code you are typing in order for it to appear in the Common Lisp REPL (this one comes with an environment known as SLIME which is very popular in the Lisp world) as well as saving and editing your files.
Portacle is self contained inside of one single directory, so if you by any chance already have an Emacs environment then do not worry, Portacle will not touch any of that. I will admit that as far as I am concerned, Emacs will probably be the biggest hurdle for most people not used to it.
Can I use VS Code? Yes, yes you can, but I am not familiar with setting up a VSCode dev environment for Emacs, or any other environment hat comes close to the live environment that emacs provides for this?
Why the fuck should I try Common Lisp or any Lisp for that matter? You do not have to, I happen to like it a lot and have built applications at work with a different dialect of Lisp known as Clojure which runs in the JVM, do I recommend it? Yeah I do, I love functional programming, Clojure is pretty pure on that (not haskell level imo though, but I am not using Haskell for anything other than academic purposes) and with clojure you get the entire repertoire of Java libraries at your disposal. Moving to Clojure was cake coming from Common Lisp.
Why Common Lisp then if you used Clojure in prod? Mostly historical reasons, I want to just let people know that ANSI Common Lisp has a lot of good things going for it, I selected Clojure since I already knew what I needed from the JVM, and parallelism and concurrency are baked into Clojure, which was a priority. While I could have done the same thing in Common Lisp, I wanted to turn in a deliverable as quickly as possible rather than building the entire thing by myself which would have taken longer (had one week)
Am I getting something out of learning Common Lisp? Depends on you, I am not bringing about the whole "it opens your mind" deal with Lisp dialects as most other people do inside of the community, although I did experience new perspectives as to what programming and a programming language could do, and had fun doing it, maybe you will as well.
Does Lisp stands for Lots of Irritating Superfluous Parentheses or Los in stupid parentheses? Yes, also for Lost of Insidious Silly Parentheses and Lisp is Perfect, use paredit (comes with Portacle) also, Lisp stands for Lisp Is Perfect. None of that List Processing bs, any other definition will do.
Are there any other books? Yes, the famous online text Practical Common Lisp can be easily read online for free, I would recommend the Lisperati tutorial first to get a feel for it since PCL demands more tedious study. There is also Common Lisp a gentle introduction. If you want to go the Clojure route try Clojure for the brave and true.
What about Scheme and the Structure and Interpretation of Computer Programs? Too academic for my taste, and if in Common Lisp you have to do a lot of things on your own, Scheme is a whole other beast. Simple and beautiful really, but I go for practical in terms of Lisp, thus I prefer Common Lisp.
how did you start with Lisp?
I was stupid and thought I should start with it after a failed attempt at learning C++, then Java, and then Javascript when I started programming years ago. I was overwhelmed, but I continued. Then I moved to other things. But always kept Common Lisp close to heart. I am also heavy into A.I, Lisp has a history there and it is used in a lot of new and sort of unknown projects dealing with Knowledge Reasoning and representation. It is also Alien tech that contains many things that just seem super interesting to me such as treating code as data and data as code (back-quoting, macros etc)
I need some inspiration man......show me something? Sure, look for a game called Kandria in youtube, the creator, Shimera (Nicolas Hafner) is an absolute genius in the world of Lisp and a true inspiration. He coded the game in Common Lisp, he is also the person behind portacle. If that were not enough, he might very well also be Shirakumo, another prominent member of the Common Lisp Community.
Ok, you got me, what is the first thing in common lisp that I should try after I install the portacle environment? go to the repl and evaluate this:
(+ 0.1 0.2)
Watch in awe at what you get.
In the truest and original sense of the phrase (MIT based) "happy hacking!"10 -
Anytime a designer tries to make a development estimate or tells you what to do, immediately raise your hand and shout a firm “No!” - sometimes I hate these fuckers.1
-
Ok…I know I’m a junior dev and all and I have to submit to my meh leads, but I want to put this guy on company wide BLAST for editing LIVE PRODUCTION CODE without telling literally anyone for MONTHS. Like how in the fuck do you think that’s a good idea?!?!2
-
There is no god, but I am praying that I get hired somewhere else. I cannot stand another fucking day at this place.1
-
If I have to write one more uber-complex, goddamn Google Optimize test, I will literally piss and shit and throw up on my computer and then throw it out the window.1
-
My weekend is filled with take home code interviews, pre workout, and no social interaction. I just want to sip mint tea by the Red Sea.1
-
Going back and rewatching Star Wars stuff only to remember and get pissed off once again about the Sequel Trilogy. I can’t believe some people are allowed to make movies, watching a dog poop has more value than the entire story of those three movies, and Disney can go fuck themselves for that.9
-
Jesus Fucking Christ can you just guess what the code is doing instead of me feeding it to you like a fucking baby. TRY TO HAVE SOME SORT OF INTUITION DAMNIT I’M TRYING TO HELP YOU SO YOU DON’T LOOK LIKE A DUMBASS.2
-
I wish there was more dedicated, physical spaces that were tailored to programmers in particular. I know there’s a lot of collectives out there, but it’s hard to implicitly discourage startup fiend management from taking it over it seems like. We should organize more around a common craft. Free mason type shit.9
-
Question: For those of you who went math mode, did you ever look back? Was your future grim, happy, or does that even matter at all?7
-
Great yeah for sure. Tried to debug most of yesterday to come up with a recommendation today. But yeah, go ahead, just ignore it. Don’t even read it. I’ll just go fuck myself.2
-
The worst part about being an accessibility expert in these times is getting a redundant flood of a11y stuff on developer knowledge email subscriptions.
-
For those who have made a FE to BE transition: what is ur best advice on how to try new things and find a place where you can build cool ass shit?
-
No it’s ok you can power trip on me that’s fine, it’s just now your delivery is going to be months late. So who’s fault is it really?
Fuck you - fight me bitch. -
Should I upload my video journals in which I can speak freely? Or do you think that might hurt my professional image? I like doing talking through video moreso than writing in a journal, and I’m trying to see the pros and cons of this hypothetical…3
-
Bladee doesn’t really hit until ur drunk and depressed in your lonely apartment writing code while it’s storming outside.