« first day (1472 days earlier)      last day (3476 days later) » 

12:06 AM
which RFC?
 
@DanLugg look at patch then you maybe get the issue
@JoeWatkins I'd be happy if you'd write a bit on the docs, thanks!
 
 
3 hours later…
3:38 AM
3 hours later…
 
 
2 hours later…
5:31 AM
do switch statements use == or === under the hood?
hmm, i guess i could test this real quick myself...
seems to use ==
thats a bother
 
@Hamster try and see
 
yes, imagine switch($case){
case 1 :
break;
case true :
break;
=> breaks
 
6:09 AM
@bwoebi something is broken in phpdbg
it's nearly unusable
5.6 affected, master okay
quits not really working properly in master either
 
6:25 AM
yeah, need to debug a bit better ... things are prety shabby, cant run example code to document finish, finish doesn't seem to be working
a lot of stuff doesn't @bwoebi ping me when awake ...
 
6:48 AM
@JoeWatkins FYI, I would vote against object keys.
At least in the form I see it.
 
why ?
 
Having __hash like Java has hashcode is a bad design.
The C++ approach is far superior.
Push the responsibility of creating the hash outside of the object.
For the basic case, you do what spl_object_hash already does.
 
you're not creating a hash
 
This is the key in the map, yes? The array key?
 
yes, it's for use in a hash, noting to do with creating one
 
6:50 AM
That's exactly my point.
Push that outside of the responsibility of the object.
It should not be part of the object.
 
I'm not seeing it ...
 
In the C++ stl you take a functor that does that responsibility.
Are you familiar with Java's comparable?
Actually, I can't get into this right now; will talk later.
I really, really need to go to bed ^^
1:00am here and I have to work at 8:00am.
 
nn, chat lata
 
hello everyone
i know there is a face detection plugin in php which detects the face from a photo
but is there any code which detects legs from a photo
6
?
i will be very greatfull if i got any answer
 
are you actually serious ? you want a leg detector ?
 
7:06 AM
Hai my query is regarding google plus share.I have include google plus share in my website.Everything thing is fine but if i click share button on google plus wiiindow the content is not getting posted to anyone.Can any one plz help it.
 
yes
@joe watkins
I WANT TO KNOW IF THERE IS SOME PLUGIN ALREADY PRESENT
 
you could do it actually, I dunno about in PHP, but object detection works the same for everything, google opencv cascades ...
 
i tried google search google opencv cascades , i got hand detection software from their
thnx @JoeWatkins
 
you can have opencv perform a kind of learning, and have it generate a cascade for detection of whatever object you like, given enough images of legs, you could create a cascade that detects legs ... it just seemed like a funny question :)
 
funny , eehhh , seems like u are a funny guy
i am very serious about it
 
7:18 AM
there's probably software for generation of cascades, if you can find or build one, you can use it directly in php using github.com/DatingVIP/Facial ... there are probably other libraries to load cascades too, I never looked too much into it ...
 
thnx anyway
hay , do u work in google?
HEY*
 
good mornings
 
moin
 
is there penalties for asking dumb questions on here as well?
Like, can i downvote someones chat comment?
 
7:22 AM
i hope not , @Omegaman
 
lol
i down vote that comment Bhawin
 
otherwise i would have been downvoted million times
 
bwahahaha
jk =p
 
php is rather funny on windows with these message boxes when you run it in CLI, just found another one:
 
posted on October 27, 2014 by kbironneau

/* by Stefano_Ziosi_Is_Watching_You */

 
7:38 AM
@Feeds lolz
 
8:10 AM
morning
 
monring
 
indeed
 
8:27 AM
monrings
 
hai good afternoon
can anyone regarding google plus share. Whatever content i am sharing from my website using google plus it is not getting posted to anyone.
 
8:46 AM
@SecondRikudo Where is anime character on your avatar?
 
@Leri Still there
Look closely
 
good meurning :)
 
hippy moonday :)
 
9:00 AM
@SecondRikudo Oh, in small avatar it was not visible. While looking at your profile I saw link to codementor. What are your thoughts about it? Does it worth trying?
 
@Leri It's nice if you have some free time
 
according to GA tracking id, it's for some mixbox.eu site
 
good morning
 
@SecondRikudo I have free time during weekends only so not sure if that's for me. Thanks for info.
 
@SecondRikudo Seems your under your own jutsu.. Doing what you've always wanted.. riding a unicorn :D
 
9:10 AM
@Naruto The point is just like anyone else's in halloween.
Scare little children.
 
Good morning.
 
@SecondRikudo I'm wondering how you can scare a child while riding a unicorn with rainbow colours on the background :D
@Duikboot o/
 
@Naruto Up until now, I was told that by far, my avatar was the scariest of all the halloween ones :)
 
@SecondRikudo it depends how you look at it ;) it's scary to know you have a nice/warm/happy side.. :D
 
ThW
Morning
 
9:16 AM
good mornings
 
And we are a year older -_-'
 
@ThW i have one query regarding google plus share integrating in my website.
 
ThW
@Thaya Good Morning, I suggest you read the channel rules. room-11.github.io
 
@JoeWatkins pong
 
morning @bwoebi
got some buggy stuff going on ...
 
9:23 AM
@ThW Good Morning, Sorry for my behavior, Need help on my query , My query is regarding google plus share integrating in website.
 
Monring y'all
 
moin @PeeHaa
 
Morning yo @PeeHaa
 
@bwoebi gotta do work this morning but if you just have a mess about you'll bump into them, can't seem to get finish to work properly, quit sometimes does clean
some other weird stuff ...
 
9:35 AM
 
2 messages moved to bin
 
@JoeWatkins I thought I had eliminated that bug…
@JoeWatkins Currently I have no time for that, if you could look at it, please.
I need to go in ±15 mins
 
can later yeah, np
 
@bwoebi You're the only one but me who I've seen uses U+B1
 
@SecondRikudo It's alt+1 on OS X. So easy to access, so why not.
 
9:47 AM
@bwoebi Ubuntu: CTRL+SHIFT+U B1 SPACE
Windows' is ALT+0177 IIRC
 
too complicated ^^
 
‮@bwoebi But can you do this?
 
@JoeWatkins could you please at least show me how to reproduce the quit-failure?
 
@bwoebi seemed to be when I done clean, then tried to quit, it would clean and not quit
after I had run some code, hit a breakpoint or two ... though I dunno if that's important ...
 
9:53 AM
could repro… wait.
 
Is it worth learning Magento? ( Yes, this is a random question. )
 
depends what you call "worth"
 
For setting up commerce platforms.
 
mornings
 
user1994804
Morning All...
 
10:01 AM
morning
 
user1994804
Let's say I wanted to SELECT some fields while using my "Search Engine" but in the same query I would like to INSERT into another table what was entered ($UsersQuery)
 
user1994804
I've looked around S/O but any mentions of multiple queries in one always talk about UNION'ing multiple SELECT's
 
user1994804
What If I want to SELECT from one table and INSERT into another table all in one query?
 
user1994804
How would I do that?
 
INSERT INTO sometable SELECT FROM othertable
 
10:04 AM
@YourAdrenalineFix Just issue two queries?
 
@JoeWatkins I'm inclined to agree with Stas re: __toScalar, I can imagine scenarios where it might be desirable to have something specifically as a hash key, where __toScalar might return something different.
That said, I'm not a huge fan of the alternative concept of __toScalar in general, every use case for that would be better served with userland operator overloading, there is basically no operation where you want "a scalar value", you usually want "a string", "a boolean" or "a number", and if you want "a string" then invoking a __toScalar which returns a bool is unlikely to be what you want
 
user1994804
Hi @SecondRikudo I was thinking of doing that but I was thinking there had to be an easier way
 
Similarly if you want a bool then a computed float that might end up as 0.000000001 or something where you'd expect 0 is likely to cause some wtfs
 
user1994804
maybe with a comma after the SELECT then INSERT INTO otherTable ...
 
@YourAdrenalineFix you cannot sanely execute a select and an insert in a single query without a stored procedure. Don't use a stored procedure. Just issue two queries (probably INSERT INTO ... SELECT ... followed by SELECT of the newly inserted data is the right way round)
@YourAdrenalineFix That can be done in a stored procedure (not that exact syntax but the same effect) but "don't use stored procedures" is a good rule of thumb
 
user1994804
10:08 AM
Oh I won't be retrieving the newly inserted data. That's just so I can see what people are entering / searching for
 
@CSᵠ not sure I see any action worth taking on that
 
@YourAdrenalineFix Yeh, generally that would be done with two queries
 
user1994804
Ok
 
@Flexo unlock?
 
user1994804
What about don't use stored procedures? Is that saying dont use PDO??
 
10:09 AM
There's really not a lot to be gained from merging it into a single round trip unless the network connection between the SQL server and the web server is super slow
 
user1994804
Ok
 
@JoeWatkins fixed? in current krkajoe/phpdbg master?
could you please git pull -s subtree into php-src, must leave now
 
user1994804
and my connection is as good as any I S'pose
 
@bwoebi will look, catch ya lata :)
 
user1994804
so 2 Q's it'll be
 
10:11 AM
@YourAdrenalineFix No, stored procedures are basically user-defined/custom functions at the database side. In general they should be avoided because they hide what's going on in your code, and they are making the database do things it shouldn't be doing - the database is for data storage and integrity maintenance, business logic belongs in your PHP code
 
38
Q: What are the arguments against or for putting application logic in the database layer?

Phil LelloNOTE The audience of programmers.se and dba.se is different, and will have different viewpoints, so in this instance I think it's valid to duplicate What are the arguments against or for putting application logic in the database layer? on programmers.se. I couldn't find discussion on dba on this...

 
user1994804
Ok, Thanks for such a detailed explanation. I guess I won't be using them since Ive never heard of them until now
 
@FlorianMargaine 1 single argument should be enough. When I find out you are dead
 
@YourAdrenalineFix I imagine your database and web server are the same server
 
user1994804
Dont know actually...
 
user1994804
10:13 AM
They're from the same hosting company
 
user1994804
but I don't think my site is stored on a DB there. "Shared Hosting"
 
@PeeHaa you should read the page, it has interesting arguments :)
 
@YourAdrenalineFix When you connect to the database, what string do you put in "host"?
 
user1994804
Accessible via PhpMyAdmin
 
user1994804
localhost
 
user1994804
10:14 AM
doh
 
lol
Yeh so they're on the same box :-P
 
user1994804
I never connected the 2
 
That's pretty standard procedure in small-scale setups
 
"A sister team using Hibernate can't get one per second" - that's more about how shit Hibernate is rather than stored procs being good.
 
user1994804
I looked at it simply as MySQL over here via PhpMyAdmin and website over there via FTP
 
10:15 AM
@DaveRandom not necessarily... ssh -L
@Danack yeah, that's the only argument I didn't count in the page tbh
 
user1994804
with no more thought than that applied
 
user1994804
BTW, Have you guys ever heard of any disadvantages to changing Full Text Search min length from 4?
 
guess what it does
 
user1994804
someone suggested I do for a problem I am experiencing with my Search
 
@FlorianMargaine Well yeh but that's pretty unlikely, they'd probably want to take advantage of unix sockets
maybe not
doesn't really matter, it's still going to be pretty quick :-P
 
10:18 AM
I was kidding :P
 
user1994804
but changing min length scares me
 
@DaveRandom ... not necessarily :>
ssh -L <something far away>
this'd be really stupid though :D
 
user1994804
@FlorianMargaine at Me?
 
@YourAdrenalineFix the search works like that... basically it stores every combination of 4 letters. For example, to index "This is a combination", it will store "this,is,a,comb,ombi,mbin,bina,inat,nati,atio,tion". If you reduce the min length, it will change this to "thi,his,is,a,com,omb,mbi,bin,ina,nat,ati,tio,ion", which is longer.
so the question of reducing the min length is whether you can afford to have bigger storage
 
user1994804
Hmm
 
10:21 AM
it will also be slower since it has more combinations to test against
 
user1994804
Ah!!!
 
@YourAdrenalineFix It's pretty widely recognised that MySQL fulltext search sucks, and is probably the wrong solution for <insert enterprise problem here>. However, it's definitely the right solution for you, because you don't have the resource to take advantage of any of the other solutions (usually something document-driven). Unfortunately though, it does mean that no-one here really knows a lot about the intricacies of MySQL fulltext. Maybe @AlmaDo can help, he's usually the person I ask MySQL-y stuff
Not sure if he's actually here though
 
user1994804
Hmm
 
@YourAdrenalineFix basically... try it out and see if it works for you.
 
user1994804
"It's pretty widely recognised that MySQL fulltext search sucks, " is what I was beginning to wonder...
 
10:23 AM
If you want you could look into lucene/solr, but it will probably melt your brain
 
user1994804
Probably so...
 
And I doubt a shared hosting provider will give it to you, certainly not without a hefty premium
 
user1994804
melt my brain atleast for right now...
 
Yeh, not saying you couldn't do it, just that it's insanely complex and basically nothing like SQL
 
user1994804
I KNOW I could pull it off... There's just other things that need my attn more so now than that
 
10:25 AM
I don't know if pgsql has better fuzzy search tools, it might, never looked into that element of it
 
shared hosting? assume your search sucks anyway
 
But again, a shared host probably won't give you pg
 
I'd include google widget to have the search on your site tbh
 
user1994804
@FlorianMargaine it sucks alright. Only finds results if exact match entered
 
@YourAdrenalineFix out of interest, how much are you paying for your shared hosting? Quite often you could get a VPS for the same cost/not a lot more. That means you can create your stack yourself and use whatever tools you like, but it also means you need to be a competent sysadmin
 
user1994804
10:26 AM
it's my "Creation" Ive been working on and learning mysql with
 
@DaveRandom VPS needs the skills to maintain it though
 
user1994804
Hosting is 200 for 2 years
 
user1994804
Smoking
 
user1994804
and excellent customer svc
 
@YourAdrenalineFix google.com/cse/all
 
user1994804
10:27 AM
In Motion hosting
 
@FlorianMargaine @YourAdrenalineFix this
 
@CSᵠ why? the answers that indisputably needed removing are deleted already and the lock status looks right to me.
 
I always forget about the existence of that
 
user1994804
CSE wont work for querying db's
 
@Flexo ok then, that works too
 
10:28 AM
@YourAdrenalineFix your db content isn't on the site?
 
It's product listings
 
user1994804
CSE is more of a static site content search
 
not necessarily
 
user1994804
and I do use the CSE
 
user1994804
in a different context
 
user1994804
10:30 AM
@FlorianMargaine please see the search box at the top of classifieds.your-adrenaline-fix.com and query the TOP search box for Honda
 
user1994804
then look at the results and query it again for any one of the models listed
 
user1994804
you'll see more often than not you get no results
 
user1994804
thats where the problem begins and is where Im at
 
user1994804
@DaveRandom for the record, I plan on trying to force a "+" between words a visitor enters IN BOOLEAN MODE with hopes of better results
 
user1994804
Additionally, I'm pretty sure that using CSE alone would prevent me from being able to implement developers.google.com/webmasters/richsnippets/sitelinkssearch
 
10:40 AM
@YourAdrenalineFix While that seems like a good plan based on what I read in the docs on Friday, I don't know a whole lot more than you about whether that will produce good results. I suggest you play with the query in phpMyAdmin and get the results you want there before you try and implement it in PHP though - that way it will be easier to tell if a problem is with the query logic or with your code that generates and processes the query.
 
user1994804
Great Idea @DaveRandom and I thank you for your help
 
user1994804
You Guys are Awesome!!
 
user1994804
BTW, I've also pondered an AJAX driven auto suggest for what EXISTS in the db ;)
 
user1994804
How ya like me now? lol
 
10:47 AM
don't forget to throttle the ajax call...
 
user1994804
Mmmmm.... No idea what you mean by throttling
 
user1994804
how nor why
 
don't make the ajax call on keyup
 
@FlorianMargaine Nope use WS instead ;)
 
or you'll make 10 ajax calls if I write 10 letters very fast, even though only one is needed
@PeeHaa WS?
 
user1994804
10:48 AM
Gotcha
 
RFC 6455
 
so you wait for, for example, 500ms before sending the ajax call
 
user1994804
I'll have to investigate that one... Thanks for t he heads up
 
@PeeHaa ah...
 
@PeeHaa meh. :-)
 
user1994804
10:49 AM
Great Tip!!
 
no... don't use WS for just that
it's overkill
and won't work well, actually
@PeeHaa you want to send the letter in the ws?
 
user1994804
Huh? Dont use WS?
 
user1994804
whats that?
 
and if I hit the return key, you send a command saying "remove this letter"? and if you copy/paste, nothing works anymore?
@YourAdrenalineFix I'm talking to @PeeHaa
 
@YourAdrenalineFix I was joking. Unless you already are using WS don't add it just for this
 
user1994804
10:52 AM
Whats WS?
 
3 mins ago, by PeeHaa
RFC 6455
 
user1994804
Clueless...
 
user1994804
Something about character encoding?
 
WebSocket is a protocol providing full-duplex communications channels over a single TCP connection. The WebSocket protocol was standardized by the IETF as RFC 6455 in 2011, and the WebSocket API in Web IDL is being standardized by the W3C. WebSocket is designed to be implemented in web browsers and web servers, but it can be used by any client or server application. The WebSocket Protocol is an independent TCP-based protocol. Its only relationship to HTTP is that its handshake is interpreted by HTTP servers as an Upgrade request. The WebSocket protocol makes more interaction between a browser and...
 
user1994804
Way over my head...
 
10:54 AM
yeah, don't bother
 
user1994804
I'll learn about it someday and go "Ah' That's what they were talking about"
 
user1994804
and it'll all make sense but that's not today Im afraid
 
user1994804
I'm out... Off to discect every word in MySQL FULL TEXT IN BOOLEAN docs
 
user1994804
Thank you guys for your help
 
Morning
 
11:07 AM
morning @Fabien
 
11:19 AM
Websockets are fun! :-)
 
websockets are fun and games and then IE
 
user1994804
Wow... Full Text is about to not suck as much once I get done with it
 
user1994804
 
user1994804
Im not sure I "Get" Parentheses group words into subexpressions. Parenthesized groups can be nested.
 
user1994804
and as such, Once I figure that out, combined with a couple operators (+ and *) mixed in, I'll have this bad boy working so well a visitor wont NOT be able to find what they're looking for
 
user1994804
11:28 AM
Stay Tuned
 
Iiiiiiiiit's MONDAY:
==7433==
PHP Catchable fatal error:  Argument 1 passed to BaseReality\ViewModel\SiteViewModel::getDisplayableNote() must be an instance of BaseReality\Content\Note, instance of BaseReality\DisplayableContent\DisplayableNote given in /home/intahwebz/intahwebz/src/BaseReality/ViewModel/SiteViewModel.php on line 120
...
...
==7433== Invalid read of size 1
==7433==    at 0x68F449: _free_function (php_reflection.c:274)
==7433==    by 0x68F509: reflection_free_objects_storage (php_reflection.c:298)
==7433==    by 0x839D26: zend_objects_store_del_ref_by_handle_ex (zend_objects_API.c:226)
goes back to bed
 
1 message moved to bin
If only it was that easy :(
1 message moved from bin
 
user1994804
@PeeHaa If only it was that easy :( at me?
 
user1994804
I'll show you so... Stay Tuned
 
@YourAdrenalineFix Nope @ me moving the post of @Danack
 
user1994804
11:36 AM
Ah... I thought you were giving me a challenge
 
user1994804
;)
 
user1994804
Hence I'll show you so
 
user1994804
Outta here...
 

« first day (1472 days earlier)      last day (3476 days later) »