AboutRandom software developer from planet Earth.
Joined devRant on 4/9/2018
Do all the things like ++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatarSign Up
The last one and only one I joined was online and called “flex bug squash”.
It was about ~8-9 years ago.
I won Flex Builder desktop software license and I was using it after so I think it was cool.
Fun, creative times it was.
That was also first and last significant thing I won and then Steve killed flash on mobile and as a result killed flash.
Thanks Steve if you’re reading this.
Whenever something goes mainstream and becomes buzzword there are annoying consequences of it.
First, it’s harder to find anything meaningful about the topic.
Second, suddenly everyone is an expert and web search starts to show not related products like promo codes, stupid videos, tutorials for dumb.
Third, old content that was interesting is lost under pile of shit or gets deleted.
I feel like I’m living in middle ages and before I try to watch something interesting it’s deleted by Spanish inquisition and replaced by some crap.
Most of expert content I have in favorites is returning 404 and youtube videos are deleted or private so from some time I started to backup all content I read or watch and find interesting in public networks.
Fortunately I have couple of terabytes of storage to backup interesting topics but I’m not happy that I’m back to times when I was saving internet page to floppy disk to show it to my friend later.
What a fucking nightmare.3
Trying to learn some golang after a break.
Made http / https transparent proxy for personal project.
Mind: You need to add configuration file with domains you allow traffic and block everything else using list of regex.
Me: Ok I can do it, 4 hours later ok done
Mind: Why not make it differently by making list of url you can block and test this shit on fucking ads and stop using adblock that downloads content.
Me: ok that will be handy I can watch websites faster and drop traffic I don’t want to.
Funny fact, it works I broke analytics, logging, quantum shit fucks and even youtube plays ok.
Go is awesome for networking stuff lol.12
Sure you can specify svg object attributes x, y, width and height in metric values like mm and after put things on paper get same printed output but if you want to transform svg object you need to calculate new values by yourself cause you can’t simply provide translate (10mm, 10mm).
Now I ended up with manually converting values to mm.
Making free transform tool for exact document data rendering inside browser is pain in the ass.
I started to wonder how google docs or microsoft word for web deal with this stuff.2
CEO hired graphics designer without HR help after first meeting and that person first day of his work borrowed money from people and that’s not end of story.
Same guy came back at night and robbed the workplace with his friends, didn’t came back to work. Company bought couple of big iMac for new graphics department back then, all gone.
When company reported incident to Police it turned out he travel and steal from companies all over the country and they’re trying to catch him for a year.11
Diarrhea and hangover.
I thought about it a little more and unexpected police intervention when you just received new container full of coke for your premium clients can be as much disturbing.4
I tried to watch netflix ‘13 Reasons Why’ series after reading article about ‘scientists found a 13.3 percent increase in teenagers’ deaths from suicide”
I started scrolling trough the show after second episode cause it was so boring and predictable.
Maybe I’m just to old or maybe don’t understand USA school system or maybe I watched way to many typical movies about how the ‘popular group of teenagers’ make other teenagers life a nightmare ( Including scary movie and Venezuelan telenovelas ).
Can anybody who got interested into the show write why it is so cool or depressing ?11
I rewrote my static website generation from jekyll to custom python code over single night.
Literally all jekyll plugins I use including seo, rss, syntax highlighting inside markdown content, sitemap, social plugins, css sass, all of it.
Now it’s around 400 lines of python code that I understand completely. I didn’t touch any existing templates and after comparing output I got even better results now and it’s working faster.
I skipped drafts as I don’t need them now.
Why ? Cause now I can make better generator for my side projects that can include some partial website generation, better modification and date handling, tree structure, etc.
What I will do now is that I will parse bunch of content to create markdown files that will be sucked by this generator to create static web pages that will flood internet lol.
Still I didn’t believe it was possible to rewrite all of it so quickly. I sit yesterday around 4pm and finished around 6am.
I started thinking that maybe I am crazy and no one can help me.9
Similar to other countries if you work in international projects and companies.
If you work for big government related / small domestic company projects you can meet with comments and variables named in native language instead of english.
Just because there are probably only 2-3 companies who win every government project, they take all money and pay shit to developers.
To meet requirements they mostly hire fresh graduates to do the job.
CEO of one of those most famous quote is: You can replace every developer with finite number of students.2
I wanted to take small loan from bank I am loyal customer for 15 years to speed up things by month. I decided to pay money for it.
They have some online form for it and I filled it.
So what happened next ?
I got call to confirm every input I filled (heard keyboard typing every time I answered question).
I asked how long I will wait and got response that it will take couple of hours, max 2 days.
Just received another call 10 days later that they need documents to prove my income.
They got 15 years history of every operation and it looks like it means nothing.
I said to person I will earn this money faster then I get it from them so at this point this conversation is just waste of my time.
It’s 10 days left till end of month and I think it will be easier to just wait or ask friend for a favor.
Yet another reason to say fuck banks.
Time is money.2
Side project update.
Made simple nlp library in python and published it’s first version to open source.
Now I can feed it with parsed pdf text.
See rant https://devrant.com/rants/2192388/...
Cause during reading book about nltk I couldn’t find simple extendible way to provide support for polish language and I wanted to abstract stemming, word normalization, tokenizer etc. so I can provide ex. different conditions for separate text files and don’t write much code what is an asset when you work solo.
It’s about 12GB of pdf public accessible law data I am trying to handle ( at first ) which is about 35000 files from last 90 years.
So far I automated downloading web pages and pdf documents from them. Extracting data from web pages and saving it to database. Extracting text from pdf files. I have about 5-6 projects to do all of it above maybe at the end I will put it to some workflow manager like Luigi or just run it by cronjob.
First thing for website version 1.0 part is find correlation between all documents inside law text using nlp library by building custom conditions. Then just generate directory structure and html files with links between documents.
Website version 2.0 is already in my mind but it will be creepy to make it and will take at least 1-2 months and I want to publish fast.
I have some pdfs with only images instead of text and tesseract worked quite good with them so maybe I will try to process them when everything go live.
Learned a lot about pdf as now I know that font in pdf is not always providing unicode characters ( stupid form of obfuscation) so when you extract text you need to build glyph vector to text map for every font.
Pdf is full vector representation - just like svg - what is logic if you think a bit and know that some printers are running using postscript.
Let’s hope next update will be about flutter mobile app which started all of shit above. It’s almost ready ( except getting data from api I am trying to do and logo for release version ). It’s last piece of puzzle.3
If can pick one it probably will be Fabrice Bellard.
Anyway everyone who contribute to open source community deserves to be famous.
1. Start working in company that is celebrating something the same day you start new job.
2. Make sure they invite you.
3. Get drunk hard before event.
4. Puke on a CEO during his opening speech.
Mission accomplished you’re now a legend.11
After three weeks looking for decent pdf parser that will handle all documents I gathered for my project I decided to write my own.
All those I tried end up with more then 10% not correctly parsed pdfs or require to much coding.
I was sceptic so I waited another week debating if it’s good idea to do it and I said yes.
Spent 16 hours straight coding pdf document extraction library and command line tool based on pdf.js
Fuck, now when I open pdf I see opcodes instead of text.
Got two more hours until client planning meeting and then I go to sleep for a while.
Time to start testing this more deeply as I have about 60k ~ 20GB pdf documents to parse and then I need to build some dependency graph out of its text.
At least it’s more funny then making boring REST API for money.4
Looking for variables and methods in inheritance chain is like walking in Thailand and looking for a girl hooker on a street full of ladyboys.
You can find one but you never know.9
Finished my last audiobook and decided to start listening to Kevin Hearne druid series audiobook yesterday.
It’s really nice story about old druid ( looking like 20 something ) living in modern times in Arizona. Lots of Celtic mythology and great humorous dialogues.
I really enjoy it.3
Me vs Myself
I lack of consistency in my life.
Except job, I work on single project for more then four years now.
Besides that I struggle so much to finish things I started or do one thing everyday or even every week for more then one month.
Trying to improve myself but it’s so hard and I don’t know when and how I lost this whole consistency I had that made me good self thought developer. Some people said best they’ve seen but I think I have a lot to learn.
It’s not that I don’t want to continue doing things I started previous day but my narrative self is harassing me so much that I don’t have vital power left.
Whenever I try to fight back it makes me weak and I can’t get up from bed so I lay and wait.
Sometimes I lay whole day and just wait.
When I do nothing my narrative inner voice find me instantly 100 other interesting things to do that make me excited, like:
- let’s check mail - oh new <picks technology> framework let’s try it,
- let’s check news
- let’s see how much <picks something> cost because you want it, buy this thing or you’re gonna die
- go out with this <picks a girl> or you’re gonna die alone
- hey <picks something> is cool let’s see how it works
- hey this <picks some problem> is cooler then the one you’re working on,
- how about to call <picks someone>
- how about go out it’s nice outside
- let’s cook this thing today you need to go to grocery
I don’t know how I figured out I need do nothing and wait to fight myself and do what I started not what my narrative voice want me but I see whole slightly improving now and doing nothing helps a lot.
It makes me focus on things I really want to do not things that are just waste of time.
Anyway thanks if anyone got to the end of this stupid story.
Have a nice day. Keep dreaming.
Write email with meeting topics before meeting.
Send summary email to all attendees after meeting.1
Yes I believe you’re Google and I will click that link.
I don’t care that IP from that you sent it to me is from some company in India.
Probably Google outsourced it’s email service there.
But wait why is this link pointing to Chinese website?
Ouch you provided some ip under A dns record so let me nmap it...
So there’s bunch of services you have there.
ftp, ssh, msrpc, netbios-ssn, snpp, microsoft-ds, sun-answerbook ...wait what ?
Let me curl that 8888 port.
Oh you have login / password form and it’s pagoda linux panel.
Wait a second I will read about it maybe some default login / password will work...
Ok so maybe I just make a script to brute force it as you wanted to brute force my computer motherfucker.2
Today’s text chat:
Me walking near the river in the middle of nowhere with a cellphone.
- I need image from test server. Can you provide me that image ? I need it for my local environment to fix something ( writes details of how to get an image ).
- Can’t you go to test server website and get it by yourself ?
- But this image is on canvas element.
- Because frontend is drawing in on canvas so go to network tab and get the url.
- Ah yes I can do that
I have such small talks all the fucking time. They accumulate when I go out to chill during the day.1
1. Creativity - you can create anything from typing words and a little electricity - office programs, new medicines, predicting cancer from images, robots, planes, satellites, rockets that put people to the Moon or robots to Mars - all use machines programmed with code.
2. Challenge - some of the projects and algorithms are so complicated that full understanding of them is great challenge.
3. Freedom - you only need a laptop and internet and a bit of electricity and you can code from anywhere on Earth or if you’re Astronaut you can even code from space.
So I opened crunchbase newsletter like always to see what interesting is happening in IT.
Looks like app that allow people to send REST calls got investment of 50M.
The moment when you realize that simple UX and sending REST calls using desktop app can make you millions of dollars.
And I am tired again.9
Digital transformation is pain in the ass, my customer migrated project management from self hosted jira to atlassian cloud.
I am finally able to login to this new amazing jira that looks completely different but still nothing is optimized to laptop screen so looks crap as before.
My issues are now assigned to not existing user.
At least I remember how to use basic JQL and reassign issues to me.
I feel bad to other team members.
Great waste of time.7
Can’t wait for python 3.8 and pep-p572 Assignment expressions 👏👏
while chunk := file.read(1024):