« first day (1006 days earlier)      last day (4168 days later) » 

user895378
21:00
@PeeHaa Again, thankfully. I was a mess circa 5 o'clock this morning. A few hours sleep helped a lot.
user895378
@DaveRandom DHCP ... sounds cool like smallpox.
@rdlowrey SOCK_RAW ftw
user895378
I prefer raw to sock, but whatever.
Although I'm just giving it a cursory read at the moment, I need to finish up LibDNS before I venture down that road
21:04
@DaveRandom whee
but before I commit to an API I want to make sure I'm not making myself difficult for myself when I come to DHCP
write your own TCP
@igorw I plan to, as ridiculous as this is I'm going to have a look at writing a proper IP router in PHP.
user895378
lol
@DaveRandom The reason I am thinking about using the desktop computer itself is because I barely use it. I might as well make some use of it (Plus, it sounds cooler when you have a dedicated server in your house :D)
21:05
Although I don't have much practical use for that, I admit
user895378
php_all_of_the_protocols.jpg
I do have a practical use for a highly customisable DHCP server though so that's on the list of thing to do first
Anonymous
If the .responseTextproperty in Ajax is only limited to Text, then how does one pull an entire element.. .
@AshKetchum Even so, you may as well VM it on there. There's no point in completely losing the machine if you don't have to.
@DaveRandom you really don't want to write router software with PHP?! (/me is agreeing with @igorw)
21:07
@DaveRandom you're insane. also, do it as a service.
@Simon_eQ It's not "text" as such, it's the raw string returned by the server. It might just be binary data.
The online web server I use uses centos, but I am more familiar with Ubuntu than CentOS, so I am not sure which to use.
@DaveRandom scriptable protocol libraries generally seem quite interesting for security research.
Indeed, I'm not writing any of this because I expect anyone to really use it for anything other than experimentation
That's the only reason I want a DHCP server, I often play around with IP phones in particular that use odd DHCP options and strange combinations of that and DNS records
Also I want to play with SRV, it's not really properly implemented anywhere yet apart from dhcpd and that is a bit suck from a config point of view
@DaveRandom I need a little clarification. Is the Virtual Machine solution called VPS?
21:11
Also I maintain constant connections to a few VPNs, and I'd like to be able to forward requests for certain domain suffixes to specific DNS servers, something you'd have though would be a lot easier than it is with named/bind
Anonymous
@DaveRandom Is there anyway, to make the server return <div>Inputs inside</form>? I am thinking, it should send it as a raw text, meaning it will get rendered once the request is back, but I am not sure whether that is a hack or not.
Never mind, just found out that VPS is VM but hosted somewhere else while VM is hosted on your own computer.
@AshKetchum VPS usually refers to hosting on the internet. In practice they are much the same thing, but stuff like virtualbox you maintain yourself (and it's free)
Someone wrote the following on the internet in a discussion of dedicated vs vm: "My experience is that, systems hosted though virtual machines are poor in their performance. A guy that i know that worked for sybase, was asked one time to host a web page via apache using vmware. The performance was so poor because that particular site had heavy loading that they had to give up the idea.

My advise is.. DON'T trust on reliability on those kind of systems, virtual machines were not natively conceived for that.." What do you think?
@Simon_eQ What's that? <div>How to annoy a front-end developer</span> ?
padding: blue;
text-decoration: 0px;
@Simon_eQ That's an ugly ugly way to do it IMO. But it's a very common approach, document.getElementById('container').innerHTML = xhr.responseText;
21:15
I guess no response. Ok.
Personally I favour JSON and building the DOM elements properly, but then I would
@AshKetchum Yeh but it's a dev box, you don't need performance
VMs won't perform that well, you're sharing resources with another OS. But that doesn't matter for a dev env
@DaveRandom I am sorry, but I don't understand. What do you mean?
> My experience is that, systems hosted though virtual machines are poor in their performance.
Anonymous
It is actually, a loggin-form, once the user loges, AJAX will send data to validate.phpfor validation, and if there is error, AJAX will get <p id='error'> ERROR:</p>'s as a responseText and all is ok, but, if validation is OK, then I want AJAX to show an input for for message sending. So, that input unfortunately is not a plain text, but a whole lot of inputs/forms
Anonymous
@DaveRandom
Anonymous
21:17
Just wanna know, if there is a better way...
Is it normal behavior, that when I send (at the same moment) more than one answer as http answer the last http answer is selected by the browser?
@DaveRandom Well, the question is whether by "systems," the person meant an operating system or something else.
@bwoebi Err... unspecified I think. Although I'd have thought it would be the first one.
@DaveRandom eih, yes… getting tired…
@Simon_eQ The jQuery way would be to do exactly that. I'm not a fan but I'm in the minority
21:20
just wondered why my browser only showed one http answer… I've sent three answers on one same socket (even if there were 3 sockets open :o)
@AshKetchum It really doesn't matter either way. You're barely asking the box to do anything at all. Which I why I'd favour running a VM on your laptop and turning the other box off, save the electricity, save that planet, birds trees flowers free love and all that.
@bwoebi Well how could it show more than one? It's not like you can render 3 pages in one viewport...
Or do you mean on the dev tools?
Your? Is that british?
;-)
@DaveRandom was an ajax request
^^ yes, I'm serious ;-P (serious about the linked comment, not the video)
21:21
@PeeHaa I am horrified at myself.
Anonymous
@DaveRandom Oh, I was afraid, in doing so .. I would be the only one.
I somehow expected that the client would separate it…
(yeah, makes no sense…)
@DaveRandom I guess I will just do that then, but I have another question. If the server is on a virtual machine, how would my physical (Windows 7) be able to connect to the server that is running inside the virtual machine?
@bwoebi Well I would expect that as well. Think about it: if the server sets a Content-Length header, the client will read that much data from the socket because that's how much it's expecting. If the length is not declared, then the server expects the server to drop the connection at the end of the response. Either way, the end of the response is defined ahead of time
The client isn't going to look for data it's not expecting
I never understood why people insist in rewriting to querystrings.
Am I missing something?
21:25
@AshKetchum Your VM gets a virtual network adapter with it's own IP address, just like a regular machine on the network
@PeeHaa Yea, querystrings ;-)
@PeeHaa Yes, I believe you are missing a Slipknot album
lol
@DaveRandom content-length was set, just another answer was just behind it; that's all.
Anonymous
21:26
@DaveRandom :-D
Anonymous
speaking of brit's accents
Shouldn't that be === though?
@PeeHaa Good point
21:27
@Simon_eQ lol
@DaveRandom now it is perfect, as it's now only writing to sockets which are waiting for an answer…
Anonymous
In all honesty, that is how I expect American to sound all the time @PeeHaa
We all do
Is there really a big difference between Ubuntu and Ubuntu Server?
Well, the Server doesn't have a gui...
Ubuntu sever comes with a install wizard :D
I believe
21:36
Hmm, not sure if appropriate for StackOverflow:
`I really appreciate any help, and if someone has time to help me implement this, I can pay for help via Odesk.com. Im struggling to find a good developer than can help me via that site, but there payment systems are great!`
-2
Q: PHP "templates"

Irrothanks for helping. I wanted to point out that I'm just looking for help finding the correct tutorials and ideas of how to get this done, not just specific code. Im tired of wasting time studying things that turn out to not be what I need. I am trying to create a template or profile that chang...

Now this looks like a pretty clear spec for once: sqlite.org/hlr40000.html
@PeeHaa I like how everything is numbered. Would make it nice when implementing it because you can REALLY itemize tasks.
@LeviMorrison Yes. It''s just sweet. kudos for them
21:59
@AmalMurali not at all, I'd consider that spamming.
@hakre: of course. does my vote count?
@AmalMurali sure, every vote counts :) if you can't vote, flag.
@hakre stackoverflow.com/posts/17734336/revisions WAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA‌​AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAR!
:)
@AmalMurali That really shouldn't have to raise any doubts, SO is pretty clearly not the right place for that.
@PeeHaa only until deleted :)
22:01
:-)
btw, if anyone is still here from awhile go... DocPad seems really interesting
just played around with it a little bit
@Jasper: I know, I just wanted to get your attention to that question. I should've tagged it with cv-pls instead, though :p
wow over the years the internet has grown so many spam content for windows.
@igorw thinking of it, I could probably just take any lambda, give it a type ("this one adds numbers", "this one kills little ponies") and we got objects again
I'm gonna get killed for saying stuff like this
22:11
@AdamLynch From the video on its intro page:
> It will let you render Markdown, [some other fancy terms I probably had to know to hear correctly], PHP - if you really want to do PHP - and a whole bunch of other thigns as well.
They sure as hell don't understand: that the requirements for an intro video and a presentation are vastly different.
@Jasper how do they differ?
posted on July 18, 2013

The PHP development team announces the immediate availability of PHP 5.5.1. About 20 bugs were fixed including a security fix in the XML parser (Bug #65236). For source downloads of PHP 5.5.1 please visit our downloads page, Windows binaries can be found on windows.php.net/download/. The list of changes is recorded in the ChangeLog.

22:18
@Feeds Yay. Just one more release and I can use it in production :)
@AdamLynch For a presentation, it's okey to go five minutes without telling anything other than a very unclear one-liner what your app is, what languages it supports and why you made it; It helps keep the presentation informal. For an intro video, you are competing with each open tab the viewer has, as well as a number he can still open, so at this point you're losing viewers.
yeah, it's way too long for one thing
22:22
Also, a focus on how the idea for you app came to be can make for an interesting presentation, but in your intro video it should be no more than three, maybe four sentences.
Genius:
echo (headers_sent())?'sent':'not sent';
session_start();
3
haha
@Jasper that presentation was too informal too
it was like from the water cooler, while being heckled
@AdamLynch Hm.. that can be something you aim for. If it was too much so, I can't tell without havnig been there
22:37
can I use set the context of extract to $this-> or would I be better off making a loop and $this->{$item_in_array}?
I have only just noticed that when trying to type "test", if your left hand is one key position too far to the left you will actually type "twat"
You mean "rwar"?
Except you type test completely with your left hand by typing conventions.
It should be noted that I can't type
22:41
That is not notable
Note it!
note it...
@PeeHaa WAT?
I type the t in test with my right hand first :P
@cspray awesome right? :)
@PeeHaa It's something...
22:42
lolwut (paraphrasing from said video): The amazing thing here is that you can mix your code with your templating. Previously people would have thought this was the worst idea ever. The first reason to do is that coffeescript looks good. (then he goes off on a slight tangent, then resumes his talk without mentioning any other reason...)
Let's say I have an array from a MySQL query. It's vardump is this:
array (size=1)
  0 =>
    object(stdClass)[143]
      public 'user_id' => int 1
      public 'email' => string '[email protected]' (length=29)
      public 'username' => string 'alec' (length=4)
      public 'password' => string 'bcrypt password super secr3t br0' (length=60)
      public 'active' => string '1' (length=1)
      public 'last_ip' => string '' (length=0)
Do you keep your right hand on hjkl?
How would I echo what the persons username is? I've tried echo $results[0]->$username;
Close! $results[0]->username
nah I just type with 3 or 4 fingers on each hand :D
22:43
@Jasper coffeescript looks like a non-English speaker speaking English
4
@DaveRandom Agreed, that's a really good comparison
@JoeFrambach Thanks!
yeah , and the speakers native language is actually Ruby Rails
@Ocramius that has nothing to do with objects
objects do not directly correspond to types
@tereško These days is there any difference?
22:46
yes, because Rails is not the only framework in Ruby, ad a lot of people have been trying to get away from Rails
@igorw yes, figured that... by currying you basically create a new static "instance" if you can say that
"Approximated objects"
s/instance/verb
I was being rhetorical :P I realize they aren't the same but it is hard to find such proof on the intertubes
how to parse my url? sorry — Federal09 24 secs ago
:|
22:48
@cspray yes, i understood that you were not just flaming, and two years ago you would have been correct
/me should stop discussing such kind of abstractions after 4 red bull cans and 32 sleepless hours
hmm ... i seem to have missed to time-window when all the brainy people where online .. oh well, now only few left
@tereško you're a zombie?
naah
i'm looking into ways to implement an XHR wrapper in javascript
@Ocramius new static instance? :D
22:51
i was just wondering if anyone has seen a good API for that kind of thing
user895378
@Ocramius I tend to agree with you on this:
@igorw forget about everything I said please :)
user895378
> aware of that, but that doesn't really work in PHP, does it? :| It's kinda manual...
user895378
I appreciate functional concepts as much as the next guy, but it always feels a little bit forced in PHP.
@rdlowrey I honestly don't see a difference between:
def someAction = someFunc(T a, T operation T T)
and
class SomeAction (tOperation o)
    public T (T a)
and then instantiating that SomeObject into a variable called someAction
22:54
> The pseudocode would look something like this:
user895378
@Ocramius Maybe I'm just not cool/enlightened enough to appreciate the difference, but I basically agree with you.
1. Create a StreamReader and StreamWriter (make sure you are not trying to read from
   and write to the same file
@rdlowrey the difference is that one doesn't internally allow state at all, so heh, it's basically just a class with everything final to me
Damnit I had that awk solution typed up, beat to the punch
@JoeFrambach hehe
22:56
@igorw would be nice to have some feedback on that one
user895378
@Ocramius The other issue I have with going hardcore into functional programming in PHP is that stacking all those userland function calls is not the most performant thing in the world. I'm mostly only concerned with being able to handle huge numbers of users and functional methodologies mean superfluous invocations all over the place.
user895378
In a functional language, sure, but for PHP you're going to assassinate your hardware budget adding capacity if you write everything that way.
@rdlowrey I don't have problems in doing functional outside PHP. PHP isn't the absolute solution to all first world problems
actually did a lot of scala this year (mainly excercises)
assuming we're working in a language that supports ideally both methodologies PERFECTLY, I don't see the advantage of one over the other
user895378
I know the performance argument is a slippery slope because you can potentially map/reduce it down to "you shouldn't use OOP, it's too slow" -> "you shouldn't use PHP, it's too slow" -> "you should only write code in assembly, it's webscale"
I actually see one advantage in the OOP style approach which is how IoC could be handled at runtime
22:59
@Ocramius operation T T ... seriously?
@igorw whatever you want there
call it Hospitalization wildSex Male Female
you didn't get my joke :D try again
@rdlowrey when someone uses the "you shouldn't use OOP, it's too slow" argument, it is the end of discussion. You cannot talk to those people, because they will never get the point.
@igorw I'm unable to compute. Brain is more red bull than neurons atm
actually shaking O_o
here is a hint: unless "tomorrow" you can sleep till afternoon and the project need only ~2 more hours of work, there is no point in all-nighter
if you are running on pure caffeine. your productivity objectively is something like 1/3
23:03
@tereško I'm just doing it because I couldn't sleep last night :)
and now can't sleep for other reasons :P
@tereško Exactly what I'm doing tonight. Work til morning, sleep afternoon :p
Fun fact: once you have been awake for ~18 hrs, your concentration levels are about the same as someone who is at around the UK drink-drive limit
bullshit
in reality it depends on what have you been doing for the past week or so
Scientifically proven. Presumably by some study commissioned by a UK road safety lobby.
if you are well rested, you can work for 24h
the productivity will drop off because you well get progressively easier to distract
23:06
> I'm a Hacker and Cracker and Programmer ... ?
-11
Q: How to make a antivirus for (Windows) family

Abbas Naghdi Hi I want to make a antivirus for the Windows family ... ! How to do this? What programming language should I learn? What skills should I have? What should I do? Please help me ...

Meh, I suggest we all take a load of shrooms and have a codeathon one weekend
No wonder they got bitten by stuxnet that hard
@PeeHaa ehh ... when i was at that age, i wanted to write viruses
@DaveRandom i have only weed
@tereško It's all averages anyway, there's a lot of differences between different people as well. This room probably has an average quite a bit higher than the world
will that do ?
23:07
Which is way more useful than a virusscanner
@tereško want.
user895378
So ... floating an idea to some of the other websocket aficionados. Websocket equivalent to php -a ... a live PHP codepad. Anyone interested? How crippled would the functionality need to be for safety?
@DaveRandom I don''t think I need to do shrooms again in the near future
@PeeHaa We don't all live in a free country.
I currently possess no illicit substances whatsoever :-(
internally or externally
@rdlowrey "Bad things will happen" is what holds me back
23:09
let's all meet somewhere in italy in the countryside :D
user895378
@PeeHaa Kind of what I was thinking too. So many things can go wrong.
user895378
array_map(function() { rm -rf all of the things }, [array]);
@rdlowrey siberia , wood and some shrooms
@tereško I dunno, the first ~2 years of my coding career were spent constantly baked, and I wrote some shocking code. So I guess "yes".
survivors meet up in Moscow for afterparty
23:10
@tereško Lmao, I'm with you
I think im doing something wrong
$_POST['email'] = "";
$_POST['password'] = "";
$username = $_POST['email'];
$password = md5($_POST['password']);
<p>
<label for="login-username">E-mail</label>
<input type="text" name="email" class="round full-width-input" autofocus />
</p>

<p>
<label for="login-password">Wachtwoord</label>
<input type="password" name="password" class="round full-width-input" />
</p>
several "things", actually
@rdlowrey Viper7 gives you pretty much any functionality you can think of apart from the obvious. Maybe you could try borrowing some bits of that jail env?
(I just want @rdlowrey to learn the pain of trying to make Viper7's codepad work)
23:12
hehehehhehe
user895378
I don't want the pain. Not worth it. Too many pitfalls.
for some reason it only passes password .. @tereško thanks a bunch
user895378
But it would be cool with ws:// to emulate readlines support.
Why are you setting $_POST['email'] = ""; ?
...blanking the input
Goodnight everybody
23:15
@Charles at this time of the night?
I'm also going to prepare for another wicked weekend. night all
@hakre Hey, you never know.
G'night @PeeHaa!
@hakre once more thanks for that Oopfye answer hakre helped me alot!
Anyone got something to put on in the background whilst working? Some kind of video/audio...
@Tredged you are welcome.
23:22
Any aviation or aerospace enthusiasts out there that can help get the site to beta? area51.stackexchange.com/proposals/42572/aviation-and-aerospace
user895378
@PeeHaa later
user895378
@DannyBeckett Incredibox is fun
@rdlowrey Funny :p
Hey @rdlowrey sorry for breaking it again :) btw have you seen r.je/dice.html ?
user895378
@Danack No problem; very bug is an opportunity for improvement :) No, I haven't. Any useful features?
23:30
No - very similar, but then gets quite complex with inherited rules for sharing class instances.
and then xml happens.
user895378
I personally don't see a ton of value in that kind of complexity. IoC is a simple concept. Once things get complex you've abandoned the inherent value of the concept. I essentially only want functionality that lets me wire things up one time and write ultra-testable code because of it.
user895378
* and I want to be able to write string-based configuration files for my application.
@rdlowrey XML is just a serialization of multiple IoC injections happening tbh...
it could be one giant factory
@rdlowrey Does CGI specify anything about a pretend header called Status: ?
@DaveRandom yes
23:34
@rdlowrey Yep, and it's much better (imo) to build up complexity via simple methods (and letting the class hold the complexity) rather than building trees outside of the class and then passing them in.
I've seen it used before and I always assumed it was someone not understanding what they were doing but I just came across it here
user895378
@DaveRandom I don't know, but I personally am not crazy about CGI. Not very useful IMO for today's applications and it could do a better job abstracting HTTP.
just read the spec, it's in there
It's too late for that, I'm almost asleep as it is, I have no chance of usefully comprehending it at the moment
user895378
@Danack Agreed. Listing out line after line of dependencies is not an improvement over manual bootstrapping IMO. If it's not simple, it's probably not a good solution.
23:37
@DaveRandom I'd forgotten about Status...
@DaveRandom the reason it exists is because CGI has no status line
@rdlowrey at the end of the day, IoC just means taking an argument.
user895378
@igorw Well said.
can anyone suggest a good sci-fi book ?
user895378
Now, let's figure out a way to pass arguments with a mountain of XML!
user895378
23:39
Do people still use CGI? I was not aware of this.
@rdlowrey Question context for the header discussion.
@rdlowrey can't take credit for it, finding source now. :)
@tereško Quantum thief is good.
Anonymous
@tereško A.I.
@tereško The Dark Side of the Sun was one of Terry Pratchett's earlier works (pre-discworld). It's little rough around the edges, but rather interesting
23:43
@rdlowrey source :)
It's not at all hard science fiction, so if you'd rather have a story about a space station that could actually work without "magic science" (e.g. gravity generators, human-ish robots, etc) it's not your story
user895378
@igorw thanks!
but it is the best description of IoC I have hard to date
Anonymous
@Jasper I have heard, a lot about ' The dark side of the Moon ', but never! the Sun..
Anonymous
I am thinking, you made an errata there
23:47
Just for reference - php-fpm also uses the 'Status:' header lxr.php.net/xref/PHP_5_4/sapi/fpm/fpm/fpm_main.c#432
@Simon_eQ I made an errata?
Anonymous
The Dark Side of the Sun is a 1988 American - Yugoslavian drama film starring a young Brad Pitt about a young man in search for a cure for a dreaded skin disease. It is directed by Božidar Nikolić. The footage for the film was shot in 1988 but due to the outbreak of Croatian War of Independence (which started in 1991) it had to be abandoned and much footage was lost. The missing pieces were eventually recovered and it was released officially in 1997, by which time Brad Pitt was a major star. The film was later featured in an episode of Cinema Insomnia. Plot Rick is a young American ...
Anonymous
Oh, got it.
The Dark Side of the Sun is a science fiction novel by Terry Pratchett, first published in 1976. It is similar to the work of Isaac Asimov. According to Don D'Ammassa, both this and Pratchett's 1981 sci-fi novel Strata are spoofing parts of Larry Niven's Ringworld. The holiday of Hogswatch, which appears in the Discworld books, is celebrated by the characters in The Dark Side of the Sun. Overview The story is set in a portion of the galaxy populated by fifty-two different sentient species. All of these species, humanity among them, have evolved in the last five million years, and all ...
Anonymous
oxymoron though
23:49
science fiction
@DaveRandom wow, thanks! How do you code such things so fast?
@igorw Rubbish. Star Wars is a documentary.
Anonymous
Which sucks also. I have only seen two parts .. so far
@DaveRandom I was just quoting wikipedia on dark side of the sun. it's wikipedia. must be true.
@crypticツ I spent most of today at work on hold to the phone company, I had a lot of spare time
23:52
@DaveRandom now since it's all fancy I'm scared to add my ajax refresh =oP
oh nvm
user895378
Ajax?!?!?! WEBSOCKETS.
it's already there
user895378
Are we not men? We are Devo!
I got a couple of strict violation, anything to worry about?

Line 13, column 37: Strict violation.
window.open(ev.target.href, this.linkTarget);
Line 26, column 9: Strict violation.
this.init();
Line 29, column 9: Strict violation.
this.refreshTimer = setTimeout(refreshTable.bind(this), this.autoRefreshInterval);
Line 29, column 58: Strict violation.
this.refreshTimer = setTimeout(refreshTable.bind(this), this.autoRefreshInterval);
Line 29, column 65: Strict violation.
this.refreshTimer = setTimeout(refreshTable.bind(this), this.autoRefreshInterval);
@crypticツ That comment block basically just needs replacing with some code that replaces all the <tr>s in the <tbody> and then call those last two lines when it's done
@crypticツ No, that's not a problem, it's just that most validators fail to account for the fact that .bind() exists
23:54
@rdlowrey websockets, the world's most overhyped, overrated and misunderstood messaging protocol.
It assumes that because you are in a function (as opposed to a method) you can't have a sensible this context
user895378
@igorw I don't know about overrated ... I think they're the bees knees :)
It's something that pure static analysis can't really detect
ping @MadaraUchiha
He'll be asleep by now I imagine, which is where I should be as well
In fact, that's where I'm going
Nite @all
23:58
@rdlowrey it's based on HTTP and is designed to work around HTTP-related issues, it's a hack.
don't get me wrong. it seems like they did a good job at it, and without the BS it might even be a decent actual messaging/framing protocol.

« first day (1006 days earlier)      last day (4168 days later) »