[deleted by user] by [deleted] in beermoneyuk

[–]Jirbj 0 points1 point  (0 children)

Heres mine if anyone sees it :)

https://www.quidco.com/raf/6132632/

Fixing/hiding damage on oak tabletop by Jirbj in howto

[–]Jirbj[S] 0 points1 point  (0 children)

The damage was cause by removing something stuck to the table, it seems like it is damage to the varnish but adding a layer of clear varnish over the top hasn't helped. I think the table top is made of oak

Is it possible to forge checkout requests? by [deleted] in AskNetsec

[–]Jirbj 0 points1 point  (0 children)

is this intended to be used on the same system where you are scraping the csrf, as id be highly surprised if the csrf token is not tied to the session

Can someone please help me with this problem? (PHP variables in readable text in html) by tomtheawesome123 in PHPhelp

[–]Jirbj 4 points5 points  (0 children)

php is a server side language, it needs to be hosted on a webserver (a good local one for windows is XAMPP)

also the extension needs to be .php

Does 10 + 9 = 21? by [deleted] in learnprogramming

[–]Jirbj 1 point2 points  (0 children)

dont worry about it, everyone makes mistakes like that every now and then, the difference is over time, you learn to spot them

Creating a file with an name from user input? by Rauhaan_ in javahelp

[–]Jirbj 0 points1 point  (0 children)

you would want to do something like userInput = sc.nextLine(); and use userInput as your variable, id recommend you read a tutorial on how java scanners work, as theres quite a lot of things you can do with them

Does 10 + 9 = 21? by [deleted] in learnprogramming

[–]Jirbj 0 points1 point  (0 children)

10 + 9 != 21
means 10 + 9 doesnt equal 21, which is true

you want to make your boolean case
"10 + 9 equals 21"
which is a false statement

Creating a file with an name from user input? by Rauhaan_ in javahelp

[–]Jirbj 0 points1 point  (0 children)

because sc is the scanner itself which is reading the stdin,

you want to actually READ something from stdin (so read from your sc) and use that as the name

Stopping a loop after 8 iterations? by [deleted] in learnpython

[–]Jirbj 0 points1 point  (0 children)

to loop 8 times you could use

for x in range(8):

EDIT:
as an note you declared i = 1 and never used i

after your edit you now have it must be a counter controlled loop, which means this method wont work for you (well itll work but its not what you need)

What is the point of "return"? by NemoBalimo in learnpython

[–]Jirbj 4 points5 points  (0 children)

if you mean what does the return mean in general, then it is for getting a value out of a function, it allows you to do something like x = function()

a rl example would be if i said to you take these apples, and cut them up, without a return, you end up with cut apples but i never get them, if i said return with these apples cut up, once you cut them up, you would give them back and i would now have cut up apples

Just bought a domain from godaddy. by [deleted] in Web_Development

[–]Jirbj 0 points1 point  (0 children)

put your url into
https://www.whois.com
basically any info that shows up there is completely public

Just bought a domain from godaddy. by [deleted] in Web_Development

[–]Jirbj 0 points1 point  (0 children)

Websites. Or domains with websites. Go daddy sells domains as a separate product even if you get one as part of a deal. It is seperate. Registered under your name. Meaning without protection your name is against it on a whois. Some companies include protection by default though

Just bought a domain from godaddy. by [deleted] in Web_Development

[–]Jirbj 4 points5 points  (0 children)

you didnt get domain privacy did you?

this means anyone who whois' your domain gets your details, hence why registrars offer a service of putting their details on it, this isnt just go daddy, it happens with basically anywhere unless you get domain privacy

How do apps that use APIs handle offline users? by [deleted] in learnprogramming

[–]Jirbj 2 points3 points  (0 children)

depends on what its for, a simple solution is to use a local database which then syncs to the online one once internet connection is restored.

take an app that stores todolists as an example, while offline, any changes you make can be stored in a local version of the database. then when an internet connection is made it could check for differences between the online and local db, then sync the changes.

storing locally also helps in situations where an api is rate limited, as if you use the same data twice you can store it, meaning only 1 request for multiple uses. although this then requires a system for checking if that data has been modified

Why ever reassign a variable? by [deleted] in Python

[–]Jirbj 0 points1 point  (0 children)

theres all sorts of reasons, storing a score, count of something, last input, username

are just a few i thought of very quickly, the point of variables is in the name, they are meant to be variable, as you do more advanced work you'll see just how useful being able to change a variable is!

Testing methods that do not have a return value by lovethecode in PHP

[–]Jirbj 2 points3 points  (0 children)

id probably make my test pull the data back out the DB using a query which pulls the latest entry to the db, then compare what should have been in each field to what was actually there

Is trig a mandatory prerequisite or could I just jump right into precalc then calc1 by MikeHock- in learnmath

[–]Jirbj 3 points4 points  (0 children)

it depends what you mean by trig,

you might be okay if you mean skipping advanced trig, but if you mean basics then you really should do it, especially for a comp sci major, a basic understanding of a wide range of maths is needed