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 - "16k"
-
So a few days ago I felt pretty h*ckin professional.
I'm an intern and my job was to get the last 2003 server off the racks (It's a government job, so it's a wonder we only have one 2003 server left). The problem being that the service running on that server cannot just be placed on a new OS. It's some custom engineering document server that was built in 2003 on a 1995 tech stack and it had been abandoned for so long that it was apparently lost to time with no hope of recovery.
"Please redesign the system. Use a modern tech stack. Have at it, she's your project, do as you wish."
Music to my ears.
First challenge is getting the data off the old server. It's a 1995 .mdb file, so the most recent version of Access that would be able to open it is 2010.
Option two: There's an "export" button that literally just vomits all 16,644 records into a tab-delimited text file. Since this option didn't require scavenging up an old version of Access, I wrote a Python script to just read the export file.
And something like 30% of the records were invalid. Why? Well, one of the fields allowed for newline characters. This was an issue because records were separated by newline. So any record with a field containing newline became invalid.
Although, this did not stop me. Not even close. I figured it out and fixed it in about 10 minutes. All records read into the program without issue.
Next for designing the database. My stack is MySQL and NodeJS, which my supervisors approved of. There was a lot of data that looked like it would fit into an integer, but one or two odd records would have something like "1050b" which mean that just a few items prevented me from having as slick of a database design as I wanted. I designed the tables, about 18 columns per record, mostly varchar(64).
Next challenge was putting the exported data into the database. At first I thought of doing it record by record from my python script. Connect to the MySQL server and just iterate over all the data I had. But what I ended up actually doing was generating a .sql file and running that on the server. This took a few tries thanks to a lot of inconsistencies in the data, but eventually, I got all 16k records in the new database and I had never been so happy.
The next two hours were very productive, designing a front end which was very clean. I had just enough time to design a rough prototype that works totally off ajax requests. I want to keep it that way so that other services can contact this data, as it may be useful to have an engineering data API.
Anyways, that was my win story of the week. I was handed a challenge; an old, decaying server full of important data, and despite the hitches one might expect from archaic data, I was able to rescue every byte. I will probably be presenting my prototype to the higher ups in Engineering sometime this week.
Happy Algo!8 -
Fresh out of college?
Entry-level?
Apply Here!
Junior Web Intern: 16k A Year!
Basic Requirements: HTML, CSS, JavaScript, Node, Angular, JQuery, Bootstrap, Backbone, Handlebars, D3, p3, CMS (WordPress, Wixx), PHP, Java (Android), C++(iOS), openframeworks, openGLSL, Cinder, failed at least two startups, 8086 assembly language.
Recommended requirements:
Git version control
Agile development
Must be able to display example of each requirement.16 -
I like frontend when using no frameworks. I also like when websites use no frameworks and don't write unnecessary code. So that I can use it even if my mobile internet speed gets locked at 16K and from the consumer perspective I think especially in Europe developers should consider this. Moreover I think it's generally more fun to just write your own site from scratch, it will take longer but it will allow one to be more creative and the whole experience will be more fulfilling.12
-
So, I recently set up fail2ban on one of our new servers. In 4 days we got 16k failed SSH login attempts. Found out that most of them were from South Korea. A few months back one of our competitors failed to have a deal with our organization. Interestingly, they were a South Korean. Lol.2
-
Perhaps you've seen my earlier post about the bottom half of a lamp post?
I've really stepped up my environment for this one. NOTE: Top half of the lamp post still not modeled.
Here, we see a 16K skybox, a a reflective sphere, and a glass sphere, in addition to my original lamp post base.
It used 2.24 GB of memory to render. But only took 47 seconds.13 -
Forgot to push to stable branch before I left from work. Nightly build takes 5 hours so I needed to do that in order to get nightly in the morning. As I'm moving I have only cellphone with 16k internet at home. Sounded like I'm screwed. But luckily fetching few new commits and pushing them back to correct branch git managed even over this parody of internet connection. Love git, I'm saved. Whole repo has few hundred megs, if I had to download everything it would be faster to wait to get real internet connection in few days.1
-
Bootcrap. Just looked at their main page, and it's a whopping 75k of markup plus 294k of CSS (W-T-F?!), and 224k of JS. All of that shit for a page that shouldn't be more than 10k of markup, 16k of CSS, and that has no reason to even use JS at all.
<a class="d-flex flex-column flex-lg-row justify-content-center align-items-center mb-4 text-dark lh-sm text-decoration-none
Yeah, that crap is supposed to be "easier" to write. That's what you get for totally failing to understand how HTML/CSS even work, clinging to late 1990s practices, and ditching decades of progress since then.
Although the Bootcrap folks do manage to write valid HTML. As low as that sounds, but that counts already as an exceptional skill in the notoriously low-skilled frontend "dev" world that is all about making shitty websites.
Oh, and the rest like Failwind and Bulimia aren't any better. They already fail at delivering valid HTML on their websites.17 -
So I have to fix this motherfucking insane regex with over 1k chars in it ...
This fucking shit is not maintainable and there are no comments or any other sort of documentation.
And this bullshit was not build via code so that bastard wasted weeks of time to develop that shitty expression by hand on a online regex tester website.
So I have 3 options:
1. Reverse engineer everything and waste my precious time
2. Delete that shit, analyze the input and write the regex via code instead of creating it by hand
3. Look for that "super duper clever" dev and break his legs.
I think option 3 suits me best.
And for you dear reader, if you are regexphile, enjoy this gigantc regex with >16k chars:
http://madore.org/~david/weblog/...7 -
When I was about 10 years old, my maths teacher at school brought his Sinclair ZX80 into the classroom at the end of the Summer term to show his pupils. He'd written a couple of Math quiz programs that he showed us, and for 99% of the students that was enough - it was nice curiosity and diversion and the end of the school year. I however was fascinated by this little white lump of plastic.
When I came back to school after the summer holiday, everything had changed in that classroom.
Around the edge of room were about eight brand spanking new ZX81s with 16k RAM packs. They were all connected to a single tape deck in the corner of the room, into which our teacher could insert a cassette with the latest Maths program he'd written. All the pupils would be instructed to type LOAD "" and he'd press play on the tape deck - early networking!
From there I got my own first machine (a 16k ZX Spectrum) but I've never forgotten that initial contact.1 -
Not sure if this is the right place but Just givin' it a try :)
I always was pretty lazy in school and i will never forget that my teacher tols me that i will never reach anything with my attitude. BTW being lazy in school does Not mean being lazy at all. The whole time my classmates did their homework, i was sitting at my computer programming and developing new stuff.
Now 1,5 years later i succeeded at my A grade (Not good but i got it), have a nice, well-payed and fun job as a developer and received a scholarship worth 16k € on a private university for all my previous knowledge and efforts for the company.
Really want to go back to my teacher and tell him about all that stuff.
Thankful to be a developer 🙌
TL;DR: was bad at school, got blamed by a teacher several times for being lazy, still got the degree, now working as a developer (it's fun and well-payed) and received a scholarship worth 16k€ on a private university5 -
Had to optimize today a DB File / MySQL 5.7
I'm sometimes sad that software cannot bite people in their crotches, shit in their faces and fuck their eyes out.
The config was non commented and a disaster.
Yay. Let's set thread_cache to 16K while max connections is 50.
And raise limits like max files without adjusting SystemD / ulimit
And OF COURSE MySQL sucks...
So let's migrate to PostGres.
*Brainfart*
This has happened way too often.
Really. Software should have the right to punish dumb people. At least ... 10 kv shock to teach a lesson.1 -
Requested my data from my old employer sent a link to a sharepoint folder can't download in batch lots of files in _allerrors.txt. How can I do this, internet suggests powershell but commandlets require admin on sharepoint business side and I only have a personal account.
Nearly 16k files to download.
Any idea how to fix this?1