« first day (1830 days earlier)      last day (3118 days later) » 

12:10 AM
I have there some quantum bug I cannot repro (as it seems to happen inside exception trace generation of a parse error happening due to incomplete file while checking the newest git repo out…)
everything is hinting that somehow there must be two things pointing to the same chunk of memory…
 
12:20 AM
(gdb) p/x (uint32_t[8])*(-8 + (uint32_t*)ht->arData)
$48 = {0xa5ebf900, 0x7fa4, 0xa5e82690, 0x0, 0x6, 0xffffffff, 0x0, 0x0}
shouldn't they be all -1 except one when the (fresh) array has just one entry?
 
12:40 AM
how do i modify a datetime to "monday" this week
 
$time = strtotime("monday this week");
var_dump($time);
But you possibly want to be more precise in what you're doing....e.g. finding the previous or next monday from a date.
 
12:56 AM
one day I should learn to read persian, it's such a pretty script
 
It might take more than one day I think.
 
pfff... might take you more than one day, sure
 
LGL
1:08 AM
Anyone here use RT, I have a problem with connecting RDS
It get connected, but it doesn't find the databasename
DBD::mysql::st execute failed: Table 'Desk.Users' doesn't exist at
A sample of the error
 
> Table 'Desk.Users' doesn't exist
 
LGL
also in my /opt/rt/etc/RT_Config.pm i have Set($DatabaseName, "Desk");
 
MySQL seldomly lies about those things
 
LGL
I know but why? I can literally see it in my database lol
Is there a way let RT create the database itself? :?
 
If the database did not exists, you would get a message along the lines of "can't connect to database Desk"
 
1:14 AM
@LGL make install usually does that, though you can also make initialize-database
 
LGL
@PaulCrovella What should I do? Im using RDS tho
Or how can i use initialize-database
 
Hello, my ob_flush isn't working. I'm using php5 and apache, closing session and doing ob flush and I can't figure out why
 
@LGL huh? in your rt dir run make initialize-database
 
It was working on elastic beanstalk, but on my new server (plain lamp install) it's not working
 
(also I could be wrong about make install usually setting up the db, it's been a long time since I've put together a RT instance)
 
LGL
1:20 AM
you mean in /opt/rt/
 
wherever you unpacked it
 
@JakeSylvestre It doesn't work? It stays at home eating doritos and playing xbox?
 
there's full installation instructions in the readme
 
@Danack Funny, thanks for helping me with my question...................... I was pretty clear in the first part what exactly wasn't working. It's still writing to the output buffer after I close the connection and do an ob_flush()
 
LGL
I get as user 'root': Access denied for user
I read the document but nothing mention about RDS
 
1:25 AM
@JakeSylvestre That still doesn't explicitly say what you're expecting to happen and the difference from what is actually happening.
i.e. are you expecting ob_flush to de-activate the buffer?
 
I'm expecting it to stop writing..
Here's the code: gist.github.com/jakesyl/840f4d37ecf27d992922 in this example, I would not like "something" to be echo'd
 
@LGL Why would it talk about rds specifically? You use it just like any other mysql db, right?
 
@LGL Wrong password.
@LGL
 
@JakeSylvestre you're probably running into something that will be fixed in 7
 
Woops, that should've been "@LGL the mere fact that your getting a connection means your security groups are correctly configured, now you need a mysql user and password"
 
LGL
1:33 AM
Wow I was so stupid, I should create the scheme myself
 
@Danack Any immediate workarounds in site? Also this did work on my old php 5.5 ELB instance
 
LGL
I should run installer as @PaulCrovella mention and just provide what the name should be
 
@LGL This is a login issue, has nothing to do with schema
 
LGL
Im login now
I know I am
but I have a problem with database name itself.
for example I have a new error.
ERROR: File '/opt/rt/etc/schema.mysql' doesn't exist or couldn't be read
 
@JakeSylvestre Not trivial ones. I strongly recommend not doing the 'continue to process stuff in the background of a webserver'.....it is just a flaky thing to do really. Having a background processor that is run with Supervisord, and having the jobs to be processed put either into a proper queue, or just Redis, is far more reliable.
And to be clear, there may be a workaround to fix it quickly - but I don't know it.
 
1:38 AM
@Danack That's definitely the non-immediate goal. I'd like this up by the end of the week though. Any suggestions on how I could better word this question: stackoverflow.com/questions/33225107/… . It's just odd how it worked on my old server configuration and not this one.
@Danack I'm still fairly new to SO, so feedback would be much appreciated
 
@JakeSylvestre you need to explicitly say what behaviour your are hoping to have, and what behaviour you are seeing instead.
And so the problem is not 'ob_flush not working' but instead 'buffered output is lost'....presumably.
That is still me guessing slightly what the exact problem is.
And the recommended 'style' is to not have any thanks in the question.
And to be clear when I say it's not clear what the problem is, I can't tell in your question when you write:
> In this snippet, "something" would still print.
Is that what you want? Is that you don't want?
Which server is that happening on?
etc.etc.
 
LGL
1:54 AM
Ugh its permission problem, I need to change folder and file permissions
 
2:05 AM
Hi, is someone here familiar with woocommerce?
 
2:18 AM
@bwoebi Any reason I'm getting ---Type <return> to continue or q <return> to quit--- when I run phpdbg -qrr?
 
LGL
2:45 AM
RT don't allow me to manage the app database, is only ticketing @PaulCrovella
 
> Is there any script for email to support ticket?
wtf were you asking for?
 
LGL
lol my bad man
I meant a system when people report a post, I get it with opening ticket
and can easily delete it from the database if the report is correct.
A flagging system back-end
 
I'm so fucking done with trying to help when I'm expected to read goddamn minds in order to do it.
 
LGL
its okay bro, Thanks, Smile.
 
 
1 hour later…
4:06 AM
good morning
 
@Orangepill have you work with Laravel?
 
@AjmeraInfo can't say I have
 
@Orangepill need suggestion from you as per your exp.
Is it good to create own architecture or adopt ready made like zend, laravel or others and make functionality on it?
 
I always prefer to create my own architecture
 
I feel same. it will give me full controller in each part/section easy
 
4:15 AM
with a couple of good libraries you can get most of what any framework offers without having to live with the design decisions that the framework imposes.
 
Can you suggest some libs.
and using composer is it good?
 
Composer is a must... Auryn, FastRoute, Swiftmailer, Monolog and Twig are good
 
for template engine which lib are really good and light?
Twig?
 
Twig or roll your own .... a simple "php template" renderer can be done in like a dozen lines of code.
 
I have created template engine code. Can I ask question on code review site?
Or where can I get suggestion about my code? like optimization or other things?
 
4:21 AM
Handlebars is another one that I like for templating... used correctly you can make isometric templates (ones that can be rendered either server side or client side)
Code review is a good place for that...
 
Is there any tool that I can test code speed or any tips/tricks
 
I always just run it a few thousand times and take the average. of the elapsed time.
There are much better tools out there but that's what I do
this might be a good starting point
 
@Orangepill thank you so much it would help me.
I check with mostly "microtime(true)" for each request time. not sure how good it is.
 
That's what I usually do too... not overly scientific but give you a good feel for how the code is performing overall
 
morning
 
4:34 AM
o/
 
hello
i am having this issue
if anybody knows then kindly help
 
@MuneemHabib Do you really believe that this image thoroughly explains what issue you're having?
Try using your words this time.
 
@Sherif sorry sir
actually i am calling google maps API
but tiles are not showing
only this grey portion is showing
this is my code
if anybody knows why this is occuring then kindly help
 
4:48 AM
Start by checking your error console for errors.
Then refer to the Google Maps API documentation.
Good luck.
 
5:00 AM
ok sir
thanks
sir
issue was in resize
i have triggered resize event
now its working
 
@MuneemHabib you know you can type in one line too :)
 
5:28 AM
sir this is an off topic question. i am doing freelancing parttime now they have offer me fulltime position. i wanted to know one thing weather i can show this experience or not
 
Abe
5:56 AM
why in the name of everything holy have i woken up with the spanish national anthem stuck in my head
what the...
 
6:10 AM
\o
 
6:27 AM
o/
 
posted on October 20, 2015 by nlecointre

/* by Arnaud */

 
o/ morning
 
6:46 AM
@Trowski that shouldn't be for -qrr… mh, will look later. Felipe too eager^^
 
7:00 AM
@bwoebi could you please help me figure out where I'm going wrong? I've tried everything that made sense, limited to my understanding.
 
7:26 AM
Morning all :P
 
morning
 
404 @PeeHaa
 
server sending cached css, how can i stop that?
 
@rtheunissen Oh cock. It's been deleted already :(
 
@NeelIon Are you sure it's the server that's caching and not the client?
 
7:28 AM
@rtheunissen i.stack.imgur.com/6N1Zr.png cc @Abe :P
 
@MadaraUchiha ya, i am sure
 
@NeelIon Let me rephrase that
How do you know it's the server that's caching and not the client?
 
@MadaraUchiha i tryed in several browser, even installing a new browser
@MadaraUchiha the link to the css file is also sending cached css but ftp and file manager is showing the updated file
 
@NeelIon It's very unlikely that the server caches CSS files into memory and serving them from there, even though you've updated the file.
It's a lot more likely that you're looking at the wrong file in the wrong path.
 
@MadaraUchiha thanks man, you are right :p
 
7:34 AM
morning!
 
@NeelIon :-)
@Naruto o/
 
@NeelIon I am always right.
Always.
You're welcome ;)
 
@PeeHaa \o
 
Abe
@PeeHaa not hearing pings :\ what was that?
it's deleted now
 
7 mins ago, by PeeHaa
@rtheunissen http://i.stack.imgur.com/6N1Zr.png cc @Abe :P
 
7:36 AM
@MadaraUchiha oh ya, thats called talent
 
^^^^^^^^^^^^^^^^^^^^^^^^^
 
What is talent?
 
Abe
you linked me that coz i'm fat? u cunt
 
@NeelIon Nah, it's called always being right. Even when I'm left, I'm right.
@Abe Get yo' ass off that chair and hit the gym
 
@MadaraUchiha ok always right :p
 
7:38 AM
:P
 
@Abe :D
 
Abe
i'm beautiful inside @MadaraUchiha
 
@Abe Stop eating makeup.
 
Abe
lol
 
There's the reverse of that:
 
7:39 AM
morning's
 
> Maybe you should start eating makeup, so that you're pretty on the inside too you arrogant bitch
But it works both ways just fine :P
 
Abe
i've been on diet last months. didn't eat pasta for long time, which is like not breathing for everyone else that isn't italian :(
no pizza, no pasta. my idea of hell
 
@MadaraUchiha eating makeup :p hahahahahahaha
 
@Abe Just a diet isn't enough you know, are you doing sports?
 
i lost 55 kg's in my college days
 
7:44 AM
moin
 
avast!
 
moin Joe
 
gasp @Adoni - well look who it is
 
Abe
@MadaraUchiha kinda, and not recently
 
Abe
7:48 AM
@AnmolRaghuvanshi holy crap that's a lot. i lost 12 kgs in the last 5-6 months though :P then despite the efforts i stopped losing weight, so i kind of gave up
 
@Abe when i entered college my weight is used to be around 341 pounds and doing some sports and dieting i able to lose weight :P xD
 
Abe
though, i'm just 6kg over my ideal weight, currently. would be already great to not gain weight again
 
i am still 20 kg's over my ideal weight :P
 
hi @Leigh :)
 
Abe
just found a bug that was there since (at least) 5 years and that surprisingly never created any issue
(as far as i can see)
 
7:56 AM
@Abe PHP5 existance?
 
@MadaraUchiha can you please explain me more about this? do you mean of "ifs" is IF() statement? so have you any alternative for it?
 
@Sajad For example
$foo = "something"
if ($foo === "foo") { ... }
else if ($foo === "bar") { ... }
else if ($foo === "something" { ... }
 
Abe
@SergeyTelshevsky it's something i wrote :B
 
@MadaraUchiha well? I'm seeing you are using IF(), you told you don't use it ...
 
Abe
should start commenting /* begin drunk coding */ /* end drunk coding */ for easier reviews...
 
7:59 AM
Morning
 
Morning Fabor
 
<?php

$options = [
  "foo" => function() { ... },
  "bar" => function() { ... },
  "something" => function() { ... }
];

$foo = "something";

call_user_func($options[$foo]);
@Sajad ^
 
I suggest adding DRUNK: to in-code tasks like TODO: and FIXME:
 
That's the functional approach
 
Abe
lol @DRUNK
 
8:00 AM
The OO approach involves interfaces and polymorphism, I suggest you read a bit about those
(Or look up past chats here, I'm sure I've explained it more than once in this room already)
 
I think it requires also adding DRUKN, DURKN, etc. :)
 
@MadaraUchiha ah I see. and thanks for your explanation. also you have another choice (using array). I will show you an example 5 more minutes ...
@MadaraUchiha emm, Now I'm more careful, I'm see my solution is the same with yours :-)
@MadaraUchiha however, Teresko believe using array() is exactly the same with using switch(). are you think like him?
Oct 9 at 10:54, by tereško
@Sajad how do you imagine accessing array element works?
 
@Sajad I don't care about how PHP implements it behind the scenes.
Also, an array of options can be changed in runtime, a switch-case cannot.
 
so are you sure using array() is faster than if-else ?
 
@Sajad I don't care if it's faster.
 
8:10 AM
@MadaraUchiha yes agreed
 
It's more readable.
 
@MadaraUchiha ah, alright! I got it
 
If you cared about speed, you wouldn't use PHP in the first place.
You'd use Java or NodeJS
 
node.js is for real-time website, right?
 
@Sajad NodeJS is a JavaScript framework that is able to run outside the browser in server context
 
8:11 AM
ah ok :-)
 
good mornings
 
morning
 
Gooood mornin' Vietnam!
 
@iroegbu are you from "vietnam"?
 
@Sajad Lol... No, I'm Nigerian
 
8:26 AM
ah ... :-)
 
Do you not get the reference? ^^;
I'll just shuffle on over here back to my work.
 
:-)
 
posted on October 20, 2015 by nlecointre

/* by zefciu */

 
8:47 AM
 
o/ mornin
 
9:01 AM
Job requirement: "OOP PHP (ideally with exposure to an MVC framework - namely CakePHP)". Seriously?
 
morndfAFEVC
 
Morning @tereško
How goes the search?
 
@Jimbo What's the controversy with that? Just curious. ^^
 
@Sean Same controversy there is with Laravel
(it's bullshit) :-)
 
Hmm :p
@Jimbo See, I'm confused by that. It seems to be a trendy thing to call frameworks out but I've never actually been told why
 
9:12 AM
Actually, it's the trendy thing currently to like using a framework, and to evangelise it, without actually knowing what it's doing and how poor it's doing it
 
The main thing I've noticed about Laravel, for instance, is that it's really slow compared to its competitors
But I don't think I've seen "Laravel is bad / isn't the be all and end all because.."
 
Actually, it's the trendy thing currently to not like any particular framework, to evangelise not using any particular framework, without actually knowing what you're doing and how poorly you're doing it.
 
@salathe That's not trendy, I don't see many people doing that and I think there should be more people
 
@Jimbo It's trendy in Room 11, for sure.
 
Room 11 is an extremely small subset of developers, just happens to house some good ones
 
9:14 AM
No shit, Sherlock.
 
:/
 
Some good developers, and a bunch of people who come across as condescending particularly when any framework is mentioned. Whether that's deliberate or not, I don't know. :)
 
I feel like a kid building a lego house when it comes to learning with PHP. I know enough to build a nice looking house. Naturally, It's not perfect so I want to learn about different blocks, or methods on how to stack blocks efficiently so I can be a better builder. However, I'm in a playgroup of kids in years above me, and every time I pick up a new block someone comes and slaps it out of my hand and says I should never use that without saying why.
 
"...without saying why." This is a problem. And the snarky derision of any framework, it's almost a running joke in here.
 
@Sean I put up a quote about frameworks and their place in society I while back.
Aug 19 at 23:01, by Fabor
Depends on specific needs. Laravel fits a purpose like a fast-food fills your stomach. Is it quick and easy? Yes, is it sustainable long-term? No. Organically grow your own framework or source the best libs to sow a nice foundation to which your project will come to fruition.
 
9:19 AM
@salathe You're a Laravel user aren't you. You dirty b*
:P
 
That said, if one were to explain in detail why Framework X had failing Y, Z and Banana; we'd be here all year.
@Jimbo Haha, for what it's worth I have never used Laravel. Not even to look at the code to see its quality, or its packages to see what useful things it offers, or its community to position myself on a pedestal above theirs.
 
If a client asked you to bring him a pumpkin, you could buy some generic one from Tesco and it'd be okay. Or you could grow your own and bring him something perfect or terrible.
 
@Sean Fair enough. It advocates serious architectural problems, like global state and 'facades', or did at first before it backed out of things like that and now provides alternatives - the others shouldn't have been there in the first place. Active Record (coupling domain to persistence) is heavily advocated and the argument is "it's easier for users" (bollocks). It's intentionally designed to couple every part of you to the framework with no escape
Add to that that the owner of it is an egotistical, arrogant asshole who has genuinely been horrible to other members of the community on twitter (I've seen him be an ass to Phil Sturgeon - saying "I'm going to stop you coming to this conference") and things like that...
It also steals ideas without attribution - I guarantee he robbed the auto-wiring injector thing from Auryn, nothing else out there does that and hasn't until that point in PHP land
Basically, all the things I like about the community - advocating best practice, helping each other to progress and succeed, it doesn't do, and I won't back something like that. For both technical and moral reasons
 
@Jimbo Thanks, that's certainly cleaned a lot up about it ^^.
 
No probs, sorry if that was a bit ranty. I was fine with discussing it's technical downsides with people until I saw the owner effectively bully other people online. I took that personally even though it was nothing to do with me, I just believe in what's right :)
 
9:31 AM
@Jimbo I never touched OpenCart for the same reasons.
 
@Jimbo Did you get a timeframe on your talk going online?
 
@Fabor Nah man, it'll likely take months. And dammit I forgot to look at those cards again
 
:P
 
@Jimbo I'm familiar with Laravel, Do you have any issue ?
 
@KTAnj Nope, no issue whatsoever...
 
9:36 AM
@Jimbo I thought you are finding some one who have familiar with Laravel ...
 
@Sean I think I remember that about OpenCart - was the drama on Github by any chance?
 
@Jimbo Certainly was!
 
Yeah man, I remember reading that
Awful
 
@Jimbo this is rant is so perfect it hurts
 
@Jimbo was it about OpenCart or Laravel?
 
9:39 AM
@tereško Laravel. Then we moved on to talking about open cart afterwards
 
@bwoebi nevermind, fixed it. :)
 
@Jimbo can I get some citations?
of the bullying that is
I see his tweets, seems his humour is hard to get maybe. Or maybe just bullying.
 
@andho Would have to do a search for them, not sure how, maybe API calls? lol
If i was him I would've removed them by now
 
something like that hehe
Gosh finally Phil blocked me thank heavens.
haha I've never googled so well before. +1 level for Google Fu
 
9:58 AM
@rtheunissen great then :-)
 

« first day (1830 days earlier)      last day (3118 days later) »