« first day (1213 days earlier)      last day (3961 days later) » 

00:08
@Gordon I DENY EVERYTHING!!!1!
00:25
morningineveningafternoon biotches!
@PeeHaa 'sup
Who has a day off tomorrow?
Oh right... I have :)
Don't waste it! Or, if you do waste it, do something fun.
I'm drunk. Isn't taht fun enuf? :D
@PeeHaa I think "unclear what you're asking" covers that a touch better than your custom reason :)
00:31
Ow sorry. I misclicked I think :D
@PeeHaa True. However, I advise against closevoting when drunk. Been there, done that, had a weird flag history the next morning.
hehehehe
The current state of SO questions means you don't see a difference when being sober :P
lulz when I open up twatter @Gordon is staring at me :P
user image
4
@zerkms yeah reading the manual is pretty tricky :P
Then again this influx was to be expected when copy/pasta "developers" were going to migrate
@PeeHaa Eternal September + people that don't care?
00:48
I agree about the terrible quality, but that's about it. Shog has been "tweaking" stuff on the site a couple of times and although everybody said "noooooooooo, bad move" he continued pushing his view on the community with even worse effects as he / the community wanted.
I just think they don't care
@PeeHaa The problem is that SE is trying to balance the absurd needs of SO in comparison with all the other SE sites.
how do I submit a patch to an existing issue on github?
@Charles Yeah but by doing that they want to get more new users instead of listening to their current community
/me agree with your answer btw.
region filter is just stupid
@crypticツ PR that shit
@PeeHaa True, to an extent. But also consider that even the communities on SO have wildly different standards. seems to be a cesspool of upvoted giev me complete tutorial / teh codes crap and nobody there cares to fix it.
@Charles Yeah if they want to do that that is that tag's problem, but for me personally there is just sooo little incentive to even look at SO main. I mean the only answering I have done the last months were basically when a thread totally derailed with crap answers. Other than that it was downvote, downvote, downvote, downvote, closevote, downvote, downvote, close vote
What's the fun in that?
I'm doing maintenance on SO, not learning anything useful most of the times
00:55
@PeeHaa Learning how stupid people can be sometimes is very useful.
I don't need SO for that I just open reddit... :P
BTW nice revenge voting you've got going on there :)
Yeah, I think that was the guy.
They took meh tag!
And then the cherry on top of the unaccept from the guy that wanted to do premature optimization for his 400 row table...
Yeah saw that :P
Seriously WTF
Shit like that is not even worth the comment asking for clarification
00:59
This looks like a job for what is this I don't even
@PeeHaa but won't that open up it's own issue then?
there is already an open issue
Holy shit that's alotta choice of keywords help.github.com/articles/closing-issues-via-commit-messages :P
Use "fixes" btw because that is what I would expect :)
oooh, thx!
01:16
What exactly is the point of having FILTER_UNSAFE_RAW "Do nothing" ?
@crypticツ Without flags there is no point
I'm going to the neighbor to drink once last beer. Night room
@DaveRandom wanna talk at ya, let me know when you have a minute
@PeeHaa yeah, but with flags it then has same functionality as FILTER_SANITIZE_STRING
so essentially it's a rather useless filter, no?
01:33
@crypticツ Well, it does have a very clear and obvious name.
I suppose it might be better practice to acknowledge that you're intentionally letting through anything than to not run it through standard filters at all.
@crypticツ Ick. No, rather unlike that. A good chunk of the things he's not filtering could be filtered using a regex instead. Like phone numbers, those are always going to be digits with optional spaces, hyphens, parens, plus signs, and maybe "ext" or "x"...
I mean if it is to show you that the var is unsafe you only know that from that line. That label should be in the var name like $unsafeVarName so you know later on this that value is unsafe because you have no idea if it was filtered or not.
Well, it also depends on what "unsafe" means in context.
Like, a company name. I can't filter on that. It's going to be text string containing arbitrary crap.
It's not so much unsafe as "unable to be filtered down to a known thing"
morning
01:44
y0
@Charles hello!
02:02
good morning
Georgia =o( *gives them all beers*
@crypticツ bullshit, since the price of a beer changes drastically with location
@ircmaxell Based on average price numbeo.com/cost-of-living/…
@ircmaxell still, beer is the standard of living :P
Yeah, but a beer in NYC can be $12 (about 1.5 hours of work), but in rural NJ can be $2 (about 0.2 hours work) :-)
02:15
All the more reason to move =oD
Also you need to take into account the quality of the beer. Is it that watered down crap they have commercials on TV for or some delicious microbrewery from the middle of nowhere?
I only consider good beer to be beer. The other stuff is flavored water
Also: (VERY NSFW) vimeo.com/86014703
2
omfg, robocop is such a dick
ha
Off to bed, later
how NSFW
bye
lol, he took a picture of his code and uploaded the image
@DaveChen are these to close vote?
user652649
03:10
so you can crowdfund a movie with exploding penises, good to know
03:25
omg...
erm no, i haven't yet. Where do i read it at ? — user3098046 23 mins ago
see my previous comment, where I link to BOTH >.<
user652649
color blindness?
@Wes only sees in shades of grays?
user652649
that's a book about erections
03:42
@andho yes, + they were all posted within one hour...personally I think he's just trying to rep with crappy but 'trickful' questions, the type of questions that usually don't solve anything, they're just trivial
please post them with cv-pls tag. so it will be indexed by CVBacklog (Y).
[tag:cv-pls] http://stackoverflow.com/questions/21668096/php-string-byte-length-of-a-unicode-string-please-explain-the-following-string
haha, i always forget the tag syntax
sdfsdf [tag:cv-pls] sfsdf
ssfsfs
hmmmm
so tags can only exist works in single line messages
@andho Well putting it multi-line will still have it show up in backlog (well at least dev version, not sure about current), it just won't render as a blue tag box.
the messages are fetched from transcript by search for string tag:cv-pls which will be present in either case
preferred usage of course is to have it render =oP
04:14
mmmmkay
ugh, I am a victim of my own grammar policing
Hey everybody
Hi. How do you do?
Is it okay to use dev-master of doctrine-migrations bundle or maybe i should use 2.1.x as an dependency?
@Ivan0x32 use a stable version
or better use a specific major minor version. Save you from API changes.
so 2.1.x is good
 
3 hours later…
06:54
@BenjaminGruenbaum that depends what you mean by thread library, are you talking about a high level abstraction of threads, or are you talking about the implementation of the functionality ... if you mean high level, look around at what others are doing ... if you mean low level, then the pthread source is available for every implementation ever written, though they aren't documented ... just start reading .. sorry bout delay ...
GOOD MRONGIN
07:11
Hi
good morning
        function isBaseImage($baseUrl, $imgListUrl){
            preg_match("/[^\/]+$/", $baseUrl, $outputArray);
            preg_match("/[^\/]+$/", $imgListUrl, $outputListArray);
            try{

                if($outputArray[0] == $outputListArray[0]){
                    return true;
                }
            }
            catch(Exception $e){
                return false;
            }
            return false;
        }
I am trying to compare two file names using the above code
This isn't working
when I checked using Mage::log
the two output variables having same file name all the time
which is not at all possible in my project
Any help?
@Mr_Green I have no idea what you said and I cannot understand your code
rephrased - "I am trying to compare two file name url's" @andho
the arguments which I am passing to the above function are the strings which consists of url to files.
is it still not clear? @andho
07:28
What is a good resource for learning PHP for a newbie?
Found a friend in w3schools. Want to offer a better alternative instead of just being a douche
@BenjaminGruenbaum php is their first language ?
good morning
my bet is that static-typed language is much better as first language
tfw you downvote all the answers on a question because they're all just stupid copy paste code dumps from idiots that don't even understand what they're doing...
^ ?
huh.. looks like regex
@JoeWatkins yes I think so
07:41
local book store then, any book (with a reputable publisher, and that cover a range of other subjects) that mentions beginners, programming and php ...
... and was published after 5.3 was released.
That doesn't help me at all, I want something concrete that's as easy as w3schools
Leaf through the database section, and if it mentions mysql_ functions, don't buy it.
Good morning!
@Mr_Green your preg_match doesn't really do anything.
07:43
w3schools is only "easy" because they leave out everything that actually matters, like doing it right from the beginning.
@BenjaminGruenbaum there isn't a website that I know of, the only good way I know of to learn anything is by reading literature by relevant authors ... there's good websites to read once you know roughly what you are doing but the only place to learn what you are doing is in the pages of a good book ...
@Mr_Green php doesn't try/catch errors. Only exceptions.
or by reading source code, but not applicable to someone just setting out :)
@Mr_Green your code could simply be:

    function isBaseImage($baseUrl, $imgListUrl){
        if($baseUrl == $imgListUrl){
            return true;
        }
        return false;
    }
I'm probably not the best person to ask, I don't remember a time in my life I didn't know what programming was ... that's not saying much, I don't really remember much of last week :)
I really have no idea where to actually start, but when I need to learn something, I use books ...
07:48
Good morning! :-)
morning @Duikboot
@JoeWatkins so w3schools it is.
I can't tell him 'buy a book', that's lame. I also can't point him at another resource.
jee whiz, I wonder why most new php programmers make obvious and bad mistakes, surely it can't be the learning resources
I'd really take the trip to the bookstore ... or search for a good ebook for him ... he's doing himself no favours by reading w3schools ...
You can't say that and not offer an alternative.
You can't tell someone 'what you're doing is bad' and not give them an alternative.
07:53
@BenjaminGruenbaum give him some tutorial that builds a simple membership system. Then "search" the web for specific solutions. The search part being the keyword
if someone is going to kill themselves, you do not offer them a better way ... you stop them :)
Don't learn cpp from cppreference learn it from "The C++ Programming Language", don't learn JS from w3schools, go to mdn, eloquent javascript, secrets of the javascript ninja or the rhino book.
If someone wants to learn Haskell, their obvious resource is LYAH, most languages have those solid references and books.
the alternative is there, it's go to the bookstore or find a book in whatever way is applicable ... I'd go to bookstore but lots of people can read ebooks ...
@BenjaminGruenbaum yayy, wait i think there was a recent php book. let me check
PHP is a moving target, a bible written for <5.3 is no longer applicable, what we advised when 5.3 was cutting edge is not the same as we advise today ... it's not the same as writing a C/C++ book, they aren't moving targets at all ...
user924016
++books
morning room
user924016
morning
Hey @Joe, ask Goran if he has some job for me :D
@andho the filenames are same but the paths are different
anyway, I solved it
Thanks
@webarto I will, when I speak to him later on ... why haven't you asked him ?? I mean you asked him for me ...
@Mr_Green oh, cool. Would have been easier if you gave example input and output
Jes
Jes
08:42
Hello Friends
morning all
Jes
Jes
in cakephp i m trying to redirect unauthorized users to a custom page where as by default it redirects to login page
how to change that?
^ good lord.. there's around 1 month since you're trying to do that with "cakephp"
hi, @Fabien
Good afternoon
09:03
@Jes without knowing cakephp, there should be a predispatch hook or middeware, where you can run your logic to check authentication/authorization and redirect using CakePHP's routing api
start with VanillaPHP framework
user924016
^
^ are you kidding?
@AlmaDo not good today?
09:13
There we go
@MadaraUchiha hehe :)
good mornings :)
@MadaraUchiha yeah.. trololo all the times ..
@ircmaxell DAFUQ did I just watch?
09:28
Far too much Monday
09:39
Mornings
@Fabien I concur
Morning @DaveRandom
Hello World
@MadaraUchiha hi
@DaveRandom hello
can some change the name of this room chat.stackoverflow.com/rooms/46799/amdavadi-php
Its been confused for a PHP room
09:54
@MadaraUchiha I was there for a while thinking i was in PHP room
The PHP room is room 11
Until i felt something was wrong
Always will be :)
How are you doing today ?
You still owe me a beer ...
@Baba Only a mod, although I doubt they will, you'll have to ask the owner...
09:56
@DaveRandom may be we should do that
0
A: What is password strength considered enough for use with password_hash function?

BabaAm not sure if i understand your question clearly but i would just focus on password strength and how it affects brute-force attack. But still it runs at some speed, surely enough for the dictionary attack and to brute-force weak passwords, [supposedly] shorter than six alphanumeric character...

^^^ Review pls
doesn't look so php to me. doesn't even say php in the description
So used to DateTime i also most forgot and how calculate time :)
@andho yeah .. it felt off in a way
@J̲̳i̲̳̳m̲̳̳b̲̳̳o̲̳ Y U ASSUME SENSIBLE UNICODE SUPPORT IN ALL BROWSERS?!?!?!?
Also mornings
Morning
Jes
Jes
10:06
friends
quetion with respect to cake php
@DaveRandom E_TOO_EARLY for this abuse!!
Where do I assume sensible unicode support?
Jes
Jes
i m trying to implement authentication to my webpages hence if not a valid user i want to redirect them to a custom page instead cake redirects to login page by default.. how could i override this by custom page
Jes
Jes
'Auth' => array(
'autoRedirect' => false,
'loginAction'=>array(
'controller'=> 'users',
'action'=> 'passcode'),
'loginRedirect' => array(
'controller' => 'users',
'action' => '/Dashboard/dashboard'
),
'logoutRedirect' => array(
'controller' => 'users',
'action' => 'display',
'home'
),
'authError' => '<div class="alert alert-error"><button type="button" class="close" data-dismiss="alert">&times;</button>
You are not authorized to access this location</div>',

'authorize' => array('Controller')
)
You deliberately don't support the sensible unicode?
That's like using IE to test my website. Death to IE
10:10
@J̲̳i̲̳̳m̲̳̳b̲̳̳o̲̳ No, I have a standard Chrome install on Win8.1, I haven't removed anything but (more to the point) I haven't added anything either, and I bet I'm not the only one
@DaveRandom Hmmm, I haven't added anything - I just saw those chars on someone elses name and robbed them. Chrome, Ubuntu 13.04
Changed back now anyway
In a nutshell: because Windows
But that means you've screwed quite a large portion of your viewership over
Jes
Jes
could somebody help me out?
@DaveRandom Ah, fair enough - I had no idea it was like that. Y U NO USE LINUX AT WORKS
Just wipe it and put ubuntu on - you'll be 5x as productive
I'm not sure about that statement, tbh. I find that I spend the majority of my time tweaking *nix-based workstations and not so much time doing productive things
I can't help but fiddle with them. On Windows I can't be bothered fiddling because it's such an arse ache
(also, say what you like, on Windows things do have more of a tendency to just sort of work)
10:20
Does anyone know of any shared hosting packages that let you use the CLI? I need to use pcntl_fork() which cannot be called when PHP is running as an apache module
I have a CentOS VM for dev, that's all I need
@DaveRandom Simple things like having your /var/www/ + /etc/apache2, tail -f, console commands at your fingertips though...
Don't get me wrong, I have windows at home. But for dev, linux++
@David Shared hosting sucks balls. There are some that will give you seriously crippled shell access, but it's unlikely they'll give you pcntl
Why are you using shared hosting? Unless it's actually free, price is not a valid argument
@DaveRandom The price though? I have not looked into much dedicated hosting packages but they were all about $200 a month for the smallest
10:25
A dedicated machine is a dedication to excellence, eh?
@DaveRandom Wow and this is for real?
@David Certainly is, I've been using them for a while now, no complaints
That's not the exception either, that's pretty much the rule
and better customer support I presume @DaveRandom
The dedicated hosting I was looking at must have been literally renting out a whole server to myself then do you think?
the link is a VPS, which is good enough @David
10:26
Is this dedicated hosting multiple people sharing the same server but having their own OS in a virtual machine on the server?
Yeh probably, there's a big difference between a dedicated physical server and a dedicated virtual server
@David lowendbox.com is a reasonably independent place you can go to look at some options
i think VPS is a chroot for each user
When I saw the price for the ones I was looking at I was shocked. I thought maybe 80$ for cheapest not like $200. The VPS is what I need
@andho No it's a full OS install on a VM
I can wipe my VPS and put a different OS on it if a I want
@DaveRandom ahh
10:28
You have to choose from a set of images, you can't just put whatever you want on it,
morningz
But most will offer CentOS/Ubuntu Server and some flavour of BSD
This is great why would anyone choose shared hosting when they can get VPS for around the same price
Is there some sort of catch I'm missing
@David Exactly. Shared hosting is so 2000 and late
:-P
@DaveRandom What do you think is the best linux distro to get on it?
10:30
@David The catch is that you need to be vaguely competent with server admin. You don't have anyone other than yourself to answer to when you create a huge security hole in iptables or whatever
But that's why it's so much cheaper, you're only paying for resources and not for people to manage them for you
@DaveRandom Do you by any chance have code for a to-the-byte filesize of files > 2GB that's simple and just works?
@David it's not "managed". You setup and administer the whole system
@David That's a bit of a "how long is a piece of string" question. I'm a CentOS fan, YMMV
@DaveRandom Oh yeah that makes sense. Can't believe I was thinking of getting a physical server
When I can get a VPS for a fraction of the price
Off to go shopping for a good package now
it'll be a fraction of the power too ...
10:33
@JoeWatkins Unless the site was getting loads of traffic though I should be fine
No point paying $200 a month for one for a small site that just needs to use pcntl_fork
I think I meant 4GB..
function unsigned_filesize($path)
{
    if (false === $size = filesize($path)) {
        return false;
    }

    // Convert 32-bit signed to float
    if (PHP_INT_MAX === 0x7FFFFFFF && $size < 0) {
        $size = ((($size >> 24) & 0xFF) * 0x1000000) + ($size & 0xFFFFFF);
    }

    return $size;
}
Still can't handle sizes > 2^32 on 32 bit though, no way to do that
Shit, I don't want my app to only be runnable on x64
Didn't want to resort to exec() either
Hmmm.... ooh, found this.... only 6 months ago
@David ...at which point you'll be able to afford a dedicated server. Or at least be able to afford another VPS for load balancing
Jes
Jes
could someone help me with my cake application
i m trying to implement authentication to my webpages hence if not a valid user i want to redirect them to a custom page instead cake redirects to login page by default.. how could i override this by custom page
10:38
@DaveRandom why that? sprintf('%u', $size) or did I missed something?
@David you don't intend to fork apache processes do you ?
@JoeWatkins It's because your word is worth more than mine now :D
@webarto will ask :)
@AlmaDo I don't like stringifying stuff to convert it back to a number. But yes, that would work too
@JoeWatkins I will be running this PHP script from the CLI
10:39
Ugh I still really dislike Drupal -_-
Jes
Jes
nobody wantes to help me out :(
Because nobody likes CakePHP
@J̲̳i̲̳̳m̲̳̳b̲̳̳o̲̳ That's a seriously last-resort fallback, that will be of the order of 1000s of times slower
@DaveRandom What happens if your VPS gets hacked and you can't get SSH access to it?
Jes
Jes
10:45
@Fabien why ?
is it not a good one?
You'll find most people here don't use generic frameworks.
@Jes no it is not, pretty sure you have been told that at least once per week
CakePHP is good if you like to ride on bicycle with 3 wheels, one of which is perpendicular to others
heh
Hi, i am using Wordpress
I want to know, whether 'wp-config.php' file is updated or not, during Wordpress update. I wrote session_start(); at the top of my wp-config.php file, and hence concerned about losing the change, if any update happens in future. Also i used session_start() at the top of my header.php file of theme. So if theme gets updated, will my change gets lost ?
10:50
@David You can nuke it remotely, you get a control panel that lets you administer the "hardware" so you can flatten it and re-install the OS fresh. Obviously you need to take regular backups - it's the same as administering a physical server in that respect, you are your own sysadmin
FU OPCACHE
@DaveRandom Yeah, it took about 8 seconds first time, then rapid the times after. But as soon as I switched to another 5 gig file... -.-
@Jes Is it a personal project or work one?
@DaveRandom Ah right sounds good
@Fabien how goes your project?
It's a shame I can't get the headers by doing a HEAD request to a local file. You have to have http:// though, and I'm not doing that
10:51
@AlmaDo Slowly. I need to finish this NodeJS scraping one first which is what I did last weekend. Not much to go there. Then I can start planning properly the new one with a clear conscious.
hey
could really use someone's advice from this post :)
1
Q: PHP - Zend keeping sessions alive

Nathan DalyI am making requests from Product 1 to Product 2. 3 requests will be sent, the first is authentication via POST where a session will be set on the receiving server, two will be the GET requests to the REST action of choice and three will be the close call to unset the session by POST. Below is a...

Jes
Jes
@Fabien its work one
@dskanth This is a php chat, for wordpress questions please go to: wordpress.stackexchange.com
@Jes I'd suggest you ask elsewhere for a solution then. You'll probably get a faster answer, somewhere specific to CakePHP.
Screw it. "You must be using linux x64"
Jes
Jes
11:03
@Fabien ok thank you...
11:25
@Fabien peter just got back to me ...
> we have decided now that due to budget constraints, we need to focus our limited current resources on other technical expertise at this time ...
wow -_-
pretty shitty ...
2 months and they're still no where
My guess is they didn't get the funding they were after.
@DaveRandom Btw I wrote some JS having learned from your expertise. When you get a minute, could you let me know what you think?
this made my day
11:34
they should have been honest at the start, I didn't get an email saying why don't you drive to Southampton for a conversation, I got an email saying we'd like to make you an offer, and can you come to Southampton to sign the paperwork ... I didn't think he'd bother getting back to me at all ...
^ caution: that's from real badass (:
Seems more insulting to get back to you now than not at all. I think an old friend put it well. He's a lawyer who is used to having lots of lackeys running around doing things for him at the wave of his hand.
yeah, that's maybe it ... I am insulted, if I don't have the skills to get your startup of the ground, pretty sure, nobody does ...
@JoeWatkins (Y)
11:51
@JoeWatkins I guarantee its a money thing. They were Government funding based and I recall around this time is when they needed to show something.
They never had their own developer despite being told they need one over a year ago. They shot themselves in the foot.

« first day (1213 days earlier)      last day (3961 days later) »