Details
-
AboutDid it and became a "Fachinformatiker Anwendungsentwicklung", Moderator at LinuxQuestions.org
-
SkillsPHP, C#, Python
-
LocationGermany
Joined devRant on 7/12/2018
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
-
@blackfaded https://developer.mozilla.org/en-US...
I have only done that in Go so far, you have an connection upgrader provided by the websocket framework there. -
These people are seriously stupid (and the German ministers are not a bit better, FWIW). Encryption is already out there and anybody capable of reading some tutorials and renting a VPS for a few Euros a month is capable to build a basic chat app with end to end encryption in a couple of hours.
I always wonder, why they do not elect experts into these positions, people knowing what they are speaking about, instead of those imbeciles. -
Usually you send an HTTP(S)-request with the Authorization-Header to an API-endpoint. The API-server then upgrades your HTTP(S)-connection to a websocket-connection. From that point on it is neither necessary nor possible to send further HTTP-headers (or for the websocket server to read them), since it isn't an HTTP-connection anymore, it is a socket now.
-
@PrivateGER Try an update of a Magento instance, even minor ones, like from 2.3.2 to 2.3.3, need forever just to calculate the dependencies.
-
If you think npm is slow try Composer.
-
Social engineering, as a part of hacking, is all about finding out other people's passwords without actually ever touching a line of code.
In other words, if someone found out your password by the means of social engineering that person has been hacked. -
I use the X-plore file manager on my phone, it is capable to use SSH connections to transfer data and I have set up SSH on all my machines anyways, so no need for additional configurations.
-
@StefanH wear-out is a non-issue with modern SSDs, so I wouldn't care about that. There might be a performance impact if the main purpose of the disk is to store many small files in rapid succession, but that should be all that's about it.
If you go for cheap replaceable hardware anyways, then wear-out and performance weren't that high up on the list of requirements anyways, I would guess, so why bother, just make sure to have backups and go with it. -
SSDs don't work with sectors with 512B or 4K size, they work on blocks, sometimes also called pages, which are much larger (last I checked 512KB was common). SSDs can't erase/write single 512B or 4K sectors, only whole blocks/pages. Therefore, partitions on SSDs should be aligned to blocks/pages, not sectors (which are still reported by SSDs to tools like fdisk or gparted).
I haven't seen disks with a page size of 512MB, though, are you sure it was not 512KB? Normally you just align partitions to the 2MB mark and you are fine. -
Display a warning popup that says that the IE is insecure and Microsoft recommends to use a modern browser when you detect IE.
Give people a reason to move, or they will stay where they are forever. -
@Pogromist Given that Go counts to the C-family languages, but enforces the first style: No.
-
Because oftentimes you will find either bacon in it, or it is made with broth made from meat.
-
I don't think that OOP is bad in itself. I think that OOP is overrated and for some reason seems to be the default paradigm for anyone, where I rather would have a "let's see if OOP is necessary for this, or if maybe a different approach fits better for this problem" way of looking at things.
Especially for smaller tools I have seen some that where written in an OOP way of design, but only had very few classes that weren't even really related. It could have been done much easier just using procedural programming. -
Usually the login loop happens when your system can't get write access the home-directory of the user you want to log in with (or can't find it at all). Check your partitions, if you have a separate partition for /home maybe it isn't mounted, or mounted read-only. If it is a fresh install not really likely: check if your /home-partition is full.
-
@Coffe2Code yeah, scientists seem not to be with you on that.
-
Evolution will never be more than a theory. That is the highest possible outcome in science. The same as the theory of gravitation and the germ theory will always remain theories.
-
Node is still single-threaded. So, if your backend does anything but pure CRUD I would not choose Node.
But then, since I don't like Javascript I wouldn't choose it anyway and rather use Go. -
I would say: it depends on the lifetime of your tokens. If you have very short lifetimes then an attack stealing a token is almost useless. If you have long-lived tokens, then yes, it is usefull, it let's you store a token in a blacklist, so that it can't be used anymore.
-
"code does does replace a good documentation"
I do not agree with that completely. Code does only replace the documentation for how you do something, but it does not replace that explains why you do it in a certain way. -
If you need some time off, take some time off.
Your health is always more important than your job. You can get a different job, if you need to, but getting rid of health problems is not so easy. -
Looks like a serialized PHP-Object. You can unserialize it using the unserialize function: https://php.net/manual/en/...
-
I wouldn't say that learning C will help you to be a better Python programmer.
I would go a few levels further down: Knowing about how a CPU works, what it is all about with cache sizes and memory access, and so on, so that you have an understanding why your performance suddenly drops down a magnitude or two and how to solve that problem. -
Two possible explanations:
- Photoshop/Gimp/Choose your poison
- Satellites -
I would report that as a bug. i am not sure that is intended behaviour.
-
Are you compiling single-threaded? Bacj in the days when I was using Gentoo I could compile the entire OS in 5 hours on a somewhat decent machine for that time (Phenom II six-core CPU with 16GB RAM).
-
Don't use FTP, it is inherently insecure and should be avoided. Go for SFTP instead. All you need is an SSH-Server and IIRC nowadays even Windows comes with one out of the box.
-
@Ganofins Assuming that you don't have a MTA configured, have you tried to redirect the output of the command into a file to check if you get error-messages?
-
Pretty much every problem I had so far with running something as cronjob was missing environment variables. Always use full path names, never assume that a PATH or other environment variable is set correctly.
-
@badcopnodonuts Websockets. The clients accessing the REST-API can in our case be a web app, a mobile app or, in future, backends of other modules of the project. Webhooks aren't of much use with mobile apps or web apps.
-
In Mathematics the variables i,j,k,l where usually used to describe integers. Fortran took this convention and ran with it, in Fortran variables beginning with the letters I-N where of type Integer by default, which of course means that single letter I is the first "default" integer variable.