« first day (962 days earlier)      last day (4000 days later) » 

10:00 AM
@Mr.Alien they store them plain text :)
 
@Mr.Alien I can not speak for facebook but a common concept is:
Locality-sensitive hashing (LSH) is a method of performing probabilistic dimension reduction of high-dimensional data. The basic idea is to hash the input items so that similar items are mapped to the same buckets with high probability (the number of buckets being much smaller than the universe of possible input items). This is different from the conventional hash functions, such as those used in cryptography as in this case the goal is to maximize probability of "collision" of similar items rather than avoid collisions. Note how locality-sensitive hashing, in many ways, mirrors data clust...
 
There should be a policy for accessing this room. Some min rep. amount maybe
 
@Jack sorry
 
@hakre Shit, it's actually there ... how did I not see that =/
 
@Eugene we have. it's 100 or so :)
 
10:00 AM
Wow. :D
This to high for me.
Must leave
 
@salathe Ya ryt :p
 
Nope. Can't.
 
@Eugene: Too high for me too :(
 
Or min. amount of answered question with spec. tag like
 
@hakre FAQ says 20 rep to talk.
 
10:02 AM
@hakre ahaaaa, am reading it, thanks'
 
But that is too much for a small PW.
I would just extract all letters used, sort them and then hash them.
Then you do the same with the input and then you can say it's similar in case it was wrong.
 
At least then there would be people here who at least know what PHP stands for.
 
Please Help Please?
 
@DaveRandom Yes pls?
 
@Jack was it addressed to me?
 
10:03 AM
@hakre Actually I found that interesting... it's totally new concept
@DaveRandom What have you tried :p
 
@Eugene No. Altering a structure like $_FILES just seems the Wrong Way (tm).
 
@Mr.Alien tools exist, you can use it to find similar large files e.g. containing same parts of data. useful to clean up the harddisk for images, movies etc.
 
@Mr.Alien I have tried turning my computer on and rubbing it with a brick. Can yougive me teh codez?
 
similar to google image search tool? I guess that is different, they must be searching on rgb scale, never tried matching any large files..
 
@tereško once you shown resume format here could you give that image again ?
 
10:05 AM
@DaveRandom Too Localized :p
 
@Jack there is no other achievable way since I need to keep compatibility with everything, that was before.
Separate request isn't an option as well
 
@Eugene Why not pass related information separately?
 
@Mr.Alien At least it's a real, on-topic, constructive, original question
 
@tereško awesome... thank you ... :)
 
10:06 AM
@tereško careers 2.0?
 
@DaveRandom That was a pathetic question :p one more question like that and will flag you for a question ban ...
 
inspired-by .. it's a merger of designs from several resume sites
 
@tereško
 
NNOOOOOoooooo......
 
@DaveRandom Muhahahaha
 
10:11 AM
Some of the suggested edits
So bad -_-
One of them tried to change all of somebody's integers to floats...
 
Integers are too exact, that's why. What good is 1 if you could have 1.000000000001 instead?
 
1 message moved to bin
morning
 
posted on June 04, 2013 by Lorna Mitchell

PHP runs over 75% of all websites whose technologies are known (source: w3techs), which makes for a really REALLY long tail of users who once installed wordpress, phpmyadmin, or some other open source project that helped their business needs at the time. What they don't do is upgrade. PHP's current usage statistics look like this (source and raw numbers are if you want them): What's alar

 
Pff, why would you ever need to upgrade wp? It's already ... perfect.
 
^^ that chart is surprisingly symmetrical. I would have though it was more tipped toward PHP5.3 by now
Although that's probably somewhat naive.
> We have anonymous functions [...] for JS developers especially will make your PHP make more sense
Not sure about that assertion
The more JS I write, the less anon functions I use
 
10:16 AM
It will change your life alright!
Life itself becomes an anonymous function.
 
Hmm
 
Plus they aren't that useful in PHP until 5.4 anyway
 
I'm sure there's a better way of doing this, but can't remember which one it was:
        $properties           = $reflection->getProperties();
        $reflectionProperties = array();

        foreach ($properties as $property) {
            $reflectionProperties[$property->getName()] = $property;
        }
any way to generate those keys without iterating like that?
 
@Ocramius ...and you specifically want non-public properties?
 
@DaveRandom all zem properties
 
10:18 AM
Hmm, a class that adds a few functionalities to a PDO object ... should it extend PDO or accept it as an argument to __construct()?
 
I just need to index them by property name
so I was just wondering if there was an array_foo voodoo or something
 
@Ocramius Yeah, generators :)
 
@Jack What is the new functionality?
 
Or a very odd case for array_reduce() perhaps lol
 
@Jack ha, ok, will then skip :)
 
10:20 AM
Can you 'close' a connection after using pfsockopen() ?
 
@Ocramius Yeh but it won't be any cleaner than that
 
@jack It was Java :P In Java, math is very picky.
 
@DaveRandom It's ->doTransaction($callback) and ->getOne($stmt) for now.
 
@jack The suggested edit worked nothing like the original reply.
 
@LightningDust Hmm?
 
10:22 AM
@Jack It was just a really stupid edit, he was trying to change all the integers (which were blatantly abusing integer math) to floats
And that was the sum total of the suggested edit.
 
@Jimbo Yeh fclose() still does a full close, the difference is that there is no implicit fclose() when the script terminates if you haven't called it explicitly
 
@DaveRandom The doTransaction() basically does the beginTrasnaction() and either commit() or rollBack() and calls $callback in between.
 
I would say pass in as an arg then
 
It's not so big :)
 
You're not really adding functionality to PDO, you're creating some shortcut sugar, that sounds like a decorator IMO
 
10:24 AM
Hmm yeah.
 
@DaveRandom Excellent, cheers
 
So would a name like PDODecorator make sense? Naming is always giving me a hard time :/ @DaveRandom
 
@Jack I would probably not include the word PDO, and I would probably write an interface that PDO conforms to and create class MyPDO extends PDO implements MyPDOInterface {} (with better names) and typehint for MyPDOInterface. Think of it this way: those routines could work on anything as long as it exposes the same interface as PDO. I can't help with naming though as I am equally bad
 
Morning Folks!
 
Moderators on superuser are nasty superuser.com/q/603524/61977
didn't expect it to be that way :-S
 
10:35 AM
I am using zend framework 2
my controller is extending
 
@zerkms wow, bad mod day?
 
AbstractActionController, but
 
@zerkms If such question gets asked on SO I would have closed it as NC
 
@Jack I'd say it using another words but my message would be considered as rude
 
it says that AbstractActionController file is not found
 
10:36 AM
@PeeHaa埽 Indeed, but what would an asker do?
 
@zerkms read the faq as stated?
 
@PeeHaa埽 how reading faq would help solving an issue?
 
@DaveRandom Thanks, that makes sense ... the only "but" I would have is that perhaps in future PDO will implement ->getOne() as well ;-) I suppose as long as they don't implement it as final I should still be okay =D
 
not. But stackexchange isn't just for anything you want to ask.
each site has guidelines
 
but its there in the ZF2 library
 
10:37 AM
I'm lookgin for a framework which has routing and database logging
^ NC
 
wat to do?
 
I'm looking for a parental control software which does x
 
@PeeHaa埽 my requirements are pretty specific and the question itself isn't vague
 
^ NC
 
@PeeHaa埽 well the thing is - I haven't found any that does what I want
which makes a question pretty specific
 
10:38 AM
It's the same thing. It's asking for a shopping list
There is no definite answer to that question
 
there is
provide any reference
and it would be an answer
I didn't ask for "the best"
 
@Jack It doesn't matter, you aren't actually adding anything to PDO, you're simply abstracting the existing class into a typehintable interface and injecting that into the class that provides the sugar methods. So if PDO did one day add that method you can just proxy it.
 
for for "any"
 
definite is key here
 
@PeeHaa埽 die gast is een hulp vampier...
 
10:39 AM
@DaveRandom I suppose I could do parent::getOne() then :)
 
@PeeHaa埽 any programming question has multiple answers
you could implement literally everything in multiple ways
 
> As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or specific expertise, but this question will likely solicit debate, arguments, polling, or extended discussion.
 
which makes any programming question to be a question without definite but just possible answer
 
@Jack No because your methods aren't added to MyPDO, they are added to the decorator. MyPDO is just an "empty" class, it's your DBADecorator that has the getOne() method.
 
@zerkms no. There can be multiple solutions to a problem, but that isn't the same as a shopping list
 
10:41 AM
@DaveRandom Then maybe I misunderstood you earlier where you had ... extends PDO, what you're saying now sounds more like function __construct(PDO $dbh).
 
@PeeHaa埽 there is a problem - to limit access to a particular website at a particular time
 
@Jack One second
 
it doesn't look like a shopping list question now does it?
 
@zerkms From the faq: "asking for a shopping or product recommendation,"
 
how would I limit it? --- now it's a technical question irrelevant to the shoppoing list
right
 
10:42 AM
@zerkms yes it does
 
and I don't ask for recommendation
I have a particular problem
I don't care of products anymore
 
I have windows7 and I need to block a site. How to do that?
@PeeHaa埽 it's easier to give up indeed, because the FAQ you're following is vague as well
 
@zerkms Have you tried switching off the PC?
 
the same thing can be treated as a valid or invalid question depending on your mood
@Jack ?
 
10:44 AM
@Jack lol
 
@zerkms Just a jest my dear sir.
 
:-(
 
@zerkms your router can probably do that, well many can.
 
@salathe the thing is - yep!
but its NTP feature doesn't work so on every restart it resets the time
which leads to a wrong schedule times
 
get a better router :P
 
10:46 AM
:-S
that's why I asked a free solution particularly )
 
A free solution to synch your router's time with ntp? :)
 
if I wanted to spend money/time - I'd rather implement some dummy windows schedule to switch hosts
 
@zerkms windows 7 home or ultimate ?
 
@HamZa home
 
hi there
 
10:47 AM
@Jack if only there was some... oh I don't know... daemon for that sort of thing!
 
lol
 
@zerkms If you had ultimate (maybe also pro) you could maybe mess with the policies ...
 
anyone doing functional testing with
phpunit
selenium2
 
@PradeepJaiswar yep
this chat today isn't friendly as well
 
can u tell me how to run browser process in back
grounf
 
10:49 AM
what is "background"?
 
when i run the test case
 
@zerkms * salathe cuddles @zerkms
 
it open the browser to run all writen test case
like login process
 
(too friendly?)
 
@salathe now better
 
10:50 AM
is der any ways to run it in background
 
has anyone here used html2canvas plugin?
 
@PradeepJaiswar provide a better definition for "background"
 
i mean it should run all test cases but should not open the browser
 
what operating system?
 
windows
window -7
 
10:52 AM
"but should not open the browser"
 
yes
I have to attached the pre-commit hook to a functional testing. So when ever i try to commit something it opens the browser and checks the all test case and work as accepted buttakes a lot of time
 
can it be just minimized?
"not open" is a bit vague
 
1
Q: How to start a Selenium2 WebDriver window in background?

SteveCZI have a series of Selenium2 test cases in C#/NUnit that are run sequentially. Each test case runs in a new instance of the WebDriver (and this is necessary) - which means that each time a new test case it reached, a new browser window opens over the top of whatever else I'm working on. Is there...

here is how you would start them minimized
 
you mean to say it will get minimized
?
@zerkms
 
10:54 AM
@PradeepJaiswar Instead of "background", search for "headless".
 
@PradeepJaiswar guy with most upvoted answer shows how to run chrome and ff minimized
 
Ugh fail, that last line is obviously pointless
 
u mean to while starting the selenium server i should specify that
@zerkms
 
@PradeepJaiswar have you read the answer on the link?
 
ok
@zerkms dat will helkp
 
10:57 AM
@DaveRandom Thanks, reading.
 
There should be a PDO::ATTR_EXCEPTION_CLASS as well :-(
@Jack Also line 20 should say $this instead of $db
 
Hmm okay, I understand why those changes would be necessary, but at the same time it seems "obese" for its purposes :)
 
@Jack I know what you mean but it would truly decouple your codez from PDO. I have recently started doing it for everything, because you can use the same set of classes/interfaces for everything because they don't actually add/alter any functionality.
 
Morning
 
@DaveRandom Yeah, let me take another hard stare at the code ;-)
 
11:03 AM
 
The coupling with PDO would be okay in this case actually ...
does PDO actually declare an interface of itself?
Hmm, no.
 
how this work ? is it automatic or status by mod
 
@NullPoiиteя mods can set the message manually
 
ty ... i see
 
In this code why isn't the first line echoed "Account A". I can't see why the pointer is moving to the second element. I'm probably missing something obvious, I quite often do.
 
11:18 AM
@Jack No, which kinda sucks
I keep threatening to finish my MySQL driver-agnostic package which implements the PDO "interface" but works with PDO -> MySQLi -> ext/mysql in order of preference depending of what's available
 
Anyone an idea what can cause the following Warning?
Warning: move_uploaded_file(project_file_uploads/72/manu-chao-tickets.jpg): failed to open stream: No such file or directory in
 
@Duikboot Make an educated guess
 
The thing is I try to create the dir but it won't :/
if (!is_dir($config->uploadDocumentDir)){
mkdir($config->uploadDocumentDir, 0777);

if(!is_dir($client_id)){
mkdir($client_id, 0777);
}
}

move_uploaded_file($_FILES['file_upload'.$i.'']['tmp_name'], $config->uploadDocumentDir.$client_id.'/'.$_FILES['file_upload'.$i.'']['name']);
And the client_id exists.
 
@vascowhite Bug (?) in InfiniteIterator, consider 3v4l.org/Mq8Jr vs 3v4l.org/V3B11
 
@DaveRandom Yeah, I'd noticed that during my testing. Calling rewind() sorts it out, but it does seem strange.
 
11:27 AM
But when i do echo $config->uploadDocumentDir.$client_id.'/'.$_FILES['file_upload'.$i.'']['name'];
i receive the good path
project_file_uploads/74/03210_cadetsonthefieldreloaded_1600x1200.jpg ...
so i have no clue :/
So I have no idea where it goes wrong :/
 
@vascowhite I'd call that a bug. Report it, I can't find a dupe
 
@DaveRandom OK, I'll do that. Thanks for taking a look.
 
I want to create for every project that I generate a /projectid/images_forthe_project.png
 
@Duikboot You sure the current working dir is what you think it is?
 
Good day!!
 
11:30 AM
Hola @dragon112
 
$this->uploadDocumentDir = "project_file_uploads/";
project_file_uploads/75/03210_cadetsonthefieldreloaded_1600x1200.jpg
So I think that's correct.
But it won't create the project_id dir ( 75)
for some reason
 
Also make sure you have the permissions to create the directory
 
Best weather we've had all year! ^_^
 
if(!is_dir($client_id)){
mkdir($client_id, 0777);
}
}
 
@dragon112 yeah
about time
 
11:32 AM
this is working
for the first one ( the project_file_uploads )directory
 
@dragon112 Too bad I'm working...
 
@PeeHaa埽 Same goes for me, but this weather seems to be staying for a while :)
 
noice!
 
Without adding the sub-dir /project_id/ it works.
Got it working ! :-)
 
Zend Framework 2, Why are the classes in vendor library not loading when i say SomeController extends AbstractActionController?
I do have the classes in the vendor ZF2 library
how should make them accessible to my Controller files?
 
11:42 AM
how do i find zip code of x radius with given lat/long .i already have lat/long database with zip-code.it is not appropriate bcoz it need target lat/long.anybody can help?
72
Q: MySQL Great Circle Distance (Haversine formula)

NickWoodhamsI've got a working PHP script that gets Longitude and Latitude values...then inputs them into a MySQL query. I'd like to make it solely MySQL. Here's my current PHP Code: if ($distance != "Any" && $customer_zip != "") { //get the great circle distance //get the origin zip code info $z...

 
Can't you use:
https://developers.google.com/maps/documentation/geocoding/
?
( Just tryign to help ) :) not sure if that is exatcly what you are looking for.
 
@Duikboot no
 
@vascowhite Have you tried that on your system? It may be an issue with 3v4l, it works here and here and on my machine...
 
11:59 AM
@user1987095 the answer is definitely what you need unless you want us to write code for you
 
hello! everybody, does any one can help with Wordpress?
 
@Mahmoud mabye what is wrong/
?
 
Actually jQuery is bloating day by day
 
this is nice question — Anil May 14 '10 at 11:33
loooooooooooooooooooooooooooooooool
 
12:09 PM
@PeeHaa埽 Check out the poster of that comment vs the poster of the question
 
@PeeHaa埽 Indian - Respect...
 
@DaveRandom ow even more lol
 
maybe from now on I should always comment on my answers with:
> +1 this is the correct answer
 
@tereško nice idea :D
 
12:24 PM
hello i want to parse wsdl from php
can anybody help me?
 
@PeeHaa埽 sorry, I didn't understand :X
 
@AmirHudani it's XML ... just use the standard approach for dealing with XML
 
I am trying to merge 2 tables into 1 with sql.
What can be a reason my inner join generates duplicates ? ( I receive the correct data but my records are always twice
GROUP by does the trick it seems
 
@Duikboot show your query.
 
@tereško: Thanks for your reply but can you give me link or code to parse xml
 
Indded group by does the trick
 
i am new to this..can you please??
 
@hakre tl;dr how to break it?
 
new or not:
1- Search
2- Try
3- goto 1
 
@AmirHudani WSDL as what it describes or as XML?
 
as xml
 
@AmirHudani DOMDocument or SimpleXMLElement normally do it. See what @tereško just wrote.
 
I want is mentioned 5 times. What have you tried ? — HamZa 1 min ago
 
ok i am trying that
thanks to @HamZa and @tereško
 
@hakre tnx
 
you could focus more on the PHP related stuff
or at least web-development related
 
@DaveRandom Yes, it works fine if you rewind the iterator first. If you don't rewind, then you get the unexpected behavior.
 
@tereško Had spare votes, so was going through negative voted questions..
 
12:50 PM
@Mr.Alien I'm with @tereško on that, this is the room afterall.
 
@Mr.Alien have you gon through all of the backlog already ?
 
@tereško 50K I guess..
 
@vascowhite Not necessary that we can only close PHP questions only.. some total crappy can be closed that instant, regardless of any topic
 
@vascowhite Oh I copied the wrong code to test :-P ignore me, looks like the behaviour is consistently buggy
 
12:51 PM
anyone integrate ios notification
 
@Mr.Alien also , there is always stackoverflow.com/review/close (with filters applied) if backlog has nothing new for you
 
@tereško Woah.. I am killing those posts. :p
 
@Mr.Alien The can be used in any chat room, so if you have questions you wan't to close from other tags, then it would be more appropriate to post the cv-pls in the relevant room. IMHO :)
 
link for sending notification to iOS
 
@vascowhite Hardly any room stays active here
 
12:55 PM
> Discussion for all things PHP
 
you'll get better results, but its perfectly fine to post non-php cv/delv reviews in here
 
a bug
someone has accidentally posted the wrong link
 
@tereško Hmm
 
We need a sane way to remove stuff from the backlog manually, I've never been comfortable with the "people won't CV it so it doesn't matter" attitude
or at least a whitelist of canonicals like that which will be ignored by the backlog
 

« first day (962 days earlier)      last day (4000 days later) »