« first day (1035 days earlier)      last day (3910 days later) » 

@AmalMurali That was in response to my comment lol
 
evening
C# and VB don't really look alike, at all infact, one is basic derived and one is C derived ...
they share a framework, .net, but they aren't really at all alike ... I can't stand basic ...
 
<?php
class testClass
{

function test1()
{
echo 'Test1';
$title='123123';
}
function test2()
{
$this->test1();
}
function title($title)
{

}
}

// Sample usage:
$test = new testClass();
$test->test2(); // outputs "Test1"
$test->title(); // outputs "123123"
?>
i want an $title value from function test1 to function title. can anyone help me to do it
 
@JoeWatkins GOTO INKEY$
 
@Bracketworks '''no
 
8:25 PM
@cheesemacfly lol. i did not get that
 
@Ocramius "basic is kill" "no"
 
@hakre Ganz geil, Sir Hakre.
wat
 
Yes sir, very horny sir! It's still in the oven though. Can't wait to get started eating it :D
 
@webarto geil is horny in Dutch (don't really know about German, might be that can mean it there as well as good - but in Dutch it's the only meaning of the word) so it's a thing often jokingly used that way here
 
What's one of the most useful books or tutorials you've read that made you a better programmer?
 
8:35 PM
@Fabien php.net :)
 
@Fabien Programming From The Ground Up
 
- php.net
- stackoverflow.com
- siteduzero.com <-- french
- rexegg.com <-- regex
- SQL Antipatterns: Avoiding the Pitfalls of Database Programming (Pragmatic Programmers) : http://www.amazon.com/SQL-Antipatterns-Programming-Pragmatic-Programmers/dp/1934356557
 
@Danack our oneboxes will blot out the sun!
 
late but ready
 
8:38 PM
@Fabien Clean Code
 
Vegetarian Cooking: From Microwave to Mitochondria
 
I can't provide a link to Amazon because I'm at work :(
 
@cspray roll tide btw
 
@CarrieKendall Roll Tide!
 
my roommate works at UA :]
 
8:39 PM
I like the Dragon book honestly.
 
Getting antsy...ready for football to start
 
These resources, do they ever go out of date?
 
2nd publication
 
haha yeah buddy
 
@CarrieKendall Awesome! I lived in the state for about 20 years
 
8:40 PM
oh really?
where at
i'm between t-town and bham :D
 
Actually really close to Auburn ;)
I still have lots of family in that area
 
during this time of the year, i wished i lived down there. 2 hour trip to the beach <-- winning
 
@HamZa "That was in response to my comment lol" -- which one? :O
 
very cool. i have tons of friends in Dothan and near Troy
 
@AmalMurali it's deleted by now ...
 
8:42 PM
@HamZa lol which comment?
yeah it's deleted (due to reasons of moderation :P )
 
@CarrieKendall I'm 10 minutes from the beach where I am now
This is actually the time of the year when I'm glad I'm not in the South anymore...
Southern summers, no thanks
 
@AmalMurali Well I close voted a question of his "as trolling". Then that automatic comment showed up, he started whining about it. I told him that it was automatic. So apparently he posted that question lol
 
I hear good things about design pattern books.
 
@cspray hah yeah man, its like living in a heated swamp
 
@HamZa: ah now i get it :D
 
8:46 PM
@AmalMurali Someone answered that question like this lol
in The DMZ on The Stack Exchange Network Chat, 3 hours ago, by HamZa
2
A: How to change the ' Network Manager' icon's image in Gnome-Desktop?

j_mcnallyUse ifconfig however it may remind you of ipconfig in windows.... Also the annoying thing is how much terminal looks like cmd. And how the windows in ubuntu look like the windows in windows...... I can suggest using a book or pen and paper if things remind you of windows however do not put that...

... not put that on a desktop
lol
 
lol Hamza
wow @Orangepill
 
@Orangepill proud of you :P
 
come on ... I never answered all of them that it cv'd
 
3 months and 15K. impressive
 
8:52 PM
@AmalMurali The question was something like "I do not want to be reminded of windows"
 
Anyone know any good reading for a guy who understands the very basics of OOP. Or perhaps a good idea for a project to help learn the concepts? I'm better with task orientated learning.
 
@AmalMurali nothing impressive. Really, if you take the time to answer ALL the questions even the bad ones you could get there in no time
 
@HamZa true, but in Orangepill's case, he answers pretty much all the good questions :)
 
@HamZa: yes but @Orangepill really knows stuff :D
 
8:54 PM
@AmalMurali Yes he knows a lot, I don't deny it
 
@Orangepill i'm just teasing :P
 
so do you
 
@DaveChen I don't want to point out the RTFM questions which should be closed ...
 
hahaha, yep. Answers are proportional to reputation.
 
@AmalMurali nope, I don't even know OOP
 
8:56 PM
@HamZa now, getting reputation on meta, that's impressive xD
 
Heh, but I should admit that I should review some of my answers and consider deleting some of them
 
@hamza initially I didn't grade the questions ... just answered them... I'm trying to be less of a whore now :)
 
@DaveChen yeah, especially if you're not that known lol
@Orangepill Yeah I get what you mean. I didn't know the "rules" when I started ...
 
if you already got disciplined, or peer pressure, I wouldn't recommend deleting posts, also imo: peer pressure is a bad badge to have :c
 
@DaveChen hahaha I got peer pressure
 
9:02 PM
* checks badges *
yus. I have it too :D
 
@DaveChen It's okay to get that one for a monday morning answer....
 
'Unsung Hero' too
 
it's friday for me
 
@AmalMurali I got that one...
 
it's already saturday and i'm still awake.
 
9:04 PM
Now that i'm not whoring it's going to be hard to get epic....
i'm 10 days away
 
hey guys .. here is a suggestion for the weekend project: stackoverflow.com/… . We probably should start cleaning it up.
 
@Orangepill 42 here
(a sign!)
it's late here and i should probably sleep... see ya
 
tech.pro/tutorial/1453/… .. for javascript newbies and maybe some who are not actually newbies
4
 
@teresko good resource...
 
9:12 PM
Didn't know about point 6 (that the second way was more efficient)
 
been using that for some time already
 
I usually use modenizr for feature detection.
 
pointless libs are pointless
 
take it you aren't a fan.... I know your feelings about jquery ....
 
9:19 PM
naah, i just never had a project where modernizr would have been something worth looking at
there is not particular feeling of hate there
 
@teresko you are a silex fan right? Can you point me at a smallish well written open source silex project... I've been looking at igorw's doucheswag and associated talk and wanted something to compare and contrast with.
 
not a fan, I just recommend it for newbies
i am fan of homegrown code
 
@Orangepill @tereško isn't a fan of anything. he just hates some stuff less than other stuff :P
11
 
you could put it that way
though there are a lot of things I like ... only none of them are related to programming
 
I can get that... but I don't like reinventing the same wheel over and over again and until I get my arms around the correct way of doing things I don't feel comfortable writing my own framework.
 
9:24 PM
@Leri I've added some links in my answer here maybe you're interested
 
@Orangepill if you try to make something from ground-up, the next time you do it again, you will notice that there is a lot of stuff that you can reuse
soon there will be very little reinvention going on .. most of it would be iterative improvements on existing wheel
 
@teresko if you build it right the first time :)
 
unless you find out that you have been doing something wrong .. in which case you have a license to burn it all to the ground and rewrite it better
if you are using some 3rd party framework, you are pretty much stuck
also, it's about time to spend some votes
 
lol
 
Gotta love the GEMA. I cannot watch the original Gangnam Style in Germany, but when Hitler "sings" it, no problem.
 
9:34 PM
love it
 
@Gordon Who's Gema?
 
I would recommend simplehtmldom.sourceforge.net, it is very easy and looks like jQuery — guiligan 6 mins ago
 
@Gordon lol
 
not sure if just dumb or trolling
@ThatBrazilianGuy GEMA is the content mafia in Germany that made about 1/3 of all YT videos unavailable to us Germans
 
@Gordon O_o
@Gordon 1/3rd?!
 
9:39 PM
<div class="fck_detail">
I'm not the only one seeing the obvious low-hanging fruit here, right?
 
... and I am out of close/del votes
 
Damn setting up my own webserver is hard ...
 
actually it's really simple
 
setting up a secure one is not that simple
 
9:43 PM
@HamZa php -S 127.0.0.1:80
 
@tereško I chose for the hardway: nginx + postgresql
@webarto just in the VM ...
 
yum install php-fpm nginx postregsql ? :D
 
@webarto lol seriously ?
 
should be I guess
 
hahaha I'm struggling with the config and ports ...
 
9:47 PM
cd /usr/ports/lang/php55-extensions; make install clean;
cd /usr/ports/database/postgresql92-server; make install clean;
cd /usr/ports/www/nginx-devel; make install clean
@HamZa , that's about it
though this way give you 2 hours of mostly free time
 
@tereško damn, it seems I installed postgresql 9.1
 
no worries
you can upgrade it cleanly
or at least, you should be able to
 
ok, I will make it work first and then try to upgrade it.
Since nginx is already installed. I'll try that php5.5 command
 
it wont work on your system ... that way is for freebsd
 
off to bed. laters
 
9:50 PM
this reminds me that i should set up my on VM on this laptop again
 
Ah I see ...
Well I think it's something like
yum install php
But will google it ofc ...
 
@HamZa if will give you Y/n dialog
so you can check which version it's offering for you by default
 
@HamZa If you want 5.5 you will need to build it yourself, there are no decent rpm based repos with a 5.5 distro. But it's pretty trivial to build it yourself.
Evening @all
 
@DaveRandom rpm ??? I installed CentOS on that VM
@tereško oh yeah great tip
 
@DaveRandom Remi's doesn't count? He has 5.5 in his test repo.
 
9:54 PM
@Charles Since when? Although I admit I've not check for a couple of weeks, I don't really bother for PHP any more, my builds are too custom because I am one of the cool kids
 
Did centos drop the json stuff in the default repos?
 
@HamZa yum is rpm based
 
@HamZa IIRC, the "r" in rpm, stands for RedHat ... CentOS is a derivative of RedHat
 
Ah I see
 
@DaveRandom Since the other week when I enabled test to do an update and got the rude notification that 5.5 had no builds yet for one of the PECL modules I use.
I wonder if he fixed that yet...
 
9:55 PM
well, it's more like the sandbox in which RedHat tests new features for servers, before merging it back into commercial release
Fedora serves the same role , only for desktops
 
@Charles ...hence the reason why I don't use a package manager for PHP
Although I think my VPS is running a yum distro, having said that
 
@DaveRandom A valid point, but given that Remi maintains PHP for Fedora, I'd trust a repo he runs over some others.
 
No arguments there
 
@DaveRandom ports/portage über alles
 
<<< This guy is totally lost in postgresql, he doesn't even know how to add/view tables
 
10:02 PM
same way as everywhere else: open the client and write CREATE TABLE ..
the CLI client will most likely be called: psql
 
@tereško yeah, pretty obvious. I installed pgAdmin on ubuntu for a GUI
 
oh
 
pgadmin isn't bad for a GUI.
 
So I see all weird "terms" I never heard of lol
 
you can throw them at us .. if we get bored, we might actually explain some of them to you
.. or throw the relevant man-pages back at you
 
10:04 PM
@tereško no no, it's RTFM !!! Actually I found where to add tables
 
There are only two big concepts in PG that will trip up people used to MySQL. a) User management is partly out-of-band in PG requiring conf file editing, and b) schemas are inside databases in PG, while MySQL thinks databases === schemas. Oh, and therefore c) grants are all kinds of hilarity because of those two.
 
@tereško I like the concept of it (the build-it-locally approach) but I haven't actually used it very much due to my general affection for branches of redhat
php-5.4.17-2.el6.remi.x86_64.rpm is what I'm running on my VPS at the moment apparently.
 
@DaveRandom you should try it
you might actually find it to your tastes
the basic choices would be: freebsd, openbsd, gentoo and arch
 
I do have a freebsd box that I set up over a year ago and then basically forgot about
 
@Charles well all of that won't trip me since I'm used to phpmyadmin + wamp lol
 
10:08 PM
@HamZa there is a phpPgAdmin
 
@HamZa Oh, that's worse actually, as you're used to having things hidden from you...
 
I see
 
@DaveRandom then you can go off the deep end and to all the "complete upgrade" thing, with compiling kernel, world and doing portupgrade
 
@Charles Yeah I know. This is already a big step for me. Erased windows, installed linux and now trying to build my own webserver (vm)
 
("world" are the userland applications with which the OS is shipped)
 
10:10 PM
@tereško Sounds like a bad introduction to an OS I'm not that familiar with but since the box does nothing as it is I guess it's worth a go, I can always nuke it
 
yeah , switching from WAMP to a custom made environment will inevitably be a major kick in the teeth
 
hahaha
 
@DaveRandom the documentation is very good : freebsd.org/handbook
 
Actually it might be a candidate home for the random ram sticks I have floating around, I have very few mobos that take DDR2 any more
 
if all else fails, you can try to make it into a LFS box
that too would be a good educational experience
 
10:14 PM
@tereško I'll take a look at it on Sunday, too busy arguing with VC11 at the moment
@tereško I enjoy having hair that I haven't pulled out too much for that
 
0
A: Increment php array with key value pairs in a loop

Madara UchihaYou would want to use array_merge(). From the manual: array array_merge ( array $array1 [, array $... ] ) Merges the elements of one or more arrays together so that the values of one are appended to the end of the previous one. It returns the resulting array. If the input arrays...

Not sure if everyone but me are idiots, or I'm missing something.
 
I've considered it a couple of times before but I once had to cross-compile something for a MIPS system and that soon put a stop to it
srsly, Visual C++ is the stupidest compiler ever designed. And I mean literally stupid, like if it was a person it would walk around with it's tongue hanging out the side of it's mouth. Actually retarded in the least possible politically correct sense.
 
NOOOOOOOOOOO php-fpm 5.4 ><
 
=]
 
Didn't install it ...
Damn it's late and I need to work tomorrow :(
 
10:46 PM
@HamZa what happened?
 
@hakre I wanted to install PHP 5.5 on centos with yum, but it seems the repo only has 5.4
 
you can add community repos
 
@hakre yeah I tried remi 6
 
that didn't work?
 
10:48 PM
@hakre it gave me 5.4
 
let me try on my fedora box
did you install php-5.5 ?
okay requires me to go on Fedora 19
 
@HamZa why not simply download php-5.5 from php.net, compile and install it? the whole process should take you less than 10 mins
 
I tried
yum install php < this give me 5.3
yum --enablerepo=remi install php < this give me 5.4
 
Remi has 5.5 I know that.
 
I'm browsing php.net
Note that I'm not familiar with all this, I used to use WAMP (everything ready made)
 
10:52 PM
I just don't know why it's not offered on yours.
 
@HamZa 5.5 is in the remi-test repo, so you'll need to also --enablerepo=remi-test
 
because it most likely is not called "php"
 
you have 5 steps: download, extract, configure, make, make install; then, just update httpd.conf (it might have even done that for you);
 
 
@HamZa at first try: yum list php
 
10:55 PM
@Charles ok
@tereško will try it now
 
you need to know the correct name for the package
 
@tereško that gives me 5.3
 
updating to fedora 19 now, may take some moments ...
 
and that's all ?
there should quite a lot entries listed
 
@tereško yeah lol
 
10:57 PM
yum list php\*
 
 
for el6 remi offers php 5.4
 
@tereško ah that showed a big list
 
i'm going on fedora 19 which has php 5.5 by remi.
 
@HamZa Now do yum list php --enablerepo=remi --enablerepo=remi-test
 
10:58 PM
@Charles it seems you are right, remi-test has it !
 
Then you'll see 5.5 :)
 
that should be the test repro
 
installed
 
et voila!
coool
me has 2926 packages to upgrade
 
lol there is a lot to do ...
 
11:02 PM
(already at 1647)
btw. PHP 5.5 is the version with generators
the best PHP invention since anonymous functions.
 
Hey guys, I'm trying to figure out if a PHP cron is the best way to check the status of hundres of servers
Or to use something like Python?
 
@HarryBeasant: What do you mean? Cron invoking a PHP CLI script`?
 
@HarryBeasant either lock a file or use ps
 
Yeah, so a cron that runs a script every, say 10 minutes, that would loop through hundreds of servers
 
@HarryBeasant that was fabulously vague
 
11:04 PM
Would PHP be efficient enough?
 
@HarryBeasant and how would looping through servers look like? controlling a RC drone that is flying around those boxes in the basement?
 
@HarryBeasant no, use jQuery
 
@DaveChen or even better: regex
 
I hate you guys
foreach through servers from a database
fsockopen
 
11:05 PM
@HarryBeasant
 
log whether its up or not
move on to the next
 
@HarryBeasant okay, you probably want to parallelize that fsockopen check
 
With thousands of servers, will this method be effient
 
what hakre said ..
 
so you would need to do more than just php
php + X can do it.
 
11:06 PM
How would I parallelize fsockopen?
 
out of the box, GO is desgined for that (more than pyhton)
 
also , there were "hundreds of servers" at the beginning
.. that escalated quickly
or nodeJS, or haskell, or erlang
 
@HarryBeasant well, go for go probably now. the dead-basic go tutorial explains that already.
 
9
A: pcntl runs the same code several times, assistance required

BabaIntroduction I see you are trying to send mails $this->sendMail($html, $myTask['task_schedule_id']); and I think it's a really bad idea trying to use multiple process for this task. You should consider using message queue for this task because emails can be very slow. Use a Queue System You sh...

 
It would be thousands
 
11:07 PM
maybe ?
 
gae supports GO, so you can run a quick test there :P
 
gae?
jesus im out of my depth
 
@HarryBeasant Google App Engine
 
go runs on the go website: tour.golang.org/#1
^ watching videos instead of typing is cool, too :D
 
11:11 PM
Thanks honey
 
rebooting to start upgrade ... let's see how that turns out.
upgrading the operating system jumping over one version 17 -> 19 ... :D
 
.. there is not way this can go wrong ... suddenly, violently and all over the place walls
 
last time I did something comparable with ubuntu it toally crashed everything on that computer.
 
FYI, "... suddenly, violently and all over the place" is a signature-phrase from Simon R. Green's "Nightside" series
 
FYI: The fishes I took out today where honored by Aphrodite.
Because they are born as male and then turn into women when they get older.
Or the other way round, can't remember.
 
11:18 PM
does it change taste ?
 
I have no clue I must admit.
As far as I can say, the taste was great!
 
tomorrow i will start eating solid foods again .. yay
 
what happened?
 
I think he will leave his parents ?
 
molar was removed .. sutures were required
 
11:20 PM
oh that ...
 
then all the best and a good recovery
 
i should be able to drink beer some time early in september =]
 
you've got a more friendly job now or still looking for the right one?
 
i actually haven't started looking
 
it's worth to take some time for looking for a new job
 
11:22 PM
yesterday was first day when I had an urge to write some code in long time
 
so better start early - not in a hurry just for looking around.
 
well .. i have enough cash to do nothing for a year
but i need to buy some furniture
 
that's a good base.
but a year is too long
 
yeah
 
(this fedora 19 seems still to do something)
@DaveRandom: You've got some specs / photos of those blue elephants? - I mean more than just "small" and "blue" and "elephant" and "9€" ?
It's a bit of a pity with the newer lenovo thinkpad models that when you've got them in the dock you don't see the harddrive LED any longer.
 
11:27 PM
16 hours ago, by DaveRandom
@DaveChen So I see, the guy emailed me back yesterday but we have to get a carton (50) so I need to collect enough people who want them before I can shell out the ~E500 (I don't have a euro key :-() to get it. I am also informed that people have got this far before and then never actually managed to get him to email them back afterwards so... but I'm going to have a go, no harm in trying
^^ basically that
 
We got froscon next weekend here in DE
it's with a PHP room full of crazy PHP users
I mean crowded, perhaps 200 folks.
 
@hakre what i want to do before that is finish that framework-project in some presentable form, and make a site for it
 
so perhaps a good place to announce it?
@tereško sounds cool.
especially with all your comments on MVC.
 
because having only ergo.lv to show for past year project seems quite lame
 
but Ergo is a respected brand, isn't it?
 
11:30 PM
@hakre There was some discussion a few weeks ago about clubbing together to buy a box so that we might actually be able to get them, I'm prepared to buy the thing and deal with shipping them to people as long as I can ensure I don't end up with a box of 50 with no homes. the E9 is cost price, I'm not trying to make any profit or anything.
 
yes, but codebase is horrible, the backend site for brokers is not publicly available and the mansergo.lv (means "my ergo") is still not up in production (because Ergo's internal IT team fucked up)
 
Sublime is pretty cool! What do you use?
 
which means that i can show only 1/3 of it all
 
@DaveRandom I ask on the next two PHP different usergroups here so it's possible to consolidate shipping. Sounds good?
And how fast do you would like to know?
@tereško IT teams are create to fuck the job up. New chance for next team :D
@I'll-Be-Back Editplus for editor and Phpstorm for IDE. Why do you ask?
And no, Sublime2 is really slow.
 
no, they just blame the contractors
 
11:36 PM
@tereško Whatever, as long there is somebody to blame the job is f**ked.
 
we had to mail them "script" because the do not know hot to dump database tables
 
@hakre Whenever really, asap but whenever, I'm told the guy is pretty unreliable so I'm basically trying to get some numbers. I wont be asking anyone for any moneez until I actually have them in my possession.
And yeh If you can drum up some support that's be good
 
Sublime2 is pretty fast here. Yea I use Editplus sometime as well. For IDE I use NetBean
 
I made a Php library, but now I want to get people to use it or just test it for feedback, where can I advertise it?
 
11:48 PM
@MichielDral github.com / packagist.org / travis-ci.org and then here in the channel. why?
@tereško ffs? fast forward s?
@DaveRandom you got mail.
 
Well, I have it on github and packagist, buy I know nobody will find it out of the blue you know
 
@DaveRandom what box is this you're speaking of?
 
yesterday, by DaveRandom
If anyone wants a small blue Elephpant for €9 each + shipping ping an email to elephpant@daverandom.com
 
@hakre "for fuck sake"
 
a box of those elephants :)
@tereško I have to get some jargon training perhaps ^^
 
11:53 PM
@hakre kk no worries, I'll check it in the morning, I'm going to bed right now
nite @all
 
me too it's too late
 
@hakre I try never to overestimate people
 
anyway, what do you think of this VPS? (is the ovh kimsuki dedi one still better than the 2gb vps? )
@hakre from where will the shipping come from, US? and do you have pics?
 
@reikyoushin ask @DaveRandom via email @ elephpant@daverandom.com
I guess from UK
going to be now.
 
@hakre err, how much would the shipping cost be from UK to PH? might end up paying more for the shipping T-T
 
11:57 PM
hi
 
@tereško is using a non relational DB faster than using mysql with flat tables?
 
@reikyoushin sometimes
 

« first day (1035 days earlier)      last day (3910 days later) »