« first day (498 days earlier)      last day (4675 days later) » 

10:00
type <?php echo getcwd();
then tell me what it says
you need move_uploaded_file($file, $dir.'/'.$filename);
you upload file is at /var/www/upload
but upload IS the file
not the directory
look under /var/www, and you'll see a file named "upload"
move_uploaded_file($_FILES["file"]["tmp_name"],"/upload/" . $_FILES["file"]["name"]);
still got a error
what is the error?
10:06
@andrewjackson how the hell did you know what his problem was? 0.o
I haxored into his computer lol
[Sun Feb 26 15:34:36 2012] [error] [client 127.0.0.1] PHP Warning:  move_uploaded_file(): Unable to move '/tmp/phpqREHdn' to '/upload/Hudson_river_from_bear_mountain_bridge.jpg' in /var/www/test.php on line 19, referer: localhost/test.php

[Sun Feb 26 15:34:36 2012] [error] [client 127.0.0.1] PHP Warning:  move_uploaded_file(/upload/Hudson_river_from_bear_mountain_bridge.jpg): failed to open stream: Permission denied in /var/www/test.php on line 19, referer: localhost/test.php
i'm serious. that was insane
remove the '/' in front
move_uploaded_file($_FILES["file"]["tmp_name"],"upload/" . $_FILES["file"]["name"]);
@Purmou actually, I went over to the php channel, and decided I didn't like their attitude, so I'd help him here lol
@andrewjackson ahhh, makes much more sense now :P
10:09
@andrewjackson no luck
same apache log error
should i chown or chmod any files ? the image?
wait I will make a debug script
god i have no life
i'm not even sleeping
damn this css3 tag wiki!
<pre><?php
$dir = getcwd().'/upload';
echo $dir.(is_dir($dir)?' exist':' does not exist')."\n";
echo $dir.(is_writable($dir)?' is writable':' is not writable')."\n";
tell me what that script outputs
/var/www/upload exist /var/www/upload is not writable
10:15
chmod that directory to 777
then it will work
done i got the thing now...so whenever i specify the path in move_upload_files
its relative to the cwdir(); output?
yes
or in otherwords, current working directory
just one more thing if you mind, what does chown do that is different from chmodding
I've never had to use that, not sure
something to do with the owner I guess
honestly, every time you said "chown" I thought you meant "chmod"
im confused b/w their relationship if you chown do we get write permissions or something else
thanks for the help i gtg bye
10:19
http://www.php.net/manual/en/function.chown.php
comments in the documentation explains it
bye
I had a lot of fun learning PHP... especially with the comprehensive easy to read documentation
if anyone is going to learn a new server side language, I recommend PHP, it's a lot of fun.
i love php too
GGG
GGG
congratulations on avoiding the php sucks groupthink mentality.
people are so weird nowadays
GGG
GGG
parts of it are pretty awkward but it all makes sense if you come from a C / unix background
it just has too many built in functions
but, i mean, they're there for a reason. they didn't just put them in there for their own pleasure
GGG
GGG
10:25
yeah the design is kinda bad, a ton of top level functions
well... PHP has it's disadvantages, but I would never hate it for that
GGG
GGG
not really consistent syntax or calling convention... underscore or no underscore? needle or haystack first?
but it gets the job done, and it's super widely supported
the top level functions is why I like it so much
why separate the blue m&ms from the red ones? lol
GGG
GGG
a lot of the weirdness comes from evolving from a weird templating language / C / shell scriping hybrid thing into a programming language and then into an OO programming language with proper classes and reflection and eventually namespaces
as long as it doesn't affect performance, it's good
GGG
GGG
10:28
well i like the oo approach better sometimes
I use oo for applications
GGG
GGG
for example, split(delimiter, string)... you can forget what order the arguments go in
string.split(delimiter) you can't forget
I no longer program PHP in the top level
try, but that's what I have dreamweaver for lol
GGG
GGG
yeah but have more OO-ness of built in stuff would be nice
yeah popup help and tooltips help
eventually you remember, but it's easier to forget
if they did that, I hope it would be a complete different flavor, because I prefer it the way it is tbh
GGG
GGG
10:31
i dunno... array_push($array, $value) rather than $array->push($value)?
GGG
GGG
which you can do with ArrayObjects, but then they're not compatible with normal arrays
so more weirdness
atleast then I know I'm not looking at Javascript
GGG
GGG
lol
lose jquery and it'll be easier to tell ;)
GGG
GGG
10:33
i could go for a python without the crappy whitespace deal
jsFiddle is great, but lacks a collaboration mechanism
who's down to team up on our own collaboration service?
GGG
GGG
hmm
the core of a jsbin would be really trivial to make
0
Q: GeoMashup plugin: how to customize cluster markers / icons?

FulvioIs there a way to customize the standard cluster icon marker which GeoMashup uses to display nearby posts grouped in a certain area? by default it's a red dot in V2, or a blue dot in V3 how to customize its appearance and replace background/image? thanks

GGG
GGG
i've seen a lot of problems with current ones that can be easily fixed
and other improvements that could be made
the text editor is the fun part though
10:34
@andrewjackson count me in
GGG
GGG
like auto-detecting tab size and stuff
GGG
GGG
yeah i'm down too
like google docs for code?
GGG
GGG
make a github project and add us all :)
10:35
no, it'll be closed source
we want to make money on this lol
GGG
GGG
we can make money off open sauce
I'm not a fan of giving away my work to the competition to be completely honest
GGG
GGG
hmm what's the github knockoff with free private repos
i'm not either
at least not yet
GGG
GGG
yeah i could live with that... but this seems like a good target for open sauce tbh
10:37
I'll just make us each an ftp account on my server
GGG
GGG
ftp? no we need version control
git or svn or hg or something
that's what we're building lol
GGG
GGG
lol you need version control for team software dev
hell i use it for everything, not just team stuff
GGG
GGG
check the unfuddle link
10:39
for now, we'll have to make a system
GGG
GGG
the thing is if we did it open source we could leverage a ton of existing stuff
until it's functional enough to actually use
GGG
GGG
if we leverage a ton of existing stuff we're not giving away "secrets"... we just added glue
it's from scratch lol
it's definitely not as hard as it sounds
GGG
GGG
yeah but there are already really good online text editors
10:40
trust me lol
but I don't want to use those
GGG
GGG
do you have a working prototype of one?
lemme upload
wait wait wait
aren't we making a collaborative code testing area?
it's realyl bad so far though lol
it's rough
yes
not just testing...
but a complete solution
GGG
GGG
yeah you need a decent text editor for that, diffs, etc
10:41
why do we need a text editor?
GGG
GGG
it's a web app
i assume
we'll just catch tab clicks and add 4 spaces instead of tab to the next input
that's all we need
GGG
GGG
so you need a text editor, diffs, etc
..syntax highlighting...
we go to the page, edit, see what's being edited by others... save, manage versions and saves
10:42
oh pff
no no no lol
tabs > 4 spaces
don't tell me you're a space guy lol
okay, we'll make it so it doesn't matter
that's the beauty of writing our own
GGG
GGG
yeah it should autodetect if something's pasted
ok highlight.js has an open license, can use it
it's good
we'll be able to settle our differences through coding
GGG
GGG
it just has the basic "use at your own risk" disclaimer for a license
in fact, that'll make it better, so other people who have different styles won't annoy eachother when they use our service
GGG
GGG
10:45
yeah we can make a prettifier too, some other sites have that
awww yeah
highlight.js probably adds their own formatting
GGG
GGG
no formatting, just highlighting
highlight.js is good, have used it for a long time
been so long since I opened up cpanel lol
GGG
GGG
the tricky part is they are editing a contenteditable div, not a textarea
it's not that tricky really
but you have to handle a lot of stuff like keypresses and crap
10:46
I've got most of that done already
can i work on UX?
and if so, do want a jsfiddle-inspired design?
what's UX? lol
user experience
oh... hmmm
I suppose lol
10:47
no, not like jsfiddle
it'll be revolutionary
haha
GGG
GGG
lol
guys
I've got ideas
jquery ui tabs
needs more jquery
GGG
GGG
10:48
make us an unfuddle account :D
it looks cool
lets say we have string "add_chapter" i want to remove "add_" and leave only "chapter" how can I do it?
absolutely no jquery ui
GGG
GGG
private git hosting, issue tracking
thank god
jquery is okay, jquery ui pisses me off
@trl13
10:49
@Purmou ?
@GGG god, that's what I love about python.
GGG
GGG
jqui is gargage on top of garbage
"add_chapter".replace("add_","");
(the space thingy)
btw, assembla.com allows free private repos (git or svn or hg)
ok thx
10:50
and
spaces >> tabs
you can use any string in place of "add_chapter"
GGG
GGG
assembla has free private repos? I'm paying for one =/
seriously...
@GGG the problem is, do we really want to start our own git-like service on git? lol
@GGG: you can choose the deeply nested "free private repo" :)
GGG
GGG
10:50
@andrewjackson it's not really git-like
tabs tabs tabs
there is nothing like ticket though, but it's a free private repo
GGG
GGG
oh yeah we use tickets and stuff, burndown charts, blah blah blah
I just don't like pressing backspace four times to remove one time... biggest time waster ever invented
they're that good? :)
GGG
GGG
10:51
@andrewjackson that's the editor's fault
also shift+tab
@andrewjackson: most editors replace tab with spaces.
GGG
GGG
unindent, don't delete the tabs
I mean, good editors, when you tell them to.
GGG
GGG
spaces are the tits
I know, and I hate those editors
10:52
you hate vim?
GGG
GGG
tabs are for trolls
which is why I use Dreamweaver
fuck you, sir. <3
GGG
GGG
lol
10:52
(yes, I'm a VIM guy.)
ew dreamweaver
well, gotta go make some food
GGG
GGG
dreamweaver is trollz express
it's all about notepad++ up in here
I hate Adobe, but Dreamweaver is what I've gotten used to
don't get me wrong, I only use the code editor, but the autocomplete is amazing.
GGG
GGG
10:54
i'm sure it's probably not horrible nowdays. It's been around for ages
i use eclipse if i need a serious IDE
I want to create something like that for ex if elem=chapter then statement must look like that $("#chapters").is("hidden") inside function. Am I missing something in function below? function newrow(elem){
if($(elem+"s").is(":hidden")){
GGG
GGG
but i usually just use a plain old text editor
dreamweaver used to be really bad, like syntax highlighting would randomly break in the middle of a line for no reason, and it was dog slow
back when it was macromedia
@trl13 is chapters a class?
@Purmou no id
it's in id?
you're missing the #
10:56
@Purmou so "#"+blahblah
?
yes
exactly
keep in mind they work like css selectors
@GGG I remember that... unfortunately I've been using it since before "mx" lol
okay... before I show you... lol
the code is ugly, the font is ugly, it's just a proof of concept, and it's not very good
I've been spending most of my time chatting when I should have been working on it
each word and white space will have it's own span
so it would be easy to add a class to a tab, and easily be able to adjust the tab widths
is it that bad???
just realized me click is broken
it's supposed to position the cursor when on the left side of a char when you click the left half, and the right side with you click the right half
$('<tr />').addClass(elem).append(
    $('<td />').text('new row')
    ).prependTo("#"+elem+"s").slideDown("slow");  slidedown at the end doesn't work, how to get this work?
probably something to do with the font changes I made
@trl13 remove the ; at the end
be mindful. it's inside the append, so semicolons aren't allowed
11:07
problems solved :D
hello,all guys.
have long time be from here.
@Purmou lol. same sh*t
finally, i use any other method to get all the records of this sigmagrid
@Purmou also it's not inside append
@trl13 you're right, i'm super tired
it's 3 am
tough i have to finish this tag wiki
11:09
Guys how can I animate and prepend it? $('<tr />').addClass(elem).append(
$('<td />').text('new row')
).prependTo("#"+elem+"s").slideDown("slow");
okay I'm goin to bed
night @andrewjackson
@andrewjackson nite
tomorrow I must work on this editor, instead of chatting lol
@trl13: i'd just post a question if i was you ;)
11:10
night
12:04
0
Q: Having issue with slidedown function

trl13Problem Can't get prependTo() and slideDown() functions work together. Short Please take a look at the code. http://jsfiddle.net/tt13/5CxPr/53/ Press "new" to see what happens Am I missing something? Detailed Here is JS code function newrow(elem){ if($("#"+elem+"s").is(":hidden")){...

12:20
Hello
yo
12:38
hey guys
@RyanKinal hello
@RyanKinal Can you pls take a look at this q? stackoverflow.com/questions/9452842/…
Hi, is there a way to display this html symbol using css, this way?
content:'&#10004;';
ok thanks
12:45
Actually, you might be able to put the actual character in your CSS source code, instead of the encoded one
But I've never done such a thing
so my copying and past like:
content:'✔';
it works - cool
Ugh. I don't like using content in css, that's ugly :/
It's very usefull.
and that's most definitely breaks the separation of content/presentation
that*
✔ is a presentation car/picto, not a content.
12:53
hm, I didn't think of it this way
I guess you're right
since most people already use images in css to do this kind of stuff already
It's also usefull to fallback hasLayout
hasLayout?
GGG
GGG
{ list-style-type: ✔ } would be awesome
yeah...
or something along these lines
You can do it with a good li:before { content : ✔ }
12:55
not as intuitive as @GGG's implementation, though :p
GGG
GGG
better than i thought
wow
totally
I thought it'd be much worse
GGG
GGG
:before is more general-purpose than list-style-type... i agree it could cross the presentation/content line, but not for stuff like ✔
Now that most people does not anymore highly support IE7- , it's more tan usable
GGG
GGG
12:58
yeah esp. if all they're missing is a little graphical doodad they can live without
although i'm sure graphic designers would not like that idea
GGG
GGG
i dunno, they seem to want everything to look exactly the same everywhere instead of degrading on crappy setups
I must be lucky that designers i work with are aware of that
GGG
GGG
i mean if it was for like a feature comparison chart or something important like that, you'd have to have it in 7
but just for a bullet as a design element, not important
0
Q: Theme has superfish - how to add supersubs?

CorbulaI'm using a theme that is using Superfish for the navigation menu. The problem is, if the sub item is too long it will drop underneath, i want to keep the individual menu item's text on one line. Now i've found supersubs for the superfish menu but i don't know how to add it to the theme. This i...

 
1 hour later…
15:03
is illegal here to ask where I can get help or pay someone to help me with my javascript problem? something like psd 2 html. but more of a javascript...
I need help from a jQuery expert.
15:15
@Pennf0lio: getacoder.com
Thank you very much!
 
1 hour later…
16:38
@Pennf0lio warning, there are no jQuery experts
if anyone tells you he is a jQuery expert, assume he's an idiot and don't hire him
@Raynos, Thank You for the headsup. But how would I know? any guideline you can suggest?
Hard to tell.
yes, that's what i thought....
It's just that your grandmother and her dog are "jQuery experts"
Look for JavaScript experts instead
I mean I could tell whether someone is a jQuery noob
but its hard to do generically
Well following the "dont hire indians" rule works quite well
ok.. thank you.. good point..
Is this often were you have a project and deadline is coming really quick and your in a hurry finding expert to help you out?
17:16
No
I tend to not have those situations
I also dont trust I can find an expert in time
 
2 hours later…
19:07
1
Q: Does <script><!--//--></script> have a modern purpose?

MJWadminI'm reviewing some html produced by an outside shop. They use comments inside their external script loading tags - so far as i'm aware this was only useful for very old javascript unaware browsers is there any modern function for this or is it redundant? <script type="text/javascript" src="...

20:02
Why is it dead ._.
20:17
wattup
@Raynos why is what dead?
the room
everything is quiet
mm
how've you been?
every single starred message is a perfect one-liner
@Raynos Weekend. :P
20:28
@gsnedders Y U HAVE LIFE
@Raynos Because I succeed at not being a geek at times. And most of today I was too busy hacking on JS engines to talk. :P
being a geek and a troll are the credentials they seek for letting people into this room
Hey guys
My question maybe bit offtopic, but, can anyone explain me difference between developer and programmer? is there any difference at all?
@Purmou I think you did :P
heh, i think it's helpful though
it'll change soon enough if it isn't :P
21:41
someone ping me
@Purmou pong
hrmph
thanks
well i already found one thing that sucks about dual monitors
22:15
Feedback on "interesting topics": gist.github.com/1919281 appreciated.
0
A: How do I read from a pointer that looks like "process name" + address?

ChrisFOP answered in question - put as CW answer `string sProcessName = "MyProcessName.exe";` `Process[] MyProcesses = Process.GetProcessesByName(sProcessName);` `IntPtr hProcModuleBA = MyProcesses[0].MainModule.BaseAddress;` `IntPtr PointerAddr = new IntPtr(MyPointer.ToInt32() + BaseAddress.ToInt32()...

are the ticks there cause the OP didn't know how to put codeblocks?
22:35
#jQuery just promotes low quality code. That's all.
2
Waits for incoming rage storm
remember how the first time i came here i was being super bitchy and stuff?
@Raynos: but you know jQuery pretty well right?
I know jQuery, yes.
what do you use for mouse events? cause that's one of the only reasons i use jquery.
(though, i usually write my code in jQuery and then convert it to pure JS)
23:23
@Raynos just because it "promotes" it doesn't mean all code using jQuery is low quality
so I'll tend to agree with that
23:35
0
Q: Can it get any shorter than this? I'm trying to optimize as much as possible

elclanrsI'm coding a jQuery plugin that basically checks if a set of checkboxes groups have at least x options checked. A checkbox group is named as name=group[]. You'd call the plugin like: $(':checkbox').checkpass({min: 1}) // Make sure at least one checkbox per group is checked I've been working on...


« first day (498 days earlier)      last day (4675 days later) »