This is my first real javascript assignment and I'm having kind of a hard time with it. I talked to my instructor about it, and he said I could go to a forum and ask for help since it isn't due for a while. This being said, I don't want you guys to necessarily spoon feed me information, nor do I want to plagiarize anything - I want to learn this shit because I'm going to be required to do it at a job someday. However I'm kind of at an impasse with this program.
The goal of the program is to illustrate how stupid it is to play Lucky Sevens. The...
Comment too long. Click here to view the full text.
Defining a function requires the keyword function followed by the function name e.g.function checkDie
Calling a function only requires the function name plus any variables if required. So on line 45 should be} else {
CheckDie();
}
You also have problems with the cash ++/-- area. Your creating a local variable which has nothing to do with your storage of cash.
>>55587542
Thanks for this! I'm going to try to go through my code and see if I can fix any errors with this new information.
>>55587542
Okay, so now I'm definitely on the right track. No need to use the function keyword unless I'm declaring a function.
When I try to run this through Chrome's debugger, it keeps coming up with strange errors. For example, it keeps identifying </center> as an "unexpected token" but it's outside of the <script> elements.
What's /g/'s opinion of power packs? Considering getting pick related for my phone for long trips. Are they worth getting or are they not actually that useful at all?
>>55587373
They are so fucking worth getting. They're my answer to all the big gay babies who complain about not having a swappable battery. These things give you extra charge just as well, except they charge anything -- past, present, or future, within reason -- instead of just working on one specific model of device.
I recommend the Anker PowerCore 20000mAh battery. It's never done me wrong.
>>55587373
>buying a phone with a battery that is so shit you need carry around batteries to charge the battery
>mfw
Just buy a phone with a reasonable battery ffs. This would be like buying a car with a tiny gas tank and then towing around a trailer with a gas tank in it — its retarded not to mention highly inefficient.
>>55587729
I use one of these when I'm camping and shit, IU wouldn't want to carry a battery around with a 5 day battery, shit would be heavy and lame.
- It may be interpreted / Compiled, Whathever; Ask for a string
; The string will change value according
to ASCII table inverting Decimal Value
if the value is a 3 number value (ASCII
103) cut the middle number then
create new string from that
EX: "I am Retard" should output like:
"%↨O[↨∟=O)"
class Program
{
static void Main()
{
string FullOutput = "";
string s = AskString();
GoOutput(s,ref FullOutput);
Console.Write(FullOutput);
}
public static string AskString()
{
Console.Write("Type Something: ");
return Console.ReadLine();
}
public static void GoOutput(string s,ref string FullOutput)
{
string CharOutput = "";
...
Comment too long. Click here to view the full text.
>>55587342
You didn't post a bird with a knife, so why should I do this?
>>55587362
the baby with a sword will get you.
For someone who has lost purpose in life and has body injuries and was gonna do something in the health or fitness field, is a career in IT a bad option? i was thinking of going to the community college near me for IT. How b ad of an idea is this? I have a basic understanding of computers and think it would be okay.
>>55587326
>basic understanding of computers
Look mom, i can install a video game.
>>55587326
Not bad, if you have a passion for it.
>>55587326
>basic understanding of computers
It doesn't matter, in college you will deal with math most of the time. In Computer Science it's like over 80% math and it's fucking boring if you have no passion for it
Why do people use GRUB? Don't they know it's deprecated and clunky?
Because it just werkz
I ask myself the same question. I use LILO and it just werks.
>>55587348
development on LILO ceased end of last year
Why the fuck are my temperatures so fucked /g/?
I have:
Fractal Design R4 with;
2 intake fans on the front
1 intake on the bottom next to PSU
1 outtake on the back
1 outtake on top rear
Hyper 212 EVO on the CPU with fan pointing backwards towards the outtake fan.
Could Speccy just be wrong? When I go in BIOS it says my motherboard is at like 24C and CPU is around that as well.
I just slapped my boot drive in this build that was used on a different computer entirely, could that be a problem? Prev computer was i5 3570k on Assrock Extreme4
I'm...
Comment too long. Click here to view the full text.
Chipset and BIOS are all up to date too.
you need more gaming components colored blue instead of red, red creates heat and performance, blue is for cooling, green is for energy efficient and black for hacking
>>55587274
Speccy is a half-broken piece of shit that hasn't been properly updated since January last year. If your UEFI says temperatures are fine, they're most likely fine.
Hi people, I kinda need your help
I know how to program things, but I have no idea what to do.
I'd like to do some app for android, or for the web. I'd like it to be original and/or useful
Any ideas?
>>55587247
1.get an idea
2. learn how to write in a programming language(s) of your preference(s)
3.make the idea come true
4.????
5.Profit
shodan.me/books/
>>55587247
Hello kid, first of all what programming language do you prefer, son?
>>55587294
It's the idea part that I'm missing, I already know some languages
>>55587305
I know Python and Javascript
I'm also okay with C, even If I don't really have any idea about what to do with that
Any way to get play credit for free? I'm 5 cents a while at from getting Poweramp.
>Inb4 Google rewards
Anyone who can help me out can get a word in for a 50% at fry's electronics
You can pay with your credit + the 5 cents from your credit card.
>>55587854
>feeding your credit card info to Google
>>55587151
Suck a dick in a dark alley for credit card info >doesn't exist
There's something I don't understand well.
How could a malicious website, without using some security holes from Flash, Java..., infect an user ? I understand how Javascript can open an invisible iframe that'll make the user download a binary file (the malware), but he would still have to run it himself to infect his system, no ?
Also, talking about Javascript malwares. Why are some malicious email attachments written in JS and named something like "document.doc.js" ? Why not just send directly the malware as "document.doc.exe"...
Comment too long. Click here to view the full text.
>>55587122
Because javascript was intentionally made to infect the biggest amount of users. Jews wanted it this way
>>55587135
You're not even responding to my questions, faggot. Please stop shitposting, it's kike-level.
>>55587122
Think about it... You answered yourself.
>How could a malicious website, without using some security holes from Flash, Java..., infect an user ?
Maybe it really was intentionally. Think about it. How can things like Adobe Flash that is closed source and javascript be so flawed from the beginning? When there are way better alternatives. Maybe someone filled their pockets with copious amounts of money
I've been offered a SysAdmin position! After years of being exploited, I am finally going to earn a decent wage! I am fucking ecstatic!
A bit nervous about the new job, it's going to be demanding, but happy.
I'm not trying to make anyone feel bad or anything, I'm just happy and I wanted to share.
>>55587101
Congrats, OP! Good luck at your new job! Don't forget to treat yourself with something nice when your first paycheck lands.
>>55587101
nice work! good luck!
>>55587101
How. Teach me, master.
So... when was the last time you backed your shit up /g/?
List the following:
>OS
>Software
>Amount of restore points
>Target including target size
>OS
Windows 10
>Software
Veeam Endpoint Backup (pic related)
>Amount of restore points
120
>Target
2TB USB 3.0 2,5" HDD
>>55587088
I just hit Super+F12, which runs my backup script.
>>55587088
Never
>OS
Fedora Workstation 24
>Software
cp -r
>Target
1TB USB 3.0 HDD and 128GB SDHC Card
in my attic i found a broken VHS tape of an old 2006 football match
then i remembered me and my friend were bored and smashed it in two sometime around 2009
the case is broken but the rolls are pretty much intact except that its ripped at the beginning
can it be fixed by using the case of a blank tape?
>>55587074
Just confess, it's full of porn isn't it...
>>55587097
this
It's actually the case that holds the data, the tape spools are actually dynamos that power the case. You can put the spool into another case but it will still show the video that was loaded onto the other case.
Planning to buy a SSD. Since they are pushing spyware everything, I'm wondering if there are reported cases of infected firmwares in SSDs. Are there some brands that I should avoid?
Sorry for the contribution to the consumerist part of /g/
>>55587034
Buy intel so youre at least infected by american spyware instead of chink or gook
No need to worry about the firmware, the hardware itself could be compromised and no one would ever know
https://www.youtube.com/watch?v=r3GDPwIuRKI
>>55587044
What if they like the feel of small chink hands over their micro penis?
Previous thread: >>55578771
What are you working on, /g++/?
>>55586885
What's wrong with his legs
>>55586885while(1) {
printf("Thanks for not using an anime image!\n");
}
I've given myself 4 days to write a download manager for my server. It must have: user management, rss support and CRUD functionality on files.
First things first: coming up with a name. I'm thinking of the following: 'yggdrasil', 'valkyrja' and 'ragnarok'. Are there any other obscure names I'm missing?
is this os good enough now?
http://getchrome.eu/
>>55586808
No. If for no other reason their site has fucking ads on it wtf
>chromium 24
>2016
>>55586808
>Featured software in the latest Cr OS Linux:
>Linux kernel 3.6.5 New!
It's almost as outdated as Debian stable.