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

12:03 AM
@HamZa regex101.com/r/vH2yD2 I'm not sure why it doesn't match parenthesis in first match but only 'y', I need them "flat" i.e.
1: ($source, $visibility)
2: ($source_extra as $ref => $extra)
3: (isset($data[$ref]))
4: ($data[$ref])
...
So I can preg_replace and return.
Don't bother, will figure out.
 
@TOOTSKI A non-capturing group regex101.com/r/sK4rI4 btw, if you're using preg_ you could always address separate groups (group 0 -> whole match, group 1 etc...)
 
Yup, thanks, I'll work from here. :)
 
12:28 AM
Impossibru.
 
sup
 
@TOOTSKI still working on it:P
@Bilal I want to sleep, preparing a presentation for tomorrow :O
 
@HamZa wishing you good luck
 
function t_parenthesis_open($sTag)
{
    $this->oBeaut->add($sTag);
    $this->oBeaut->add(' ');
}
 
thx
 
12:31 AM
I hope you have presentation in the evening :D
 
morning... It's going to be a looooong day tomorrow
I'm also broken since I worked out xD
@TOOTSKI Should it match ($sTag); and add(' ');?
 
@HamZa Nah, used tokenizer :D
T_ as in token.
 
@HamZa so you code with php
 
I can code in php but also in other languages think about js, C, Java
But the levels aren't quite the same :P
@Bilal and you?
 
@HamZa i'm actually making my living with php
 
12:40 AM
Ah cool
 
Eeeeeeek I killed my server :|
 
php beautimatter --file=crap.php beautify fix AWESOME.php
@PeeHaa What did you do?
 
rebooted the machine. I think hope it is doing a diskcheck
Otherwise I have no idea what is going on
yay got a response again \o/
still webserver is down :(
 
Do you get notifications for fsck sake?
 
@TOOTSKI mind if I ask you a quick html/css question?
 
12:51 AM
I don't, but I don't know if I can help.
Ask here anyways.
 
yay fixed
 
I have a background color on a <td>, and it's messing up with the border radius on the table.
http://i57.tinypic.com/b81esz.png
 
@PeeHaa /me fires LOIC :D
 
:D
 
@TOOTSKI Any way I can hide just the extra blue in the top corner? I need that <td> with that specific background color.
 
12:53 AM
@Axel Add radius on that <td> and add overflow:hidden on table, or whatever the border is.
 
@Axel wrap the table inside a div,, and apply the border radius and background color to it.
 
@TOOTSKI <3333333333333
Thank you!
 
:D
 
@PeeHaa I was just looking for a commenting system btw, and you just posted the link :P can I easily integrate it?
 
@Axel That project is really not finished
 
12:57 AM
We got important business, like lurking here at 4AM.
 
:P
 
I <3 tokens
I'm so asking a raise for this...
 
@TOOTSKI Where do you work? If you don't mind asking
 
@Axel At home :D Work remotely for US company (says in profile)
 
@TOOTSKI O_o that's so awesome...
Is it like a freelancing contract or a permanent full time?
 
1:04 AM
@Axel Full time, just like a regular employee, just not there physically :) You can do that too! site5.com/about/careers :)
 
Oh wow, thanks!
 
I worked there for 2 years, now I'm other hosting company.
$_options = [];
array_shift($argv);
foreach ($argv as $key => $value)
{
  if (substr($value, 0, 2) == '--')
  {
    $value = explode('=', $value);
    $_options[substr($value[0], 2)] = ! isset($value[1]) ?: $value[1];
  }
  else
  {
    $_options[$value] = TRUE;
  }
}
 
How is the pay for a customer service job?
 
Thanks PHP, @NikiC FIX IT FIX IT FIX IT
 
Or in general?
 
1:07 AM
@Axel Not sure, shouldn't be below $2000 for normal ticket answering, that's not hard at all.
Pretty much same questions all the time, and you have knowledge base, etc.
 
Thanks a bunch, was looking for something since summer is coming!
 
I thought winter is coming?
 
Not in Canada :D, f*ck winter. Had enough of that here.
 
lol
 
1:11 AM
ahahahahahahaha
I'm applying live :D
 
Yes, Sir, how can I help you, Sir? Very well, Sir. Thank you, Sir! Call again, Sir!
 
I need a job from home, could not imagine anything better.
 
Let's kill this, sorry bobince.
Already got 5 votes. @PeeHaa @crypticツ
 
how many more does it need?
 
I can't see, 8 in total maybe.
I feel that someone will bitch about it.
 
1:18 AM
@TOOTSKI What can I put in for Desired salary? :/
 
@Axel Don't overestimate yourself because it will show up later :) If you think $2000 is OK, then put that.
Old...
 
I'm out of downvotes =o(
 
I said del-vote ^^
@crypticツ Haha...
YOU MADE FUNNY
 
@TOOTSKI I did delv, but lowering vote count decreases the delv counte requirement...doesn't it?
 
@crypticツ Yeah, but that doesn't work on this high profile questions...
 
1:22 AM
damnit!
 
I'm not sure, but it wouldn't make sense...
@SecondRikudo knows better.
 
Is the backlog really at 20? Or is this some ploy to say "Oh there are only 20, you should take a look at all of them" but really there are 200?
 
Bad post have been spared my wrath...for now O_O
 
@TOOTSKI Lmaoooo, googled some reviews:
Tips: Seek employment elsewhere, you'll never make more at Site5 than you will as a shift manager at Taco Bell. Consider this place only if you desperately need the experience. They will ask/beg for programming experience, they won't be paying you any extra for it.
 
1:24 AM
@LeviMorrison no, it likely got throttle limited by the Stack API.
 
Lol @ taco bell
 
LOL
 
Whatever I'll give it a try. I'm assuming they pay minimum at best.
 
I read the full review and that's just not true at all.
Salary is the reason why we parted, but that's just some butthurt former employee.
 
How much were you getting paid?
 
1:27 AM
3.5k
 
A year?
 
3.5k * 12
 
Lol I was considering taco bell for a second.
 
@TOOTSKI you make more in 2 months than I make in an entire year =o(
spare some change? =oD
 
Nice salary... Do you think I could apply (with my experience)?
 
1:28 AM
Yes, both of you.
 
Do you know of any other companies?
 
No, sorry.
 
I'm in a DIY shop and like crypticツ said the salary you earn in two months is almost my salary for a year (well, I work parttime)
 
@crypticツ Wait, how's that?
Well it's month now :P
 
@TOOTSKI I'm a poor hippy >.<
 
1:31 AM
I work for best buy locally. At the repair, the amount of porn and naked pictures I have seen.
 
crypticツ do you study?
 
@HamZa stuff =oP
 
That's sooo cryptic :P
 
@HamZa I just recently got a book from the library on how to tie knots.
 
@TOOTSKI Do you offer you discounted hosting if you get hired?
they offer*
 
1:32 AM
@Axel Even if they don't, hosting is so cheap now a days...
 
It doesn't mean much to be honest, the job we found Joe is paid less than mine, but he will get more than me eventually. But he likes his job very much, screw money if you want to kill yourself or someone else.
@Axel Yeah... @crypticツ runs website on one of the webservers.
 
@HamZa it's one less bill to pay for :P
 
@crypticツ I hope it's not for suicidal purposes?
 
Seriously, you guys should try, it's ZF1 and Doctrine1, it's Helpdesk application that's in question.
 
@Axel tip: Don't be too greedy
 
1:34 AM
It's more of a maintenance and few feature implementations.
They have 10 Ruby programmers for other stuff.
 
@HamZa not greedy at all, just would be awesome if it's not on your mind. One less thing to think about.
 
lol think about when you switch jobs
 
@crypticツ Marry me I'll pay you $50k
 
in HTML / CSS / WebDesign, yesterday, by cryptic ツ
@easwee and tying people up...
 
Unless you're dude, which is OK too I guess.
 
1:35 AM
I volunteer as tribute.
 
@TOOTSKI I don't really care for money.
I live a simple life
 
You Americans are so hard to make a deal with :P
 
Anyone here using scrutinizer-ci?
 
@LeviMorrison yeh
 
@TOOTSKI ahahahaha
 
1:36 AM
@TOOTSKI we have higher standards =oP ouch! =oD
 
@PeeHaa What settings do you enable? (maybe a link to your config?)
 
moment
 
@crypticツ You picked a wrong country to live a simple life :P
 
1
Q: Why is an empty __set() method slower than one that does work?

nstoryI was toying around with PHP magic methods (specifically Property overloading), and, while micro-benchmarking, encountered a quirk I'm having trouble explaining: It seems that a __set method with an empty body takes more time to run than one which does work. The below code snippet demonstrates t...

 
1:37 AM
@TOOTSKI I know!! I want t live in South America. Have a small farm in the middle of nowhere and live like a hermit.
 
Also, the "processing results" portion seems to take a long time when everything else is fast ^^
 
@LeviMorrison Define long
 
@sectus No one here currently to answer that.
 
@LeviMorrison That shouldn't be the case
 
1:39 AM
@TOOTSKI , it's just interesting behaviour
 
@PeeHaa Which tools have you found to be most helpful?
(And waiting 30m now for Processing Results...)
 
@LeviMorrison cs fixer, code sniffer and pdepend
 
From what it looks like the code style fixer alters code on submit?
 
Nope. It generates a PR
 
@sectus It's not actually, it's an error.
 
1:55 AM
41m now o.0
I think it messed up or something. It's been going for 47 minutes.
 
@TOOTSKI about that empty setter question - are we assuming multiple repetitive calls to __set on the same instance?
 
@Ocramius We're not assuming, they are.
 
ah, yeah, then it's plain stupid :D
 
:D
0
A: Why is an empty __set() method slower than one that does work?

TOOTSKIYou can't compare these two, because the end result is not equal. $o1 = (new NonEmptySetter); $o1->foo = 42; $o2 = (new EmptySetter); $o2->foo = 42; var_dump($o1, $o2, $o2->foo); This gives: object(NonEmptySetter)[1] public 'foo' => int 42 object(EmptySetter)[2] null And plus a notice...

I have no idea what I wrote :D
Probably it check some stuff. It doesn't even exist.
 
@TOOTSKI if your codebase is small, don't use php-cs-fixer
it's a pile of garbage
 
2:05 AM
It really is to be honest.
I couldn't extend it or anything, just ripped it apart and used what I need.
 
It is a mashup of regexes done to be fast - it's not reliable :(
I broke a couple of projects because of that
 
1 hour ago, by TOOTSKI
php beautimatter --file=crap.php beautify fix AWESOME.php
I combined tokenizer and this cs fixer.
 
0
A: Why is an empty __set() method slower than one that does work?

sectusOh, i see it's wrong testing case. After first loop NonEmptySetter has new public property foo. Next loops do not call __set method at all, they use public property. class NonEmptySetter { public function __set($name, $value) { echo 'called only once'; // would be echoed only once. ...

 
Yeah
it's overly-simplified
 
2:10 AM
:D
 
works for 60% of projects :(
otherwise it's pretty much useless.
 
Yes, it can't be done with regex sanely.
 
I broke a couple of <<<EOT in doctrine, and users got fatals
not nice
 
I use phpStorm and stuff, but this would just check on commit if someone screwed up
Definitely not nice :D
 
Hit the 1hr limit on scrutinizer :/
 
2:18 AM
eh
@LeviMorrison large lib?
 
0
A: Why is an empty __set() method slower than one that does work?

sectusOh, i see it's wrong testing case. After first loop NonEmptySetter would has new public property foo. Next loops do not call __set method at all, they use public property. class NonEmptySetter { public function __set($name, $value) { echo 'called only once'; // would be echoed only ...

 
No. It's Ardent...
 
@sectus I am not sure... but did you check if you can access the property for "empty setter" ?
 
@LeviMorrison any dependencies you are dragging in?
 
@Ocramius Exactly none ^^
 
2:19 AM
o.O
 
Maybe their default inspection was just bad somehow.
I rescheduled with my own config.
Finished in 1m
 
2:48 AM
So, I seemed to have gotten a lot of false positives with duplication but wading through it I did find one genuine duplication so far.
 
3:00 AM
@TOOTSKI Can you help me out with something? Just trying out memcache, and I'm trying to cache a query: $query = "SELECT type, type2 FROM " . TBL_BOOKS . " WHERE book = :book LIMIT 1"; but when I actually try to use the array generated from that query, it says: Warning: Illegal string offset 'type2' in
@TOOTSKI Using $type_determine = $database->getBookType($second['book']);, I can't use $type_determine['type1'].
 
Morning!
Lol. First time logging in via mobile, seems like a totally different site xp
 
3:16 AM
hi
 
morning @reikyoushin how does it look? i never tried it on my phone
 
I found the invisible user:
 
3:33 AM
hmm
so I need to teach git to our secretary/administrator...
any clue where to find a good guide?
most tutorials assume you're a developer
 
I would write a wrapper in jQuery, because everyone will understand that.
 
lolz
 
Interestingly, my overall code quality as determined by scrutinizer-ci has gone down after fixing several issues.
 
@LeviMorrison Quick, revert!
 
@LeviMorrison depends on the fixes - link?
 
3:36 AM
^^ it's because my total LoC has gone down because I've been fixing duplication and unused code fixes.
 
lol
 
I think maybe they should penalize duplicated code more heavily so when it is removed the score goes up. Or something like that.
 
yep, seems to be a weight issue.
 
Think about it: fixing a duplication issue should almost always result in fewer lines of code when fixed.
 
Except if the duplicated code only spans two lines, probably.
 
3:44 AM
I've only found 2 real duplication issues so far out of the potential ~70 reported.
It seems the checker is considerably more aggressive than it should be.
 
@Axel well it's uber simplified..
 
4:00 AM
 
4:58 AM
@Ocramius Sounds about bang the fuck on.
 
eh
It is 7 AM and I’m still writing horrible answers for my students BWAHAHAHAHA! (not so much =_= )
 
Can someone point me in the right direction of how to create an array using a foreach loop? Basically the results of the foreach would be put into an array.
 
What kind of data are you iterating over in your foreach loop? Is in an array?
 
User ID's
No
Its not in an array
 
Can you show me what you've tried?
 
5:01 AM
I tried sticking the foreach loop inside the array
that failed terribly, lol
 
How do you know what user ID's need to go in the array?
 
Whats the command to make it look nice?
$args_array = array(
	'number' => $this->per_page,
	'include' => $this->user_ids,
	'offset' => $offset,
	'role' => $role,
	'search' => $usersearch,
	'fields' => 'all_with_meta'
);
if ( '' !== $args_array['search'] ) {
	$args_array['search'] = '*' . $args_array['search'] . '*';
} // End If Statement
$users = $this->user_query_results( $args_array );
foreach ( $users as $user_key => $user_item ) {
$user_group_check = wp_get_object_terms($user_item->ID, 'user-group');
foreach ( $user_group_check as $user_check => $user_group ) {
basically the goal is to get the echo $user_item->ID.','; inside $user_ids = array();
 
$user_ids = array();
if ($user_group->ID !== "" && $user_group->slug == $_GET['group'] && isset($_GET['group'])){
	$user_ids[] = $user_item->ID;
}}}
 
Will they automatically become comma separated?
 
That might be it. Hard to tell with the bad code formatting.
I don't have more time at the moment to help you, sorry. Good luck!
 
5:11 AM
@BrandonGelfand The command to make that look nice would have to be: ctrl-a, delete, <start over>
 
@Jack It looks a lot nicer in my syntax editor, unfortunately it doesn't copy over well
 
Good morning
 
morning
 
6:01 AM
Hi guys
Need some help redirecting a URL
Anyone?
 
just ask your question. If someone is around and want to help they will.
 
Secure Connection Failed

An error occurred during a connection to wiki.php.net. Peer's Certificate has been revoked. (Error code: sec_error_revoked_certificate)
morning ...
 
morning
 
In phpunit code-coverage reports, constructor code is marked as 'not executed' - is this normal? And what's the reason?
 
morning @JoeWatkins @crypticツ
 
6:09 AM
mornin
 
Err how do i ping on a mobile browser.. T-T
Aaaah i hate this. Gah. SO chat sure aint mobile friendly haha
 
I have a website www.abc.com that has a login link. On clicking login, www.xyz.com/login opens in a separate tab. I would like to prevent the user from directly entering the URL www.xyz.com/login in to the address bar. The user should always navigate to this page from my website. My website is in php running on Apache while the login page is in html running on IIS. Can someone help with this?
 
i there a way to include header file in opencart
include("http://www.abc.com/demo/abc/catalog/view/theme/default/template/agent/addstore.tpl");
--- or ---
include("http://abc.com/demo/abc/index.php?route=agent/header.tpl"); doesnt work
 
6:36 AM
@crypticツ Kyyyraaaa Dash
 
boooyya!
 
gods below , I give up
 
?
 
there is no way to fix this javascript without spending more then 2 days on it
I am getting this persistent urge to brain someone with a keyboard
3 messages moved to Trash can
 
6:52 AM
@tereško why you moved my post to trash?
 
> room-11.github.io/#dont_1 Chatroom Don'ts: Dump a link to your question (spamming).
 
not cool
I wasn't spamming
I asked for help
whose question is on same site
why would I write here again?
as I don't have any other work
 
Maybe it was trashed b/c you're asking about JS in a PHP chatroom?
 
that is related to PHP
not JS.. not at all
 
ok then, sorry aboutthat
 
6:58 AM
you are welcome to go an whine about it in Meta, but please stop doing it here ... also, could you please stop using [enter] for punctuation
 
np.. no time for that
 
7:13 AM
haha.. got used to it.. will try.. sometimes you guys try to control others which I don't like. just like govt. with some rules hated by all people.. no offense.. just saying how I am feeling now..
 
7:23 AM
Good morning.
Looks like I can't get a break with the bike accidents. :-(
 
Last friday I total loss-ed my bicycle and had to buy a new one, today on my way to work the chain came off while cycling.
(on the new bicycle)
 
maybe you should invest in buss-pass
 
I have not been on a bike for nearly a year
and ... mornings
 
@tereško: going by bus will actually take longer than going by bicycle.
 
7:27 AM
35 mins ago, by tereško
http://stackoverflow.com/a/22915579/727208 : plagiarism of http://www.lornajane.net/posts/2012/9-magic-methods-in-php
 
Mornings
 
total hell
 
what should I use? username or user_id in every table?
 
Use for what?
 
for foreign key
 
7:48 AM
Well username does not qualify for a fk, so user_id would be perfect
 
Moanings
 

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