« first day (1276 days earlier)      last day (3658 days later) » 

8:02 AM
Morning
 
Not to be rude, but isn't this a duplicate of this question? And the answer is same as well :) — Amal Murali 1 min ago
 
@HardikSondagar I just have an id column in every table pretty much - that's the unique PK
 
looks like we will have to start monitoring the "featured" topics in
 
8:13 AM
> This question has an open bounty worth +100 reputation from Let's Code ending in 6 hours.
> The current answers do not contain enough detail.
Wut
 
why comments are too short :\
I had to remove spaces to fit content into somment
 
Hey Everyone
 
@Jimbo the source is mentioned in the answer.
 
I am trying to print Wilson & Jones in my page through javascript that comes directly from my database. but it changes & to amp&, how can i fix this
 
8:16 AM
Are there any answers on that thread that are not copy pasted from a different source?
 
@Jack no, it isn't
 
8
A: What is the difference between isset() and __isset()?

Adarsh M PallickalPHP functions that start with a double underscore are called magic functions in PHP. They are functions that are always defined inside classes, and are not stand-alone (outside of classes) functions.PHP reserves all function names starting with __ as magical. It is recommended that you do not use...

@tereško: It is. See "Source" link.
 
@AmalMurali , @Jack source link is for the first paragraph only , 99% of content is without attribution
 
The above linked answer was awarded a bounty. It was copy pasted from two multiple sources: this one and this one
 
such things should not be an excuse. Provided single-link is not and excuse for copy-pasta
 
8:20 AM
Yep. If something is copied from an external source, they're supposed to be given in blockquotes. In this case, I'm not going to edit the answer. Just flagged it instead.
in that case there are thousands of such answers across the SO. Exp - mysql using reserved key words.. datetime compare etc etc. And its just the answer from my previous one stackoverflow.com/questions/23028152/…Abhik Chakraborty 12 mins ago
 
In phpunit code-coverage reports, constructor code is marked as 'not executed' - is this normal? And what's the reason? (using xdebug)
 
-_-
 
@tereško ah yes, you're right.
@AmalMurali fwiw, it does answer the question better than the ones above it.
 
neo
Hi
In copy() of php. If the destination file already exists, it will be overwritten.
 
@Jack: Doesn't mean it should exist. It's just a copy paste from two different blogs. He does not deserve any credit for it.
 
neo
8:22 AM
Is there any other way not to overwrite
 
1 message moved to Trash can
@AmalMurali yeah, i don't deny that :)
 
See this answer. It had 25 upvotes and was awarded a bounty. It was deleted by a moderator :D
 
@Jack Nope
 
@Jimbo A bit late in the game, we've been over this ;-)
 
@Jack E_MONDAY
 
8:24 AM
Nods
 
/me is writing in jquery
 
Btw the answers fail to mention the link between isset and other types of objects, such as arrayobject.
 
Looks like whole question happened to be a rep farm for people happened to live in Thiruvanathapuram, Kerala,
save for zero-upvoted answers from unsuspecting users who took it real
 
@tereško A whole lot of yay, and a query too?
 
@tereško What'cha writing?
 
8:35 AM
@SecondRikudo this bullshit:
2 hours ago, by tereško
there is no way to fix this javascript without spending more then 2 days on it
or actually - re writing
 
.masonry WOW NICE JOB BRO!
The worst thing about jQuery plugins is that they don't have freaking descriptive names
 
is there any specific reason not to fix this bug? In exists since '10 at least :p And still persists.
 
Yeah. Other way around ^ :P
 
@SecondRikudo I am currently torn on who to blame: designer of frontend dev
 
Sweet lord it's huge! Is it really necessary for all pages on the site?
 
8:37 AM
it's huge and adds basically nothing
just few dropdowns + that damned masonary-thing
 
WTF is that masonry thing?
 
(free)masonry?
 
@tereško In your place and if I had the time, I'd rewrite the whole thing.
 
which is what I am actually doing
 
mornig
 
8:41 AM
Use jQuery maybe in that masonry thing because I don't know what it does, but the rest should be VanillaJS
 
morning @PeeHaa
 
I don't think I have so much time to rewrite it in vanilla js , because I would have to write/find some utility functions
and I need to finish up the cleanup today
 
@tereško like what? I have some common helpers on the ready
 
wut, @bwoebi you caused a shitton of space to just happen on my chat screen
 
8:47 AM
utilities for XHR, class name management, event delegation
 
@tereško I have one for XHR, and I think another for event delegation
 
@bwoebi lots
 
class name management shouldn't be much of a problem
Your choice though :P
 
I don't want to think , it's monday
 
@TOOTSKI Number of delvs needed to delete = (net question score + net all answers score) / 20, min 3, max 10.
So massively shaving off votes from a question can lower the deletion requirement
 
^ useless
2+2 = 4, but, on the other hand, 1+3 = 4. Such questions are like argue about what is better, 3+1 or 2+2
 
mornings
 
@AlmaDo I prefer sqrt(16).
 
8:59 AM
@Jack you'll end with using Lisp, I know :p
 
hi, @DaveRandom
 
data entry ... -_-
@tereško Would you prefer to be working with this ?
I got the joyous job of moving all those markers in to an array
 
a pity
 
Screw it! I am automating it
 
9:11 AM
hehe
Looks like horrid work Fabien
 
is my question appropriate? I feel there might be another se site for this type
 
@Fabien that's what we're calling "usual work" (:
 
@DaveChen add the algorithm tag?
 
@DaveChen I've edited. Good question - much better than usual "gimme da code" crap on SO
 
9:45 AM
How hard is it do do this? paste.jesse-obrien.ca/Ae
When you know the date format? :) So I would like to $_POST['check_in'] = $_POST['check_in'] - 1 day;
 
you can perform operation (+, -) on DateTime objects
find the correct fns
 
I passed the values like you said into a DateTime obj: DateTime Object
[date] => 2014-04-24 00:00:00
So Now I can perform the + - operations.
 
there is the add() function in that object
 
fucking windows
 
9:59 AM
@Duikboot yep yep
 
@tereško on that you even don't need to specify context
 
Looking on the example: $date->add(new DateInterval('P10D'));
mean P10D = + 10 days? ) Seems to be correct ) allrighty
 
Yep.
 
awesome
 
@Duikboot Intervals are always absolute, so it just means "10 days"
(i.e. you can't do -10 days)
 
10:04 AM
Yeah, add/subtract.
 
$startDate = new DateTime($_POST['check_in']);
$startDate->add(new DateInterval('P1D'));
 
@SecondRikudo thanks for the info, let's kill these that I posted, that have high rep.
 
is there any reason because of which declaration of class that implements interface, should be done before instantiating? Yep, it's a bug - but what's the internal reason?
 
hello all
has anyone here implemented pinterset with php
 
@DaveRandom So my example I posted above is not correct ? ( It's doing what it should be doing )
Im using the add function to add 1 more day to the current day I have.
 
@TOOTSKI Hurry up and become rich so you can employ me :P
today would be nice.
 
@Fabien he promised to hire us all (:
 
The A Team.
+ @HamZa
 
hm.. may be The 11 Team would be better?
 
Team 11
Has a nice ring
Team 11 Productions
 
10:13 AM
or Eleven Team Productions
^ sounds better
@TOOTSKI you see? We've done so much - invented the trademark!
 
@AlmaDo What's your rate per house?
 
The hard part is over.
 
@djay well, my house is too small to rate it :\
 
What sort of folder structure do you guys prefer to use for organising your css and js?
 
@AlmaDo Opps, my bad I mistyped that. I meant hour, not house :D
 
10:26 AM
I've experimented with so many over the years but I'm never fully happy with it
 
The best one I found is like ZF2 does it
/module/Foo/Assets
 
@djay then it depends. I'm working hmm.. 8 hours. Per month
so it's around $400 for working hour :p
 
@AlmaDo wow, that's too expensive :D
 
@djay meh.. if count all hours, that will be small. I'm just doing nothing almost always
 
@AlmaDo Well, when a boss (future one) would ask you to show your portfolio, what would you do then? :D
 
10:35 AM
morning.
 
I'll show this
hi, @Leri
 
@Fabien wut?
 
A joke -_-
 
That's not enough. They usually ask for "working sites/projects" you have done in the past using. Then another things like CV, @AlmaDo
 
@Fabien I slept for only 3h and I'm right now in a middle of a meeting. TL;DR I'm quite tired so I didn't follow you
 
10:38 AM
Must be a boring meeting :P
 
Yeah, I'm doing other things
 
@AlmaDo Pretty awesome. I am also working on mine. /me wills to relocate in Europe.
 
@Leri I want to do it too. But no idea from what to start
 
@AlmaDo I have browsed through jobs here. I think I am applicable to some of them. So I am gonna try.
 
@djay if that's about "code" - then there are github links there. If that's about "knowledge" - there are links to SO answers
@Leri the big stop-line is "relocation". Either you must be outstanding for the job - or employer should be ready to prefer foreign employee (and that's extremely rare case)
 
@JoeWatkins are you testing it already? on real world things I mean?
 
@Leri but if you'll succeed, I'd be glad if you'll share what steps you've done. (And - if I'll succeed, then I can tell you what was my case)
 
@AlmaDo Yeah, that's right. But it's better to try and fail than think what would if I...
 
@Leri well I tried :p But most bad thing is "no reply"
 
@AlmaDo My plan is pretty simple: send CV (I'll work on it even more) and wait for reply (I hope, there'll be any).
@AlmaDo The problem is that we (judging you by your link) don't have much to show-off. That's why I am working on my personal page.
 
10:48 AM
@Leri I failed at second part (I'e' got Resuest timed out) on reply :p
 
@AlmaDo Another drawback for me is that I am still student. :Ь
 
@Leri btw, side note. While some of linked SO answers have high rate, I think it's better to link only good (i.e. not RTFM or type stuff). That's why - shame on my high-scored answers, but I linked average scored which are much more useful (and complicated)
 
@AlmaDo Fair enough. Do you have any app on markets?
 
@Leri no. While I developed one (it wasn't outstanding, but it works well and have average codebase) - but decided not to publish it. That's for personal reasons
 
@AlmaDo There should be no personal reason(s) when it comes to business. :p Seriously, I do think, that showing real projects sells you better.
 
10:57 AM
@Leri not in this case. But in any case that was my choice. Also I'm not interested in iOS development right now
 
@AlmaDo That was just a joke. You took it too seriously. :)
 
@Leri btw - to show complexity of the problem. Try to search without any parameters - but in first case just press "search" while in the second case use checkbox "offers relocation". I got 1431 vs 464 (i.e. ~35% only)
@Leri yeah, sorry. Just too personal reasons :\
 
@AlmaDo Approximately same outcome for me. :/
 
now add "php" to keywords and..
 
I have an important question related to different prices
 
11:05 AM
@AlmaDo Awesome :D
 
@bwoebi I have it open, haven't really done any php yet today ... I will be tho ..
 
Room11 Consulting Ltd.
 
@averroken Important to whom?
 
@AlmaDo I am not really limited to php neither are you (as long as I know your skills). To be honest I'd better to work with other platform.
 
@Leri yes, I'm not limited, but - the thing is - we should write working code right now. Business is interested in code. Not in some virtual concepts that we can apply to use another languages. That's why only current experience matters
 
11:08 AM
there is btw number for labos and a riziv number for dentists
You can check vat number there online and check with this script: http://www.webmastersdiary.com/php-vies-vat-number-validation-european-vat-id/

RIZIV can you check there: https://www.riziv.fgov.be/webprd/appl/psilverpages/nl

But can you check this of this riziv number are really correct so as by the vat, but database is not consultable by riziv

And these two have two differetn prices to pay .....

Any solution to this?
 
@TOOTSKI ^ we should start making money on such things right now
 
@Ocramius I had to rewrite most of the regexs, they chewed up function declarations etc... it's at least useful because it provides code for you to write parsers ^^
@AlmaDo People appreciate help more when you charge them.
That's a fact, don't try to persuade me.
 
@AlmaDo Agreed. As the first thing we both need to improve our CV, imho.
 
@Leri sad thing: I don't know what to add. I have not "my own" projects (because have no habit to do something to "just do it" - only if I need)
 
@AlmaDo As the first thing I am planning to add personal statement. The latter applies to me as well, so I am working on that.
 
11:17 AM
haha. I can add the statement from my chat profile :p
 
I want to get one YouTube comment by an index. This api request does work.
https://gdata.youtube.com/feeds/api/videos/9bZkp7q19f0/comments?prettyprint=true&alt=json&max-results=1&start-index=1

This doesn't.
https://gdata.youtube.com/feeds/api/videos/9bZkp7q19f0/comments?prettyprint=true&alt=json&max-results=1&start-index=10

Any ideas?
 
@AlmaDo I think it's not a good idea. Personal statement should be speaking more about you (i.e. telling your story).
 
@Leri that was a joke
 
 
@AmalMurali He's not getting that bounty back. Even if he didn't have altruistic intentions in offering that bounty I'm just going to assume he did and leave the bounty up :P
Also, useful little link for when you need to publicly tell someone off for stealing others' work stackoverflow.com/help/referencing
 
> pliz help me how can i get only 'tp4.php' without all this syntaxe.
 
:)
And a "fake" avatar.
 
Hate to say it but... maybe programming isn't for you, user3531649
 
Because girl is more likely to get help.
 
11:30 AM
_________how ?? — user3531649 1 min ago
 
@TOOTSKI And more likely to get stalkers
 
Except there aren't any here... he... he... he...
 
@TOOTSKI And this is why such answers get flagged as not an answer
 
mornigni again bicthes!
 
@BoltClock Sad, indeed.
@PeeHaa moirnzinh biathc
 
11:32 AM
ow whit a mod is here
morning bitach! :)
 
still dont work :( — user3531649 2 mins ago
STILL DON'T WORK, GUYS HELP HIM
PLIZ
 
@TOOTSKI You misspelt 'plx'.
 
:D
 
Damn stubble/beard is like a fluff-magnet.
 
/had to stop playing WoW when I started using plx IRL.
 
11:35 AM
kthxbai is still my fav.
I don't even
 
lol
 
@TOOTSKI Did someone create a readme.php or something?
 
@DaveRandom My beautimatter added a \ to class name, and hell broke loose.
 
@Leri I've created my personal statement. What do you think?
 
@TOOTSKI ...because you are working with PHP 5.2?
Actually, does PHP Storm even understand 5.2?
 
11:39 AM
No, no, like class \Class extends ...
 
Oh right lol
 
I bumped my job requirement PHP version to 5.5 now :D
 
wait, you have more than one class-per-file?
 
namespace Awesomesauce;
class \Currency {
No, this was error ^
 
oic
 
11:43 AM
@TOOTSKI You should have bumped it to master. (not really)
 
:D ... I will ask for upgrade ask soon it's stable, mainly 'cause of phpdbg.
 
@AlmaDo Good enough, I think. It clearly says that programming is your life at some point. The only thing is that you speak more about computers than about yourself. :p
 
@Leri that's from context (I hope). Because I believe - certain sides of character may be known only after personal meeting (and acquaintanceship) - thus, it's near pointless to promote myself in this case
 
Yeah, promote yourself at first with your 'puter skills, not how you cook good.
Post cool pictures on twitter and instagram so they see how cool you are, too.
 
sad. I have no twitter and "instagram" sounds like a spell for me :\
 
11:49 AM
@TOOTSKI I hate my pictures. Basically, I have only 1 pic (the one in my passport).
 
Haha. Well, it's sad, but it's true. Being "popular" is a plus.
 
I have one more recent picture, but I don't like it: niekie.com/foto.jpg
Though it is in national colors.
 
To most people anyways, you're looking for the one who appreciates your skills and personality (this can't be tested right away).
 
@TOOTSKI Okay, I am making a channel on youtube and start making CI tutorials. :D
 
11:51 AM
@TOOTSKI it's just because I have nothing interesting to share with other people. So why should I have twitter or something like that?
 
@AlmaDo So you can retweet our Rebecca Black videos.
 
@TOOTSKI but it's useless
 
Yes, no, maybe.
Mostly, yes.
 
and I don't want to be garbage generator
 
11:53 AM
Lots of people from here have a Twitter profile, so if you're "connected" to them, it can bring you good exposure (if you want that).
 
or bad depending on who you align with >8D
 
You know, it's like you hang out with the cool kids.
 
@TOOTSKI but I never did that
 
I got retweeted by Rasmus, that's one thing off of my bucket list.
@AlmaDo But, you're hanging here, so that makes you uber cool.
 
@TOOTSKI hehe. But here I'm also not doing any useful things (unlike NikiC or JoeWatkins for example) :p
 
11:57 AM
Pffrt, that's your own fault.
You have the time, you have the ability
We can provide a foot :P
 
@Fabien lol (: good catch about time. But not about ability. Right now, I mean. I thought about starting to investigate what's inside PHP - but then read part of internals book and realized that it's too early for me
 
So read it again... and again... and again.
 
hehehe
 
Motivation is all swings and roundabouts. If you're lucky someone will push you but ultimately DIY. One thing is for sure, the time you spent not doing anything, you won't get it back.
 
Even the eternity can not return just one wasted second
that's for sure
 
12:04 PM
Hi Friends
 
@gunaseelan hi sir
 
@TOOTSKI Fix what?
 
@NikiC I thought you complained something about getopt...
Might have confused something, sorry for ping.
 
no, that's right
I did complain ^^
 
:D
 
12:12 PM
@HamZa hi hamza
 
@NikiC oh, you're here. I need your help. That is: why do we have declare class which is implementing some interface, before instantiating it? (it's treated as a bug , but what's the internal sense of it? What's the difference with just any class which doesn't implement any interface?)
 
@AlmaDo implementing an interface makes it a conditional declaration
let me give you an example as to why that is so...
 
@NikiC so is it a bug or not?
 
@AlmaDo not a bug
 
@NikiC but posted as a bug
 
12:15 PM
@AlmaDo and marked as "not a bug" ;)
interfaces are implemented at runtime
 
@NikiC could you elaborate a bit why is it so?
 
@HamZa How are you?
 
@NikiC someone did just forget to change the state of the bug…
 
$obj = new _Class;
require 'interface.php';
class _Class implements _Interface {}
@AlmaDo ^-- basically, that.
 
@gunaseelan tired but fine, and you?
 
12:17 PM
@NikiC hm. not sure I got it
where's conditional declaration?
 
@AlmaDo you use the class before we can test for the interface because it's not yet included at that moment…, that's why we need to ensure that interface checks are only done at the point of class declaration
 
@AlmaDo "Conditional" in the broader sense. Think of require $foo ? 'file1.php' : 'file2.php'; if you like. The point is just that it only becomes known at runtime
 
@HamZa same here. Due to the climate, I feel very tired
 
I slept for only 3h sigh
 
@gunaseelan you are a solar powered person! :o
 
12:20 PM
brml… why is EG(This) not included in the local symbol table :x
 
@iroegbu how do you come to know that?
 
@bwoebi it should be, if it is used...
 
@bwoebi does the string length in a zval include the terminating null? (as in what I get from Z_STRLEN() and friends)
 
@DaveRandom no
 
@NikiC why implementing interface will cause run-time (and not interpretation stage) issues?
 
12:20 PM
@NikiC OK cool thanks
 
@NikiC so, how can I force it to be in the symbol table in C (if it exists)? is there some function?
 
@bwoebi you shouldn't need to, it's already there
 
@NikiC even if it's not used?
@NikiC but we sometimes still have array keys lengths which include the NUL byte… annoying …
 
@bwoebi ah, that's what you mean
no, if this_var is -1 it won't be added
 
-Status: Open
+Status: Not a bug
 [2014-04-14 12:21 UTC] dm@php.net
nikic@php.net said: "interfaces are implemented at runtime"
^^
 
12:23 PM
@NikiC yes. And how to add it if it's unused?
 
@bwoebi zend_hash_add(EG(active_symbol_table), "this", sizeof("this"), &EG(This), sizeof(zval *), NULL)?
 
I was just unsure if it could conflict… but okay^^
 
@bwoebi you mean is somebody assigns ${'th'.'is'}?
 
ya, maybe
I want to be able to put a watchpoint on $this even if it's not used in that method without any conflict posisbility.
 
Does anyone know what the Amazon PHP SDK2 does when an API call encounters an error? i.e. return error or throw exception or what? It doesn't seem to be documented at all.
 
12:35 PM
@NikiC where are superglobal HashTables stored? (I'm not talking about CG(auto_globals), but where the HashTables are at runtime?)
 
@bwoebi not sure I understand what you mean
 
the HashTables for $GLOBALS, $_SERVER etc...?
from where can I directly access them via their name?
 
I'd have assumed that CG(auto_globals) is available at RT as well
 
yes, but these just contain a callback to create the superglobals?
into the active_symtable?
do I need to just fetch from the root/global symtable… not sure about that?
^^
 
heh
 
12:40 PM
yes?
 
there's also PG(http_globals)
 
what does that do?
 
anyway, I think the correct approach is calling zend_is_auto_global and then checking EG(symbol_table)
 
88
A: Do people in non-English-speaking countries code in English?

AlishahNovinI'm from Canada, but live in the States now. It took me a while to get used to writing boolean variables with an "Is" prefix, instead of the "Eh" suffix that Canadians use when programming. For example: MyObj.IsVisible MyObj.VisibleEh

 
@NikiC will try…
 
12:44 PM
@Danack +1000
 
*sigh* I heard of a website that "promoted" one student (around 18y old) and made a big deal out of it and said that he developed a programming language based on C. The programming language was based on their language instead of english. What he actually did is create .h file (or .c), included it at the top. It contained:
#DEFINE if translatedIf
#DEFINE for translatedFor
etc...

I was like (facepalm)
 
^ it was like a disaster
 
Programming in non-English is a most grievous sin.
 
unless you're an obfuscator
 
yeah, can you imagine?
#DEFINE if si
#DEFINE for pour
#DEFINE int nombre
#DEFINE printf ecrire
pour(nombre a = 0; nombre a < 10; nombre++){
ecrire(a);
}
 
12:54 PM
 
make me un-see that
 
@HamZa Mets les accents!
 
@bwoebi accents in C, aren't they asking for trouble?
 
@HamZa At least cpp should be able to handle them
phpdbg> watch r $this
[Set recursive watchpoint on $this]
phpdbg> watch
$this
$this->
$this->[-9223372036854775805]
$this->[-9223372036854775805][0]
$this->[-9223372036854775805][0][]
$this->[-9223372036854775805][1]
$this->[-9223372036854775805][2]
$this->[-9223372036854775805][3]
$this->[-9223372036854775805][]
$this->[]
$this->[29]
$this->[29][-9223372036854775806]
$this->[29][-9223372036854775806][]
$this->[29][]
$this->[-9223372036854775806]
$this[]
 
@HamZa I had and have idea of implementing programming language (or at least DSL) in my native language. Just for educational purposes for sure.
 
12:58 PM
^ I've done everything right
 
@bwoebi cpp != c. And isn't it a pain depending on the compiler/environment you have?
 
@HamZa cpp means the preprocessor.
 
@Leri You want to do it the DEFINE way lol?
@bwoebi I thought you meant C++...
 
@HamZa LOL, no :-D
 
@HamZa LOL, no :-D
 
12:59 PM
mwahahaha ok
 

« first day (1276 days earlier)      last day (3658 days later) »