« first day (1166 days earlier)      last day (4008 days later) » 

00:00
I also had some awesome wursts btw not sure what they are called. But ze taste was very very nice
those wursts are called lecker-wurst in german :)
Yep "lekkere worst" :D
I had wurst tonight as well.
But not sauerkraut but rotkraut.
Oeh also nice
I have some orphaned commits in my history, I need some nice way to clean that mess up ... .
00:05
Throw booze at it
www.appserver.io @JoeWatkins
Seen this?
yes
:-)
Still that ubercrappy font on chrome (win) :(
Someone should tell them to use @rdlowrey 's di
@PeeHaa And I thought it was some augmented reality magic xD
Yeah
00:27
Yay. Zerro Bugs!
WIN!
I see you good people tomorrow. Night all!
@BenjaminGruenbaum yeah, he saw that.
the maintainer of appserver sometimes creates some issues on pthreads…
Jay
Jay
Wondering if someone could help me with a SQL query
Jay Possibly?
Jay
Jay
I have a db table
users
i have a column added_date
which is datetime in MYSQL
I want to be able to get the total amount of users registered for each month dating back to the last 6 months
00:38
@Jay Look up the BETWEEN operator and the INTERVAL keyword in DATE_ADD and DATE_SUB, then GROUP BY MONTH(...)
Jay
Jay
@Charles will check it out thanks
@Charles any chance you could help me do this plz?
@Jay Start with an SQL query that lists you all users added in the last six month
Jay
Jay
I never used these SQL commands before
I'll be back to post my progress another day
its time to get merry
Merry christmas everyone
01:08
1 message moved to recycle bin
@PeeHaa nice!
02:18
@HamZa that's from 2004, and also kind of old news :P
@BenjaminGruenbaum lolwut, I've read that as 2014 (facepalm)
yo ho ho
02:38
merry Xmas!
Merry Christmas indeed!
 
1 hour later…
03:57
Merry Christmas room! anyone home?
How are you?
I'm a newbie to php, don't think I should ask this question because I think people are going to vote it down, so just curious how to limit character output on a field in a loop
@MichaelFalciglia elaborate please
when I get a query for field named description, it sometimes has up to 500 characters and I want to limit it to 200 when I echo it like this <?php echo $row['description']; ?>
@MichaelFalciglia oooh you want to truncate the text so basically an excerpt right?
04:07
Ya, its business listing page. So there about 10 listing per page, I only want to show the full description on the company page
so only an excerpt is right
@MichaelFalciglia you want to use this us1.php.net/manual/en/function.substr.php
you can also use CSS so it's more consistant
ok thanks
css?
I do use css
but what do you mean?
something along those lines, that way even if font size or font family varies you won't end up with empty space or too little space as the browser truncates the text at the exact spot. Relying on the character count is not always ideal.
@crypticツ Oh you mean use php substr or CSS?
04:13
Ya that would be easier, I was using overflow scroll, but I did not like it, but that is a nice idea
your choice, but I prefer using CSS over the latter for smaller strings, and for large ones using both.
@crypticツ is there a way with the CSS to put a ... after the point you limit it?
you know to make it look like there is more so it does not look like a half word?
user895378
Merry Christmas everyone!
Merry Christmas
user895378
@ircmaxell I'll be in Manhattan through Sunday -- lemme know if you're around town and maybe we can grab a beer on Friday or Saturday.
04:25
Merry Christmas/Happy Holidays everyone. :)
04:35
@MichaelFalciglia yeah look at the example it adds an ellipsis (...)
Hey guys, I want to ask something. I got a job offer with a decent salary but they want me to add features to their complex/spaghetti PHP codes (an ERP system that around 150 people uses)
@crypticツ Thanks, I got the substr to work, but I had to ask for help, I formatted it wrong. But I will probably do the CSS when I get more time.
Should I tell them to go away? That would be pain to work with spaghetti :(
04:51
I wouldn't know any advice to give you Aristona... I can't even get Ratchet to work how I would like.
05:43
greetings
06:22
@Aristona I actually like rewriting code; the key is to make sure that they are willing to fund that activity.
If not then I wouldn't take it.
06:37
hrmm
I turned on desktop notifications, but I dont think I got one with your message
any chance you can send another one so I Can see if desktop notifications are working? =]
@crypticツ don't know. I voted for deletion
someone must really want that eregi wrapper function made for them too
babies..
07:53
I can't fall asleep. I'm staying up so I can rob Santa at gun point. =oD Bitch owes me money.
you're the only one here who isn't asleep, it seems :\
and if I was Santa, I would not give any present to you :p
08:14
'morning, merry christmas !
@Calimero Merry Christmas
well, i am gonna ask a question... which may look like JAVA. but its more of a design pattern thing...
btw Merry Christmas to all
 i have been trying to develop a basic image filter app
at first i had a single file and two classes in it... like thus..

`class ImageProcess{
    BufferedImage img=null;
    BufferedImage(File input){
         //initialize the image file;
   }
   public BufferedImage setContrast(BufferedImage newImg){
        //logic for contrast
       return newImg;
   }
   public BufferedImage setBrightness(BufferedImage newImg){
       //logic for brightness
       return newImg;
   }
   public BufferedImage makeGrayscale(BufferedImage newImg){
what happens? suddenly u become sads?
yes. such huge code dump should be posted on some external resources, like pastie.org
08:26
its not actually a code... pseducode.. so i thot i cud avoid pastebin... but ok i will do that
there are very little probability that your issue requires all that code - so sense of your question will be understood by those, who're reading it (well, problems that require long code listings exist in real life, but they are very specific and rare). Thus, you may consider it as a rule - probability of getting right answer becomes lesser when code size grows
ow
well, then, how do i put it... let me try..
nah.. that was just an advise. You're free to do anything
i am open to advises... and if that change makes me better then i am ready to take it... because i am still a learner..
we all are learning. each day
08:34
but i am much behind in the race, i think.. i perform worst in any kind of competition.. so i do things for myself... :) .. myt be thats why i am slower... well, if u did get my problem, then i was hoping for some solutions , atleast ideas to solve it
@blackbee actually, I've ended reading on "but now i want to go pro.. i mean use some design pattern .."
:D okk.
i will restate the problem from there
the only suggestion for this is - if you don't know which pattern to use, then don't use any pattern. Pattern is something that you must understand - what is it, why is it and when it can be applied
or else - ok, some person will say to you "use pattern ZZZ here". So what? You'll not able to breakdown it and get the sense - why that pattern is good for your case and what that mean. It will be like monkey-style (i.e. repeat without understanding, which will grant no benefits in terms of knowledge). Or may be that person is wrong and that pattern isn't good for the case? You'll never be able to discover that
08:44
actually i want to segregate these methods into different class which would reside in different file.. for example: `class Adjustments` would contain `contrast and brightness` would-be saved as `Adjustments.java` .
'class Colors` would contain `saturation and gamma` in `Saturation.java` and like wise and then have access these classes and their functions wherever needed. Now the thing is i cannot be importing all the 6 packages (like imageio, awt.Color) in all the separate java files. So what would be the possible solution to have one single class that will contain all the packages and the
anyone ever implemented oauth2 to their api to allow clients access to your app?
09:15
void main()
{
int i=2;
int j=i+(1,2,3,4,5,6,7);
printf("%d",j);
}
why the answer is 9
@blackbee that's not PHP code
but there is no C room.. and i thot php and c are related
well, yes they are :p in general, we're ready to answer other languages questions since it's room 11
i know there are good experienced programmers in here.. :)
@blackbee sigh ..
ok, I'll explain
09:21
ok
in C comma operator means sequence point - that is, it's a sequence of expressions that will be evaluated in left-to-right order. Resulting "whole" expression (that is what will be "returned" as a result of round brackets) will be equal to most right expression in sequence (i.e. last expression in sequence)
so - that is 7 in your sample, i.e. your j will be equal to 2+7
to say more, if expressions in list have no side-effect, that makes no sense at all and such list can be replaced with single expression, which comes as it's last element
ow
how do i learn these things
read (e-)books ?
yes...
then go on and try read books. Good articles may be. Reading real code, having experience e t.c. We're not wizards here. We just know how to learn
09:35
i meant.. if there are any good resources... then you could give me... i have read Dennis Ritche's book... i didnt find these things
Unfortunately, I don't know such resources. I'm not C-programmer and my knowledge about it is very limited (as you've noticed, PHP is related to C)
09:52
:P
@webarto hi
 
1 hour later…
11:03
2 hours ago, by Alma Do
the only suggestion for this is - if you don't know which pattern to use, then don't use any pattern. Pattern is something that you must understand - what is it, why is it and when it can be applied
@AlmaDo that's just load of BS. Patterns are names for describing code that has already been written.
@tereško I always thought that patterns are concepts.. and certain code just implements that concept. So code is not a pattern, while concept is. Eh.. but that's my imho
11:29
Morning and Merry whatever to you all.
hi, @Fabien
Merry Christmas
Why do you answer questions anyway?
? I left my comment there, not an answer
I mean in general
@Fabien I have nothing to do.. one of reasons. Also - I'm learning while answering. Some questions are really nice - so that's a challenge also in some sense
You looking for a new job?
12:05
In next year. Now I'm paid for doing nothing
What kind are you looking for?
hm. I hope I'll deserve senior dev. position. Or even team leader (for that I've finished some MBA courses)
Team leader is less development more direction of development... I think
yep. I know.
In what sort of job though? Single site high traffic? Digital agency? Something more software related?
12:11
hm. I can't say for sure. Now I have some experience in telecommunications (GSM networks/SMS traffic e t.c.)
I'll see
good mornings :)
hi, @hakre
heh.. first time I've opened flagging page and, after deeming 40 daily flags - I've realized that they were serial flags.. so bad that there are so many poor answers
Hey @hakre
12:29
> <arun_> Anyone know how to test a post request functionality using phpunit ? Do we need to use any other framework [zend , symfony ] to achieve this functionality ?
doubt
HO HO HO
yo ho ho
13:03
Mornig all
@webarto I'm thinking about making flaregramster into an app :-)
Merry Christmas everyone! :')
@webarto How is it licensed? The readme says mit, but the sauce tells me CC
@hakre And you're referring to?
13:24
haha.. some person is trying to get my answer in chat room - in which I've even am not allowed to speak :D
@ShahlinIbrahim To Santa Claus naturally :)
Oh, haha!
user1607528
how come i dont get a new hat
You must go get it. lol
You must post or vote on Christmas, so you can get one!
user1607528
i see
13:41
Merry Christmas, room. I hate one though.
Anyone know if there is other libraries like Ratchet for PHP sockets?
@Alcapwn Why do you need other ones?
@PeeHaa I want to see more documentation about the socket procedures... I am new to them.
happy dies natalis sol invictus to everyone :)
Good morning, and Merry Christmas
13:45
@Alcapwn If you want more understanding read the rfc tools.ietf.org/html/rfc6455
@PeeHaa Ohhh, thank you very much.
@hakre it was asked in #phpunit @ freenode
@blackbee because the array, when treated as a scalar, gets converted into an integer representing the length of the array. Thus 2+7 is 9.
13:52
@Ultimater :D
that's mean ^^
@NikiC What's mean about explaining the behavior of a programming language to someone interested in what's going on under the hood?
@tereško And the answer was setting $_POST and $_SERVER, wasn't it?
I like the array to scalar idea. Better than the string "Array" we got in PHP.
@Ultimater It's mean to tell them something that's completely wrong, but sounds plausible enough to be true...
the "answer" was not accepted, because OP wanted to test "saving data from form into database for drupal module"
I gave it 2 tries and then gave up
@NikiC at least that's the behavior I've experienced in Perl.
14:02
afternoon
Hey Joe
good afternoon sir!
@JoeWatkins morning
:)
too. many. animals. to. digest. at. once.
I found something earlier that I thought looked quite cool, called flingfd
allows you to share a file descriptor between processes using unix domain sockets
E_TOO_LOW_LEVEL_FOR_ME
:)
14:07
installed it, wrote wrapper for it ... total crap, it doesn't even work ... total waste of time ... not really worth talking about !!
@teresko how are you with Drupal?
Hey Joe and PeeHaa
Heya @Fabien
hey @Fabien
I gotta get around to mastering C one of these days...
me 2 :)
14:12
Be a good idea to get myself onto Unix instead of Windows
I still want to master PHP :(
how that's related to C
I hate how Windows can't compile C
...
14:15
Facebook somehow manages to run a large-scale website with PHP by means of custom-written PHP extensions in C and several terra bytes worth of memcache
...
@Ultimater I thought large-scale websites were written in asm. :o
...
O wait. Other person trolling :P
@Leri :( sad. I thought they all were written in binary machine codes..
14:17
I don't always write PHP, but when I do it is in binary
yeah!
Hipster php
Is anybody in here not a total idiot in photoshop and willing to cut out some hipsters for me? :P
@PeeHaa trololo-man :p
I'm decent with Photoshop but I am not at home sorry :(
14:18
There is a good read on facebook's PHP structure: infoq.com/presentations/Facebook-Software-Stack
@Ultimater You have no idea... :P
@Fabien No worries I don't need it NOW
:-)
I'm rewriting @webarto's flaregramster first
heh.. I'm too lazy to search and post new picture for "I have no idea what I'm doing"
1 hour, 1 min, 43 second video with very technical details which you won't regret watching to get some insight into how Facebook scales.
@teresko you'll be happy to know POEAA was given to me by Santa. Hardback too!
14:22
Jeez, they have an hour long video about technical details and I can't even add sessions to sockets. :P
@Fabien let me know when you are done reading it twice
.. because on the first attempt you maybe will be able to grasp 1/4 of it ... if lucky
oh! there are people here :p You guys have any ideas for this: stackoverflow.com/questions/20758418/… ?
I'd be happy with twice, probably more like 10+ times
@tereško I'm willing to bet 10$ he doesn't get 1/4 of it the first time unless he's actually had to face the use cases.
You can't learn design patterns from a book if you've never been in situations where those patterns were applicable yourself before. Otherwise you just don't understand - or worse, it looks like "useless cruft" or "just longer code" or whatever.
you have to keep in mind that he has been exposed to this chatroom
14:28
Only if he actually wrote code during that time :)
Tbh I do worry that I won't get the opportunity to use the decent patterns :(
It'll only be in my own time for now it seems
It's not that, the problem is examples don't really work, and Fowler doesn't presume.
You'll find no idiotic stupid examples in PoEEE, which is much better than a lot of other books but still - you're expected to know the problem.
That's the thing, I can't explain how important DI is to someone who was never in global state hell or testing hell. I tried, it goes right past students.
When they hear me say it - it goes right through them. It looks like cruft because they don't understand the underlying issue
All I'm saying @Fabien is make sure you understand the problems first
Whether I understand the book now or in a few years, it's a book I wanted to learn from.
I don't expect much from it ATM. But I have high hopes for it.
@AlmaDo With large data, it is very important to have a key on the table to improve performance. When working on a development team on a production server it came to my attention that a user's site running our software was going over the PHP run time and not able to render a page. The solution wound up being that they had several thousand posts in the database without a primary key. After added a primary key, the site was lightning fast.
Symphony post on achieving low coupling here
Damn iPad autocorrect
14:35
@AlmaDo I'd also recommend using SELECT ... WHERE ... BETWEEN... instead of SELECT ... WHERE ... AND...
....
How often do you really get to work on enterprise level architecture in PHP?
A few years, why?
Doesn't seem like many opportunities for me so far
@Fabien The great thing is - it has little to do with PHP, you take this anywhere you go be it PHP or not.
14:39
I have a lot of coder friends and so far each opportunity I had to work at enterprise level, my friends found someone requiring my skills.
And matched me up with their friend.
@PeeHaa cool! :) Do what the f* you want license but leave meh name somewhere :P
I suck with license thingy :)
@webarto Awesome. BTW your code stinks and I want to PR shit, but not sure how far I can take it to PR without sending you over an entire rewrite at some point. I will send you over the first rewrite later with cleaned up html and shit.
0
A: Find rows for interval in MySQL

hakreYou want to reduce the impact of the query over all rows running the comparison function to find out if that row matches the span of numbers X lies in or not. As you have outlined, the effectiveness of some common index is not of much use because of the sheer amount of numbers / row ratio. This...

Aye @benjamin once I am satisfactory with php and JavaScript I will most likely try ruby or Python or something
14:43
Needless to say: when I get filthy rich from it you'll get your fair share in the @webarto foundation ;-)
BTW is my assumption correct that the homepage doesn't work as is?
What homepage is this?
@webarto You're looking probably for MIT license :)
@Fabien For this awesome project github.com/webarto/FlareGramster
Lol
Behold my amazing graphic skills lolz:
http://static.emenudeo.com/favicon.png
14:45
I have been wanting to do something with it for such a long time and now I finally have a couple of days off so I can do shit and make it awesome and created a app for it
That's my new favorite thing in the world.
Expect the awesome soon here and most likely some changes upstream
@webarto: Another domain problem: instagraph.me - you probably need an assistant taking care of your domains ? :)
:P
Domain whore gonna domainwhore :D
@webarto morning
morning @BenjaminGruenbaum
and rest of ya ...
14:51
The one person that wants a domain name really bad is gonna pay handsomely and support their domainwhoring
@Ultimater windows can compile C, the rest of what you said is basically wrong too ...
except that you should ditch windows ... you're right there, you should :)
Call to undefined function uniqid‎() in /srv/www/FlareGramster\bootstrap.php on line 9
Go home PHP you're drunk
@JoeWatkins Not natively...
well at least you should ditch it if you are wanting to learn C/PHP ...
@Ultimater yes, of course it can, it's as much written in C/C++ as unix is
@Ultimater ...
14:53
well they probably write some of it in higher level stuff now I guess ... but there was a time when it was only C[++] and asm, there are no operating systems without a native compiler, how on earth would that even work ...
Hardback books are pretty nice.
@JoeWatkins Fairy dust and magic
@Fabien as weapons ?
@JoeWatkins Are you saying Windows can compile code written in C natively without first downloading some compiler?
if you mean to say it doesn't come pre-installed, nor does anything that you actually use ...
14:55
...
Heh @joe. It feels so nice!
The number if facedesks I have seen this mornig
@hakre I'll check, thank you/ Now have to go home :p
shit it doesn't even come with telnet now, doesn't that mean it doesn't support telnet, no of course not ...
@PeeHaa That looks suspiciously like a zero-width space converted to single-byte characters
14:56
200E
in utf-8 - 0xE2 0x80 0x8B
oh - wait - off by 3?
@PeeHaa strange, what's your zend.script_encoding ?
14:58
ah
LTR mark bitch please
Why the fuck would that be in there :P
Presumably because fuck you? Seems to be the only possible answer.
hehehehe
I dunno man, I can't imagine how confusing it is to live in a world where all the text is backwards ... give 'em a break I reckon ...
14:59
Or jsut that someone copy+pasted it from a web page where that stuff was inserted automatically.

« first day (1166 days earlier)      last day (4008 days later) »