« first day (979 days earlier)      last day (4195 days later) » 

14:01
1
Q: categorize dynamic menu for add specific classes php

Samitha ఠ_ఠ <?php // Select all entries from the menu table $sql1 = $pardConfig->prepare("SELECT id, menu_title, menu_link, parent FROM pard_menu ORDER BY parent, sort, menu_title"); // Create a multidimensional array to conatin a list of items and parents $sql1->execute(); $menu = array( 'items' => ar...

This question has an open bounty worth +100 reputation
@ircmaxell your quote from the docs misses the default bcrypt cost :)
Actually, I think that's missing from the docs in general
@ircmaxell and rather important :)
added to the constant, adding to password_hash docs now
cost - which denotes the algorithmic cost that should be used. Examples of these values can be found on the crypt() page.

If ommitted, a default value of 10 will be used. This is a good baseline cost, but you may want to consider increasing it depending on your hardware.
sound good?
committing
thx
@ircmaxell why did you remove the php-5.5 tag from that question?
14:14
because it's not specific to 5.5, but for all time going forward from 5.5
meaning it's completely valid in 5.6, 5.7 and 5.5.7...
@ircmaxell but that applies to any question of that sort...
and if we change the default in 5.5.5, then this isn't 5.5 specific anymore, right?
Does anyone use a site for gifts instead of donations, like say donate towards 'this book', for example?
@Jimbo amazon wishlist ?
This is what @Gordon linked me to yesterday
14:16
@HamZa Gordon has one of them, but that's just a list isn't it, just for chipping into things though?
Like a few $ here and there? <-- that's what I'm after
It says: "The only questions that should use the c#-4.0 tag, in my opinion, are those questions which are specifically asking for detail about features that were added in 4.0."
Is it just me or is codepad.viper-7.com broken?
so I assumed that the version where something was introduced is signficant, and that makes sense to me
@Jimbo I don't know, in fact I know it because I saw some people on SO using it in their profiles
@NikiC did u see my question
14:17
@Jasper it's broken, for a while now
@Samithaఠ_ఠ Probably not, which one?
> I would only use version tags when the question content is irrevocably tied to a specific version of something and can never be relevant to earlier versions or later versions.
this content is relevant to later versions
above one with 100 rep
@ircmaxell Then he is contradicting himself
@HamZa Ah, haven't been using it or a while so that makes sense. Is there a good alternative that is being used in its place?
14:18
"can never be relevant to earlier versions or later versions". This statement conflicts with "those questions which are specifically asking for detail about features that were added in 4.0". My assumption is that dynamic isn't going to be removed in 4.5 or 5.0. That example wouldn't match your first requirement, but would match your second, and both claim to be the exclusive criteria for using version specific tags. I don't feel I'm being pedantic because I'm trying to figure out tag synonyms for version-based tags - here: meta.stackoverflow.com/questions/112864Merlyn Morgan-Graham Nov 19 '11 at 3:52
ideone.com for example
But the PHP version is quite old
@Jasper or codepad.org
@Samithaఠ_ఠ That question is too practical. I answer only theoretical questions ^^
@Jasper and the best 3v4l.org with several versions :p
@ircmaxell I'll have to ask @Gordon another time then :)
14:20
O_o
@NikiC I think the case is that nobody really knows, and it's a judgement call
@HamZa Yeah, I know about those, and you can easily google them, but it's hard to google for a version that is up to date and all that, so I was hoping you guys were using one
@ircmaxell I think it makes sense to have it as this point in time and just syn or nuke it later ^^
Anyone here who can give me an answer for too practical question ?
@HamZa Ah yes, that one's good. Never used it unless I really wanted to test something in different version, but I suppose it can be used simply as a codepad as well
14:21
@Jasper I'm using those 3 I cited now for posting demo's on SO
@NikiC Honestly, I think would be useful, in the case of talking about deprecated mysql extension. Because it's only deprecated for 5.5. Or when talking about old versions... But current and future shouldn't be tagged, at the risk of losing that information in future versions
2
Q: Should I add an online demo link?

HamZaI'm a member for a year now and actively answering questions in php and regex. That said, I saw some members adding online demo's of their solutions to their answers and thought it was pretty good to do so too. I noticed some advantages: More upvotes: People have instant results and could see ...

and then viper-7 goes down ...
@ircmaxell "Because it's only deprecated for 5.5" haha :D nobody's gonna believe you that ;)
@HamZa thanks
14:27
@Jasper yw
what the heck is it with people and these "let's try to find edge-cases in the language, and then ask why" questions? stackoverflow.com/questions/17237605/…
@ircmaxell Not to mention it is a dupe of a dupe
aaah everyone is using the smiley in their username now =o(
@crypticツ hee~ I though it was some kind of ninja sign :p
@HamZa I've become such a social butterfly on SO everyone wants to be like me =oP
14:33
@crypticツ Yeah I see, I should also take example
As expected little answers.. (probably also because its between php, php config and server management, the suggestion to move to serverfault is valid..), but if anyone has any ideas: stackoverflow.com/questions/17216575/…
@HamZa search on SO shows 7 people now use it =oP
OMG! its my stack birthday!
@DamienOvereem happy happy happy happy death
@DamienOvereem *gives you Yearling badge*
@crypticツ Can we search by username o_O ?
And guns and drums and drums and guns haroo!
@HamZa yep
14:38
@crypticツ I tried it but with no luck
@ircmaxell Me no feel like dying just yet, if you dont mind :)
Woah, one more question until I'll get the silver tonight! :-D
has to have 200+ rep to show up in search though @HamZa
@crypticツ I tried using the searchbar "user: ツ"
@crypticツ I'm second ranked with the name "hamza" :D
@HamZa no you gotta use without quotes "a ツ" and "b ツ" and "c ツ" and so on for alphabet to see who is at least appending it to the end of their username, I didn't check for people who don't use a space.
@crypticツ No, I was referring to the searchbar on the homepage for example (top right)
@HamZa I know but you can't search unicode by itself in the other search
I see thanks
14:44
@LeviMorrison Grats on the kid!!
bloody hell, I hate OSX, and I hate this farking internet connection
Need I set the character set when I'm creating a db or just leave default and do like so (connection) new PDO('mysql:dbname=dbtest;host=127.0.0.1;charset=utf8', 'user', 'pass')?
Well looks like if someone would smoke your brain in a pipe, it wouldn't make a difference for your thinking either as this would "outsource" it into "the could", right? So why not give it a try? What do you think? — hakre 1 min ago
@HamZa when you like to … :-)
@bwoebi great work should be awarded :p
@hakre the XML specialist :D
@ircmaxell os x is at least better than windows...
@bwoebi invalid statement
@iroegbu that is setting the charset
@bwoebi yeah, no...
@ircmaxell I didn't still get what your exact problem with os x is
14:50
the fact that it sucks
and what sucks? ._.
@bwoebi it does not suck, it hangs.
@bwoebi no...
@NikiC if I have there a good console, I'd agree.
is there anything wrong in answer stackoverflow.com/a/17226895/1723893 and yes its sort answer
14:52
@bwoebi Windows has a great console - you just have to install git in order to use it... ;)
@NikiC or cygwin
@bwoebi powershell is actually fairly decent. It's pretty close to bash in terms of power...
@bwoebi ty
@NullPoiиteя the comment is correct it is the same and it will still generate the notice. Per the docs "On read error, getimagesize() will generate an error of level E_NOTICE. " so you will need to use @ just as you would use it for file_get_contents(URL) in case host is not reachable, the same happens with getimagesize() when it encounters an invalid image.
@ircmaxell example: how to create from shell a ramdisk? on win?
windows doesn't have a ramdisk concept in core. You need a 3pd program for that
14:58
@ircmaxell what can I do on win without installing loads of things?
@ircmaxell my thoughts exactly
@bwoebi I'm not having this discussion
@ircmaxell but I think that this is a problem on win: you cannot do so much with a raw windows install
what are you talking about?
that's just FUD...
@NullPoiиteя the OP posted "Notice: getimagesize() [function.getimagesize]: Read error! in C:\xampp\htdocs\picture\index.php on line 16" so it is indeed a read error occurring so it's not going to return false, but rather output E_NOTICE
15:01
@bwoebi So on a raw mac os you have everything before hand ?
To those who say that Glass is a privacy concern, I submit this as evidence to the contrary:
@kaᵠ I'm still #1 =oD
@crypticツ of course you are :)
15:03
@ircmaxell Hey, Cloud Backup certified by NSA is safe and sane and the biggest bang for the buck.
@HamZa install xcodes command line tools (is available as a single separate package) … requires only one minute and then you can start. then you have nearly everything needed.
@kaᵠ that's weird John is not showing up in the list
@bwoebi You can make your own win distribution with packed software
@HamZa you can? okay… but even then you have to pack it yourself...
15:05
@crypticツ he just changed his name a few days ago, data.se is lagging :P updated less frequently
@bwoebi Yes it's possible nliteos.com/nlite.html
@bwoebi No, you can use an AD group rule to do it for you. So I can deploy and spin up a new windows box without ever doing anything except login... Something that you need 3pd tools to do with any other system
umm @crypticツ things got complicated... added all the smileys in Katakana data.stackexchange.com/stackoverflow/query/edit/121358
I'll put it this way: managing 50 to 100 windows boxes is infinitely easier than managing 50 to 100 linux or OSX boxes. And I'm talking about general purpose computers, not servers...
15:09
@bwoebi how are those 2 tags different collors?
@kaᵠ tag: and meta-tag:
cool
@kaᵠ oh nos now I'm number 2 =o(
@crypticツ yeah, but he's "older" than you, anyway... just 1 more K :P data.stackexchange.com/stackoverflow/query/121361/…
@ircmaxell just one thing I hate on OS in general: when I cannot simply start: if I have to configure a lot, I have to install a lot, I have to @!&%# when my OS wants to update, I'm not asked if I'd like to install updates when shutting down, but I don't want to wait for the install etc. etc. etc. I think for a single person OS X increases productivity. (I don't discuss about managing multiple computers from a central place, but about personal use.)
15:16
@bwoebi I disabled the updates, and I'm hibernating my computer instead of shuting it down
@ircmaxell I wouldn't use OS X on any production server. Maybe on a local box you may want to connect to the television or something like this. Because it's not very performant.
@HamZa this are things not everyone knows. I didn't know that you can disable them. But as long you don't know it, it sucks.
Hello people
@sanchy yellow
15:20
@bwoebi everyone knows they can disable it... it asks on first setup :p
@bwoebi I've to admit you must almost be a "pro" to know your way in windows
@iroegbu I wasn't asked when I recently installed win8 on my vm.
@bwoebi I hate win8 !
You weren't looking and it's extremely easy to change those settings even after setup.
Also my teachers regularly are upset when their windows wants to update (during the presentation and they didn't notice instantly the countdown)
15:22
It good that not everyone knows you can disable updates. It's bad enough as it is.
yawn, good monring
@R.MartinhoFernandes It's bad if you don't have a good security program
@R.MartinhoFernandes did you ever look at how os x handles it? If you shut down / reboot there pops up a prompt if I'd like to install or do it later.
@CarrieKendall morning
@HamZa You mean a constantly outdated one?
15:24
@HamZa I don't need security programs on os x…
@bwoebi oh yes you need, especially if you have Java
@bwoebi That doesn't sound like any disabling to me.
@R.MartinhoFernandes Well, I've to admit that security updates are needed, but I can install them manually when I want to
@HamZa I have java, but on OS X you're always asked if you want to run the applet on the page.
@bwoebi Yeah fair enough
15:25
So, if I'm unsure I only don't run it.
hey @R.MartinhoFernandes
@NikiC Hey. What's up?
@R.MartinhoFernandes hey
@R.MartinhoFernandes Also, if you don't visit wrong sites, you most likely won't need updates
@ircmaxell That's how you easily gain rep :(
15:27
no, that's how you easily prey on people
@ircmaxell lol
@HamZa If you don't turn on your computer, you certainly won't.
@ircmaxell answer: What should you do? Learn PHP
@R.MartinhoFernandes Smart
@HamZa but sometimes you make mistakes and go to the wrong site accidentally…
15:30
@bwoebi Or the non-wrong sites were hacked. Or something else.
Oh that happened here on SO
Someone had a problem with his code, and had an iframe.
Instead of using example.com he used something random xxxxx.com
When I tested it on localhost, BAAAAAAAAM ><
@ircmaxell Btw, I still think adding the salt to the hashing API was a bad idea
@NikiC eih, #1 too late. #2 I understand why
@HamZa never execute code without looking at it or knowing that it is secure^^
@NikiC why was it?
I love how even just looking at wordpress code makes me feel like I need to go have a bath... — Marc B 13 secs ago
15:32
@bwoebi I know, I just didn't expect it at all. Yá know, working on the php part and totally forgot about the iframe lol
@bwoebi You review every single line of code that runs on your machine?
@ircmaxell yes, it's kinda too late. Just something you notice again and again now that everybody is writing their "how to hash passwords in php 5.5" blog posts
The best cryptography is the one that gives the user no choices.
15:34
@R.MartinhoFernandes I said or knowing that it is secure means that I won't check code I know that is secure... (or is from well-known sources)
@NikiC They'll come haunt you here on SO to find a workaround :p
good, if the page is hacked… I had no luck, but then mostly there are trojans and viruses for win, but not for mac
@ircmaxell What part do you disagree with?
@NikiC I would phrase it: the best cryptography is the one where the user doesn't have to make a choice
because there are definitely cases where the user may have to make a choice...
@ircmaxell The issue with that is that devs just love to make choices, even if they don't have to ;)
15:37
404 On Zend
@NikiC So? they can always make a choice to do dumb things. That doesn't mean we should limit what users may have to do...
Laterz guys !
see ya @HamZa
@HamZa cya
@CarrieKendall hello kindle
If the attacker can guess your password, you need to strengthen you password quite significantly... — ircmaxell 26 secs ago
15:43
Guys, is there a way to display an image (after form submit) without having to save it into the server?
Display it at the same PC ofc
@sanchy after form submit but not on the server, JS will help you
@Mr.Alien But i mean, i have all this information about the image after the submit. There has to be a way to show it
> Your browser did something unexpected. Please contact us if the problem persists.
my browser breaks all the rules on friday >:]
user895378
15:52
^ Not sure I agree with this cv request ... oh wait, I saw it after it was edited :)
user895378
Why is this closed as off-topic by a moderator? @Gordon can you shed some light on the logic here?
user895378
It's not the best question in the world but it's certainly not off topic IMO. Am I crazy?
@ircmaxell Not really limit, rather not expose choices in high-level APIs ;)
Oh while we're whining talking about closed questions - is this really 'not constructive' ?stackoverflow.com/questions/17224798/how-to-use-php-opcache
user895378
16:03
@Danack I'll throw a reopen vote at it :)
I am on the fence about that...
user895378
@Marc B I know what you mean, but can you program an example please? — user2509601 4 mins ago
user895378
lol ^
hmmm, need 60 more rep today
user895378
CAN I HAZ KODEZ?
16:03
ty
user895378
If it were just "So where is the documentation for it" I wouldn't, but to me, "So where is the documentation for it and how do I use OPcache?" makes it a valid question.
I may as well add more stuff about it clashing with APC so it will stop the apc.upload progress working as well.
ah - and it's actually on php.net as well now.
user895378
@Danack I generally frown upon asking questions with the sole purpose of answering them to repwhore ... Are you sure you didn't do that?
user895378
Because it looks like you did that and now I'm regretting my reopen vote.
16:11
No not repwhoring - was going for the tag badge.
:p
@rdlowrey "Why was this closed" -> MSO. "I disagree with this closed" -> reopen vote
All I can see is that it was flagged as OT and apparently a mod agreed. I'd had to ask myself to know the deeper rationale
user895378
@Gordon Cool, thanks for the input.
I am trying to learn php I am strangled with a smarty template which has used some kind of trick to display the objects some one has answered the question but I am unable to understand the answer even please see the question here stackoverflow.com/questions/17238677/…
user895378
@Will Why was this closed? I don't see anything off-topic here. Is the OP a bit vague and rambling? Yes. Is the OP off-topic? Not even a little bit. — rdlowrey 6 secs ago
@rdlowrey or a comment. yes. probably the easiest to grab his attention
@RegisteredUser the "correct" answer is don't use Smarty
16:17
@RegisteredUser The first answer to your question explains it as simply as it can be expressed. I'd suggest just start trying to modify the code to do something different to understand what it's doing.
i could not understand the answer so posted
@rdlowrey looks like it belongs on SU better
@kaᵠ that was what the flagger suggested
user895378
@kaᵠ Not sure I agree? The question is "how do I modify outbound HTTP headers across an entire system." The answer is: "enable a proxy server."
user895378
If the question were "how do I install and and customize Proxy Server X" then I'd agree ...
user895378
16:22
Just my two cents.
@Gordon shouldn't it have been moved in this case?
@rdlowrey but for SO it must relate to programming, enabling a proxy has little to do with progra,mming
user895378
I guess my perspective is skewed because I think of it in terms of "how do I write a proxy server" and not "how do I enable a proxy server" ... but I see your point :)
hehe
@kaᵠ shouldacouldawoulda :)
user895378
lol only a couple months in and the mod apathy has already taken hold :)
user895378
16:29
(kidding, of course)
yeah, lol
@Gordon I mean, you have basically a [move] button and a [close] one, are those too close to each other ? :P
holy crap, I've been looking at new questions, and i've casted close-votes for like 90% of the new ones...
I should not watch new PHP questions
@kaᵠ we don't have a move button. we click Close Question. Then the regular dialog with the close reasons comes up.
@Gordon and when you close with OT->Belongs on SU, it actually gets moved? as opposed to geting just closed as OT when regular folks close it?
user895378
16:36
ProTip: if you refer to your API as RESTful, don't violate RFC2616 and require request headers in a specific order.
@ircmaxell The last example on php.net/manual/en/function.password-hash.php defines $timeTarget but doesn't make use of it :)
Hi guys, just quick question.. you will store option value such as "Open","Close","Pending" etc ... using varchar and store it as text value or using int such as 1 = Open, 2 = Close etc?
@ircmaxell i discussed the concept of "guided time" with mods yesterday. it would force new users to ask at least 3 questions that get through a review without problems. basically new user start blacklisted. those that dont pass the review wont make it to the main page. they wasn't too fond of it though :(
@kaᵠ yupp
user895378
@Gordon It's a good idea IMO, but it doesn't serve the primary goal of SO: farming as much content as possible.
Hey guys, I wrote a small API to log your health ups and downs. Would like to know what you guys think about it - news.ycombinator.com/item?id=5917425
16:39
@Gordon Would create a lot of review workload though
user895378
Sometimes I see a lot of tension between the commercial objectives of SO and the overall quality of content ...
Some people have told me they've never share their generic symptoms / feelings even anonymously. Others, the complete reverse. Would like to see what the devs think.
@NikiC that's was the main concern. No one would want to go to the review tab to guide them
@rdlowrey thats not our goal actually
user895378
lol I didn't know this was stackoverflow.org :)
@NikiC GDI
user895378
16:41
Maybe I'm just a cynic, though (Tinfoil Hat Fridays FTW!)
@Gordon I think it's an idea in the right direction. but not the right idea...
@ircmaxell GDI?
@ircmaxell it would solve a number of problems imo: less noise on the main page. better experience for newbies who actually want to learn because they dont get dv'ed and cv'ed. less users feeling the need to create new accounts, etc.
Hi there, is there somebody here that would have time to look at some php code? I am a beginner in the world of oop and mvc framework and I am stuck with a problem.
@ircmaxell but you said it yourself: "I should not watch new PHP questions". best proof that it likely won't work. not that I wouldn't think it's worth trying.
16:47
The answer there is The salt is *probably* incorporated into the hash (as plaintext). (emphasis mine). It's just an educated guess. That's not an answer. — Achshar 5 mins ago
@Gordon well, I don't think it's a good answer, but it's something in the correct direction...
@NikiC God Dam It
@rdlowrey no, really. I don't know a single moderator who likes all these crap questions coming in all day. I mean sure, SE.Inc probably earns more money from it, but I doubt it's in their interest to let this place decay into something unusable.
@ircmaxell heh
user895378
@Gordon Well, as far as the tag goes it already has decayed into something unusable as far as I'm concerned. Maybe 1 in 100 new questions has any value.
I have a hard time passing an error array from one "page" to the other and it is probably a very basic mistake that I made somewhere
user895378
It's a difficult problem to solve with free labor, though. The concerns over all the additional review workload are certainly justified.
16:51
Another thing I'd like to see was a revamped rep system that spreads out more horizontally and emphasises the community actions instead of answer grinding. I wouldn't mind capping the visible display of rep at 100k either.
@Gordon I think tag badges should have the minimum question count drastically lowered or removed for that exact reason
@rdlowrey I totally agree, and I've said it before - almost the only people who are posting questions now are those who are unable to successfully use google to find their answer, which almost inevitably will have already been asked many times on SO.
right now, I could get gold in by just answering 120 questions. I could put bogus answers, not enough to be useful, but just enough to prevent mod action. How does that help the community?
politics... laters everyone. :)
I guess that depends on your skill level. Higher skilled people might have less utility for the site as their skill increases.
16:54
@JohnP yes, but it's officially a site for professionals and enthusiasts. it might not be the reality but I take that as guidance when closing questions
Hello, could anyone take a look at this for me? stackoverflow.com/questions/17240507/validate-a-url-php
hey ?How can find PHP web development job with good salary under my knowledge ?
@ircmaxell the required amount is somewhat dependent on the field though. I can easily see the number make sense for PHP, but not for … say MVC. Then again, why would anyone want a gold badge in a narrow field anyway?
to show expertise in it, which is what the badges are supposed to be for in the first place ;-)
user895378
@igorw Smart :) see ya
16:58
@DhameshMakwana india? or Srilanka?
India, but I live in England samitha
see.you name just like a srilankan
ok
@ircmaxell quoting "you receive badges for being especially helpful." That doesn't necessarily mean expertise but sure I got your point
@ircmaxell haha
that's some damn lazy cat
17:03
@ircmaxell I am not sure if that bird is courageous or stupid
or well trained
@ircmaxell or well fed
:-D
lunch!
heh, it's one of those days again where I can't focus on anything
user895378
@NikiC It's called Friday.
m59
m59
17:13
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php/$1 [L]
What does /$1 do?
rather, it looks like it captures everything and routes it through index.php, but how do you access that?
$_SERVER['REQUEST_URI'] just returns what is in the address bar anyway
@m59 it uses what's been captured in the 1st set of parens
m59
m59
Yes, but is there a way in php to actually get index.php/etc/etc ?
Sadly Friday is almost over in this part of the word :'(
m59
m59
after it is re-written?
not sure
m59
m59
17:16
I just don't see the point in capturing it and moving it over there if I can't then access it in php.
I can just grab it from request uri, which isn't affected by the rewrite anyway
@m59 Can't you look at REQUEST_URI?
m59
m59
LOL, yes, that is my point.
But the standard rewrite like mine seems to use the /$1 and I am trying to figure out why.
Or whatever framework / router you are using might already be breaking it up and handing it over for you
Sorry, I have to keep refreshing my page to see chats so I don't get the messages in order. Didn't even see your new messages :)
@JohnP maybe it's time to update your browser?
Interesting tidbit: CLOC picks up almost twice as much JS in PHP's source code as exists in Underscore.js... 3069 lines vs 1251 lines. #ummm
17:29
@ircmaxell s there any JS in the php source code?
@Jasper Everything's up to date. I think it's something up with my network. I've been having issues connecting to some CDNs recently.
@ircmaxell Which parts of the PHP source code have any JS in it?
@JohnP JSON?
@crypticツ hmm, good point.
But even then, that would be a parser only. Why would it have JS source code in there though?
@Jasper according to CLOC there is ;-)
@ircmaxell hehe
if you haven't see it yet: youtube.com/… (full season)
For a second there, I had to really think about your taste in TV programs. Then I saw it was a joke >.<
17:58
@Gordon The sneak peak was funny. It's pretty typically Kimmel though, i drawing it out way beyond the funny point
@JohnP I like Jimmy Kimmel. If you haven't see it yet, also watch "Kids, I ate all your halloween candy". you gonna cry tears. /cc @Jasper

« first day (979 days earlier)      last day (4195 days later) »