« first day (1122 days earlier)      last day (3826 days later) » 

8:02 PM
Anyone here read PHPArch?
 
CAM
used to
its back in print now eh ?
 
hm, maybe it has something to do with the * at the end of the name?
or does this just stand for symlinked
 
@CAM Yeah I met one of their people on the weekend, I was debating writing an article for them
 
CAM
on...?
 
Websockets via PHP with XHR fallback and ZMQ
 
CAM
8:09 PM
oooh
coo, consider apollo
why does everyone love zmq over apollo / rabbit etc.
 
To me it was just dead easy to get going with ZMQ, it's about as minimal as it gets.
I'm already re-inventing the wheel of what's been done in node.js, so I wanted to leverage as much as I can elsewhere
Writing my own XHR handlers was a pain.
(making RESTful XHR work with the same bindings as your websockets does only sounds straight-forward)
in ie7.
 
@Ocramius I assume you are referring to ?
 
<3 code
 
But does code love you?
 
@webarto
duude
 
8:19 PM
What have I done now?
 
@webarto Not enough jQuery.
 
I suck :(
 
I can't make rewrite work
 
I kind of feel joy when using libraries from you guys for personal benefits projects...
 
What do you think about supporting the defined() function call in the const_scalar_expr's patch?
in C for example we have #if(n)def, so why not in PHP too?
 
Goddamnit I'm surrounded by idiots!
 
Clearly he was referring to colleagues :P
 
@webarto dat
 
quacks
 
8:28 PM
1 message moved to bin (pssst! @PeeHaa)
@webarto /var/www/explain.so/public/.code/2c2b94c1a1e6fadc8fcee22539397fcc.php waah
 
Yes, bad idea :P
 
@webarto and do you really need to store the code?
 
@JoeWatkins I wanna make explaining work by:
- Direct input (one file)
- Upload (one or multiple)
- (S)FTP
- Github
- Bitbucket
- Dropbox

Sounds a bit like overkill?
 
@bwoebi I have no idea, Joe is working on that now, I'm making separate branch, but I have "real work" now, so it won't be anytime soon I guess :)
 
8:35 PM
@webarto yes. at least github has a raw.github.com domain…
 
@JoeWatkins YES, THAT
 
can anyone see whats wrong with that markup ?
 
@webarto can't handle ircmaxwell's code hehe.. E_TOO_MUCH XP
 
@reikyoushin wrong because it's cut off? because:
width: 15%;
overflow-x: scroll;
the combination of those two.
 
8:39 PM
@JoeWatkins nothing. Just the output stopped suddenly in the middle of a table after more than 300 kb raw html
 
@JoeWatkins the answer was for you
 
@JoeWatkins look at /lib/PHPPHP/Ext/Shim/aliases.php the table is infinite.
 
yo guys, try saving the file.. you would see the page ends up to </html>
 
@JoeWatkins seems to crash at opcode 27047 here
ran out of memory?
 
@JoeWatkins oh... forget about what I said
 
make that bad boy memory efficient :P
I can always ask for more RAM but...
 
9:16 PM
bit better
can't get index to ruddy work tho
stupid mod rewrite
 
@webarto do you have offers similar to this or near it's price?
 
Nice PR you approved there @Lusitanian travis-ci.org/Lusitanian/PHPoAuthLib/jobs/13819980 :-P
Ow wait httpbin.org is acting up again
RESTART ALL THE TESTS!
 
9:34 PM
@JoeWatkins The left navigation pane is bonkers in chrome
:(
ow no wait
by design
I think
 
yes weird scrolling ... I'm wank at frontends ...
 
:P
 
I'd quite like not to have to touch apache anymore, today is the first time I restarted an apache server that was on the web for about 5 years ...
it takes long !
 
Might as well install nginx in that case :P
 
@JoeWatkins mind the XSS
#51

echo "<a href='$url'>Login with Amazon!</a>";
 
9:41 PM
@hakre hmmm interesting.
 
I'm 28 years old, but I still walk around my house hadoukening imaginary enemies, making explosion sounds with my mouth.
*kkrrr-PSSHHH*
 
@Dan has issues. Nothing to see here people
 
9:59 PM
@PeeHaa I am having issues, my damn VM keeps shitting the bed.
 
:(
 
Make the base Exception class abstract.
 
@DanLugg I agree.
 
(if only, eh?)
 
But then you need to implement a concrete for most possible exceptions.
 
10:07 PM
Yea, it wouldn't prevent people from catching Exception, but it'd sure stop them from throwing it.
 
hey guys, I just setup a static IP so I can access my XAMPP install and develop remotely. What are some ways I can make it more secure?
 
@Prefix Secure in what way ?
 
@HamZa I guess just as a precaution to keep out prying eyes / people looking for vulnerabilities to gain access to my server. I'm used to developing locally so I'm not sure what measures I should take to secure the server so that only I can really access it
 
@Prefix block all IP's except yours ? The downside of this method is that you can't work from another place/ip
 
@Prefix Linux? Windows?
 
10:13 PM
@HamZa hmm, I was hoping to use this setup to allow me to continue developing while remote so that wont do
@MadaraUchiha OSX
 
@Prefix SSH to your server.
And don't use XAMPP
As for how to develop securely, you can setup a git repo and set up remotes.
 
@MadaraUchiha why not XAMPP?
 
@Prefix Because it's crap for lazy people.
For web development on a live server remotely using git
 
hello guys is there a limit for http conections (with file_get_contents) in php?
 
@ycelik None that I am aware of, but your question implies your software is not structured correctly.
 
10:18 PM
@MadaraUchiha what do you mean? i try to find out how many requests i can do with file_get_contents and it stops on 10 requests. so i thought maybe ive to edit something in php.ini
 
@Prefix isn't XAMPP not preferred in a production environment?
because the default settings aren't secure enough
 
@reikyoushin this is not a production environment. It's so I can access my local environment remotely for coding on-the-go.
 
@ycelik I'm implying that an application that needs to know what's the limit, probably uses too many.
 
@MadaraUchiha thats exactly what i want "to use as many as i can"
 
@Prefix Setting up PHP, even in a local environment, isn't that complicated.
 
10:20 PM
@Prefix but given it's accessible outside, i think it's bad to use xampp for it
 
@ycelik Again, why?
@Prefix For "coding on the go", I would suggest you implement a Git based solution.
Depends on what "coding on the go" means for you.
Are you using a browser to see the results as well? Do you have a live server? Do you need testing?
 
@MadaraUchiha i think you are sending to the wrong person
 
@reikyoushin Thanks
 
@MadaraUchiha np ;)
 
@MadaraUchiha mainly I want to maintain access to my mysql.
 
10:22 PM
@Prefix That would require you to configure your SQL to allow remote connections as well.
 
@MadaraUchiha i think his setup is just so he can change dev PCs yet develop on a remote server that only he knows the link
 
@reikyoushin exactly.
 
@reikyoushin But he says it isn't a remote server, but a remote "local pc".
 
my current setup now is that i have multiple local xampp.. then push everything on a remote private git..
 
From what I catch from him, he wants to develop on his home PC, from elsewhere.
Is that not the case?
 
10:23 PM
I have a dev desktop and a dev laptop. The server is on my dev desktop. I want to be able to access it with my dev laptop when I'm away from home. :)
 
@MadaraUchiha yes..
 
@reikyoushin Well then it isn't a "remote server", and you can't trivially access mysql there.
(Not from an app anyway). Which is why I asked
3 mins ago, by Madara Uchiha
Are you using a browser to see the results as well? Do you have a live server? Do you need testing?
 
@MadaraUchiha i have migrations and seeds so it's not a problem on my end..
i can just remigrate/reseed my db and the preset defaults are there ^_^
 
@Prefix Again, you need to define "access"
 
PHP needs an operator or language construct to mimic the following, without the icky-factor: $x = @$a[$i] ?: null;
 
10:25 PM
"access" == run apps on it?
"access" == develop directly on it?
 
@MadaraUchiha get data from the remote db i guess
he just wants the data to be available on both pcs
anyway, i need to go. bye!
 
@Prefix Dropbox + RDP.
 
@MadaraUchiha by access I mean run apps, edit code and save the code back to the server. Like live-editing (which I know is a crappy practice but it's just for learning purposes).
 
@Prefix So your "local" machine doesn't need to access the database on the "remote" server.
It needs to be able to run php apps on the "remote" server which access the database on the "remote" server.
 
correct.
 
10:29 PM
Code using Git, (see the link I gave you for automatic pulling of changes from the server's side)
Access using a webserver. Note that your IP needs to be static, and that port 80 forwarding to your machine (in the case you are hiding behind a router)
 
thanks. Yes I've set up static IP and a DynDNS so it will be the same every time. It is already accessible from the internet, I just wanted to see if there was anything I should change in the default apache install to make it more secure.
 
@Prefix If your IP isn't static, you can always use something like noip.com Nevermind ;-)
 
@DanLugg yup exactly what I did :)
so essentially, the recommended way to do this is with git remote hooks?
and then when I push a commit to github, they ping the hook and that has git on my server pull the new code
 
@Prefix Yup, that's what I do with my live server, works great.
 
@MadaraUchiha cool, I'll give it a shot. I'm still a git novice
 
10:33 PM
@Prefix Setup a PHP file to receive POST requests from GitHub, and whenever it gets hit with a post request, just git pull.
Couldn't be simpler.
Aight
Off to bed, night folks :)
 
what do you do in regards to
like
passwords for DB etc?
I'm worried about having that visible in my repo.
 
@Prefix Thought your repo was private?
 
@MadaraUchiha currently there is no repo for this project, I was trying to go about it another way
but I will make it a repo to try the hook suggestion.
I need a github subscription so I can have more private repos :p
 
That, or you could use bitbucket.org which offers some private repos for free.
 
@MadaraUchiha great idea!
 
10:36 PM
@Prefix I usually put them in a separate file that is 1 level above the directory that the git repo gets pulled into. I have to either create that config file manually when setting up the server, or have it be built automatically, but having it outside of the git directory means that it's always there, and is safe.
 
@Danack I like that. Simpler than trying to just exclude it from the repo
 
__clone accepting a single argument, the source object.
 
@DanLugg Wat. __clone is a method on a class, so it inherently has $this available to it.
Doesn't it?
"then the newly created object's __clone() method will be called, to allow any necessary properties that need to be changed."
That......is not what I thought it was.
 
@MadaraUchiha can you pin a "looking for job" message, is that inappropriate?
 
@webarto It's fine
(As long as it's in good taste)
 
10:48 PM
whats the equivalent call in curl to file_get_contents()? (which options)
 
@Danack Exactly; it could be __clone($source) { } where $source is the original object.
class Foo {
    private $source;
    public function __clone(Foo $source) {
        $this->source = $source;
    }
}

$f1 = new Foo();
$f2 = clone $f1;
$f3 = clone $f2;
Would yield:
object(Foo)#3 (1) {
  ["source":"Foo":private]=>
  object(Foo)#2 (1) {
    ["source":"Foo":private]=>
    object(Foo)#1 (1) {
      ["source":"Foo":private]=>
      NULL
    }
  }
}
^^ var_dump($f3)
 
@MadaraUchiha It's for me, I'll wrap up some CV and ping you, or just give me f* room owner status :P
 
11:14 PM
finally leme goes home
 
@PeeHaa Haha, what?
What you doing there... cleaning?
 
11:37 PM
Is there a nice, short umbrella term for hierarchical representations? The obvious one is "path", but that sounds too much like it relates to the filesystem.
"foo/bar/baz", "foo.bar.*", or anything like that; just an abstract representation of something that could map to a value (or values) in a tree.
new LevelDelimitedNodeMappingString; // derp
 
@Neal His answer isn't that wrong.
 
@DanLugg It is quite wrong. Maybe not that wrong....
 
11:54 PM
 
@webarto I told you I was surrounded by idiots...
 
@DanLugg :-P
 
I love that. "It's very wrong to say it's a suspension bridge"
 
Haha ya
 

« first day (1122 days earlier)      last day (3826 days later) »