« first day (1274 days earlier)      last day (3671 days later) » 

7:00 PM
@tereško Sure, but that can be used against you in the court of law.
 
don't get caught
 
Rule No.1
 
also, encrypt everything (if you are not from USA, because in USA only criminals use encryption)
 
As in, files?
 
as in "hard drive"
 
7:03 PM
@vascowhite cool
 
Have any of you took precautions in case of laptop theft/lost?
 
nope, but I should
full disk encryption might be handy
 
remote self implode
And a handy teleport function also
 
I think I'll buy desktop to keep "static" data there, and use laptop just for work, protected as can be.
I just don't like desktop because it takes space.
 
When using getopt(), how do I get the trailing arguments?
 
7:10 PM
@NikiC Can you give example, maybe?
 
I.e. php script.php --awesome=option -x -a=b file1 file2 file3 the file1 file2 file3 part, which are not options
 
@TOOTSKI: Ooh, nice game. But I don't know JS. How do you solve the second level?
 
@NikiC You're going to have a good time figuring out that.
 
@TOOTSKI :(
 
@NikiC You can get process list, and parse it off of that, unless php is ran with -h param I think, I had code somewhere.
 
7:13 PM
 
ah no, that won't work
 
:)
 
php is obviously trying to be actively unhelpful
so, I'll just not use getopt altogether, bah
 
root@webarto:/opt# ps auxwww | grep nikic
root     18091  0.0  0.0  18584  3112 pts/0    S    14:18   0:00 php nikic.php --hello=nikic how you doin
@NikiC ^ could this help?
I'm not sure of "php option"
 
hm?
 
7:22 PM
array_filter on $argv with first element removed and strip those which begin with an "-"?
 
@bwoebi -a b
 
@NikiC if you want interesting sql question - that's it
 
root@webarto:/opt# ps auxwww | grep nikic.php | grep -v awk | awk -F'nikic.php' '{print $2}'
--hello=nikic how you doin
Do I win?
 
@TOOTSKI I have no idea what you're doing there....
 
Why are you doing grep -v awk?
 
7:26 PM
@NikiC You said you wanted arguments, right? :P
 
yes
 
$last = true; foreach ($argv as $arg) { if ($arg[0] == "-") { $last = true; continue; } if ($last) { $last = false; continue; } $non_opt[] = $arg; }
 
@AmalMurali So it doesn't display awk command in results (because it's a process too).
 
@bwoebi -c d, where -c is an argless option.
(btw, I have a really simple case, so I just wrote manual code for that ... but would be nice to have generic code for getopt)
 
@NikiC yes, then you need to fiddle around with $last depending on the option…
$argv/$argc are not superglobals...
 
7:30 PM
Noob.
 
lol
 
@bwoebi yes... the fact that they aren't called $_ARGV and $_ARGC should have tipped you off :)
 
@NikiC I thought you can't get arguments from PHP.
 
@TOOTSKI I never need them outside of main context… I usually pass them properly to functions if needed…
 
@bwoebi 'course, you should have class that handles 'em anyways and they inject or something. Kidding.
php script.php --hello=nikic how you doin
array(5) {
  [0] =>
  string(17) "script.php"
  [1] =>
  string(13) "--hello=nikic"
  [2] =>
  string(3) "how"
  [3] =>
  string(3) "you"
  [4] =>
  string(4) "doin"
}
Yeah, I thought you can't get args.
Hm, I remember there was a case where I couldn't get them.
@bwoebi what's are the specs of your mac?
 
7:43 PM
@TOOTSKI iMac 12,2 (mid 2011) 16 GB RAM; i7-2600 … or what exactly do you need?
 
@bwoebi That, how come it's so powerful, upgrade? Are you comfortable working on small scree on do you have external monitor?
 
@TOOTSKI Is 27" small?
@TOOTSKI no, I bought it that way (just cheaper RAM)
 
@bwoebi Oh, my bad... :)
Thought it was 12.2" ... fail.
 
@TOOTSKI 21" is too small for desktop, yes :-P but on an 27" 2560x1440 is nice
@TOOTSKI no, that's the model number :-D And there was a comma^^
 
Yeah, I'm going blind on this and I have 17" screen (but low res).
@bwoebi What do I know, I thought you've separated it 'merican style :D
 
7:47 PM
why did you ask?
 
I want to buy something, not sure what. Only have one laptop.
 
Buying a portable?
 
@Fabien Laptop?
 
Yeah
 
Maybe I'll just take the one from wifey and buy her new one. It's good, i7, 6GB RAM, 2GB graphic card etc. Just to move data there and clear this one up, purge Windows, install Linux, and woohoo.
 
7:58 PM
Wow, amazing specs, @bwoebi.
Mine is: 1 GB RAM, Dual core processor, 19" monitor. lol
 
Never owned a laptop. Just never had a reason I guess.
 
@AmalMurali it's only 3 years old, so no wonder?
 
omg, it was bought three years back?
I wonder if upgrading my RAM would fix the slowness of my PC
Or maybe I should dump it altogether and get a laptop. I'm confused
 
i'm just gonna by a new one
 
@AmalMurali why omg?
 
8:02 PM
@bwoebi because it's a great spec (according to me anyway) for a PC that was bought 3 years back
@tereško: PC or lap?
 
@AmalMurali so that it's still not a bad spec in five years.
 
@AmalMurali Just looked at the price of my laptop and it's pretty much the same (and others), bought 2 years ago.
 
currently I have a netbook , but I am gonna but a PC
 
If you have space, that rocks. Laptops are super expensive compared to PC.
 
not really
 
8:04 PM
And you can't clean the shit without breaking the warranty.
 
I have space, but I have college stuff next year. So i think it'd be better to get a laptop.
 
well .. it depends on what you are buying
 
@TOOTSKI Your nickname needs moar CAPS
 
I am aiming at a gaming pc, which means that the graphics card alone will cost as much as a new low-end laptop
 
@tereško I want 16GB of RAM and that would cost me 2000€ (Mac or some "gaming" one)
 
8:05 PM
Yeah, @tereško is going to be gaming it up with his next uber PC.
 
i have a long backlog of games that I want to play
 
What's a good laptop manufacturer? Samsung? Asus? Toshiba?
 
@SecondRikudo :D
 
Me too. I actually have a list.
 
@AmalMurali I have Asus and Toshiba, working great so far... Had 2 Dells, they fell apart after 3-4 years.
 
8:06 PM
from those 3: Asus
 
@AmalMurali SSDD the only difference is warranty.
 
@tereško Will you dual boot for it? The games that is.
 
@Fabien That's what I'm currently doing.
For games and Photoshop :D
 
@SecondRikudo Me too.
 
8:07 PM
of course, all my computers are dualboot setups
 
Mind you I didn't enjoy switching earlier just to photoshop some stuff.
 
lol, just answered a question on academia.SE. The irony is that I used to cheat during my school days :D
 
Yeah, that sucks in global :P
@AmalMurali Who didn't?
That's learning too.
 
\o/
I'm going to monitor all HOT network questions lol.
 
you have too much free time
 
8:10 PM
31
A: Monday morning mistake: sudo rm -rf --no-preserve-root /

Amal MuraliWhen you delete stuff with rm -rf --no-preserve-root, its nigh impossible to recover. It's very likely you've lost all the important files. As @faker said in his answer, the best course of action is to transfer the files to a safe location and redeploy the server afterwards. To avoid similar si...

recent one lol. it's so easy to get votes on such questions :D
 
Sounds like a hoax to me
One does not accidentally type --no-preserve-root
 
BUT... the keys are like next to each other!
 
lol
 
How do you even type --no-preserve-root accidentally?! :-o — ThatGraemeGuy Apr 7 at 6:46
Greame, the keys are like right next to each other. — MadHatter Apr 7 at 6:47
haha :D
 
LOL
 
8:13 PM
usleep(1) in loops helps way lot!
 
Btw. how do I get the options passed to the cli binary (without invoking external binaries on a non-procfs system)?
 
why isn't it stadard practice?
 
So anyone participating in Google Code jam?
 
lol, yes :))
 
@CSᵠ How's it going this time?
 
8:15 PM
fun, of course :)
pulled my brains out for the minesweeper one, till i found the little mistake
@AmalMurali you ?
 
Just signed up. :P But I don't think I'll participate anyway
@CSᵠ: Which language?
I just signed up with 'Other'. Not sure what's that supposed to mean.
 
@AmalMurali go4it! php, ofc :D
other?
 
Language choice: dropdown <-- 'Other'
 
@NikiC how are you doig?
@AmalMurali that's best
i wanted to try use mongodb for problems :)))
not sure if accepted
 
How does it work? How do you send the solution? I tried one of the sample questions and downloaded the input file.
 
8:20 PM
you shouldn't
write the prog first then download
yoou should have your prg ready, as it's needed along the output
test it if you will on the sample data before
 
Oh. Write code, download input, run it, submit code and output?
 
yup
you got it
 
I see. When does it start?
 
or picture if you solve with pen&paper
this one lasts 27 hour, only 5:40 to go
more than enough to qualify
 
@CSᵠ: to go meaning?
 
=remaining @AmalMurali
 
@tereško: And I thought I'd read all the the "stackoverflow sucks" posts.
@CSᵠ: oh, in that case, I'm not even going to try :P Because it's already late. By the time I wake up, it'd be over. Plus, I have some stuff to do tomorrow :-)
Good luck!
 
ty
@AmalMurali you could, only 25pts to qualify
think i need another beer :)
 
And how'd I get this 25 points? :P
 
8:40 PM
@AmalMurali 6+8+11, the most simple 2 problems
 
Too slleepy to read the question. Guess I'll just sleep then :)
Night everyone! Laters.
 
/cheers Amal
 
does anyone have access to local mysql server? (sqlfiddle isn't an option and I need to check something)
 
Yup. You mean from outside, or?
 
nope, sorry
 
8:47 PM
can you check this SQL? I tested it on my local server, working well. But OP says there's a problem with it. (sql fiddle won't fit because of session-related behavior)
 
@AlmaDo Do I need the table?
 
need to test with details data: INSERT INTO details (1, 'test 1', 1), (2, 'test 2', 1), (3, 'test 3', 1), (4, 'test 4', 2), (5, 'test 5', 2), (6, 'test 6', 2);
 
And WTF is that query :D
 
yes, you need
two tables. your schema would be:
create table master (id int, descr varchar(255));
create table details (id int, descr varchar(255), masterid int);
insert into master values
(1, 'master 1'),
(2, 'master 2');
INSERT INTO details (1, 'test 1', 1), (2, 'test 2', 1), (3, 'test 3', 1), (4, 'test 4', 2), (5, 'test 5', 2), (6, 'test 6', 2);
that's it. You'll need run query 4 times and see what are results
@TOOTSKI well.. you may read question :D
 
INSERT INTO details VALUES
(1, 'test 1', 1),
(2, 'test 2', 1),
(3, 'test 3', 1),
(4, 'test 4', 2),
(5, 'test 5', 2),
(6, 'test 6', 2);
You missed the VALUES :P
 
8:51 PM
yeah... no... There is a MAJOR difference between 'Can' and 'should'
 
yeah, typo
@ircmaxell that's for me?
 
@AlmaDo I'm doing this for you, not for him :D
 
<3
 
@TOOTSKI that would be great. Because I have no idea :\
 
(no homo)
1.
    id  descr      oid
------  --------  ------
     1  master 1       1
     2  master 2       4
 
8:53 PM
OK, correct (expected)
 
I missed the NO2, damnit.
Here is 3...
    id  descr      oid
------  --------  ------
     1  master 1       2
     2  master 2       5
4.
    id  descr      oid
------  --------  ------
     1  master 1       1
     2  master 2       4
3,6 ... 2,5 ... 1,4 ...
 
well. what do you mean "missed"? it's important part :D
 
3,6
It repeats itself, right?
 
so. you're getting 1,4 -> 2,5 -> 3,6 -> 1,4 -> ...
 
yeah yeah
 
8:55 PM
no matter how many times you're doing the query?
 
Yes, every 4th is the 1st one.
 
good. So I'm correct in this query. And the problem lies between OP's chair and keyboard
 
Yeah, OP is a faggot.
 
@TOOTSKI thank you very much
 
You're welcome.
Some people can't even copy paste the solution.
That's sad.
 
8:57 PM
Dec 9 '13 at 7:38, by Alma Do
@tereško some people write code. some people copy it. and rest can't even copy it properly :\
bah.. saved ping :\
 
Yup, that.
 
So without knowing why someone gets different query results, you assume that person is a faggot and unable to copy paste simple sql? How old are you?
 
@N.B. well, it's a fair point, but: @TOOTSKI wasn't even aware about that question. And he tried - from scratch, without any information. Query works. Thus, it's hard to belive that something is wrong with the query and all the work is - to copy it properly
 
@N.B. OP is always wrong - knowyourmeme.com/memes/op-is-a-faggot
 
@Danack this :)
 
9:03 PM
It takes effort in failing top copy paste, but still calling someone a faggot is immature, the OP doesn't appear to be classic "i read a tutorial yesterday, how do i make a facebook type of site" kind of guy.
 
I can't even facepalm
2
 
trust me, guys of kind "i read a tutorial yesterday, how do i make a facebook type of site" are rare on SO. They mostly are of type "how do i make a facebook type of site"
2
 
lol :(
 
@N.B. Old enough to know better :)
 
You seem to be the OP in the meme of the facepalm guy.
 
9:07 PM
@AlmaDo My fingers are trembling from excess caffeine and I hit F9 accidentally which ran the query again :D
 
hair-fight
 
You know, because it's so close to Enter.
 
@TOOTSKI from cocaine? :DD
 
They put cocaine in caffeine now? Awesome!
 
lol
 
9:09 PM
@TOOTSKI they always did. Because - it's the way to avoid dogs (:
 
@AlmaDo We put drugs in catalytic converters and spice it with cinnamon for that :D
What, I don't know what you're talking about?
 
sad
 
@YourCommonSense The canonical example in part one should be Robert, not Bobby.
 
My manager's name is Robert, should I call him Bobby Boy?
 
9:11 PM
@tereško I always want to ask :\ how should I read š - as "s" or as "sh" ?
 
@TOOTSKI Depends
How long do you plan on being employed?
 
@AlmaDo as "sh" .. like in "shit"
 
yay. I read it properly all the time then.
 
@SecondRikudo rofl
 
@tereško ... o_o
 
9:12 PM
@AlmaDo it's sh, like Ш
 
@tereško and now how do you pronounce the tere... also the ko
 
My whole life was a lie
I always read it as te-re-sko
 
it is like that
 
@AlmaDo 1st time for me, good to know :)
tereshko
 
teh ress ko - for me
 
9:13 PM
teres (trial) ko
 
@TOOTSKI it's better than Ъ
 
@tereško what about the k?
 
@AlmaDo that's like... šj
soft sh, right
 
ehm.. not sure you can transcript Ъ. It can't be transcripted. It isn't a sound
 
@CSᵠ k like in coke :D
@AlmaDo It "sits" by the letter which ought to be hardened?
 
9:16 PM
no. it's difficult. There are some rules in russian - so you should just write Ъ - but it won't be pronounced
but in some cases - yes, it will affect next letter (i.e. sound) or previous
 
I can probably pronounce it OKish when I read text.
 
@CSᵠ "k" as in "korn"
 
k as in crap
 
that too
 
k as in CodeIgniter
Oh, @TOOTSKI beat me to it
 
9:18 PM
Interesting Civ trailer. For 'Beyond Earth'.
 
true
 
Not played a Civ game in a loooong time.
 
there's CakePHP also
 
@Fabien i have 4th installed
 
9:19 PM
@tereško Looking forward to Beyond Earth or not heard much about it?
 
hear about it today, added to my "must play" list on youtube
 
> (745 KB/s) - `ubuntu-13.10-desktop-amd64.iso' saved [925892608/925892608]
 
I'm currently playing GemCraft Chapter 2: Chasing Shadows
 
Party night.
 
9:20 PM
Probably the best flash game out there.
 
@TOOTSKI why so slow?
 
And one of the only flash games I ever played (the entire GemCraft series)
 
@AlmaDo Because neighbor is talking on Skype.
 
even my uplink is ~16 times faster..
 
Yeah, well I'm too poor to pay for 3 connections I rarely use.
 
9:21 PM
@TOOTSKI You freeloading off of him? Or vice versa?
 
hehe
 
huehuehue
 
sivakodali.com/tv Calculate how much time you spent watching episodes
 
@SecondRikudo Have you bought the "magician's pouch" thingy?
 
9:28 PM
@Danack Yeah
Mainly to support the developer for making such an epic game.
And while it does provide a slight boost, it's nothing you need to get through the game.
 
btw, @Fabien, have you heard about Limit Theory project? ltheory.com
 
@TOOTSKI Haha
 
@SecondRikudo hmmmm.......It's a bit tough without it. No endurance, chain hit, makes it really difficult to farm XP.
 
9:30 PM
@Danack I've seen people gain thousands of levels without endurance
 
Can't really complain for free. Ping matters to me most.
 
True, it takes a bit longer, but it's still possible if you know what you're doing
 
@SecondRikudo How can you gain 'thousands' of levels without endurance mode? The XP per battle is limited.
When there's a set number of waves.
 
@Danack It isn't
You gain EXP bonuses when you enrage waves
 
9:34 PM
@TOOTSKI I read that as fapbot
 
Isn't it fapbot?
You've read it correctly.
Oh, wait...
:D
 
...
 
A common mistake ^^
 
Ah, the impaction alone is worth the joke
 
What has been seen, cannot be unseen.
Something like that.
 
9:37 PM
@TOOTSKI /dev/null is hungry.
 
@bwoebi I'm too dumb for the joke :P
 
@TOOTSKI == nobody sensible would need that.
 
Ah :)
Actually, part of it is for generated code, instead of bothering with indentation etc while generating, better to format it afterwards.
Another use would be to detect offenders of code style (while commiting)
IDK, his software is confusing for me.
Crap, too complicated. Does well more than it should.
 
lxr.php.net/xref/PHP_TRUNK/main/php_variables.c#596 ARRRRGH Why is there an add and not an update
 
@bwoebi lol
that's funny
update add update update ... seems legit
 
9:49 PM
It just made my changes to phpdbg not work^^
going to fix that in 5.4 ...
Tried to open Zend/zend_variables.c and wondering where line 596 is…
 
@NikiC @bwoebi do you guys know add property with name as empty (string) via add_property_zval_ex and make it not to fatal?
 
@NikiC what's your take on usleep(1) in maybe long loops?
 

« first day (1274 days earlier)      last day (3671 days later) »