« first day (698 days earlier)      last day (4250 days later) » 

12:18 AM
if (isset($_POST['call_id'])) {
    $callActive = TRUE;
} else {
    $callActive = FALSE;
}
I just actually wrote that code
...and on that note, I'm going to bed. Night all
 
dbf
nn ;)
 
@DaveRandom lol, night.
 
@DaveRandom That's a shame... $callActive = isset($_POST['call_id']);. No branching needed...
 
1:32 AM
@ircmaxell , which is exactly why he concluded that coding past that point would be really bad idea
 
Lol
 
2:17 AM
Hey, I have this image as a result:
    header("content-type: image/jpeg");
    imagejpeg($image);
    imagedestroy($image);
it returns an image, but I want to save it , how can I do this?
 
@MichałKról Save it on the server?
 
yeah
im trying " file_put_contents($target, imagejpeg($image)); " sec
 
You can use imagejpeg($image, 'filename.jpg');.
 
oh
nice
can I delete the header info?
 
2:20 AM
nice, thank you very much
hmm
it doesnt work
nvm, my mistake
 
2:49 AM
guys
I tried this
but it returns "Sorry, your account could not be found. Please click here to try again."
the user is created correctly in the db
 
Online tutorials are generally rubbish.
 
3:15 AM
Hey guys any chance of getting some help in the mail area?
 
@JamesDyson Just ask your question, someone will know the answer.
 
I dont know if you know :D the x10 servers but i cannot seem to send via this php script

$to = "my email";
$headers = "From:" . $from;
$headers = "From: admin@darkshadow.elementfx.com\r\n";
$headers .= "Content-type: text/html\r\n";
$subject = "Contact Form: ".$_POST['fullname']." - ".$_POST['schoolname'];

$title = $_POST['title'];
$fullname = $_POST['fullname'];
$schoolname = $_POST['schoolname'];
$email = $_POST['email'];
$schoolphone = $_POST['schoolphone'];
$contactmethod = $_POST['contactmethod'];
Yes its messy
 
so uh...what's the problem? :P
 
But it should work unless I have done something incredibly stupid @Lusitanian Email script not working
 
no...i mean...why isn't it working
 
3:20 AM
Ive never had email stuff so this is new to me
 
what's the error message you're getting
 
I dont kno
No error
 
also..... the Location header, per HTTP's RFC, can't accept relative URLs even though it works in most browsers
well there's gotta be an error if it's not working
 
Is there a error function like in mysql? because otherwise it just comes up blank
 
you need to turn display_errors on in php.ini or look for your error log
 
3:21 AM
Thats with out the header
Ok, thanks
 
then it'll spit out your error and you/someone here can figure it out (:
 
error_reporting(E_ALL ^ E_NOTICE);
 
Oh, I might have an error log somewhere but its on a shared hosting so I dont have the php.ini
 
then at the top of the script
add ini_set('display_errors',1);
 
Ive tested on xampp on my localhost but Mercury seems to have problems
 
3:23 AM
unless it's a parse error, you'll get a message
 
Thanks
 
well --- is it a php error or a mailer error -- because if its reaching your smtp server than it's outside of php's domain
 
@Lusitanian Thats the problem because x10 say they block some emails with certain syntax Ive popped an email in asking
 
If it's hitting the SMTP server than it's your shared host's fault -- or if its a free host, they may block the mail() function -- but you shouldn't be on a shared host or a free host :P
 
@Lusitanian Use meta tags after?
 
3:25 AM
What do you mean?
 
@Lusitanian I just wanted to double check if It was a stupid mistake on my behalf
 
Probably not (:
 
They say that emailing (mail()) is allowed, just certian syntax
 
Then take it up with them
 
I have :D
No reply as of now
 
3:27 AM
@JamesDyson Maybe you should switch to some better hosting :-)
 
what is RFC? My self taughtedness only has got to a point :D
 
i.e. anything that isn't a shared host
w3 rfc 2616 - http 1.1
section 14.30 states you must have an absolute URI with the Location header: w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.30
 
@ShaquinTrifonoff Well, I could understand at a point of view as I am of their free hosting service at the moment but I am moving up to premium very soon
 
don't, just buy a vps for $5/mo
 
@JamesDyson I found some unlimited free hosting, it is quite good.
 
3:29 AM
> The field value consists of a single absolute URI.
 
@Lusitanian Where? The prices ive looked at are crazy and I don't know if I could handle a server in this point of time (Virtual one anyways)
@ShaquinTrifonoff Yeah?
 
googled 5 dollar vps
found many a result
vpscolo.com -- not an endorsement, just one of many results
 
Sounds sketchy :P
 
not really
 
3:31 AM
or use amazon aws, they'll give you a micro instance free for a year
which is more than enough for toying around with or hosting a small site
 
Bhahaha, well I haven't been In the industry for very long. Im still at school anyways
 
I'm in high school as well, heh -- though I do develop professionally to an extent
 
Hahahaha, whereabouts? Australia? UK?
 
N. America
 
@Lusitanian In reply to your edit, I am getting to that stage (hopefully)
Got 13 cpanel windows open ftw
bahaha
 
3:34 AM
ew cpanel
 
Bhaha, I use ftp mostly but otherwise I have no other control
Thats shared hosting for you, i suppose
 
I'm hoping you mean sftp :D
 
I hoping I am :P But im not :(
 
@Lusitanian That's the downside of free hosting: No SFTP.
 
Yep
 
3:36 AM
@James Did you look at the hosting link I posted?
 
there are many more downsides to free hosting than just that :)
 
Filezilla all the way
@ShaquinTrifonoff Yeah, looks kinda cool, I might check it out
 
Not using windows as a development os...all the way
 
@JamesDyson I find Notepad++ and the NppFTP plugin to be faster.
 
@ShaquinTrifonoff I have been told about the godly powers of Notepad++ but remain restricted to the depths of filezilla and sublime text 2
@Lusitanian Hey I have a Ubuntu sitting over here :P
 
3:38 AM
phpStorm + git
 
Have you tried sublime?
Its ever so simple. And with git support
 
no, no intention of it either -- as i prefer a full ide for most things
otherwise i just use kate
phptherightway.com/pages/Design-Patterns.html omg the misinformation just wont stop
way to define the static factory anti-pattern
 
bahah
 
@JamesDyson I recommended it because it has much less restrictions, and the mail function works fine :-)
 
Thanks
@Lusitanian How would you go about making sessions secure?
 
3:46 AM
What do you mean?
 
I hate, and like the way to can "reopen" a session assuming it hasn't been destroyed with the get PHPSESSID.
 
PHP sessions are stored on the server, so clients can't access or modify the data contained within them
Are you referring to preventing session fixation attacks?
 
@Lusitanian Yeah
 
Make sure the ?PHPSESSID= blah is disabled (offhand don't remember the INI setting --- but I believe it's default) so that the session id is never in the URL and prevent against XSS that would allow a cookie-grabbing script to pull the id
 
Hi @Sam.
 
Sam
3:48 AM
@ShaquinTrifonoff hi, buddy
 
@Lusitanian Something I wouldn't be able to change in shared hosting anyways I suppose.
 
just google session fixation preventing...
 
@JamesDyson You can change things like that in a root directory .htaccess file.
 
@ShaquinTrifonoff Thank you once again. You have added data to my banks
No reply from them yet
 
php_flag session.use_trans_sid Off
^-- If you put that in the root .htaccess, it should turn off ?PHPSESSID=.
 
3:53 AM
@ShaquinTrifonoff :D
@Lusitanian Ah, know I see. Howcome it works? Is it just not good practice?
 
Sam
@ShyamK, @ShaquinTrifonoff how's the night going?
 
hey @Sam @ShaquinTrifonoff
 
@Sam Well, it's day for me :-)
 
Its day here too... :D
 
Sam
lol....either one
 
3:56 AM
I'm working on the ping feature for my chat system.
 
Sam
chatroom or one-on-one?
 
@Sam Chatroom.
 
@ShaquinTrifonoff u making a one on one chat system too?
 
Sam
cool.....long polling or something like Node.js?
 
@ShyamK I'm planning on doing that sometime, but after I get the other, more important, things done.
 
3:58 AM
:D
 
@Sam Variable time polling with XMLHttpRequest.
The more quiet it is, the less time between polls and vice-versa.
 
Sam
oh ok.....how do you make the time variable?
 
@Sam When it checks, if there are no new messages, it makes the time longer. If there is a new message, it makes the time shorter.
 
Sam
oh ok.....you dedicated a whole db for the chat system?
 
@Sam Yes.
 
Sam
4:01 AM
sweet.....
learn ActionScript, and you can easily integrate a video cam into it :-D
 
Hhahah I refreshed the page on youtube and they made changes in that period
 
@Sam HTML5 with a Flash fallback, eventually. I didn't think of video...
 
cam talks can lead to porn...
 
Sam
HTML5 allows video streaming? I haven't heard of that
lol...@ShyamK
 
@ShyamK Agreed
 
4:03 AM
Maybe I won't implement video then :P
 
Sam
well, it depends on what it's for; but if it's mainly for entertainment, it's not complete without video streaming
 
Found a youtube UI glitch
 
@Sam Have you tried my chat system? shaquin.tk/chat/?room=2
 
Sam
does HTML5 allow video streaming?
 
@Sam I think so. getUserMedia or something like that.
 
Sam
4:04 AM
lol...I tried; it never opens for me
 
I like it
 
@ShaquinTrifonoff It died!
 
@JamesDyson What do you mean?
Oh, a Connection timed out?
 
@ShaquinTrifonoff Can't send messages and I tried to reload and its just spinning
"Problem Loading Page"
 
4:11 AM
This webpage is not available
The connection to shaquin.tk was interrupted.
 
Yeah
Overloaded the mysql database?
hahah
 
This host limits the frequency between requests, so it's blocked us now. Temporarily.
 
Sam
Hurray! HTML5 has live video streaming.......no more ActionScript to learn. Halleluyah!
 
@ShaquinTrifonoff Oh....Is this the Website hosting provider you showed me?
 
@JamesDyson Yes, this seems to be the only (extremely annoying) problem with it.
 
4:13 AM
@ShaquinTrifonoff I suppose all FREE hosting providers have their downside
 
@JamesDyson They sure do. And you just experienced this host's downside :-P
 
I'm still there... I still chatting with two versions of myself...
 
@ShyamK That is because you didn't leave lots of messages in quick succession, like we did.
@JamesDyson It will still be visible through a proxy, but you can't use the same username.
 
aah... but now there are two of me...
okay... now I'm out too
 
@ShyamK Hahaha
 
4:16 AM
:D
 
The site is still visible through a proxy, but you can't login or leave messages.
 
Grr
Has it a time limit?
 
Sam
@JamesDyson what is website scripting?
 
@JamesDyson From my experience, you will be able to get back on in a few hours. :-(
 
@Sam Hmm?
 
Sam
4:22 AM
from your profile
 
@Sam Probably JavaScript?
 
Sam
probably
 
Ah I see you have been check'n me out :D bahah This is my old account but I haven't got enough exp to chat so I fall back to this account which I made awhile ago.
 
Next thing you know, people will be asking me 'What is web development? From your profile'. :P
 
@ShaquinTrifonoff Hahahahahhahah. No but seriously. What is it?
 
Sam
4:24 AM
lol......I've never heard about that before; was curious what that is
 
haha
@Sam It is only I find saying scripting instead of coding more appropriate. This is one of the stupid things I do
 
^ uses fancy words... :P
 
When I say coding, I feel as if I were encoding or md5(sh1($something))
 
Sam
reminds me of the word script kiddies
 
@ShyamK Yeah bahaha
@Sam Coding is what I need on a bad day trying to find a problem in my script (after I have scripted it) - en.wikipedia.org/wiki/Coding_%28therapy%29
 
Sam
4:30 AM
alright..... Happy Web Scripting
 
@JamesDyson got a funny laugh too imho... buhahaha (evil overlord laugh) ... hahaha (normal person laugh) ... bahaha (?)
 
@ShyamK muhahah
@Sam Yay! :D
 
Sam
yay!? Yay would be cracking all the wi-fis around me
 
@Sam Already got Starbucks wifi under your control?
 
Sam
lol...didn't go there today
besides, it's free
hey....don't star that
thanks
I don't want the feds busting down my door for just trying to be a great developer :-D
@ShyamK so, you still haven't gotten any duties at work yet?
 
4:36 AM
developer = hacker for Sam
@Sam keep getting little bug fixes... stupid bugs...
 
Sam
nope.....building software = developer; poking around other softwares = learning/education
lol.....that's why they are bugs......so annoying
 
@Sam aircrack-ng ?!? did someone call my name ?!?
 
Sam
Nick Fury!
the Mighty MetaXploit Nick
 
@Sam I almost want to change my gravatar to a Nick Fury picture..
 
Sam
lol....so, do
 
4:42 AM
@Sam Crashing the CIA servers does not count as poking
 
@ShyamK how's it going buddy?!
 
hey Hacker Extreme
:D
good good...
@Nick why don't you change it then?
 
So anyone see the iPhone 5 :P
 
haha...
 
Sam
lol....if anyone on here can do that, I doubt they'll be here
 
4:43 AM
@ShyamK because im lazy... and.. well yeah im lazy
@Sam I'm here 0_o
jk jk
 
Sam
I've heard about it......heard ppl bashing it in the Android room earlier today
 
@Sam lolol the name is so funny, the 6th generation - iPhone 5 :P
 
bashing? as in on the floor?
 
that's because you're hanging out in the Android room
 
@Nick iPhone 5 runs on iOS 6... LOL
 
Sam
4:45 AM
lol...I started hanging there today
 
@ShyamK iOS 6 runs on iPhone 5 ?!?!
 
Sam
apparently, there's 15-yr old Indian computer prodigy there
already wrote a book on Android
 
@Sam pfft we've got one in here ;)
 
Sam
lol.....I don't care much.....as long as my questions are answered
 
^^ @ShyamK
 
4:47 AM
who? who?
 
Sam
and I can learn :-P
 
There is no such thing as bad publicity - some guy
 
Sam
yup
 
that is there
@Nick so what have you been prodding lately? I mean pen testing...
:D
 
4:51 AM
@ShyamK I've been working on python all dayyy
 
Pen-testing
@Nick, @ShyamK, @Sam :P
 
...clever?
 
Sam
how was the python project you are working on, @Nick ?
 
@Nick what did you do?
 
4:53 AM
@Sam not badd, 95% of the time I'm going through the docs
 
Sam
Python docs?
 
@ShyamK nothing really, just writing a script to organize my downloads folder on my linux box
@Sam mhmm
 
Sam
u needed Python to do that?
why not a regular script file?
 
@Sam no, I just want to learn python
 
Sam
oh ok.....that's good
soon; you'll be building complex apps :D
 
4:55 AM
mhmm, I heard something about cracking wifis ?
:P
 
Sam
yup.....I'm surrounded by lots of WPA-PSK password-coded wifis
I need to get into at least one :-D
 
@Sam What's the point?
 
Sam
@ShaquinTrifonoff lol.....to get into it :-D
 
@Sam Pen-testing, I suppose. If you do, you'd better tell the owner of the network to improve their security. Better: ask them first.
 
Sam
lol...nope; if I get in, I better keep my mouth shut
 
4:59 AM
atta boy
 
don't leave a slime trail
 
Sam
it's not a business anyway.....so, they probably won't care
 
@Sam Watch out. People can see what computers have connected to the network, then they might hack you :-P
 
@Sam Never got around to getting a decent wifi card
 
Sam
lol...true, they can.......but most don't care
 
5:01 AM
@ShaquinTrifonoff well depends how good Sam is :P
should just get in and change the network name to some dirty
 
Sam
@Nick yup....the more you practise, the better you become, right? :-P
 
there maybe a version of you(in those watchers)... curious Sam... let me see if I hack this dude...
Practice makes perfect... unless you're caught :(
 
Sam
@ShyamK lol.....well, in that case, it's a pre-emptive hacking then
 
NICK FURY
man i have such bad rep because I hate answering SO questions.. :/
 
Sam
5:03 AM
@ShyamK the reality is that if/when you get caught; whether you go to jail or not, you'll probably have a lucrative offer when you get out
 
@Nick Mine's worse... I'm just too lazy to read...
@Sam you sure about that?
 
Sam
I took some extra effort this week to answer some questions.......I got almost a 100 points for them
 
are we talking about jail time for hacking a wifi network lol, silly americans ;)
 
Sam
@ShyamK yup.....the better you are, the more lucrative your prospect is when you get out
 
heck, you might not even make it to jail if your good enough
 
Sam
5:06 AM
you think NSA will let you rot in jail if you possess enough skills to help them? :-P
exactly
 
If you ask them first, you can charge them for your time hacking in :-P
 
Sam
@ShaquinTrifonoff lol.....u don't ask to hack.....you hack, then apologize
 
haha ^^
 
Sam
or make up a straight face
 
play dumb lolol, or use truecrypt
 
5:08 AM
yolo
make the best of it... hacker or not... dominate the world... :D
@Nick as the head of SHIELD, what is your first directive?
 
stupid IndentationError
 
missed that...
 
Sam
lol
 
Sam
Python?
 
5:15 AM
@Sam yeah, my indenting is clearly right.. stupid piece of crap
 
@Nick I would have flagged you message, but you removed it.
 
@ShaquinTrifonoff why i removed..
^^ my bad
 
@Nick missing...
 
oh well.. you missed it :/
 
haha... never mind
 
5:16 AM
2 seconds..
 
oh...
:D
 
:P that wasn't worth it haha
I'm pretty sure python hates me
 
Sam
lol.....I'm pretty sure it does
 
anyone know how to disable auto indenting in notepad++
 
Sam
it's a coldhearted shrew whose only glee in life is feasting on programmers' miseries :-P
 
5:21 AM
@Nick Yes, Settings -> Preferences -> MISC. -> Auto-indent.
 
@ShaquinTrifonoff my hero
 
@Nick but isn't auto-indenting good? especially in Python...
 
@ShyamK well im doing space indentation, and it throws in a tab indentation randomly.. annoying me
 
Sam
nick, r u on Linux?
 
rather just do it myself
@Sam windows :/
 
Sam
5:24 AM
so, use idle, dude
it indents it for you
 
plugin ?
 
Sam
the default Python IDE
 
I think there will be an option somewhere to convert spaces into tabs or something like that.... or use IDLE like Sam said
IDLE is easier though...
 
@ShyamK lol because pressing the spacebar is so hard
 
Sam
yup.....very easy
I just open up CLI, type it idle, and it pops up
 
5:26 AM
alright, i'll give it a go. But if I don't like it, it's you guyzzzezz fault
 
@Nick Workout... for your thumbs?
 
I'm usually not on Windows though..
 
Sam
it's on Linux also
in fact when you install it, its path is automatically added for you
so, no need searching for it
Ctrl + Alt + T = command prompt
 
can I not call self.blahblah from inside a function?
 
Sam
of course you can....while inside the method
 
5:34 AM
I've written self so many times the word looks weird
 
@Sam Keylogger Windows though
 
Sam
@ShyamK lol....thanks for the link
 
@Sam hmmm, interesting, technically cross platform
 
Sam
@ShyamK just curious.....were you hunting for a keylogger too? :-P
 
Sam
5:56 AM
@Nick you are gonna try one?
 
@Sam bookmarked, not tonight though
 
Sam
me too.....I'll try it without using the code in the video though
if I'm not successful, then I'll use that
 

« first day (698 days earlier)      last day (4250 days later) »