« first day (991 days earlier)      last day (3972 days later) » 

12:00 PM
For example if you consider this, shouldn't be declined
link to the question
 
@Mr.Alien mine also.
@HamZa written.
 
I specified the thing that why I've flagged...
 
problem 1: You see the count() ? well you must substract 1, example
array('a', 'b', 'c')
count is 3
But C has an index of 2 (remember we start from 0)
problem 2: the font color is the same as ...
problem 3: you must somehow "save" what the captcha produced
now let's just hope the client has cookies enabled :)
 
@HamZa it's just the $_SESSION I'm worried about
 
@PeeHaa haha whos gibson :p
 
12:02 PM
everything else is working, although I am going to nick your $code = substr(str_shuffle($letters),0,6);, much better..
 
@Mr.Alien Please give me your nerd card and let me shred it to pieces
 
don't know why this too localized question gets upvotes stackoverflow.com/questions/17447239/delete-page-is-not-working
 
Just before setting fire to it
 
@PeeHaa No... unlike you.... I am no nerd :p I enjoy as well as I work.. he he
 
@BillyMathews session will use a cookie to submit the session id
 
12:03 PM
@Mr.Alien you hacked SO and just get flag, steal rep of Skeet
 
@YogeshSuthar I don't hurt others :p
 
	$captcha = imagecreate( 150, 70 );
	$bg_color = imagecolorallocate( $captcha, 255, 255, 255 );
	$color = imagecolorallocate( $captcha, 0, 0, 0 );
	$letters = str_split("abcdefghijklmnopqrstuvwxyz1234567890");
	$code = substr(str_shuffle($letters),0,6);
	imagestring( $captcha, 5, 10, 10, $code, $color );
	header( "Content-type: image/jpeg" );
	imagejpeg( $captcha );
	imagecolordeallocate( $captcha, $color );
	imagecolordeallocate( $captcha, $bg_color );
	imagedestroy( $captcha );
	session_start();
 
"Questions must demonstrate a minimal understanding of the problem being solved" has to be the all time favorite close [on-hold] reason
 
That is my i.php
 
@Mr.Alien Please download or I will have to remove you from our room ;) proxy.pieterhordijk.com/search/hackers/0/99/0
 
12:04 PM
and I have this
`<?php session_start(); echo $_SESSION["curcatchersolution"]; ?>`
 
@BillyMathews You MUST use session before sending anything to the client
 
252
Q: Headers already sent by PHP

Moses89When running my script I get several errors looking like this: Warning: Cannot modify header information - headers already sent by (output started at /some/file.php:12) in /some/file.php on line 23 The lines mentioned in the error messages contain header() and setcookie() calls. What could...

 
@YogeshSuthar why steal when you can just... create from thin air
 
@PeeHaa noooooo, surely I will download... infact I have many, which one do you want? I have 1.5 K(Counted yest) seems like I forgot few directories, turns out that I've more than 3 k
 
12:07 PM
@kaᵠ And it will removed.
 
@PeeHaa wow, you sure you don't want to be sued ?
 
If you haven't seen hackers you should not be allowed to touch any code ;) @Mr.Alien
 
@Mr.Alien actually, it looks to me like that could be the answer
 
Man people sure put some serious detail into answers.
 
@HamZa Sued? Because of what? Of that domain. Must be somebody with the exact same name as me ;)
 
12:08 PM
@Fabien depends on who answers and what the question is
 
@PeeHaa ahahhaa
 
WTG @PeeHaa :D
+++++
 
for example , maxell's answers usually are quite elaborate while jack tends to feed the help vampires
2
 
@HamZa Sued? Linked it doesn't mean he used it
 
@PeeHaa I used to phish
 
12:10 PM
@tereško your answers are elaborate too... I especially like the one explaining Models
 
FFS I can't get it to work! @HamZa
 
@tereško may be..
 
@iroegbu he's bridging TPB website while it's blocked for some providers in the NL
@BillyMathews drop the code in a pastebin, i'll be back (later?)
 
Warning: Unknown: open(/tmp/sess_b1cbcb213d8b9bb353fe685360d727a9, O_RDWR) failed: Permission denied (13) in Unknown on line 0

Warning: Unknown: Failed to write session data (files). Please verify that the current setting of session.save_path is correct (/tmp) in Unknown on line 0
 
TPB was blocked here too... but fortunately they unblocked, anyways who cares, I used to have proxy to access
 
12:11 PM
Although I didn't have errors before, I think that's progress..
 
now they have banned bayimg
 
@HamZa what if it isn't illegal where he is?
 
@Mr.Alien They don't block because of IP but because of so called profanity and other BS religious rules over there
right?
 
@PeeHaa Sorry didn't got you, my ISP blocks by ip cuz if I turn on proxy, I bypass easily
 
@iroegbu He lives in the NL. It may not be illegal. It's just that they went after some ISP's to block it.
 
12:13 PM
tor ūber alles
 
@BillyMathews lol, that's out of my league. Do some research on the error ...
 
How can I increase my profile views counter? :D
2
 
@HamZa ok
 
@tereško tor is so crap it isn't funny anymore
Can't blame people not wanting to be an endpoint though :P
 
tor sux.. it makes browsing so damn slow
 
12:14 PM
Question why does my css only load with <link rel="stylesheet" type="text/css" href="/css/_style_menu_left.css" />

and not with

<link rel="stylesheet" type="text/css" href="css/_style_menu_left.css" />
(Slash before the href="")
 
instead a tiny add on is sufficient for me, anonymx..
 
Everything like Tor adds latency.
 
@HamZa But our stackoverflow accounts cannot be used as evidence, can it? It's not proper identification
 
basically, what you would need is a dedicated proxy somewhere in europe
 
@Tredged root
 
12:15 PM
page is in public_html lol
 
@Tredged It looks like your path is not absolute.
 
How would I fix that becaue its not really an issue but this irritates me deeply _
 
@tereško When I use anonymx, I generally get proxies of european..
 
Never had it
 
@Tredged To make it work with a preceding /, the file would need to be on the root of the domain, or in this case the CSS folder would.
 
12:16 PM
@Tredged your stylesheet is in the css, so where's the html doc?
on the root right?
 
well the root is
 
throw up the dir structure here
 
domains/****.com/public_html
 
And where is the css directory your <link> references?
 
lol, domain.com itself is public_html
 
12:17 PM
its standart because of the directadmin panel
domains/tredged.me/public_html/css
 
Woahhhh... drupal is not OOP?
 
@Mr.Alien Not yet.
 
Awesome, I love procedural
 
Apparently V8 is touted to be, but there again, V8 is touted to be many things.
Symfony being one of them.
 
@PeeHaa Let me know when you are free.. want to ask a lil question
@Xyon making it oop ... makes things more complex
 
12:20 PM
Bleh nevermind I cant even call it an issue
 
@Mr.Alien I guess, in some ways. I have more of a C++ background, so I prefer the OOP approach myself.
 
Nice to meet you by the way Xyon
 
That said, I can write horrible, horrible PHP.
 
@Xyon No doubt oop is good, well I will be learning it.. though I hate it, it's like am cracking a nut with a huge hammer
 
@Tredged Likewise, in as much as this constitutes a meeting. ;)
 
12:21 PM
so I stick to procedural
 
:)
 
@Mr.Alien It depends, I suppose, entirely on what you're trying to DO with it.
 
@Mr.Alien you'd want to for that portal
 
If like I am, you're paid to work on something, you do what the spec (and the client) wants.
 
@Xyon yea exactly, I have not built any big tym website so never needed php oop
@kaᵠ Yes I know, and that's why I told @YogeshSuthar to build that with OOP
 
12:22 PM
@ScottW So can I. Unfortunately the spaghetti comes out more often than the bolognese, I find.
 
If anyone wants a pointless toy, this is back online again, hopefully permanently this time
3
 
@Xyon pasta alla bolognese comes ONLY with spaghetti
 
@kaᵠ and that's how I learn things, I did made a portal before but while learning php (procedural)
 
all the rest are fakes.
 
@Ocramius Not if I'm cooking it. ;)
 
12:23 PM
@DaveRandom cool +1
 
@Xyon you're fake.
 
@Ocramius It's the internet. Who isn't?
 
@DaveRandom haha that's fun... let me try a long string
 
In vim, how can I map a command (like 'map E sp') without having E replaced every time I type it in command mode?
 
Does anyone think this is a permissions error? Warning: Unknown: open(/tmp/sess_b1cbcb213d8b9bb353fe685360d727a9, O_RDWR) failed: Permission denied (13) in Unknown on line 0
 
12:24 PM
@Ocramius You're right, though. I don't cook.
 
Trying to retrieve a session variable
 
@BillyMathews It looks like one.
 
@DaveRandom is that a real barcode generator or it just pastes my entered digits on the image with a repeated background
?
 
What permission should my tmp/ directory have?
 
777
 
12:24 PM
@Mr.Alien The only limit is server memory, I'm not sure exactly how that equates to reality but it's quite a lot
 
@BillyMathews You need to make sure your web server can read the sessions files there. They should probably be owned by its user, but 777 is standard anyway for tmp
On every distro except mine, apparently
 
@Mr.Alien lol, no it is real, but code 39 does have a tendency to look like that. I'm going to write a code 128 generator when I get time, and possibly others
 
Pumped kickssss
All the other kids with the pumpedd up kicks
beterrrr runn better runnnn
 
@AnPel Vim is modal. Map only to the mode you want the mapping in?
 
12:26 PM
@AnPel You mean something like nnoremap E sp or something?
 
@DaveRandom well well well, that's kinda awesome... how did you built that? and btw.. plong string(code39.daverandom.com/…)
 
a.k.a Can of beans.
beep!
 
@Mr.Alien Sauce is on github ;-)
@kaᵠ Oh duh, one sec :-P
 
@DaveRandom where's the link
 
12:27 PM
hehe
 
Ok so it wasn't permissions.. can anyone provide any insight?
`Warning: session_start() [function.session-start]: open(/tmp/sess_b1cbcb213d8b9bb353fe685360d727a9, O_RDWR) failed: Permission denied (13) in /home/theodyss/public_html/content/themes/Odyssey/functions.php on line 3`

`Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home/theodyss/public_html/content/themes/Odyssey/functions.php:3) in /home/theodyss/public_html/content/themes/Odyssey/functions.php on line 3`
 
@DaveRandom aa got it
@kaᵠ Oh yes you broked
 
code39.daverandom.com/?data=SELECT%20*%20FROM%20%60DATABASE%60%20WHERE%20‌​USERID=%27Admin%27
 
@kaᵠ Quickfixed - no friendly error but at least no 500
 
_
 
12:28 PM
done
:D
 
@DaveRandom When I input a lot of characters It will do something weird (using latest version of Chrome): tinyurl.com/pdbrqgq <-- tinyurl-ed because the chat wouldn't let me paste such a long string:P
 
Wow, it takes quotes too...
 
of course it does... IT SHOULD
 
@dragon112 How long is long? It uses GD which is unbelievably memory-hungry, it's probably just an OOM that it takes a very long time to get to
 
@Xyon I do want it in command mode, so that I can open files in new split windows, but how can I escape it? Now it works fine, but every time I try to execute another command that contains the character 'E', it is automatically replaced by 'sp'
 
12:29 PM
@DaveRandom Fails -> it converts to entities .. FYI I entered ♥ at the beginning and end of the string
 
@DaveRandom It seems to create a barcode but only shows bottom 2 pixels or something
 
hi
 
@AnPel Vimsting! I have no idea. It's a wonderfully complicated thing.
Vimsting is like ringsting but with more modes and an inbuilt shell.
 
@R.MartinhoFernandes I am pretty new to this so I don't really know, but I found this question and it looks useful stackoverflow.com/questions/3776117/…
 
@DaveRandom Ah I see what went wrong, the barcode is way too long and gets scaled based on the width of my window
 
12:31 PM
this is nice: code39.daverandom.com/?data=%09 // cc @DaveRandom
 
resulting in a 2px barcode:p
 
@Mr.Alien That's because code 39 is only capable of representing ASCII, although equally I'm not sure why you'd end up with HTML entities instead of encoded UTF-8, that seems like a browser issue and the form is as simple as you can get...
 
@DaveRandom killed it again:D code39.daverandom.com/?data=%C4%A8
 
@kaᵠ lol, that's GD's doing I guess
I never tested it with non-linear data because, well, it's not really that useful to encode it :-P
 
@DaveRandom hmmm, anyways it's awesome :) lol I thought that, it's just a repeated background with an embedded string :p
 
12:33 PM
@R.MartinhoFernandes yes, this did it! Thank you very much
 
@DaveRandom this is where a preg_replace is good
 
:o http://code39.daverandom.com/?data=iroegbu
I would have this behind my head if I was a hitman!
 
@AnPel FWIW, I find the built-in help quite useful when I can't figure out something (try :help :map)
 
@iroegbu LOL
 
@iroegbu Looks like it'd be painful to tattoo on your head xD
 
12:36 PM
Hitmen don't feel pain :p
 
You do
 
@iroegbu Man ... Singular..
 
@R.MartinhoFernandes thanks! I will also check there
 
@Mr.Alien we are many
 
@iroegbu I am an alien :p
 
12:37 PM
And I tought Indianas where the painless fellows D:
 
@Mr.Alien I'm human with special abilities
 
@Mr.Alien you can't play that card now with your pic as the avatar
 
^^ true that!
 
@kaᵠ It's just a suit!
 
Hello guys
 
12:39 PM
@kaᵠ He has skinned a poor guy and he wears his skin like a suit.
 
I need very small help
 
To blend in
 
@kaᵠ Fixed with friendly(ish) error messages (basically screen dump the exception message)
 
hmm... M.I.B. fans here :)
let us see @DaveRandom...
 
Basically, anything that contains a byte >= 0x80 is unrepresentable in code 39, that's just how the spec of that particular barcode format works
 
12:40 PM
@HamZa are you here??
 
yes Sparrow ?
 
@DaveRandom nice... preg_replace?
 
@kaᵠ Will switch back to alien skin soon
 
I am back.
 
@Amnon I have a dropdown list inside php block how should I correct the code :
Select Student: <select name=data>

while($row = mysql_fetch_array($result))
{
echo "<option value=\"".$row['firstname'] . "\" " . $row['lastname'] . "</option>";
}
</select>
 
12:42 PM
@Mr.Alien and get a convincing alien skin this time :)
 
@kaᵠ In this instance I prefer the errors. Stripping/transliterating invalid chars isn't really what was asked for, barcodes are usually use to represent absolute data, as it were
 
Anyone from Krypyon?
 
I visited there
 
lol, shit hitting the fan again
 
12:43 PM
@iroegbu Missed a zero!
@YogeshSuthar Is that a typo for Superman's home planet?
 
@Sparrow - you forgot to close the <option
 
@Amnon No, it closes
 
@kaᵠ the 1 with the cigar was great.. or the 1st skin I used when I registered on SO
 
it is closed
 
@R.MartinhoFernandes of-course not, :P
 
12:44 PM
Oh no wait
@Sparrow +>
 
@Sparrow not in what you pasted
 
@kaᵠ Switched
 
@Mr.Alien wow, scary alien-tech
 
@Amnon Good eye! :P
 
where should I put the double quotations
remeber is is inside <?php block
 
12:45 PM
@YogeshSuthar Ok, just checking since "y" is right next to "t" on a qwerty.
 
@Sparrow why are you still using mysql_*?
 
@Sparrow echo "<option value=\"".$row['firstname'] . "\">" . $row['lastname'] . "</option>";
 
@kaᵠ Oh yea... ;)
 
@iroegbu it is school project
 
so?
 
12:46 PM
@R.MartinhoFernandes ohh yes its typo. ;)
 
@Sparrow Even more reason to use good methods
 
@iroegbu Probably because all the beginner PHP MySQL stuff still references it
 
we did not take PDO yet @iroegbu
 
@Sparrow It's pretty easy
 
mysqli would be an improvement somewhat.
 
12:46 PM
gooc bye all. time to go home.
 
I want to learn it but not now @dragon112
 
it's easier than mysql_*
 
<select name='data'>

while($row = mysql_fetch_array($result))
{
$name = $row['firstname'].' '.$row['lastname'];
echo "<option value='$name'>$name</option>";
}
</select>
 
@Sparrow you must do it now i'm afraid
 
@kaᵠ Lol
 
12:48 PM
guys it will take time to do PDO again in my project
I will learn it latter :)
 
@Sparrow what I just pasted should work
 
@Amnon my friend it is inside php block so it must be something like "<select name ...>"
 
@Sparrow then throw it in an echo...
 
that's what I am stock on @dragon112
can you throw it
 
@Sparrow well, yes it should be using an echo or before a <?php ...
 
12:50 PM
@Sparrow echo "<select name='data'>"; ?
 
@Sparrow exactly
 
and then echo "</select>"; ??
 
ofcourse
 
let me try
 
@Sparrow right again :)
 
12:51 PM
thanks @Amnon @dragon112
 
or use the php close tag and open it after the select
 
I cant open and close becouse every thing is inside elseif statment @dragon112
 
?>
<select name='data'>
<?php
@Sparrow ofcourse you can
 
@Sparrow Codepad or Pastebin your code
 
how @dragon112 @kaᵠ
 
12:53 PM
if ($a == $b) {
?>
<select name=""">
<?php
}
^that works
but echo is easier IMO
 
really @dragon112 it sounds strange but I will try
 
Nah echo is fine
 
How using the (deprecated) RegExp.compile() makes a huge difference; but it really shouldn't =/
 
is PDO learning easy ??
 
^ Yes
 
12:56 PM
how can I learn it
it looks like cool thing everybody just talking about it
 
php.net/manual/en/book.pdo.php <-- this is the php description of it
 
if ($a == $b):
?>
<select name=""">
<?php
endif;
 
try it and if you don't understand it you can ask
 
what the heal @dragon112 I hate that website it
 
It's THE php website
 
12:58 PM
complicated
@iroegbu thanks
 
Hi everyone, is there any chance PDO::lastInsertedID will return id of row inserted just in the gap of time between PDO::Execute and PDO::lastInsertedID was called?
 
@Sparrow it's not complicated, you just like colourful things
 
inb4: mysql
 
no @iroegbu there is a lot of things to read and I have no time to read all that stuff
 
1:00 PM
@Sparrow If you don't want to take the time to learn, why would I take the time to teach you
 
Eurgh, Windows.
:D
 
@dragon112 I have a limited time to finish my project maybe I will learn PDO latter :)
 
Guys, how do you usually get ID of newly inserted row? Using PDO. Just with this lastInsertedID()?
Its just concurent calls what concerns me so much. There's a gap of time where row can be inserted as i understand, its just right after i called Query/Execute and before lastInsertedID called. Or maybe my understanding is wrong?
 
emm .. i think you need to learn what sql transactions are
 
Hello!
 
1:10 PM
afternoon :D
 
@CarrieKendall 'noon - good research / answer to your Q btw :)
 
@Jimbo ah, thanks! i am probably going to submit a patch to documentation.. it was so poorly documented
there's like a paragraph on that and to add insult to injury, its vague
 
You should do, the docs need maintaining. The other week I read something about CSRF in there and I was like "OMG I need to add loads of extra code to make it safe" - turns out it was only for GET requests the issue pertained to, not POST. So I added that to the docs and it was accepted
 
Hmm, Java Generics really mess with my head.
 
hey guys, anyone know some good general programming forums?
 
1:13 PM
@Jimbo funny you'd say that, i saw that on git :P
 
@Ivan0x32 lastInsertId() will not have this problem.
 
@Secret i know of a Q & A site that's okay
 
@Jack for marketing purposes... — Windkiller 1 min ago
=/
 
Marketing, wut?
 
To be fair, SO uses the apex as well.
 
1:18 PM
APEX? Is that like the Rail's version of AJAX?
 
it makes me think of dinosaur documentaries :[ the apex predator
 
@Jimbo lol, also referred to as naked domain :)
 
@Jack thanks for info!
 
mornign again
happy day-before-bank-holiday
 
Anonymous
Learning Symfony. Any good tips/links would be welcome
 
1:21 PM
tip 1: learn Silex first
 
and happy we-kicked-the-brittish-out day-eve
 
Like I said, Angular is becoming the new jQuery :(
I think you should probably spend some time learning how the programming language you're using works before you adopt a framework with over 10 thousands lines of code. — Benjamin Gruenbaum 27 secs ago
 
@Carrie Kendall thanks, It's a great resource :D
 
tip 2: don't
 
@BenjaminGruenbaum Bring out the "-1. Not enough Angular!" comments =D
 
1:25 PM
@Jack "Look for an angular arithmetic directive." - I<3Angular
 
read the docs @phpNoOBఠ_ఠ
 
@ircmaxell Hey, it seems the dust on the mailing list has somewhat settled regarding the structure hints huh?
 
Anonymous
@tereško I downloaded everything about silex, 4 days ago for the same reason, but started feeling Silex is different, in that it does not use the MVC pattern. How can it benefit me, to get aquainted with Sf better.
 
sigh week before a 3 week holiday is horrid.. time just keeps dragging
 
@Jack not letting it die
 
Anonymous
1:27 PM
@CarrieKendall thanks. I am obviously doing that :)
 
@phpNoOBఠ_ఠ you wanted to learn how to use Symfony , not MVC
 
@DamienOvereem Its more than 2 more months before I get to have vacation..
 
Can anyone help me debug some errors with $_SESSION
 
@ircmaxell After taking some time to read it, the merits do surface :)
 
I think they're local.. just verifying that for me would be good..
I'm getting two errors at the top of the page and two at the bottom
 
1:29 PM
Have you Googled those error messages?
 
@dragon112 sucks to be you :)
 
@DamienOvereem True.
Well have 2 days off in 2 weeks so It's not that bad:p
 
Yes, Jack
 
atleast that's something
 
Not much help
 
1:31 PM
@Billy Not even seeing errors on that page ..
 
Anonymous
@tereško If you are saying learning Silex helps better understand Sf, for a beginner, then I'll give it a try
 
@Jack exactly
 
@DamienOvereem Ok.. could you check down the bottom that the captcha code is echoed out next to the captcha?
 
The most interesting Sf feature in Silex is the Http kernel :)
 
couldn't resist :[
do a barrel roll — Carrie Kendall 17 secs ago
 
1:37 PM
 
do a barrel roll as in google's barrel roll?
 
oxidation ?
 
@ircmaxell What is this?
 
every codebase, when viewed over time
 
lol
 
1:39 PM
lol
 
@ircmaxell haha
 
@CarrieKendall I thought you were referring to one of google lab projects
the thing where the page turns upside down :)
 
I downloaded the newest version drupal-8.0-alpha2.tar.gz, normally once extracted I just need to click next and next in drupal 6 then installed easily — Hermann Golden 7 mins ago
 
1:48 PM
k
 
@ircmaxell "click next"?
wtf
 
@ircmaxell i stopped trying to help after that comment
 
yup
 
1
Q: Unexpected context menu behaviour while using multiple monitors

Prasanth I connect a monitor to my win 8 laptop and use. The larger monitor is set to be my primary display, and laptop is secondary. Ignore the black color on the image. You can clearly notice my problem.. it's that the submenu of a context menu item appears in second monitor. Anyone else have the s...

 
@CarrieKendall you are my hero
 
1:50 PM
^^ this is odd
 
=P
*heroin
 
@tereško that shit will kill you :P
 
hi! any kind of jsfiddle.net for php?
 
@acasanovas Maybe something like ideone
 
@acasanovas 3v4l.org
 
1:54 PM
Should we use tables when we design HTML emails?
 
@Nile @iroegbu thank you!
 
@Mr.Alien If you need to design tabular data.
 
If you want to just 'test' your PHP online: writecodeonline.com/php
 
@Jimbo nice!
 
@Nile well, am aware of that, but why this pretty lady uses tables?
 
1:56 PM
@Mr.Alien Oh, consistency I guess:
30
Q: HTML email: tables or divs?

j-man86Does the HTML/CSS for an html email newsletter need to be in table format, or can I use DIVs with equal assurance it will display well cross email-client? I've downloaded a number of templates to see how they're done, upon which to base my own, and they all seem to use tables. Any insight much a...

my b
 
@Nile may be.. or i guess outlook and othes mail clients would mess up the layout, infact I've heard html emails land up in spam
 
Oh yeah, and I think either hotmail or gmail render <h2> tags completely differenttly
You may need custom styles for your own 'normal' elements
 
@Jimbo yap, that's why we use inline styles in email...
 
Yep, I know this from experience
 

« first day (991 days earlier)      last day (3972 days later) »