Do all the things like ++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatarSign Up
I've lost count how many times windows has decided to wake itself up from sleep mode to update. Sometimes it doesn't even update, I will be laying in bed and it will turn on, I will then have to sit up for half an hour waiting for it to finish (otherwise my pc will just be on all night) then when it is finally done, I will get up and go to turn it off and it says "Turn off and update" and need to update again.
To make it worse, it restarts itself while updating, so all the stuff I wanted to keep open by putting it in sleep mode will be gone.
Is there any way to prevent windows from doing this update during sleep mode? If not I am going to need to completely turn off my PCs power when it is in sleep mode, which it just a pain for me.1
I was thinking about how I implement login functionality, and realised I have no clue how I came up with it so decided to ask if it was a good way to do things.
Basically, client logs in, username/email and pass are sent to server.
Server salts and hashes password and checks it against the one in the database for that user.
If its correct, send the client the user ID and the user token. (User id could be username, or a number, it depends)
When that client makes a request, the request must contain the ID and token.
The server checks that the ID and token combo are correct, and because the ID is linked to the user we know who it is and can complete the request.
Usually I make the token a random string of 16 or 32 chars, each account has their own token, and it may be stored in the browser so they stay logged in. I also normally add a "log out everywhere" button, which essentially just generates a new token to overrides the current one, making any previously saved tokens invalid.11
me: Imma start working on this project I have been putting off for a week
me after messing with the chrome console for 30 mins:
So last year I started a project, and gave up after 8 months (was an unemployed student, and made my todo list wayyy too long)
Turns out, over those 8 months I wrote over 13.5k lines of coding/ styling, while also spending a couple months revising for, and taking my GCSE exams where I didnt do any programming.
Somehow I was averaging around 2k lines a month and I wish I had that productivity still.3
Windows just got a BSOD and had the classic "please wait while we collect error info, we will restart for you shortly".
When it reached 100% it actually restarted itself and I litturally said "woah" out loud, thats litturally a first for me. It normally just hangs on 100% for about 15 mins before I just power it off manually.
It sucks that I lost my work, but atleast I got to witness such a rare event.5
Me and a friend are making a discord bot, and added a warning command to warn users.
All was going well, and when we tested the deleting a warning it seemed fine. I then tried to delete all the warnings one by one, when we came across a problem. It wont delete the last warning in the array, the 1st, 2nd, 3rd etc? Thats fine, just the last index that isnt working.
Our code is like this:
list = data.warns//a list of JSON format warnings
console.log(list)//shows the value is in the list
console.log(list[index])//shows the value
console.log(list)//shows its gone
data.warns = list;
console.log(data.warns)//shows the value is still no longer present
data.save().catch(blah blah)//no error is caught, and nothing crashes, it proceeds to send a message to the channel after this
but then the value at index is still there in the database as if it didn't save it, but only if the index is the last item in the array.
We have been stuck on this for over an hour and I now remember why I hate programming.2
Ok so I have never really used motors before so I have no idea what I am doing, but I was wondering how to calculate how much weight a motor could move.
Say I have a trolley that weights ~300kg, and I attached a motor to each of its 4 wheels how would I calculate if it would move/what would be needed to move it, and how would I know the RPM of the motors. (Friction can be ignored and it would be on a flat surface)
Also, if I added 4 more motors to turn the wheels, since its just moving a small wheel and it wont be supporting the weight, could it be weaker than the other motors, or would the force that the wheel is experiencing from the trolleys weight effect the turning of the motor.1
People love fast moving green text with a black background.
I have linux on my laptop and I have a script (litturally just 1 line) that outputs random hex data to the command line.
I ran it while WebStorm was starting up and I had people instantly telling me to shutdown all the pcs on the network xDD6
Ok so Im doing a project about interpreters for college, and need people to answer questions for it.
If youve ever made an interpreter could you answer these, thanks!
1) how long have you been in the computing industry?
2) what got you into interpreters?
3) what do you think is the hardest part about creating an interpreter?
4) what do you think aare the best practices for creating an interpreter
5) do you think its best to create a language or create your own?9
So for game dev we need to do a lot of writing. For an assignment we had to write 3 documents.
First has 8192 words, a power of 2.
Second has 3600 words, a nice square number.
Third is 2002, my birth year.
Just found it nice that they were all randomly a nice number.
There is this thing we were able to take at college to get extra UCAS points.
At first I was like "fuck yeah might as well, doesn't seem too hard and its something I like so I wont be distracted"
Long story short, the website was badly designed. I got distracted. And I found out how to get admin rights over my marks (and rest of my project), and perform an xss injection.
Currently waiting for them to reply to my email asking about a bug bounty program.
Seriously guys, make sure you do proper server side checks.
I'm so lucky.
I have been working off of my usb recently, and been programming something. I had maybe 20 changes I needed to make (some werent big, they were just ui changes, but some needed a new column to be added to a database).
After I had done most of it, and had maybe 4/5 left I started getting this really bad feeling I was going to lose my USB.
I decided to ignore the feeling and just work on it in my next 2 breaks, and when I finally finished it, I uploaded the code to github.
That was yesterday at about 1:20.
This morning I check my bag and my USB is not there.
Holy shit was I lucky, if I hadn't finished my project I would have lost that progress and need to redo it all by tomorrow.
Tldr: I had a feeling I would lose a USB I was working off, but didnt upload my code until I was finished. Haven't seen the USB since uploading the code.2
Me in a test:
I then lost 2 marks for not having an else statement -.-32
So I'm sitting here, one monitor has a project I am working on for computing, which once done, I need to write somewhere between 30 and 70 pages of documentation, and the other screen has a half completed 6 page documentation for a game I made in Game Dev.
If I go into backend programming, am I really going to need to do all this documentation or is it just one of them things that colleges do that has no relations to reality?
(Also if I go to uni, will I need this level of documentation there too?)10
So today is my 17th birthday. One of my friends got me some chocolate and a bunch of little kids stuff to embarrass me.
One of the things he got me was a rubber duck.
He doesnt know how much I actually wanted one xD6
Teacher: "Will this SQL statement work LavaTheif?"
Me: "you need to put a 'WHERE id.."
T: "but will it work like this?"
Me: "well it wont do what you're trying to do, so it wont work properly"
T: "so will it work?"
T: "wrong. It will work, but it will change everything in the database, which we dont want"
Thats what I was saying??
Also, he spent 50 mins out of our hour lesson explaining how to use SELECT, INSERT, UPDATE, and DELETE. I just wanted to get on with the work tbh.9
I have been thinking of buying some monitors recently, but I've never bought a monitor before so I dont really know what im looking for. What sorts of monitors would be classed as good?6
Today I learned:
My computing teacher has never thought about having the front end and back end as different apps. He always just connects to the database from the client and calls the clients non-gui parts the backend.
I now understand why he was so confused when I said I was thinking about the backend accepting web-based and desktop-based clients.2
Anyone know why using "OS" instead of "Operating System" in AQA A-Level computing loses you marks?9
Is anyone able to help me fix a bug?
The wakeup function keeps throwing an error and reverting back to sleep mode, unless there is an alarm nearby. Does anyone know the fix to this?2
I had this dream lastnight and all I remember is typing:
rn -rf .
Into a terminal. I want to know why I needed to delete the folders xD3
Whats a programming language called that is compiled into another programming language called? Is it just a programming language or is it a specific type?6
Okay. So. I was fixing my laptop (the screen was broken) and I decided to just boot it normally rather than into linux with my USB just to test it.
Once it booted up I thought "you know what would be funny, if I decided to look at my crappy first ever programs", so I fired up eclipse and looked at them. Spoiler alert: it was really bad.
I then decided to go to my first proper project where I didnt follow a tutorial for it like I had with most bigger things up to this point. This was when I remembered that all the files had a last modified date.
I decided to go back to my first projects folder to see when I made it. Turns out it was 6 months before I thought I had started coding.
Awsome! I have 6 months extra experience.
Turns out this means in 2 years, 3 months I'll have 5 years experience, which is about half a year after I finish college.
First of all, it does not seem like almost 3 years already
Second, I cant believe how soon after finishing college I will reach 5 years. I thought it would be *atleast* a year.4
So my brother went back to school today. Now, during the 5 years I was there they had the most shit security on their IT systems, but aparently now they have fucked up their ssl. If you try to load the https page it comes up with the warning saying its an invalid certificate, but once you click it, it doesn't even load the school website, it loads this random page. Clicking on the buttons then take you to a page under their domain provided by another school. Going to this schools website, the https seems to be broken in the exact same way. It wouldnt be so bad, but it can confuse the hell out of people who type https before a url, and thos who dont realise and end up on the insecure site will need to provide passwords over an insecure connection. I am so glad im out of that place, they had such crap IT and everything was so easy to break.1
Is there a way to sign code for free (or atleast not need to pay over £200 for it)? Im a student and cant really afford much but I have been working on a website and made an electron build for it, however downloading the installer prompts the user to discard it in chrome, then running the installer prompts the user to select do not run in the windows security thingy as its from another computer.
What would be the best way around this if I cant get a certificate for it?2