« first day (107 days earlier)      last day (4855 days later) » 

10:00 PM
Do I want to ask why?
 
Tek
How can I switch the functionality of the enter button to the TAB button with pure javascript?
 
@IvoWetzel you're a linux dude right?
 
@Greg Well I uses it for over a year now
 
I keep messing up my server instance when playing with user accounts, thought I'd ask someone who's done it before to explain :S
 
@Greg: What distribution?
 
10:02 PM
debian lenny
 
Uh, not so much experience in that area
 
Can you define what you mean by playing with user accounts?
 
@ircmaxell I'm trying to add a new user website_ftp into a new group ftp_accounts, making sure the user can't access above the /var/www/ directory ... can't get it right :S
 
Well, what are the permissions on /var/www? (owner specifically)
 
user492203
Stop starring now!!
2
 
10:05 PM
Try this: ls -la /var | grep www
 
user492203
feel free to star some of my messages but not everything!! :P
 
user492203
Good night!
 
gn8
 
@Nyuszika7H bye
 
later
3
 
10:07 PM
@ircmaxell that command doesn't return anything
 
is there a /var/www?
try ls -la /var and look for a www line
 
what is the cool one that makes a function that calls itself twice and then executes it?
 
oh .. no lol! I just rolled back the image :D durrr
 
lol
I was going to say
 
@ircmaxell drwxr-xr-x 2 root root 4096 Jan 31 22:08 www
 
10:09 PM
anyway, to add the user:
first, you need to add the group: groupadd ftp_accounts
then add a usergroup groupadd website_ftp
Then add the user: useradd -g website_ftp -G ftp_accounts website_ftp
Now, to grant write permission, I would do a chgrp -R website_ftp /var/www (or ftp_accounts depending on your scheme)
then grant the permission: chmod -R g+w /var/www
 
@ircmaxell hmm, what order are the group names / user names - that seems confusing
should it be groupadd ftp_accounts?
 
I do things by giving each user their own primary group that's the same as their username
so that's the -g option (primary group) and the 2nd groupadd
the first group add gets done only once on the server. The 2nd groupadd and the useradd get done for each new user...
 
@ircmaxell does -G create the new group then?
 
no
-g and -G just assign the groups to the new user
 
oh sorry I missed the other groupadd
 
10:18 PM
they must exist first (according to the documentation at least)
 
I'm tired ... must sleep after this :D
@ircmaxell thanks a lot
 
no problem
 
@ircmaxell I asked in debian irc ... they like to scare noobs off :D
 
yup
 
so I thought of the next best thing: JavaScript stack-overflow chat ...
 
10:21 PM
google is your friend though
 
I think being so tired isn't a good thing
 
lol
 
I'll just test this then get off to bed ... I'll be on here 9am prompt to waste some time at work :D
 
lol
 
Tek
How can I simulate the TAB key with the Enter button in javascript?
 
10:30 PM
@Tek catch the key press event, prevent the default behaviour, then simulate the tab's event
 
Tek
Yeah, I got all that except the latter.
I got this:
document.onkeypress = function (event) {
event = event || window.event;
if (event.keyCode === 13) {
alert('Enter key pressed');
return false;
}
return true;
}
Just can't find anything on how to get it to return the tab value...
And a bit off-topic, I wonder where @NickCraver went, he used to be on here every day usually...
 
working on SO
they're keeping him busy all day long
 
probably got trapped in a self executing function
2
 
Tek
LOL!
 
@Tek yeah I wonder that too
@david HAHA
 
10:44 PM
wow, learning to play guitar is a pretty bad thing as programmer
my finger hurt like there is no tomorrow
 
Tek
@jAndy Nice! :D
Also, in case anyone wants points: stackoverflow.com/questions/4857012/… ;)
 
@jAndy the callouses come pretty quickly if you keep at it. After a couple years they are permanent, too, even if you don't play for a few weeks.
 
@Nathan: nice to hear.. only a few years of pain, cool !
 
@jAndy no, only a month or so of pain.
 
:p
 
10:57 PM
If you keep it up. If you keep at it for a few years you should have permanent pain protection :D
Lighter or nylon strings and lower action can also make it easier at first.
 
problem is, lower action sounds bad.. :p I need to touch hard in order to hold the string right
 
Electric or acoustic? Steel string?
 
acoustic
 
Use super glue on the tips of your fingers
 
yeah, but the problem at first isn't just with the outer skin; you get kind of a bruise.
 
11:08 PM
@Tek I am indeed working on SO :)
 
Tek
Oh my goodness!
Speaking of the devil :)
Whooooooooooooooooooa! Blue?!
When did this, what's going on?!
lol
When did you become mod?!
Even if I'm late, grats! :D
 
was a blog post a while back, I'm working for SO now - adding awesome
thanks :)
 
Tek
Sweet! What kinds of awesome? or is that top-secret stuff?
 
yay, change one line of code, get 20 failing tests
 
Tek
looks for @NickCraver's mod news blog post in SO
 
11:14 PM
doing some other DB changes now - may be blogged later
 
keep up the good work :)
 
Tek
Agreed^ :D
@NickCraver Good too see you're alive and well though. Lol, well, I should probably read the SO blog more but I will from now on :D
 
@NickCraver \o/ Are you making SO more awesome?
 
trying to :)
 
Try to not break it along the way :P
 
11:23 PM
That's my job. q:
 
Tek
:O
Well I'll be, never seen so many blues in a chat :P
 
@NickCraver I hear they lock you in the basement to work on the databases!
 
@Raynos there's a shed out back actually, but close enough
 
@RebeccaChernoff Wait, your job is to break things? Finally, the proof we've been searching for!
 
LOL
Shush you!
 
Tek
11:26 PM
Great thing you two are here. I've been meaning to ask someone behind the innards of SO this: What's up with the constant 408 request error sometimes? I keep getting timeouts like crazy now and then.
 
@Nick: so you're working for SO fulltime now ?
 
Tek
Are the SO developers aware of this?
 
@Tek - we are, but at the same time, we're unable to repo, even though I get it sometimes as well
 
Tek
repo?
 
reproduce
 
Tek
11:28 PM
Ah, thanks david.
 
 
Tek
lmao
 
...
now I have horrible horrible imaginations of what's going on over at SO.....
 
Tek
hehe
@jAndy Did you downvote this because he totally misunderstood my question? stackoverflow.com/questions/4857012/… just wondering if it was you
lol
 
11:37 PM
I can't find the JavaScript consoles in Safari 5 and Opera 11. Where is it?
 
Ctrl + Shift + I
As for Opera DragonFly no idea where it is in the current build I'm using some bleeding edge thingadong
And yes DragonFly is horrible
 
Doesn't work in my Safari
 
Hm, it's WebKit so it should have the inspector
 
this is driivinnggg me craazzyyyyyy
@Tek: yes I did. its complete different answer he gave and pushes you, to figure it out easily
lol.. what happens is.. that it inserts a tab into the input fields
 
Tek
@NickCraver I was talking about the 408 timeout over @ meta general chat. Someone linked this and we all laughed. localhostr.com/files/woqNT5D/capture.png
 
11:42 PM
but doesn't trigger a "real" tab
 
@jAndy Maybe he could give you some tips concerning your guitar play
 
Tek
@TimStone Oh, you're here too! :D I think due to our results on the blame wheel we can both conclude it was @NickCraver's fault.
 
Tek
@jAndy What browser are you using?
 
ff & chrome
chrome seems to do nothing at all, regardless where you dispatch the event to.. input, parentNode.. doesnt matter
 
Tek
11:46 PM
It works on FF not Chrome. But anyway, by TAB I didn't mean the indents, I meant switching form fields. =x
Maybe I should have been more clear.
 
FF at least does something, but as I said, it just inserts a tab character into the input
I know
 
Tek
Oh, lol.
 
I have NO CLUE how to get this to work
 
Tek
I see what you mean now.
 
that dom3 event can trigger actually anything
 
Tek
11:47 PM
My only other idea/workaround would be to focus the next field via a DOM select.
 
but it seems a tab is not working
 
Tek
:O
 
yay, that would be the "today" solution I guess
@IvoWetzel: how long did you youtube for that :p
 
@jAndy I've subscribed that guy
 
Tek
@IvoWetzel How long did you search youtube until you subscribed to that guy?
:D
 
11:50 PM
damnit.. I always thought my fingers are pretty graceful.. but this guy .. :P
 
There are 5 year old videos on his channel :P
 
I love digging into PHP's source code to answer SO questions...
0
A: PHP no wait sem_acquire?

ircmaxellNope, it's not possible according to the implementation used by PHP. According to the semop() man page, it should be able to take the IPC_NOWAIT flag somewhere, but it doesn't look like the PHP implementation does. Actually, looking at the PHP source code for the sysvsem package, you can clearl...

 

« first day (107 days earlier)      last day (4855 days later) »