CIPWTTKT&GC V0x0F (v15): Scoot and Deeps Drama Diaries
25,625 replies, posted
I have no fucking clue what is going on in any of these pictures. :saddowns:
[QUOTE=mobrockers2;32256933]That does exactly the same thing as the -1 pdkm suggested, doesn't work.[/QUOTE]
How so? I just converted it to Perl (don't have PHP installed on anything right now), and it worked mostly right:
[code]$getal = 13
1 + 2 + 3 + 4 + 5 + 6 + 7 + 8 + 9 + 10 + 11 + 12 + 13 + = 91[/code]
Still has the extra + at the end, but the math is right. SUM(1..13) == 91.
You can check by testing smaller values. For $getal = 2, it spits out "1 + 2 + = 3", for $getal = 3 it spits out "1 + 2 + 3 + = 6".
Give me a minute to polish, I'll have a Perl version you can use. Translating back into PHP shouldn't be hard.
Edit:
Here you go:
[code]$teller = 0; # note for gman: teller means counter
$getal = 13; # note for gman: getal means number
$totaal = 0; # dutchified for you
print ('$getal = ' . $getal . " \n\n");
while ($teller < $getal){
$teller++;
print ("$teller");
print (" + ") if $teller < $getal;
$totaal += $teller;
}
print (" = ");
print $totaal;[/code]
I think it was the variable names that kept throwing me off. Once I checked Wiktionary and made translations, it made a lot more sense.
[QUOTE=horsedrowner;32257086]I don't want to sound arrogant, but... that seems like a really, really simple problem.
[php]
$getal = 13;
$totaal = 0;
for ($i = 1; $i <= $getal; $i++) {
$totaal += $i;
echo $i;
if ($i < $getal) {
echo ' + ';
}
}
echo " = $totaal";
[/php][/QUOTE]
It's fine if you're arrogant but please do not be cocky and use a for loop instead. The assignment tells me to use a while loop ;)
[QUOTE=mobrockers2;32257162]It's fine if you're arrogant but please do not be cocky and use a for loop instead. The assignment tells me to use a while loop ;)[/QUOTE]
[php]
$getal = 13;
$totaal = 0;
$i = 1;
while ($i <= $getal) {
$totaal += $i;
echo $i;
if ($i < $getal) {
echo ' + ';
}
$i++;
}
echo " = $totaal";
[/php]
[QUOTE=gman003-main;32257144]How so? I just converted it to Perl (don't have PHP installed on anything right now), and it worked mostly right:
[code]$getal = 13
1 + 2 + 3 + 4 + 5 + 6 + 7 + 8 + 9 + 10 + 11 + 12 + 13 + = 91[/code]
Still has the extra + at the end, but the math is right. SUM(1..13) == 91.
You can check by testing smaller values. For $getal = 2, it spits out "1 + 2 + = 3", for $getal = 3 it spits out "1 + 2 + 3 + = 6".
Give me a minute to polish, I'll have a Perl version you can use. Translating back into PHP shouldn't be hard.[/QUOTE]
Then I am unsure what I am doing wrong, because it really does leave out the last number in the print.
[img]http://dl.dropbox.com/u/5483751/Photos/2011-09-12_2302.png[/img]
[QUOTE=mobrockers2;32257214]Then I am unsure what I am doing wrong, because it really does leave out the last number in the print.
[img]http://dl.dropbox.com/u/5483751/Photos/2011-09-12_2302.png[/img][/QUOTE]
Check the code again - you need to swap lines 23 and 24.
[QUOTE=horsedrowner;32257203][php]
$getal = 13;
$totaal = 0;
$i = 1;
while ($i <= $getal) {
$totaal += $i;
echo $i;
if ($i < $getal) {
echo ' + ';
}
$i++;
}
echo " = $totaal";
[/php][/QUOTE]
Right, thank you, silly me I had already seen some other student do it like that but forgot about it. And yes I know it should be fairly simple but I only just had my second lecture about php, and am making the assignments for the next practicum.
Aaaand synergy is now officially defunct
[media]http://www.youtube.com/watch?v=MNFmXej7jEA[/media]
Does what synergy does (KVM by moving your mouse to the other computer) but this has file drag and drop, copy and paste, screen capture from other computers, and most awesomely [b]synchronised login and logout[/b] so if you lock your main workstation everything else locks with it. Fucking awesome.
Only pain is, windows only.
[url]http://blogs.technet.com/b/next/archive/2011/09/09/microsoft-garage-download-mouse-without-borders.aspx[/url]
[url]http://www.engadget.com/2011/09/12/microsofts-mouse-without-borders-the-kvm-that-killed-the-kvm/[/url]
[QUOTE=Dr. Deeps;32256536]FUCK THEY FIXED THE HTTPS:// WORKAROUND ON M86?! Fuccccccck. Well there goes YouTube.[/QUOTE]
Get a remote shell and use it as a SOCKS proxy. Chances are you can connect to port 443 through the firewall, so you'd just use your proxy settings in PuTTy and then setup a profile that doesn't open an actual shell but just dynamically forwards some port (9853 is what I use but it could be anything)
After that's done, you have a SOCKS proxy listening at localhost:9853
[QUOTE=leach139;32257409]Aaaand synergy is now officially defunct
[media]http://www.youtube.com/watch?v=MNFmXej7jEA[/media]
Does what synergy does (KVM by moving your mouse to the other computer) but this has file drag and drop, copy and paste, screen capture from other computers, and most awesomely [b]synchronised login and logout[/b] so if you lock your main workstation everything else locks with it. Fucking awesome.
Only pain is, windows only.
[url]http://blogs.technet.com/b/next/archive/2011/09/09/microsoft-garage-download-mouse-without-borders.aspx[/url]
[url]http://www.engadget.com/2011/09/12/microsofts-mouse-without-borders-the-kvm-that-killed-the-kvm/[/url][/QUOTE]
That is freakin BOSS.
Now i wont get mixed up with which keyboard is which.
*cough* Um, would someone be kind enough to send me their OpenGL32.dll from C:\Windows\SYSWOW64 (64-bit windows 7 obviously)?
I derped fucking hard and deleted it and I can't seem to restore it.
[QUOTE=Lyoko774;32257898]*cough* Um, would someone be kind enough to send me their OpenGL32.dll from C:\Windows\SYSWOW64 (64-bit windows 7 obviously)?
I derped fucking hard and deleted it and I can't seem to restore it.[/QUOTE]
One sec
[url]http://filesmelt.com/dl/opengl32.dll[/url]
[QUOTE=Lyoko774;32257898]*cough* Um, would someone be kind enough to send me their OpenGL32.dll from C:\Windows\SYSWOW64 (64-bit windows 7 obviously)?
I derped fucking hard and deleted it and I can't seem to restore it.[/QUOTE]
[url]http://www.dll-files.com/dllindex/dll-files.shtml?opengl32[/url]
[QUOTE=leach139;32257409]Aaaand synergy is now officially defunct
Does what synergy does (KVM by moving your mouse to the other computer) but this has file drag and drop, copy and paste, screen capture from other computers, and most awesomely [b]synchronised login and logout[/b] so if you lock your main workstation everything else locks with it. Fucking awesome.
Only pain is, windows only.
[url]http://blogs.technet.com/b/next/archive/2011/09/09/microsoft-garage-download-mouse-without-borders.aspx[/url]
[url]http://www.engadget.com/2011/09/12/microsofts-mouse-without-borders-the-kvm-that-killed-the-kvm/[/url][/QUOTE]
1) Hit control three times
2) Open chess/paint/anything on all computers
3) LIKE A BOSS
[QUOTE=mobrockers2;32257930][url]http://www.dll-files.com/dllindex/dll-files.shtml?opengl32[/url][/QUOTE]
Yeah, that's the first thing I tried, but that's the 32-bit version of the DLL, which seems to be different than the one normally contained in SysWOW64. Why both the 64-bit and 32-bit version have the same name, I have no idea.
[editline]12th September 2011[/editline]
[QUOTE=BreenIsALie;32257919]One sec
[url]http://filesmelt.com/dl/opengl32.dll[/url][/QUOTE]
Thank you very much.
So the programs for web design got deployed to our computers over the weekend. This is what I get to work with at some point:
[img]http://filesmelt.com/dl/tmp_whatIworkwith.jpg[/img]
[QUOTE=Lyoko774;32257988]Yeah, that's the first thing I tried, but that's the 32-bit version of the DLL, which seems to be different than the one normally contained in SysWOW64. Why both the 64-bit and 32-bit version have the same name, I have no idea.
[editline]12th September 2011[/editline]
Thank you very much.[/QUOTE]
The 32-bit and 64-bit versions are the same, for as far as I could tell.
[QUOTE=mobrockers2;32258059]The 32-bit and 64-bit versions are the same, for as far as I could tell.[/QUOTE]
Than I must've had a unique case, as nothing using OpenGL would load after I tried that one. Oh well. v:v:v
I've got my timetable app switching between days and even some haptic feedback going.
It's nothing impressive, I'm off to college tommorow so I bodged it together, it programaticaly hides/unhides textviews which are already present in the main.xml file. However tommorow I will be programaticaly loading timetable data from an array and get some kind of edit option working.
I think I'm gonna tidy up how each lesson apears aswell, something nice looking with a listview.
I'm really bloody enjoying messing around with Java, I actualy think I might continue on with it, possibly sell a pro version of this app with notetaking capabilities + different wakeup alarms for each day. Obviously once the quality of this app increases significantly.
[IMG]http://puu.sh/5y0i[/IMG]
[IMG]http://puu.sh/5y0A[/IMG]
Google have an awesome sense of humour, like bidding for those patents in incremental mathmatical constants :v:
I have a feeling I'm going to enjoy my Networking class. We're gonna be setting up servers and networks by ourselves. It's gonna be Windows Server 08 at first but the instructor said that we might be able to do Red Hat at the end.
[QUOTE=wingless;32249989]Saving as .PNG's instead of .BMP's by default? Pretty sure Win7 paint is better.[/QUOTE]
I'm having to do Paint for Comp Ed and long story short, I got chewed out for saving as PNG. "paint doesnt save as png you used some other program!"
[img]http://dl.dropbox.com/u/11823009/other/autodesk.png[/img]
Today, I am just not lucky.
[QUOTE=FlakTheMighty;32259764]I'm having to do Paint for Comp Ed and long story short, I got chewed out for saving as PNG. "paint doesnt save as png you used some other program!"[/QUOTE]
is it really that hard to show the instructor how to switch what format you save in, and tell them why? or is this just another story
[QUOTE=areolop;32260412][img]http://dl.dropbox.com/u/11823009/other/autodesk.png[/img]
Today, I am just not lucky.[/QUOTE]
I think Autodesk said something about them experiencing problems on Facebook a few days ago, I have their stuff appear in my news feed because I used the student thing to get 3Ds Max.
[QUOTE=Shadaez;32260470]is it really that hard to show the instructor how to switch what format you save in, and tell them why? or is this just another story[/QUOTE]
It's really that hard to tell them how and why. They think they're right, it took me two days and bringing an old destroyed PC to show her that a CPU is not the tower.
A little bit of content from Valve in the Source SDK, some computer tower models from Kleiner's lab are listed as hard drives in their file names.
I have a question, my school's TOS for internet usage states you are not allowed to circumvent any protective measures [u]on their network[/u]. So technically tunneling through my home computer should be perfectly fine, right?
[img]http://i.imgur.com/e8Gb8.jpg[/img]
Uhhhhh... That used to have about 300-500 MB of data on there...
What the fuck happened to my site? The settings in CPanel seem to be fine, though the home directory is completely empty. The company I had got the hosting from was previously Fivebean, though they were bought out by Bluemile Cloud, who said that they would continue hosting the old sites from Fivebean and have been for two years, at least until now.
Someone has some explaining to do...
Sorry, you need to Log In to post a reply to this thread.