« first day (1073 days earlier)      last day (3868 days later) » 

10:00 PM
so you executed command without reading what it does .. brilliant
 
@tereško you mean they "lt yu mv dirs" ;)
 
@tereško yep, but usual people tend to follow the usual place the files are put
 
@tereško cos i trust you all :P
 
because the tuts told them so.. XP
 
@NokImchen bad idea =oP
 
10:01 PM
ubuntu is the jquery of opensource , teaching you one bad practice at the time
 
teaching you one solusvm reinstall at a time? ;)
 
the baffling one i keep seeing is people saying to run apt-add-repository on a propietary repo, then go in and edit the sources.list to remove the deb-src line
when that command does nothing but add two lines to that file, one of which is the argument you gave it on the command line
 
@NokImchen never run commands without knowing what they do. First, you never learn if you just copy/paste. Second, you could run a command like rm -fr / and end up shooting yourself in the foot.
 
that's more like taking off whole leg
 
a bomb :P
 
10:03 PM
can anyone spot a problem with this line? ... $sql=("UPDATE members SET usrpref = '$usrpref2' WHERE user_name = '$user_name'");
 
i once ran chmod recursively on the root of a system by accident; man, does that confuse the system processes!
 
@user2800614 yes : it is not using prepares statements and is missing the function/method
 
@tereško it happened to me, but it was a coding mistake where my var was the root path of the rm argument, which I had not initialized so ${var}/ was interpreted as / deleted all my non-root files =o( I now run my bash scripts with -eu
 
@user2800614 are your columns really usrpref but user_name? seems like maybe one of them's a typo
 
ok, i want to extrcat in var/www/ folder , what more do i need to add in here tar -xvf phpSQLiteAdmin-0.3a1.tar.gz ?
 
10:06 PM
you already extracted the files
 
@NokImchen just mv it
 
just move them
 
defo both correct :/
$sdone2 = mysql_query($sql);  i use this after that
 
either mv the tarball, then untar it, or untar it, then mv the resulting directory
 
@IMSoP ok, i'll mv whole extracted folder :) But have to google before i go that :|
 
10:07 PM
@crypticツ ooh, what's -eu?
@NokImchen learn one command: man, then you can use that to learn all the others
man mv
@user2800614 and there's another non-fatal error: don't write code with the mysql_ functions, they're ancient, and being phased out
 
man command not found
 
8-|
how the hell does a *nix box have no man command?
 
ubuntu ..
 
@IMSoP openvz?
 
@tereško no, its derbian :P
 
10:09 PM
@tereško i thought twas debian wheezy?
oh well, gotta go. bye guys!
 
@reikyoushin fare ye well!
 
ubuntu has man by default
 
@reikyoushin bte, tc :)
 
Debian has man by default too, or I'll eat my hat
you can't even get a package accepted by Debian without a man page
 
$ man woman
No manual entry for woman
 
10:10 PM
maybe he removed some options while installing
 
which is why other distros' man pages all have Debian maintainers in the credits
 
@IMSoP it's the only way i know how to write them :/ any help on what i should be doing would be great
 
@user2800614 Boilerplate answer: Please, don't use mysql_* functions in new code. They are no longer maintained and are officially deprecated. See the red box?
Learn about prepared statements instead, and use PDO or MySQLi - this article will help you decide which. If you choose PDO, here is a good tutorial.
Doesn't explain why your current code isn't working, but if you're having to fix it anyway, you might as well fix it more...
 
@teresko ircmaxell's pen and paper approach to videos reminds me of minutephysics.
 
10:18 PM
that's probably where he got the idea
 
@Orangepill my favourite is this:
man -k true false
true (1) - do nothing, successfully
false (1) - do nothing, unsuccessfully
 
if i'm using PDO do i also have to connect to my table with PDO or can it use the mysql one ?
 
what chmod should i do to make a file "read/writeable by the user the webserver runs under" ? i tired 644 and 744 but in vain
 
@NokImchen depends on the owner and group of the file also
output of ls -l is has "-rwxrwxrwx # user group"
the first "rwx" are permissions for "user", the second any user in "group", the third anyone at all
so changing those first two sets won't make a ha'p'orth of difference if the user and group aren't relevant to the user you're trying to grant access to
 
@IMSoP hmmm... i think i'll try all possible combinations :|
 
10:25 PM
@NokImchen sigh
 
@user2800614 first of all, you connect to database , not to the table and if you use PDO for interaction with database , that that's what you have to use all th way. You should not mix mysql_* functions with MySQLi or PDO
 
@IMSoP -e will end script if anything returns an exit status that is not 0, kinda tricky to do if/else statements since they do trip it so use it only on scripts that don't need it. You can dynamically turn it on and off by doing set +e or set -e in the script. The -u will end the script if it encounters any uninitialized variable. Which is why I chose to use it so if I ever accidentally did not define the variable in a path it will not run the command.
 
@IMSoP i get this error System database 'phpsla.sqlite' is not writeable by webserver account. and i knw that the error is because The system database "phpsla.sqlite" must be read/writeable by the user the webserver runs under. You probably have to modifiy the file's permissions
 
@NokImchen alternatively, you could learn what they mean, and try the right combination!
 
@IMSoP but i already knw the meaning, They are like simple english.. :|
 
10:26 PM
@crypticツ wow, that sounds well worth knowing, thank you!
@NokImchen did you read my description about user and group?
 
@IMSoP I wish I had knew about them earlier, took me a few days to recover all my deleted files =o(
 
you need to know which user the web server runs under, or you have no chance of giving it permissions!
 
@IMSoP ya, i did read :| i dont know the user . I'm the user?
 
@ircmaxell Nope, I was out of the area and just came back. But probably on your way out? @ocramius?
 
@tereško thanks ii was looking to avoid having to recode my whole site's php lol
 
10:28 PM
@crypticツ yeah, i can imagine that must have been ... unfun
 
@user2800614 depends no how large your site is there
 
@NokImchen no, there's a system user, usually called "apache" or "www-data" or something like that
it will probably be the owner on a load of files already
 
omg! i kinda hate all these mess :(
having a shared hosting account is a lot simpler :(
 
@NokImchen I was going to say it's simple once you know how it works, but then i remembered how much time i've spent on sysadmin tasks recently... :|
 
VPS lets you have much better control over the environment , the downside is that you HAVE to know how to control that environment
 
10:32 PM
anyway, i must go to bed now, i'm procrastinating again
 
@IMSoP yes, i can install LAMP easily in few minutes both in ubuntu and debian. The problem is only because of this sqllite :(
 
good luck :)
 
@IMSoP thanks a lot for helping :)
@IMSoP goodnight, take care, sweet dreams :)
 
:)
 
When you link to an anchor say #top to id='top' is the page suppose to scroll up to the bottom or top of the element with id='top' ?
 
10:43 PM
top, IIRC
 
Yea, top
 
weird, ok in the backlog beta, if you scroll down the sticky header will show a 'Top' link which points to the data-sources div which is the little section at top right of page, but it is not scrolling all the way up. That div is actually the first content in the body of the page so it should scroll all the way to the top of the page. But it only scrolls as far as the legend/options titles
 
browsers ?
 
Firefox, only tested it, will test in Opera too.
That div is floated so that may be the issue
 
do you have a link?
 
10:46 PM
oh the cv post is gone again, bleh, one sec
@cspray the beta link above
 
Only briefly looking at the structure and the issue I think you should just put an id on the <h1> and jump to that
And the issue probably is that you're floating
 
@cspray yeah that makes more sense, I just used it since it was an id already there.
 
@crypticツ Yea, I do that sometimes too :P
 
there is something strange going on there
 
@cspray weird, still not working correctly
 
10:51 PM
it does jump to the correct spot, but right after it jumps down
@crypticツ what happens when you remove the listener for "scroll" ?
 
I think I know what might be happening, yeah I think its the sticky code kicking in
@tereško yeah that was it.
	&.sticky
	{
		margin-top : 80px;
is what I use to prevent the page from jerking when the sticky gets positioned as it's space is removed from page so content jumps up to fill it. I did that so when the sticky kicks in it adds page margin to the body at the same time to prevent it. Anyone know a better way to do it?
 
.. the benefit of crappy netbook - you see all the tiny animation glitches
 
@tereško lulz. I can see it on a more powerful machine when I refresh the page
 
actually I think I might have a solution, put the header table inside a container where that containers height is fixed height, so when the inner contents is stickied the container is still taking up the space so page should not jump...I think. I'll try it out
 
... i was writing that =/ damn you
 
10:59 PM
great minds think alike =oP
 
@IMSoP finally worked! sudo chown -R www-data phpsla.sqlite github.com/olab/Open-Labyrinth/wiki/…
 
@NokImchen why are you using -R on a file?
 
I would have just added the appropriate group for that file and left the owner as it is
 
i'm making it writable by the user :|
what is that *-R* for? :|
 
@NokImchen -R is recursive, you need chmod to change write permissions
 
11:06 PM
oh, -R is for folder and all its files?
 
@NokImchen yes
chown just changes the ownerships of the files/dirs it does not change read/write/exec privs
 
@crypticツ hehe, i saw that command in a site , they made it for folder, but i wanted to use it in a file. So i just modified :|
@crypticツ oh! my good luck! i need to make the file writable. May be i had the wrong ownership :)
 
@NokImchen yeah, you're going to end up making a big mistake you're going to regret if you keep copying and pasting and not bothering to look at the documentation.
 
we should take away your windows and plop you down infront of gentoo or slackware
 
@crypticツ i read a lot, for hours, understood a lot too, yet could not solve my prob. So, i started copy pasting :|
 
11:10 PM
posted on September 23, 2013 by Ulf Wendel

A day before the 7th edition of the PHP Unconference Hamburg the caretake of the venue called the organizers to inform them that their event cannot take place. The space would be needed as a polling station for the german federal elections… Eventually, the polling station was moved to the 7th floor and, well, business as usual: 330+ visitors, ~70 session proposals, 32 high quality sessions run

 
So, I started copy pasting
when you do that, instead, go for a walk
 
i have started to hate MySql, cos it consumes lots of MB (200+ MB), at least in my VPS
 
11:22 PM
So my school is using "Wiki Server 4" for our wiki pages. The problem is all the teachers have a desperate wiki. I was wondering if there is an api or something that I could use to get data from my teachers wiki's and make a homepage of sorts(Permissions and all are no big deal, I do most of the server work so I am admin...) BRB for dinner
 
> ...teachers have a desperate wiki. I was wondering...
desperation leads to a lot of things =o(
 
Serperate
lol
 
s/desperate/disparate/ = separate
 
Spelling yo!
 
What the fuck is "Wiki Server 4" ? Google gives only some obscure OSX crap.
 
11:27 PM
Have you seen most CS professor/teachers home pages and such? They are pretty desperate a lot of the time.
I have same question that @tereško does
 
11:37 PM
Good evening
 
Howdy
Still in Europe yea? Where are you now?
 
yup
Prague
 
Awesome. My father was in the military stationed in Europe for about 4 years. I remember some of the time spent there
Europe is something else. Definitely want to go back over there now that I'm an adult
 
so much fun
 
Yea
 
11:40 PM
except when you can't sleep
 
Eh, that happens to me all the time anyway
 
normally I am fine with it
 
Well, sometimes the travel and time difference can get to you. Just the west/east coast transition in the US wears me out.
All the traveling sounds nice though
 
hello. anyone know of a good resource for symfony2 + chef DevOps setup?
 
11:46 PM
@tereško holy crap
 
dumb leading the blind
 
@cspray @tereško I had the same reaction. WTF is Wiki Server 4. Here is the help file. It kinda explains it. help.apple.com/wikiuser/mac/4.0/# (I was eating dinner so I couldnt respond)
 
it seems that the php community has thrown its support behind puppet, but i was hoping someone here had set up a chef-repo for a symfony app
 
@NoahHuppert Uh, if you can't find any reference to an API and you actually know about it I don't think I'll be able to provide much help ;)
 
11:53 PM
@cspray Looks like Ill be doing some good old DOM Parsing
@tereško Whats with that guy?
 
@tereško I closed it as offtopic needing to be on codereview.stackexchange.com
 
yeah
well ... I'm still out of votes for now
 
It is kinda silly that codereview isn't a site listed as a suggested migration target
 
It seams like alot of questions should go there.
 

« first day (1073 days earlier)      last day (3868 days later) »