« first day (1764 days earlier)      last day (3184 days later) » 
00:00 - 14:0014:00 - 00:00

12:02 AM
@rdlowrey Ahh yeh, as soon as I hear "global" I synonymise with "no DI" I think huge LoD violation and it somehow always takes me a while to remember that as long as you bootstrap properly it doesn't have to be a horrible tightly coupled mess
 
user895378
@DaveRandom yes, this is kind of the place I've gotten to
 
There's no worse design task than a blank sheet of paper
8
 
user895378
Things like this really don't make sense in the web SAPI paradigm where you don't have long-lived processes
 
:-)
 
user895378
@DaveRandom FYI I've been taking more advantage of quick tiling my windows across the monitor in windows 7 since you mentioned it the other day
 
12:07 AM
@rdlowrey There's a big philosophical issue I'm having recently surrounding this, in that I've spent a long time fiddling with the guts of things and getting to understand how slow the model is, but then I look at web sites written as Node apps and they are almost without exception illegible. The isolated imperative model has a lot of advantages when it comes to maintainable business logic.
 
@rdlowrey What's that? shift+arrow?
 
@rdlowrey wait, what? I mentioned that to someone IRL the other day but don't remember putting it in here :-S
 
user895378
dangit copy/paste fail
 
user895378
@DaveRandom sleep typing again, most likely ;)
 
12:09 AM
Yeh it happens
 
user895378
@DaveRandom node.js apps maybe, but with I still maintain that with coroutines this can be eliminated entirely
 
@rdlowrey ah
 
user895378
The only remaining hurdle is losing the call stack in the error case, though I'm convinced this is something I can regain with some clever (slow) userland logic when in "debug" mode
 
@rdlowrey Even you have to admit there's a cognitive overhead that raises the entry barrier though, at least for old-schoolers (as it were)
 
user895378
Definitely
 
12:11 AM
I suppose if one learned like that from the ground up it wouldn't be any harder than "the old way" though
 
user895378
We just don't think concurrently as humans. Everything we observe happening in the world around us happens synchronously and in order.
 
user895378
I'm so used to it now it's just second nature, though.
 
@rdlowrey curse of knowledge, in a way, I'm sure I don't even begin to understand it like you do but I still find it difficult to imagine how a beginners guide should be
 
user895378
You should give yourself more credit than that -- I'm certainly not any smarter than anyone else ... just been beating myself over the head with this style of writing code for the last couple of years. It ought to have sunk in by now.
 
ThW
But we always think about stuff that could happen, too- and make plans for it.
 
user895378
12:18 AM
It's funny to see the progression though ... I used to be like "Callbacks all of the things!" ... I used them like a badge of honor. As if real coders could untangle the mess of callbacks in their code and promises or coroutines were just a way to slow down execution speed for people who couldn't juggle all the balls at once.
 
user895378
But that's just a terrible way to write code. Only the person who wrote it can tell what's going on (and often not even they can). It's just not sustainable. It's the mess you so often see in node.js.
 
@rdlowrey Oh yeh I'm sure I could wrap my head around it if I had the time - would very much like to - but you seem to have accidentally turned yourself into (I would confidently guesstimate this highly unscientific hyperbole) one of the top 1000, if not 100 people in the world for understanding the async paradigm
 
user895378
Well, my latent imposter syndrome prevents me from doing anything other than blushing and being self-deprecating in the face of such an outrageous compliment. Thank you for that vote of confidence, in any case.
 
user895378
Is it possible to tell a phpunit mock object to return different values when it's called the first time vs. when called a second time? Or should I just use an anonymous class to do it explicitly and be done with it?
 
ThW
onConsecutiveCalls()
 
12:26 AM
@rdlowrey You see? You see what happens when you don't do any real work and actually learn shit? People expect you to know things and they make you feel uncomfortable.
 
user895378
Ah, thanks @ThW
 
:-P
 
user4706838
12:47 AM
    need a quick help

         						<?=form_input(array("name"=>"wish_city","value"=>set_value("wish_city"),"placeholder"=>"Country want to visit",'id'=>'wish_city'))?>

<script type="text/javascript">
        $(document).ready(function() {
            $("#wish_city").tokenInput([
                {id: 7, name: "Ruby"},
                {id: 11, name: "Python"},
                {id: 13, name: "JavaScript"},
                {id: 17, name: "ActionScript"},
                {id: 19, name: "Scheme"},
 
user4706838
i want to make autocomplete box just SO tag bar i am successful in that some how but don't know how to populate these value in input field from database
 
user4706838
just need basic idea...nothing more than that... :)
 
Looking for some input of PHP processing. I'm creating a cron job and I need to run two methods:

<?php
require_once('script.php');
$example= new myClass();
$example->scan();
$example->cleanup();

`$example->scan();` needs to execute and finish (can take a few hours) then `$example->cleanup();` needs to run.

My assumption is that it will work as intended. Am I wrong?
 
Anonymous
everyone's assumption is always "it'll work as intended"
 
Anonymous
So, you are right ..
 
Anonymous
1:02 AM
I mean you have the right assumption
 
2
Q: Slug from database available on all pages through lang CodeIgniter

Ion VasileI have a table on my database from where I get some slug texts: art_and_culture business_and_financial auto_and_moto and display on my website through <?php echo lang($slug_from_database); ?> I use this method as LanguageSwticher: multi-language-support-in-codeigniter So in My_Controller...

 
Just making sure there isn't some weird PHP "gotcha" with processing order etc...
 
Good morning....
 
1:17 AM
@ircmaxell ...@slackmaxell?!
 
oh my OCD
 
@marcio looks fine to me
 
@Andrea shouldn't both static variables be initialized?
 
@marcio they are.
$a is NULL
Have you used C? Each declaration is separate. Much like parameters.
int a, b, c = 3; does not have a and b equal to 3
 
I think the same multiple assignment should happen, for PHP.
I should stop initializing values like this though :P
 
1:33 AM
Any Redis user here?
 
2:00 AM
@Andrea :-P
 
@marcio we don't do it for parameters...
 
F#%K IT, WE'LL DO IT LIVE
 
2:18 AM
@Andrea yeah, it doesn't really make sense because we already have the property list syntax on declarations. I always forget this exists: class { public $x, $y = 1; }.
 
2:36 AM
user image
10
 
Hi, I'm looking for delete votes on the last two questions so we can finally get rid of the tag for good. Anyone willing to help?
@ircmaxell ?
 
Abe
 
:D haha
 
3:27 AM
is it possible to write C code between php tags
 
3:39 AM
sure. its called an error factory
 
google gives result about node error factory
 
Abe
4:13 AM
i'm nearly sure he was joking
:D
 
Abe
it was possible to run a library by dl() but iirc it is deprecated now
 
mornin'
 
morning @tereško
 
Abe
morning
 
4:17 AM
@abe i just found result HHMV by facebook....
for running C code between php tags
 
Abe
eval(file_get_contents($_SERVER['PHP_SELF']));
 
@tereško morning
 
I feel like I don't put enough effort into my HTML. These guy's HTML supports IE6 and screen readers among other accessibility features.
 
github.com/facebook/hhvm look this @Abe what eval(file_get_contents($_SERVER['PHP_SELF'])); do
 
@durron597 ?
 
4:34 AM
@NullPoiиteя I got a moderator to delete them
 
thanks
 
4:51 AM
my mistake
 
5:02 AM
@Abe you shouldn't use eval for this... include would be a much better option
never mind... it segfaults :)
 
i took hhvm in another way it's not like that...it converts php code in to highly optimized C++ code for improving performance
 
Morning
 
5:18 AM
morning
 
How to start a shell script on Cpanel?
 
5:36 AM
@NullPoiиteя happy Independence Day
 
@AnmolRaghuvanshi you too :)
 
@AnmolRaghuvanshi It does not convert it into C++ code. It produces native machine code.
 
got it...thnks for clearing misconception i took reference from this it's mentioned there stackoverflow.com/questions/8031376/… @LeviMorrison
 
6:10 AM
at that time it might have been doing that ...
/me waves, morning
 
morning... :)
i have been reading To everyone but that guy....
 
6:46 AM
good moaning @JoeWatkins
 
ohai @Jack
hows it going ?
 
oh, been busy planning multi-country rollouts for my new company :)
 
that sounds busy ...
 
finally getting a chance to do geospatial stuff \o/
we're a delivery company and when i joined i was surprised that they did postal code zoning to model delivery problems =S
oh btw, are you busy? ;) got a few minutes to glance over a bugfix pr?
 
morning
 
6:52 AM
@Ja͢ck show me
 
moin @kelunik
it looks okay
will need master fix too ...
 
yeah for sure
i hope it's not going to be too painful
are we still merging in master to get it into 7?
or are we supposed to merge from 5.6 into 7? haven't been doing this for a while
may have missed something heh
php builds are failing?
 
@Ja͢ck Yes, "Once 5.4 reaches EOL (Sep 14 2015), PHP 7 is branched out and master will become 7.1". PHP7 TODO
 
okay, thanks!
i suppose we have no intention on putting those failing ext/date into XFAIL state?
or, you know, just fixing them lol
 
7:14 AM
back away from ext/date
it doesn't look like you broke build ...
someone broke it last night it seems
 
Abe
morning
 
oh dear, many changes in master ... as expected lol (rolls up sleeves)
 
Abe
$v = 10.;
$v++;
var_dump($v); // float(11)
would have expected int :|
 
@Abe Why? php -r '$v = 10.3; $v++; var_dump($v);'float(11.3)
 
Abe
i don't know. but yeah i was talking specifically of integer floats, not floats with decimals
and just because if i'm not wrong ++ -- are usually integers-only operators, no?
 
7:30 AM
@Abe because there is dot in $v = 10.;
 
Abe
you are answering me or you are asking? :P
10. because i want it to be a float
 
feel shame for that comment
 
you should see $v++ as $v = $v + 1 ... then it makes sense i hope.
 
@Abe No, they're not restricted to int.
 
7:31 AM
of course, the expression value is different, but still.
 
Abe
@Ja͢ck eheh, could be :D
 
It wouldn't make sense to me, if ++ would change types.
 
Abe
it's just because using ++ on a float doesn't make sense. so i supposed to get an int, whether possible
 
doing ++ on a number makes sense to me, whether int or float
 
Abe
just saying that on a decimal scale, 1 is not any more important than 0.1, or 0.001, or 0.0001. as opposed to the integers scale where 1 is the smaller unit. but just saying
 
7:39 AM
see, this must be why ruby doesn't support ++ haha
 
Abe
are you suggesting that i use ruby :P:P
i would rather program with an abacus
 
nope, and therefore you must accept the idiosyncrasies of php
 
Abe
eheh, learned a new word :D
 
btw php is twice fast as php 5.6 3v4l.org/feGnN/perf#tabs facepalm
 
how can you tell anything from that script?
or was that the joke?
 
Abe
7:44 AM
small scripts aren't good indicators
 
of-course it was a practical joke
 
Abe
@Sjon remember to add these 3 lines on 3v4l pastie.org/10348708#7,13,27 you nearly did it :D feels way smoother now
@salathe btw, if you want me to work more on php.net scripts, i may haz the time (p.s. i'm the guy who fixed the "scroll to anchor" code)
guess i need to understand how to run php.net locally first though
 
@NullPoiиteя Yeah, 4.3 is blazing fast. :P
 
hi all
i have one query in java script
my anchor tag is like this
<a href="javascript:void(0)"><img src="img/parcel.png"></a>
 
@PrashantBhatt Then you're in the wrong room.
 
7:58 AM
@kelunik maybe here many people know
 
8:10 AM
@PrashantBhatt But in here certainly people knows.
 
8:22 AM
I need to 4 files for these: {votes_post, favorites, comments, votes_comment}
now my question is: is it better to I create 4 separated file like these :
votes_post.php
favorites.php
comments.php
votes_comment.php
or I create 1 files and use a switch() for selecting the section ? like this:
vts_cmnt_fav.php
which one is standard way ?
 
8:37 AM
@JoeWatkins hmm, bug fixes in 5.6 need to be mentioned in NEWS for 5.6 only, right?
I've got a fix for master as well, so just need to know before pushing it out ;-)
 
What would a decent IO wrapper for PHP need?
 
@Orangepill tnx
 
@Ja͢ck that's right
 
cool ... time to push it, then :D
 
which one is correct ? if($_SERVER['HTTP_REFERER']){} OR if(isset($_SERVER['HTTP_REFERER'])){}
 
8:49 AM
I would say, neither.
 
@Ja͢ck :-) why ?
 
They don't do the same thing.
 
isset checks existance
 
@Ja͢ck I want to check if $_SERVER['HTTP_REFERER'] exist ....
 
array_key_exists('HTTP_REFERER', $_SERVER)
 
8:50 AM
@Xesau aha, then if I don't use of isset what is its mean ?
 
if checks wheter it's not null and not 0 and not {} and not [] and not [0] and not [0, 0...] and not {a: 0} and not ....
@Jack isset is faster.
isset($_SERVER['HTTP_REFERER']);
 
yeah, wouldn't want to waste those precious microseconds
 
Isset is to check wheter the variable is initialized.
 
not exactly.
 
What then?
 
8:52 AM
whether initialised and not null.
 
@Ja͢ck So I use of this one or isset() ?
 
you can use isset(), it's fine
 
isset is faster
 
but if you also want to check whether the string is empty, you would either need empty() or use strlen().
 
@Ja͢ck ok tnx, but please can you tell me the mean of if($var){} ?
 
8:53 AM
note that empty('0') is true, btw.
 
@Xesau ok :-)
 
you use if ($var) if you're sure that $var exists.
 
@Ja͢ck aaha !! alrigh !
 
This is how PHP does it's checks:
http://phpsadness.com/static/pages/sad/52/order-full-noeq-tred.png
nvm, wrong image
 
haha
 
8:57 AM
got a php7 build going @Jack ?
 
yeah
less code required .. yay
zval_get_string() is awesomesauce
 
@Ja͢ck so if($var){} is a useless code. if I'm sure then don't need to if(){} statement.
 
ehm, not sure what you mean by that.
 
@Ja͢ck when if($var){} is useful ?
 
@Sajad When you are sure it exists.
 
8:59 AM
@Xesau If I'm sure then why should I use of if() ?
 
when you are testing a condition that resolves to true or false or when you are testing an integer not to be zero
but you can use if too if you want to check check it's not null, [], 0, "0", 0.0, [], {}, [0] or [0, 0] or [0, 0, 0] or "null" or false or "false" or ...
 
@Xesau ahaa, I get that now, then if($var){} checks true or flase being !
 
yep
 
@Xesau I see, tnx
 
and php got a way to make everything true or false.
If you want to know wheter some variable is set, use if(isset($var))
if you want to be sure it's not 0, use the type comparison operator ===
if ($var === 0) makes sure the variable exists and is of type int and has value 0
so
$var = 0;
if ($var === "0")
would not work
because that checks $var to be a string with value "0"
 
9:03 AM
@Xesau ow :-) tnx
@Xesau I know !
 
i cow too
 
9:23 AM
@PrashantBhatt people never write href="javascript:void(0)"
 
10:01 AM
some people do
 
Anonymous
10:17 AM
meh
 
@samaYo Do you use src/arya.php in your application?
 
Anonymous
@kelunik I used arya just for testing purposes only
 
Anonymous
even they I didn't like the fact I had to use src/arya
 
I just asked, because I never used it in my applications.
 
10:44 AM
Mogguh
 
Mogguhring
 
@PeeHaa o/
 
dafuq?
 
11:04 AM
@Abe I've not applied it because it breaks the entire functionality. Dd's begin opening&closing when adding scrollTop (@ FF)
 
mornings
 
Abe
@Sjon oh, ok. will check it tomorrow and link you the fixed version
 
@Abe been debugging it, but no errors so it's too much magic for me ;)
I think it already works great btw
 
which hosting provider is nice under 10$ a month hosting ?
i have tried ramnode and digitalocean
and i need to move 6 wordpress blog to there new cheap hosting :( it really sucks
 
heh
wp migration, hate doing that =]
btw atm I use digitalocean, are you looking for something cheaper / more features or etc?
 
11:19 AM
digitalOcean sucks because i can not pay using paypal(due to bank policy ) and digitalocean doesnt accept debit card
 
=[
Atm I am using paypal for it, why is the bank getting in your way?
 
i can not use because paypal doesnt follow our bank transfer policy ( verified by visa or 3d secure )
 
how about linode, I used that before digitalocean
 
need a quick help ...
are there two seprate headers in web page are designed before login[signup,login..] and after login[welcome,profile].. etc this is the way or any other i am using ci
 
Anonymous
@NullPoiиteя resellerclub
 
11:28 AM
@RonniSkansing i though it but it would cost more (20-30$/hosting + cpanel ) + whm and than management + maintenance :(
 
@paritosh no need of two seprate headers...
 
@samaYo are you using it ?
 
how can we do it i mean how can we show different options before and after login.. @AnmolRaghuvanshi
 
@NullPoiиteя maybe you find a good offer on alternativeto.net/software/digitalocean
 
Anonymous
@NullPoiиteя I have used it for 2 years, before I migrated to Tilaa. It has various payment methods
 
Anonymous
11:33 AM
My domains are still registered with resellerclub, but my servers are at Digital Ocean and Tilaa
 
you can do something like this
<?php if(!SESSION_DATA) : ?>
//your code for header before login
<?php else : ?>
//your header code after login display myprofile,welcome here
<?php endif : ?> @paritosh
 
@tereško that book is really great. I wanted to ask 3 question so far, but I used of that and did not ask here :-)
 
@samaYo @ronni thanks
 
okay i got it thnks @AnmolRaghuvanshi
 
anytime, let me know if those migrations give you a hard time too
 
11:37 AM
@NullPoiиteя What about using Entropay?
@NullPoiиteя Seems like you figured it out :D
 
@Sajad ask away
 
@NullPoiиteя You still have to try it, because your bank may block it as well :/
 
11:52 AM
@MadaraUchiha have you been reading Noblesse?
 
Hello how can I do this.
I'm fetching emails from database and showing full email like user@example.com. I saw some websites hiding characters like us***@******.com. how can I do this.
 
@VarunaLex more important question is "why do you want to hide them?"
 
@tereško can explain me more please ? :-) "ask away" is a good thing or bad ?
 
Thanks @AnmolRaghuvanshi. No idea about how to search it. :)
 
12:01 PM
@Sajad it means "go ahead, ask your questions"
 
@tereško aha, I meant: I don't need to ask anymore :-) I just read that book !
 
@tereško that's paypal email.
 
oh .. sorry
my attention has been wondering
@Sajad awesome that you find it useful
 
@tereško yep !
 
@VarunaLex wouldn't people need to know that email to send the money?
 
12:18 PM
@tereško if user going to withdraw, script send confirmation email to his primary email. After confirm it. He can show pp email.
 
@tereško how's the chili?
 
@Gordon pretty good, but next time I will have to add more spices ... oh yeah, and there is still about a half left
but at least now I know how to make a chili in general and will be able to start experimenting
 
12:40 PM
i am trying to configure my server but i really do not understand which one to select which be better hhvm or php
 
user4706838
need a quick help

<?=form_input(array("name"=>"wish_city","value"=>set_value("wish_city"),"placeholder"=>"Country want to visit",'id'=>'wish_city'))?>

<script type="text/javascript">
$(document).ready(function() {
$("#wish_city").tokenInput([
{id: 7, name: "Ruby"},
{id: 11, name: "Python"},
{id: 13, name: "JavaScript"},
{id: 17, name: "ActionScript"},
{id: 19, name: "Scheme"},
(see full text)
i want to make autocomplete box just SO tag bar i am successful in that some how but don't know how to populate these value in input field from database
 
<?= is for echo
 
DNC
Hi, I am uploading a image to my backend, a 750 x 750(for iPhone) and it takes 1,39mb on my server
is that normal?
 
DNC
it's a .png
What can I be doing wrong?
 
12:45 PM
Optimize the thing
 
DNC
@PeeHaa what do you mean?
 
user4706838
yes,can you help??@NullPoiиteя how can i fetch data from DB and show in box
 
@DNC Remove all unneeded data fro the file
I use pngcrush but there are other tools which do the same thing
 
i think you can decrease the pixels @DNC
 
DNC
12:46 PM
Thanks all, will try some things out
 
@Optimmus jpegmini.com there should be something like that for png too
 
user4706838
@NullPoiиteя what's that?? i think it's for dnc
 
DNC
@santosh what pixels are the images shown on instagram on our phone?
 
user4706838
do i have to make another controller or model for that...
 
1:09 PM
which be better hhvm or php
 
I will just leave this here: i.imgur.com/vfFFbll.jpg
 
:D haha..
 
@tereško Is there some islamic version of this?
 
@albru123 Aren't they all the same with a different name?
 
@albru123 IIRC, "allah" translates to english as "god"
especially since christian god technically is called "yahweh"
 
1:16 PM
@albru123 and come on it applies to all
 
@tereško, @PeeHaa Yeah, but I bet he won't beg for money...
 
neither allah begged for money
 
@PeeHaa right!!!
 
@albru123 I actually don't know. It could be that islamic clergy prefers ascetic life style
 
DNC
1:35 PM
I need someone to create a simple PHP file that communicaties with MySQL database, who wants to join the project?
 
You need an entire project including team members to connect to a database?
Do you do scrum?
 
DNC
Haha no
I just need someone to make the simple PHP file
 
What about doing it yourself instead?
You never know you might learn something from doing it yourself
 
DNC
I already know
But too many project to do it myself for all
 
every day is saturday for me... :p
 
DNC
1:43 PM
@AnmolRaghuvanshi you don't need to do it today
@AnmolRaghuvanshi You will be working together with an iOS developer who is also from India
 
@DNC But maybe you do... Or at least may
 
every day is saturday for me... :p
 
@DNC than hire a developer
 
why not to teach anyone who don't know and give them task to do @DNC
 
@AnmolRaghuvanshi you mean you wait for sunday everyday :P
 
DNC
1:45 PM
@AnmolRaghuvanshi Why spilling 100 hours when I can do the job with 10?
 
most of my life has been an endless cycle of waiting for saturaday... :P @NullPoiиteя
ctrl-C+ctrl-V
 
@AnmolRaghuvanshi At least your life is definetly not an endless cycle... Unless you believe in reincarnation
 
@albru123... :P i don't believe in reincarnation
 
00:00 - 14:0014:00 - 00:00

« first day (1764 days earlier)      last day (3184 days later) »