AboutYou can find me on https://t.me/Brosyl I actually have other means to be contacted if you prefer (Kontalk, etc.), @mention me if you want to contact me by other means.
Joined devRant on 4/17/2018
Do all the things like ++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatarSign Up
I think this belongs to "rant/story"
I was testing an app on F-Droid, Susi.AI. It looks like someone misplaced their quotes and did no testing...
Also, their support e-mail doesn't work anymore (Mailer delivery error). I really don't know what to think of it. Do you guys have any information on the creators? I'd like to know more than the few I've found on the internet. Keep in mind that I'm super drunk right now, so I might have overlooked obvious things.3
I'm creating a little "cloud" app, for training and learning about how network communications work. I try to do it with SOLID principles in mind, but it's faster said than done, as I don't have a lot of experience.
Anyway, I want to write the server config in a file which would be read at launch, but I'm wondering how you'd do it while respecting SOLID as much as possible.
Do you see any interesting design pattern I could dive into to implement this part while still being able to change or add things efficiently ?
Or any open source project where I could read the code and inspire myself for my project ?
For example, things I might want to implement later (and reasons to make the code flexible) :
- At first the config file is read only (edited manually) but later you'd be able to update it from within the app
- Later in development, you could maybe use overwriting flags when launching the server from command line
- Currently, if a field in the config file is invalid or absent, an error is displayed and the program closes. I intend to use default values instead, or to ask the user to manually enter the parameters before continuing execution
- I'd like to be able to switch the file format without changing much code (currently in JSON, because parsing libraries are easy to use, but it could switch to YAML or XML or whatever)
- Maybe even switch to a config stored in database instead of a simple file ?
- To be portable, the config path depends on the OS (AppData for Windows, $HOME/.config/ for Linux, $HOME/Library/Preferences for OSX...) but could be also given from the command line
It's a training personal project and a challenge, not something which is intended to be released publicly (in its current state), so I don't really care about YAGNI or "using a database is a dumb idea", I'm just trying to force myself to apply SOLID principles in front or real potential problems (not tuto code).
Also note that I'm asking for advice, not that you do all the work for me, of course. If you have a design pattern or two that come in mind, or an open-source project which already reads config from a file from which I could inspire myself, just cite a name, I'll do the research myself (I'm already, actually, but some guidance would be helpful).1
OK, here are two questions I heard today in a TV quizz. I need you to answer them without looking up or reading the comments and tell me if the contestants in the TV quizz (who are lambda people, with an average IQ and education) have real education and general knowledge issues, or if these questions were really difficult for the layman, since they got them wrong.
I have a great interest in science and astronomy and to me they seem obvious. I cringe when people get them wrong, so I really need to know if it's normal to not know this kind of basic stuff or if there is a real problem her.
Here are the questions :
1) Elon Musk, in February 2018, launched a Tesla car in orbit around a star. Which star was it?
2) How many stars are there in the solar system?9
Can we agree on the fact that the Divergent trilogy is just a modern version of the Asimov's novella "Profession" ?
I don't who posted some days ago a screenshot of a "???" error message on Windows. I just got one too, on Manjaro Deepin, with Simon Tatham's puzzles.3
It's been months since I have them, but I'm just now thinking about sticking them.
Waddya think about this layout?
I have some others but am not enough acquainted with the technologies they represent to use them (and I don't like to lie on my resume).
Also, they're not yet stuck because I wanted to know your opinion first.16
Web Development course in my school.
The front-end part is about Bootstrap and JQuery.
(We actually learnt plain old CSS last year and have another course on vanillaJS, but they still encourage us to use JQuery)7
OK guys, I need your expertise on the dreaded WordPress.
(My question is at the end, skip to it if you don't care about a bit of context)
I want to do some research on a WordPress, regarding ergonomics, load speeds, and stuff, to try to convince its owner to switch to an handmade website. I care because it implies some of my close relatives.
I've been told mutliple times that WordPress brings good SEO, so I tried to find some info on how it does it. I found nothing which cannot be easily achieved, in hand made website, by "good practises" and common sense, and a lot of things which can be easily fucked up just because you think WordPress handles it for you.
So, is there anything that WordPress does regarding SEO which doesn't imply you being cautious about it and could be a lot more difficult to implement/manage in hand-made websites?4
TL;DR (it is indeed a text wall) => read the tags, it should be enough for you.
Context : my sister works as an "everything"-manager for a small non-profit company dispensing classes in some crafting art. Her boss (let's call him Nic) is also a friend of her, and he's more of a "thousand ideas a second" type of guy than a "more monies for me", so he speaks very friendly, directly, and doesn't always think about the management and costs of his decisions.
His website, on which users can book for classes, is a Wordpress (you already know it's gonna be bad). I already talked to him about getting a custom and fine-tuned website. Having seen my sister use it for administrative tasks, it's a real pain and really not suited for their particular needs. Also, getting a custom website would permit some manual tasks automated (so less work for her). But he won't accept because "SEO is better on Wordpress".
Yesterday, 23:30 (11:30pm) she called me on Messenger, asking if I could dispense some advice to her boss because he struggled migrating the companys website to another server. Looking at the time, I said she could put me though so he could tell me quickly his problem, but I wouldn't do anything until at least tomorrow. Things went a bit like this (on Messenger) :
Nic : Yo. What's up ?
Me : I'm fine, thanks, and you ?
N : Fine, but not the server... It's so slow and I can't seem to get the perfs up. It's pissing me off. I switch from /Offer 1 from hosting provider/ to /Offer 2 from hosting provider (SSD included !)/, I thought it'd be better but the TTFB is still struggling at min 5 seconds. You know what I mean ?
Me : Yes...
N : Anyway, here is the speed test for the original server, and here is the speed test for the VPS one. [me to myself : oh, it's a VPS, ok...]
You see, it's worse on the VPS. Of course, without any plugin everything is perfect, but I just need them.
Me : AFAIK, but I'm no expert on the subject, a VPS will already be slower, because it's virtualized. But I may be wrong here. Anyway, the problem is clearly Wordpress : your plugins are adding a shitload of operations on your server, so SSD or not, if the CPU is overwhelmed, having better I/O won't change anything. They aren't always written by developpers with speed and optmization in mind, so you may be using a rocket-launcher just to kill a fly.
N : I already told you that a custom website means shitty SEO. Having a clean and quick code may be nice, but if nobody uses it, you're screwed. If Wordpress represents 1 out of 3 websites worldwide it's for a reason. Aren't you stubborn ? Anyway, can you work on that or not ?
Me : I didn't say you NEEDED a custom website. I just said that, just as you admitted earlier, the problem is clearly caused by the plugins. You told me about your matter, I tried to find an explication. Unfortunately I'm really not able to do anything about this side of things. It may not be the best explaination, nor the only one, but it's 23:40 now and I'm not experienced on Wordpress and server optmization.
Anyway, Wordpress' SEO may be excellent, but it doesn't mean it's crap on other websites. You "only" have to be cautious with it. [it's not as if you hadn't to be cautious with WP SEO too, anyway...]
But I won't insist, rest assured. Who's the most stubborn out of you and me, by the way ?
I can try to find some info, but won't promise you to do anything. Maybe send me a list of your plugins, so I can try to find some info on them tomorrow when I come home? [I was expecting to find out if one of them was known to slow down the system, so we could potentially narrow down his problem]
... wait for his answer ...
N : There are 62 of them. It'll be simpler if I just send you the passwords so you can look at it by yourself.
Me: [Wait wut] Ok.
... By the way, having people click on your website is good, but having them to stay on it (when you know that most users leave if the page isn't loaded in 2 seconds) is better. You have to find a good balance between speed and SEO. Or have big monies to get a server on steroïds. GAFA has all 3, the rest of the world finds compromises.
N : Here's the solution ! I put a 500 Mbps on my i7 7700 !
... A night passes, I don't answer ...
N : You good at configuring servers ? Especially for CDN ? If I put one in /location A/ and one in /location B/ (for security and SEO)... I have a i7 8350 8Go, it should be enough, and I could later add another in /location C/...
I haven't answered yet. Because I never configured a server, and also because I still can't do anything about his website because a) it's Wordpress and b) he didn't even send me the access codes. I'm just trying to stay calm for the moment.
So I got this shit in my mailbox today and was surprised because that was sent to an alias address I only input in very trusted places. So I took a more cautious look and noticed that it was sent to firstname.lastname@example.org, and that I was only put in Cci. A quick check on this domain name revealed me that it was OVH, a French registrar, and that the destination address was in fact the one they put on the obfuscated whois certificate of the domain name I bought 3 days ago.
OK, I'll ignore this mail...
Still, wtf (and 'Scott', please go fuck yourself with your company's portfolio) : what does fucking cheese and dairy products have to do with websites???2
How to get people to subscribe to your website :
1) ask them, be engageant !
2) No... no that's not what I meant... you shouldn't... wait... don't... ow...
And this ducking banner stays in the middle of the screen even when you scroll. There's no cross or close button... Because I love reading my books with a finger laid in the middle of the page.1
IoT project idea : a connected teapot with legit API access points but which answers every request with 413 I'm a teapot.4
Conversation between two freshmen overheard two days ago... They where talking about a webpage that should (or shouldn't) refresh every 30 seconds or so to display an always up-to-date stock for some product.
G1 : "I'd do it in PHP"
G2 : "Dude, no, that'd be a lot of load on the server if a great lot of people were on the site. Imagine, every 30 seconds, it would receive a request, access to the DB, generate the webpage, respond to the request, for like, 1000 or 10000 requests at a time! You update the value client-side."
G1 : "How'd you do it?"
I stopped listening because I had to repress my impulse to interfere to explain a thing or two.9
It's 23:30 here and here are my setups!
1) I'm a student, so I have a laptop for the week and can go to school or friends with it. Beside it is an old Android tablet connected through VNC to a virtual monitor on the laptop. That's my poor man's dual monitor setup 😂.
2) I come back to my house for the weekend and there I run a old rig I got for 25€ from a company I worked for during summer. The machine dates back from 2011 and runs Win7 Enterprise, but on the picture it's a live Fedora DDing the current HDD's content before I upgrade the machine with an SSD, aiming to dual boot Linux on it (not sure yet which distro).
3) I also have a tiny Acer Aspire One that I upgraded with SSD, new keyboard and new bigass battery, to work in nature or trains, because the gaming laptop is indeed heavy.
NB : since I use i3, I mainly use the mouse for games. Also the boobies mousepad is there because my gf wanted me to buy this kind of stuff. She's studying ergotherapy and was worried about my carpal tunnel 😂.21
I am speechless.
(Windows 95 crammed in an Electron app for W10 and MacOS)
|Ѱ> = ½|(rant)> + ½|(!rant)>
I had a rough day, lots of things to do, the heat was as usual unbearable (I'm more quickly hindered by heat than other people, I'm feeling good in low temperatures), I had to go to the groceries, my parents' dog (which I'm keeping for the week for reasons) was particularly annoying today, and had a particularly full bladder every two or three hours, and *gross alert* my weak af asshole is one more time hurting because of the heat and I don't know what.
Then I sit in front of my laptop, and before powering it on I let out a big sigh. My girlfriend ears it, stops working and asks if I want a quick shoulders massage. I can't say no, she knows it...
At the exact moment she began, I pushed on "power on". There couldn't be a more perfect timing : as soon as it powers on, Windows starts (WHERE IS MY F*CKING GRUB ? I WANTED TO BOOT LINUX, I HAVE WORK TO DO) and starts his long ass updates, restarting 3 times in the process. I must admit that without Ms. Brosyl applying her sweet hands on my tense shoulder muscles, I would have gone crazy and flipped every table on sight.
That was a rant, and not a rant at the same time!1
Not coding, but maths.
Some years ago, I promised to give my little brother remedial courses in maths for an upcoming exam. He has always been bad at it so I explained it to him often, and since I didn't do this kind of mathematics in a lot of years, I usually had to read his course before I could explain it.
Anyway, this day, I got upset and drunk much, much whiskey in a bar. At 3pm, my father came to get me back home for my bro (couldn't drive yet at this time and was out for a coffee with friends, at first), so I pretended to be sober, remaining calm and shut during the ride, so nor my breath nor my stupid talk could betray me. Until... Until I opened the window and started singing stupid things to people on the street for no apparent reason. My father was pissed and told me I would have to keep my promise anyway.
Long story short, we got home, I staggered to my brother and started the class. I didn't have to read the material before remembering, understanding and explaining it, my brother understood everything from the first time, as it was enunciated clearly and simply.
He got great grades, which was exceptionally rare. My parents, pissed as they were seeing my state, couldn't believe any of it.1
Warning : (gross && !dev) == true
Fuck my nose, fuck the unbearably hot weather, and fuck toilet paper industry (above all and everything).
I was taking a dump, sweat dripping from my forehead under these 32°C (90°F) (we Belgians use to live in the rain, that's our natural habitat). When without any warning, my weak and sensitive nose decided to bleed by itself (again). First reflex: take a deep nasal breath to prevent blood from streaming like a depressed single on Pornhub before I can grab a tissue. Great idea! I fucking love having a deep breath of my own shit, especially when it's so hot that every smell is twice as strong as usual! Then, when grabbing some toilet paper to dig it far up my nose, I just put blood everywhere, anyway. So I'm here, pants down, dirty ass, trying to clean the blood before it dries, having to watch for my tissue to not become too soaked.
Done. I can now start to wipe my ass. I use 3 papers, and I can't go on, because my poor anus cannot tell the difference between toilet paper and sandpaper. Because these dumbasses that study their product don't get that scrubbing chemicals soaked paper against sensitive mucous isn't something that people enjoy. I don't care if your paper has 2 or a gogolplex layers, I don't care if it smells like aloe vera or your Down sister's diapers, I just want my fucking shithole to not look like it just got raped by an army of angry gorillas after it has been cleaned.
Now I'm in a cold bath, because my body wouldn't stop sweating, my nose wouldn't stop bleeding, and I had to wash my ass with water and soap and not with lame stinky paper (it got done in the shower, not in my bath of course). And before I could even begin to fill the bathtub, I had to blow my nose to get rid of the coagulated slugs of blood filling it. Told you it was gross.
And my friends ask why I don't shit more than once a week. Well, because that's the time my anus takes to stop bleeding and hurting after I use it, as simple as that.7
What follows isn't dev related and began as a comment on one of @AlexDeLarge's rants, and quicly became a full fleged story deserving it's own rant.
Oh God, drunk people are the worst and my gf is awesome.
I live with her in a street that never sleeps. Hardly anybody lives there, actually. That's just bars and night clubs, so during evening and at night, it's very crowded and noisy (luckily we have good noise insulation).
When we get back home late, there is always people standing in front of our door, looking at you like you just shat on their already puke and urine covered feet, just because you try to make them move to use your key.
Then I make sure my lady goes first, so I can check that nobody tries to go inside after me. The boys and girls standing there, watch us then, astonished, like you're some kind of homophobic gay or antisemitic jew, then ask, with a half smile and their eyes blank from any intelligence : "Isn't it hard living here?" (or, sometimes, "Hey dude, can I enter with you? Lol". Everytime I just refrain myself from answering "Yeah, the worst is people the like of you."
It happens exactly like this EVERY.FUCKING.TIME.
I'm not against getting drunk, I do myself sometimes (though that rarely on purpose). But please don't make me hate you for it.
One day we got back after a long party. My gf was merry and I was dead drunk because it bored me so I just drank glasses after another. I remember half of the night, and she told me the next day that I tried to buy a kebab with laundry and beer tickets (also a pants button), and really didn't see what was wrong in this. I can agree with drunk me here : you give a kebab, you get free beers and can go wash your clothes. Win-win!
Anyway, when we made it back to our front door, there was as usual people in front of it. Mainly manly man lesbians with some overweight problems. So she asks "Please could you move a little, we'd like to enter and my boyfriend here feels sick". A plain old 'no' was their answer. So from the top of my drunk wise, I declared "Go away or I'm puking over you, dumb bitches". They didn't like this. They began hitting us.
Everything is blurry from there, but I think some guys came to help them hit me, while they focused on my gf. I was mainly on the floor, taking hits after hits, waiting for them to stop because it was really annoying being punched in front of your door and pissed off that I was in no position to help her. Luckily for her, she can defend herself. The lesbians were just pulling her hair and scratching, so she gave them a few good hits in the belly and they let her go enough time to grab me in the middle of the boys (a friend of us helped her grab me as well, though he managed to stay out of the fight). When I took my key in my pockets, they stopped because they thought it was a Swiss knife (because my keys are arranged like one to take less space). I just went like "Guys, you dumb fucks, that's a key. A keeeeeey", before proceeding to put the wrong one in the lock and breaking it inside.
I don't know how, but the gf, with her long nails, managed to get it out in no time and used the right key afterwards. We were home and alive.
I was really proud of her that day, but also a bit ashamed to have just been a victim and a dead weight. To this day I never drink more than a beer or two during parties, in case I'd have to fight or run on the way back. Also, when she gets out to party with friends, she always phones me to fetch her when she's done, because there are cases of harassment and sometimes rape when a girl is alone late in these streets.
I really don't like a lot of people, but these braindead stupid fucktard make things really, really worse. One day there will be some bomb dropping from my window and these waste of carbon atoms and ethanol molecules won't understand anything that happens to them.15
Guys, I have a question that depresses me :
How do you cope with the fact that you're not Batman?
That seems a bit silly, phrased like this, but it's actually very serious. Bruce Wayne is succesful, pretty, charming, smart, creative, strong, skilled, daring, confident, selfless, and constantly depressed.
I'm just depressed. Well, maybe I'm smart, at least that's what IQ tests and my loved ones are saying, but I don't feel like I'm using that intelligence to its full extent.
***Here comes the big wall of text. Jump to the end if you're pressed.***
I feel depressed every week when I remember I'll never be a great violinist because I've no talent in music and barely any patience regarding it.
I'll never be a good painter because I've got no talent, no eye for beautiful things, and I'm utterly unable to draw what I see in my mind.
I want to be a "hacker". Not a h4x0r, just a man with enough creativity to see unintended uses in everyday things, or to see flaws and weaknesses in things that seems perfectly fine or secure at first glance. Also I want to know a good deal in computer security. But I'll never be a hacker, because my brain isn't wired that way, and it has already lost most of it young flexibility.
I'll never be as good in computers and programming as Linus Torvalds. I'll never have as much insight as Elon Musk. I'll never find a field to conquer just like Bill Gates.
I'll never make science breakthroughs as big as Einstein, Darwin or Stephen Hawking. I'll never be as good in maths as Alan Turing, never be a polyglot able to go anywhere in the world and make himself understood like this guy who learnt 10 languages in two years in this ad I keep seeing everywhere.
Well, things may happen, but it's so unlikely that my pragmatic mind just can't believe it.
I'm just an average smart pal, who wastes his time by sleeping because he's abnormally tired all the time, and who seems to never find the time to do anything although there is 16 hours in a day (given that you sleep 8 hours).
That fucking depresses me big time, and at this point I feel like it's a vicious circle and that I need professional help. I know I have to let go, and aknowledge the things I'm really good at, instead of focusing on things I'm not. But these just seem to be "easy" things to get good at. Realising that I'll likely never reach the level I aim really bugs me, and actually slows me down even more...
I'll stop here, but I could keep talking about it for hours.
That's a toxic mindset, but younger I've always seen myself as a bit superior. Now that I'm more mature and less arrogant, all that's left is my ambitions and the knowledge that they'll never be reached. Life has broken me a bit, these last years, which made me like this, and I still have to learn to cope with it.
I seriously think about ending it all, sometimes, for a few minutes. I'd never do it, be reassured, that's not a suicidal man call to help here. I'm too aware that this would do worse than anything, mostly for my loved ones, and I'm probably too coward anyway. But during these short moments, it's like I don't see the point of living since I'm just replaceable, and I don't see why I should keep going with the bitter taste of underachievement constantly in my mouth.
How do you guys cope with not being Batman?17
I was looking at really old posts here (~2016) and noticed some of you have really been here for a long time and are still quite active, which I find awesome.
What struck me the most was when I saw members writing in a rather bad grammar at that time, although today you couldn't tell if it was their first or second language. In two years, some devranters have really improved their English, and I'm sure it's been the same for dev-related knowledge.
I realised that people can really change quickly, even if the transition is imperceptible. Keep working, you may not notice you're improving, but you are, the future will prove it.4
At first, the dark theme was a bit unsettling, but now I find it just beautiful!
Anyway, welcome me among the devRant supporters! I'm proud of that ++ tag near my username 😊!4
To all the electronic amateurs out there (especially @Condor since he's the only one I remember well en) :
- What model of soldering iron do you use for precise work?
- What would you recommend to someone who's wanting to try theirself without paying too much too early?
- What are the features or spec to look for when you buy one (even as a debutant) ?
I've got one but it's more suited to gross work and I'd really love to try myself to electronic fiddling.
If you have any advice, resource, tuto kit to make my first arms, I'll take anything!8
Aiiiii look at me, I bought miself a suit! Also upgraded my laptop! Time to get productive! New suit, new me!9
8am, I just burst a tire in my mother's car.
I look for the spare wheel, can't find it.
We have an insurance which can send a truck in minutes for no fees. I call them.
I wait for an hour, they call me back, saying they're on their way.
I call my mother to tell her what happened. She asks "Did you not find the spare wheel?" - "Nope." - "In the trunk, you can open the bottom." - "Yes I did but there was nothing unde... oooh... wait, I can open the second bottom too... There it is, the spare wheel..."
Time to look like an utter idiot in front of the guys who'll come. I have to admit that my early giving up was an insult to my natural curiosity. As a (future) developper I should have tried to search until I was certain there was nothing I could do alone.3
I found this in a magazine today 😂... Once you get it you'll laugh (or smile with air flowing through your nose slightly harder).
Without much surprise, you are 27% to use Angular, followed by React with 20%, and Vue at 13%. However, Vanilla is not well known, and Meteor is even less.6
include '../week111/@AlexDeLarge.php'; //
echo "Also, as a student, collaboration is useful to get missed courses, information about homeworks and exams, help when blocked on something, etc., and that involves social interaction.
I usually deal with this by giving info and advice to whoever needs it, posting some occasional meme on our discord server, sometimes add a little something when we are in discussion, giving out smiles (I'm good at faking them) and avoiding people whenever possible.
I have friends in my class, just enough to count on one hand, and I enjoy spending time with them, but for the others I just do what is required by social conventions."
I just wrote a long-ass rant and deleted right away because it was, again, a FUCKING WALL OF TEXT.
I fucking need to learn to summarize my thoughts.
I'll write it again another day, and I think I could even divide it into two rants.
PS : that was a rant about my fucking verbose mind, so no category problem here.3