Details
-
AboutCode slave.
-
Skillsangular, java, spring, thymeleaf
-
LocationJapan
Joined devRant on 5/16/2017
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
-
I was today years old when I created my first node.js Hello World app. I managed to add some basic routing with express.js, managed to read a mysql table and some JSON. I'm starting to 'get' the node.js environment. Shows you're never too old to learn something new.3
-
Practical example of why you should sort your code by feature (users, notes, analytics) instead of technical layer (models, views, controllers, etc)5
-
*Me Calling the NSA..
[NSA]: Hello, how can I help you !
[ME]: Hello, this is the NSA right?
[NSA]: Yes
[ME]: Since you are recording all phone calls, I have a little request.
[NSA]: And What is that?
[ME]: My mom called me couple hours ago to bring something from the supermarket, her phone is off.. What did she told me to bring?
[NSA]: beep..beep..beep10 -
Okay, this is a rather technical rant and I am sure some of you are working on the patches already, if you are then lets connect cause, I am an ardent researcher for the same as of now.
So here it goes:
As soon as kernel page table isolation(KPTI) bug will be out of embargo, Whatsapp and FB will be flooded with over-night kernel "shikhuritee" experts who will share shitty advices non-stop.
1. The bug under embargo is a side channel attack, which exploits the fact that Intel chips come with speculative execution without proper isolation between user pages and kernel pages. Therefore, with careful scheduling and timing attack will reveal some information from kernel pages, while the code is running in user mode.
In easy terms, if you have a VPS, another person with VPS on same physical server may read memory being used by your VPS, which will result in unwanted data leakage. To make the matter worse, a malicious JS from innocent looking webpage might be (might be, because JS does not provide language constructs for such fine grained control; atleast none that I know as of now) able to read kernel pages, and pawn you real hard, real bad.
2. The bug comes from too much reliance on Tomasulo's algorithm for out-of-order instruction scheduling. It is not yet clear whether the bug can be fixed with a microcode update (and if not, Intel has to fix this in silicon itself). As far as I can dig, there is nothing that hints that this bug is fixable in microcode, which makes the matter much worse. Also according to my understanding a microcode update will be too trivial to fix this kind of a hardware bug.
3. A software-only remedy is possible, and that is being implemented by all major OSs (including our lovely Linux) in kernel space. The patch forces Translation Lookaside Buffer to flush if a context switch happens during a syscall (this is what I understand as of now). The benchmarks are suggesting that slowdown will be somewhere between 5%(best case)-30%(worst case).
4. Regarding point 3, syscalls don't matter much. Only thing that matters is how many times syscalls are called. For example, if you are using read() or write() on 8MB buffers, you won't have too much slowdown; but if you are calling same syscalls once per byte, a heavy performance penalty is guaranteed. All processes are which are I/O heavy are going to suffer (hostings and databases are two common examples).
5. The patch can be disabled in Linux by passing argument to kernel during boot; however it is not advised for pretty much obvious reasons.
6. For gamers: this is not going to affect games (because those are not I/O heavy)
Meltdown: "Meltdown" targeted on desktop chips can read kernel memory from L1D cache, Intel is only affected with this variant. Works on only Intel.
Spectre: Spectre is a hardware vulnerability with implementations of branch prediction that affects modern microprocessors with speculative execution, by allowing malicious processes access to the contents of other programs mapped memory. Works on all chips including Intel/ARM/AMD.
For updates refer the kernel tree: https://git.kernel.org/…/ke…/...
For further details and more chit-chats refer: https://lwn.net/SubscriberLink/...
~Cheers~
(Originally written by Adhokshaj Mishra, edited by me. )23 -
That's the exact question that came to me 2 years back when I was also going to go to sleep early tonight14
-
Today we have an exciting devRant announcement! As many observant members of the community have problably noticed, since launch we've been using the domain name devrant.io since the .com was already taken. Today, we're happy to announce, we now own devrant.com and it is now the official devRant URL!
How did this happen you ask? The devrant.com domain was already owned by a developer named Wiard when we launched devRant. It took a while to track him down, but when we did, turned out he saw the good we were doing and wanted to help the devRant community by generously offering us the .com domain for a very reasonable exchange (considering that we are a self-funded bootstrapped startup!).
Since Wiard recently started writing a blog on devrant.com, he had to find a new home for it. His new blog is https://sysrant.com and I encourage everyone to check it out! Great topical/educational dev/sys-admin related articles? Check. Someone who cares about the devRant community and allowed us to leave the firey hell that is .io? Check. So check it out!!
Some technical info:
This change is immediate and all devrant.io non-api requests will now redirect to devrant.com. We might have missed a few things (purposely or accidentely) so we're going to be going through and converting anything that's left. If you use the devRant API, your implementation should not break since API requests are meant to be excluded for now, but I highly recommend switching any API URLs to https://devrant.com so you can avoid issues in the future if we decide to stop redirecting devrant.io API requests. Also one note, there was an issue for about a minute after we turned on the redirected where some API requests to devrant.io might have 301 redirected to devrant.com. If an app you were using broke, try clearing whatever cache the 301 redirect might be stored in and the issue should go away.
Feel free to post any questions you might have here (and please let me know about any issues you might discover!), and once again, huge thanks to Wiard!72 -
Finally got around to installing Arch on an actual machine 😀
I went for deepin since i wanted to try something new. I didn't go for any WMs since the whole concept seems complicated to me but i wanna look into it someday.
Anyways, super happy so far. I boot in < 5s from hitting the power button which is super dope ♥️ ♥️. I did have some weirdness with nvidia drivers (as usual on linux lol) but reinstalling it fixed it.40 -
Client: hey ***, happy birthday can you help me fixing....
Me thinking: hell no, i deal with yall fuckers 364 days a fucking year and yall can't leave me the hell alone for one cocksucking day. I need this one damn day a year not dealing with yall assholes where i don't snap and drive 300 fucking miles to not drive a nail in a broomstick and drive it up your fucking asdls6 -
Start-up: hires 3 junior devs to save money.
Start-up: expects things to get done faster-- BUT-- Start-up keeps adding things to the TO-DO list and backlog-- i.e. it's all relative!!
Start-up: gets angry at 3 junior devs why they can't deliver when they keep adding tasks and ask we fall behind.
Dev team: "Seriously? You hire more devs to finish tasks faster, but you keep adding more than are being finiahed-- obviously it's gonna take longer now regardless"
Git --pull life together2 -
I am sure this has happened to all of us in some extent with some variations.
Colleague not writing comments on code.
Ask him something like "How am I suppose understand that piece of garbage you have written when there is no comments or documentation?"
This keeps happening for a long time. Some time after, I write a kernel module using idiomatic C and ASM blocks for optimizations (for some RTOS) and purposely not write neither documentation nor comments.
When he asked for an explanation, I answered to everything he questioned as general as I could for "that trivial piece of code".
After that he always documents his code!
Win! 🏆4 -
Me and the CEO of my company are both in the same clan in clash of clan.
I've never worked for a cooler guy. And funny enough he is much much much better than me. He has been playing for like 4 years.
When I started writing this 2 weeks ago (yes I forgot about this) he was working with us, he resigned in the meantime.
I just did the same, Today.
So, I guess best ex-ceo for a probably best ex-employee.
😕😕😕😢😢😢😕😕😕7 -
devRant is nice.
If you move rant feed to "Recent" and saw a bunch of rant u already read but you keep scrolling down hoping to see new rant but u fail cause rant policy keep people from posting new rant for 2 hour and not many new rant has been post.
This is a nice feature. It make u self aware that "crap, maybe too much time on devRant". Even if you addict to devRant but by this policy -> It force you to really close its app and checking it on another free time. (more healthy than another social media I guess 😂)2 -
There's simply not enough time in a lifetime to master everything one would like to master. And it's even worse in technology, where by the time you're getting close to being good at something, a newer technology is pushing already to replace that one. WTF!?3
-
Before starting to program I was impatient with the progress of technology, now that i've started learning to program I'm intimidated by the progress in the tech industry.1