« first day (1354 days earlier)      last day (3600 days later) » 

1:00 PM
@Billy For example, I usually make my files read-only for the PHP user
 
so when you work with such systems it is really important you take great care
 
Especially for application which accept 3rd party plugins
 
That way the PHP user cannot alter any files on the system.
 
So I made this small test script
<?php $document_root  = $_SERVER['DOCUMENT_ROOT'];
$cache_path = "public_html/ai-cache2";
echo `ls -la`;
echo "<br />$document_root/$cache_path <br />";
mkdir("$document_root/$cache_path", 0755, true);
?>
 
1:02 PM
you can ormit the last ?>
 
still just getting permission denied, I gave the php file 644 and the parent folder 750 just like you said
but I still get permission denied
 
Think about it this way: You make a WP website, you leave everything writable. I make a malicious plugin that you install, and my plugin is able to edit any other PHP file directly, which is why you see "How did this hacker insert this code to my files in WP?!" questions on Stack Overflow so often.
 
@Billy add in top of your script
error_reporting(-1);
ini_set('display_errors', 'On');
 
user image
5
 
@RonniSkansing same output
@SecondRikudo I understand.. so permissions are about files writing other files..
 
1:05 PM
@Billy We aren't looking at the same directory I believe.
 
@Billy Like I said, permissions are granted on files. If you grant a writable access on a file, you can now write/change that file.
@Billy Add <pre></pre> around your ls -la call (Note that these are strings, don't add them together with the command)
 
Done
How can I echo current path from $_SERVER['DOCUMENT_ROOT'] ?
 
@Danack I mean that javascript library that has nice data transitions for interactive graphs.
Perhaps d3s or so.
 
1:08 PM
ta
 
@Billy on adaptive-images.com/details.htm#customise from point 2. What does the $cache_path contain?
try putting a location in there
I did suggest this earlier..
 
@RonniSkansing Well, by using getcwd I figured maybe my path was wrong, but I think I have corrected it now and I still get permission errors.
 
how did you correct it?
 
getcwd() -> /home/sp/public_html
And my cache path was just public_html/ai-cache before
now I made it /home/sp/public_html/ai-cache
 
1:13 PM
great
 
But still the same permission errors...
 
well try changing the variable as I suggested
 
What do you think I should change?
 
Wow I resisted the urge to start a rant on that one ^
 
1:16 PM
YAY
I'm not kidding, Symfony's Form component is extremely complex just to build a bloody form
 
Probably could've written the JS / PHP manually faster. I guess I've learned something anyway
 
@Jimbo Aren't they all
 
I remember times I had to do shit with zend forms
 
1:17 PM
:P
 
God that sucked
 
@RonniSkansing Yes I understand but I don't know what to try, because I'm not sure if any paths I try will be correct in any way
 
@PeeHaa They're there to solve a common problem right, but I'm willing to bet that every time you come to create a form, you'll be doing something slightly different and so will have to go check up on the docs to see how you can do it this different way...
 
I see, that one, okay haha
 
@Jimbo Honestly I have nu fucking clue what problem they try to solve
 
1:20 PM
"Forms". That's it. lol
Might as well try and solve PHP
 
in fact, @RonniSkansing that is what I am trying to do with this test script, I just want to get mkdir() to work.
 
:D
 
i think persistant logins
 
I see dead people
 
on money?
 
1:20 PM
It's more exciting than thinking persistent logins
 
@Billy you have no access to the path you're trying to create your directory in.
You are in /home/sp/public_html, where you have permission. You're trying to create in /usr/local/apache/htdocs/home/sp/public_html/ai-cache2 where you probably do not have permission.
 
Is this the same "Billy" mentioned in the starred comment to the right? 3 hours ago?
 
@Gordon are you there?
 
@PeeHaa Jon Skeet was downvoted?! Blasphemy!
 
1:24 PM
@SecondRikudo Well that rep of him is pretty annoying :P
 
who is Jon Skeet
 
@SecondRikudo "/usr/local/apache/htdocs/" is what is output by $document_root, though??
 
Jon Skeet, Reading, United Kingdom
688k 280 4398 5788
@Billy Yup
 
@SecondRikudo So.. adaptive-images.php is wrong?
 
1:26 PM
688k -_-
 
@Billy No
I'm guessing your host does some black magic.
 
Yo!
Is there an easy way to hash some text to 5 characters?
 
You are editing your home directory, which is common in shared hosting
 
@Duikboot substr :P
 
(See /home/sp/public_html)
 
1:26 PM
o shet. he is in Google.. my mistooks
 
Possible with padding :P
 
I am guessing that the host copies the file to the real public_html directory, which is found in /usr/local/apache/htdocs
 
366
Q: Jon Skeet Facts

Bill the LizardI'm looking for Chuck Norris Facts style answers. In case anyone is curious, this question was inspired by Jon's own comment to this question. EDIT: If you're into cryptography, you may enjoy these facts. Now with official sanction from the powers that be!

 
@Billy change line 27 in that script
 
@Duikboot Where does the 5 character requirement come from? Use case? What is the input?
 
1:27 PM
Conclusion, try to create the directory without trying to use $document_root
 
input = email
output = referal link
And I am limited to 5 characters... ><
 
@PeeHaa Sweet, I'm in the top 1000 :-P
 
@DaveRandom I'm nearly in the top 500 :D
 
You filthy whores :P
huh? 2 daverandom's?
SOCK PUPPET! PINGING ALL MODS!!!!111
 
@PeeHaa ?
 
1:28 PM
@RonniSkansing I just tried doing a mkdir() WITHOUT the $document_root. it succeeded. But I can't find the folder it made??
 
"Jon Skeet is immutable" lool
 
Ow sorry dave
 
@Billy it not the one in the ~sp/ folder?
 
UX fail. Follow link and search your name @DaveRandom
 
1:29 PM
@PeeHaa wtf how random
 
@Billy Take a closer look
drwxrwxrwx  2 sp sp      4096 Jun 30 23:28 ai-cache
 
I found it now.. Sorry
So I should just remove document root from all equations in that script? (by removing the variable at the beginning)
 
How do I request account merge @SecondRikudo?
 
@Billy It might be faster to just set it to "" whenever it is defined.
@DaveRandom Using the Contact Me form at the bottom of all pages on the main site
 
Apparently when I was ubernoob I created another account
 
1:31 PM
There're detailed instructions there
 
That's what I mean - where it is defined at the top I changed it to ''.
But now I am getting absolutely nothing.
 
ow boy.. html and css make me so sleepy :(
 
@Billy Define "absolutely nothing"?
 
White page, no content
 
1:32 PM
how can someone be that good
 
 
@shortCircuit JS?
 
@PeeHaa why? :)
 
He programs with mspaint
 
yes
:D
 
1:32 PM
@FlorianMargaine yes?
 
You think I'm kidding?
 
well, its past tense now :P
 
@Gordon called you for this
 
@Duikboot Well depending on how it is used there may or may not be a solution :)
 
1:35 PM
@SecondRikudo what the hell was that?
in paint?
seriously?
 
@FlorianMargaine yes?
 
@tereško are you around?
 
@Gordon well, ChrisF already took care of the matter
 
every1 back to work ...
 
So basically you missed the best part yesterday? @Gordon
 
1:36 PM
@FlorianMargaine ok. when im not around, use a mod flag, so Im not the bottleneck
@PeeHaa yes
 
Wow that is sucky :|
 
@Gordon we just pinged every mod we knew
first come first served
 
Or was it because you weren't watching... #FoodForThought
:)
 
@SecondRikudo thx :-)
 
@PeeHaa my battery lasted for 75 minutes into the game
 
1:37 PM
@tereško if yes, then.. my first attempt is jsfiddle.net/7uLQ2/1 I have no idea what's good or bad. And what should be used or not. The goal was "make it working" ..
 
lol I was epic uber-noob when I made that account, apparently
 
so I guess it's ugly :D
 
So who is interested in fixing this and I will pay
 
@Gordon Ow. At least you have seen the largest part of the most fun match to watch in the WM
 
what is the jsfiddle code about?
 
1:41 PM
my?
 
yesh
 
well, @tereško gave me a task to create replacement for standard html drop-downs. And that is the attempt to make it. My js knowledge is near zero, so ..
two last functions were just snatched from SO :D (well, I do know what they doing and why exactly they are doing it, but was too lazy to write them by myself)
 
then i guess i am - 20
 
actually that code shows no benefits because all styling is "hard-coded". To make it better it will be required to set proper div/span classes and create CSS, but I was only about - to create working snippet
 
@SecondRikudo when does anime.SE come out of beta phase? Surely it has "proved itself" by now?
 
1:45 PM
Fuck please someone help me I am now offering money (as someone suggested I should)
 
yay
 
@DaveRandom It's already in the graduation queue. We're waiting on design.
 
btw, it's an idea. Now when playing with js is done - it's time to read manga!
 
replacement of html dropdown !! but it uses <select> and <option> tag.
 
@Billy I do not think anyone suggested you to offer money, but that you should find someone and pay them for their service.. I do not know what this chat policies are about offering jobs nor taking job offers here
 
1:47 PM
@shortCircuit where?
 
in the html
 
@Billy have you considered asking for help on a software contracting website? fyi, this isn't one
 
I'm not trying to contract a software developer
 
if you're looking for help on SO, narrow down your issue and post a question
 
@shortCircuit of course :D the goal is: "okay, here's html with dropdowns! make it customizable please"
 
1:48 PM
it very much sounds like you are
 
I don't think you've been here for the past 4 hours where I have been trying to solve one small error, so pleas don't make assumptions
 
so when you'll load page, you'll not see standard dropdowns, you'll see their replacements
 
I'm offering to pay someone to do what is hopefully a small fix
 
if we're just making blind assumptions, you sound like a help vampire :) also, the chat log lives foreverrrr
 
1:49 PM
i see..
 
@CarrieKendall Ah, just the person I was looking for
Symfony Forms.
(This is the part where you scream and hide)
 
wut's symphne
 
okay, I'll wait when @tereško will seal that with disapproval (: brb for now
 
lol
 
@Billy you'll probably get help with that attitude, later little icon
 
1:50 PM
@AlmaDo I think it will be sealed with disapprovel =/
 
@CarrieKendall I'm looking at your answer here. I'm using Doctrine -> Form so that's all good. Within the form select, I want each option to have the id of the entity. Any ideas?
 
@RonniSkansing I hope so. Then I'll learn something new!
 
@CarrieKendall I don't want help from people like you. it's unhelpful
 
@AlmaDo the functions are being set in the global space
you could do something like
 
@Billy calm down please.
 
1:51 PM
@RonniSkansing I know. E_TOO_LAZY
 
@Billy if someone hasn't been helping for past 4 hours . it means 1. the problem has already been helped 2. you need to debug 3. people are bored or busy with their own. calm down
 
'use strict';
(function(){
// your stuff here
)(/*dependencies..*/));
 
BTW @Billy that's the second time somebody has to tell you to calm down today
 
that's bad sign..
 
Just saying
 
1:52 PM
Where is room for git?
 
everywhere, it hasn't certain location
git clone room
 
and go ahead
 
@IlyaManyahin There is no such room I think
 
^ this. I think every decent developer should know what is git..
 
1:53 PM
Cool i have question.
 
@RonniSkansing Your use strict is at the wrong place :)
 
hehe
 
nooooo
=[
 
I have always one string in my git status command. This string is
 
What do you mean?
 
1:53 PM
modified: application/classes/connection/Paypal.php
 
@RonniSkansing it's js, not perl
 
and i can't do anything with it
but i don't have this file in system!
 
@RonniSkansing It should be inside the function
 
also, for that sample it's not so bad to use global scoped functions
 
@SecondRikudo Logo design you mean?
 
1:54 PM
only paypal.php (with small p)
 
@DaveRandom Site design
All of it
 
@CarrieKendall ...and she's hiding :-) Damnit!
 
@IlyaManyahin Can't you just checkout the file?
 
@AlmaDo at first you have to understand the problems that are associated with this sort of widget , then you can make it better. It probably will require several iterations
 
@PeeHaa ah, does it make a difference?
 
1:54 PM
@SecondRikudo Get @webarto on the case, he's always up for designing something for other people instead of doing his actual work
 
@PeeHaa it's dont work
@Pe
 
@Gordon Excuse me? I wasn't not calm
 
Define "don't work"
 
@DaveRandom Hehe, I should hook him up with Jin
 
@RonniSkansing Not sure I think @DaveRandom started yelling at me at some for for doing it wrong
 
1:55 PM
@tereško not sure. So point is "your code is all garbage, go read google" ?
 
@Jimbo i haven't looked at symfony in ages, i am looking into it though :)
 
@PeeHaa i try it. But file still in git status
 
What happens when you do a checkout of the file?
 
@PeeHaa well thanks for the heads up, I would have missed that for quite some time..
 
Nothing
 
1:56 PM
impossible
 
possible
 
No not possible
 
@Billy I'll tell you again. Everyone here are volunteers. No one is getting paid, nor does anyone want to get paid for what they do in this chatroom.
 
@shortCircuit The problem has not been helped, obviously. I have spent the whole time trying to debug, OBVIOUSLY.
 
There has to be output
 
1:56 PM
@Billy telling people to fuck off makes you look uncalm.
 
@PeeHaai sure
 
@Jimbo what does it use by default?
 
what happens when you git reset --hard ? (with care, obv.)
 
@Gordon :-D
 
Do not blow off people as unhelpful when they are trying to help you.
 
1:56 PM
@SecondRikudo I know this. I have been active in chat for years too.
 
@PeeHaa how can i send you pm?
with console log
 
@CarrieKendall As it's from an entity association, its the name of that assocation. Like, this is a form for adding a new client, and you choose the relevant server from the dropdown (each server can have multiple clients). So the field name is: server_clients
 
@PeeHaa lulz I just got 371 free rep and 2 silver badges from that other account :-P
 
I'll pay double your hourly rate, rounded up to whoever can help me fix this
PLEASE
 
@DaveRandom heheheh
@IlyaManyahin Nope. pastebin it and dump the link in here
 
1:59 PM
Which will probably be everything I earn today
 
@Billy there are some quite expensive people in here..
 
@Billy if you are looking for paid developers urgently, consider odesk or codementor
 
Noone wants to take your money
 
Do not give up solving it
None the less you have made some progession in the last 4 hours
 

« first day (1354 days earlier)      last day (3600 days later) »