« first day (810 days earlier)      last day (4152 days later) » 

10:00 PM
@MadaraUchiha The star can technically be after the input. I see no reason why it cannot. -> jsfiddle.net/maniator/ezGnB/3
 
@MadaraUchiha It's the conventional way of saying that something is required
 
@Neal Because it's more visible on the label, and not on the input.
 
@MadaraUchiha ehhh I guess it all depends on where u look.
 
@Alexander I've got it, I see what you mean... Thanks!
 
np
 
10:03 PM
@NikiC So you argue it should be included server-side, as part of the markup generation?
 
@MadaraUchiha What should? The star?
I don't think so. The required class should be fine.
 
@Neal Yeah
 
Why add extra things you don't need?
That way you can add the star by adding the required class with javascript
instead of injecting it later.
 
@ircmaxell I've also issued PR for readme, but for test section on Windows, hope it merges ok
 
@MadaraUchiha Yes, I think so
 
10:05 PM
@NikiC How do you mark it up?
Place it in a span?
 
Yay my laptop has decided to acknowledge that it does have a battery in it once again
Evening all
 
@MadaraUchiha But apart from that, I assume you ale already marking the <input> as required and this is only additional?
 
@NikiC Yes, it's merely to serve as a visual key
 
@CheJug Yes
 
@dev-null-dweller I just pulled it in!
 
10:10 PM
@DaveRandom Evening
 
@ircmaxell, @dev-null-dweller, you pulled in another typo though
"... Tu run..."
 
2
A: PHP - Multidimensional array to CSV

NealThis is some pseudocode, but it is a start: $strings = []; $flattenArray = function($arr, $level) use (&$strings, &$flattenArray) { foreach($arr as $key=>$value){ $s = &$strings[$level]; if(!isset($s)) { $s = array(); } $s[] = $key; if(is_array...

^this answer made my brain melt...
 
@Alexander It's French. Gives it a real sense of style don't you think? :-P
 
@DaveRandom, nice one xD
 
@Neal Sorry to tell you this but unfortunately it may have been in vain. He's gone off to try and do it in Mongo. It wasn't webscale enough.
 
10:15 PM
@Alexander Is it possible to merge from origin using github only?
 
Seriously though, for what he is actually doing NoSQL is probably the right answer.
Manipulating some horrible self-concocted string serialisations in the database is definitely not the right answer, I know that much.
 
@DaveRandom What wasn't webscale?
 
@Neal I think you don't know what webscale means ;)
 
@NikiC No... I guess I don't :-P
 
Translated to English it usually means "I have no idea what the heck I'm doing, that's why I use node.js and MongoDB"
 
10:19 PM
lol someone actually bought a .com?
 
It seems. lol
@NikiC I just found that link lol
 
Man, I haven't seen that one in forever.
 
> If you were stupid enough to totally ignore durability just to get benchmarks, I suggest you pipe your data to /dev/null. It will be very fast.
2
Makes me smile every time
 
@Alexander eih, I'm not so worried about stuff like that... We can fix it, but it's not high priority
 
@DaveRandom does /dev/null support sharding?
 
10:22 PM
:-P
 
@igorw Yes, but not in a cross-platform way. You have to call it differently on Windows. Stupid Windows, always doing it differently.
 
@ircmaxell, np, i wasn't pushing you to fix it though
@dev-null-dweller, no idea, i always use the command line
 
So, PHPPHP runs the core test suite only about 4 times slower than core (31 seconds vs 135 seconds)... That's significantly faster than I would have thought...
 
@ircmaxell Have you tried it in conjunction with HipHop yet?
 
booo @hakre ur only tied with me for hats cuz I forgot abt the NYE hat :-P
 
10:28 PM
@DaveRandom No
 
@Neal wooo :) And I didn't run for my 15 / 30 questions ^^ :) Who cares?
 
@ircmaxell Are you planning to? I would be very interested to see the results of that.
 
But nice, #2 as I've seen it gg
 
Any automated web tests suggestions, etc. Don't know anything about the matter... Keyword Selenium and stuff...
 
@ircmaxell that can't be
 
10:31 PM
@hakre :-P
I need two more (up)votes on one of my questions to get a hat (for the 15 upvotes)
 
@ircmaxell At least I always get the feeling that core tests run pretty quickly and the phpphp tests run like forever ^^
 
> You will also need to ensure that memory_limit is larger than post_max_size.
 
0
Q: Is it possible to have expressjs run with the net module?

NealI want to be able to use TCP sockets and express on one port, but I cannot seem to be able to set them up correctly. I tried doing: net = require('net'); express = require('express'); app = express(); server = net.createServer(app); //same as I used to do with http.createServer(app) Then I hi...

@DaveRandom ^
 
Is that ^^ actually true?
 
@DaveRandom where is this from?
 
10:32 PM
@NikiC I just ran them myself... I was shocked
@NikiC there are a few "slow" tests in core. And it runs faster...
 
@Neal what you're trying to do will not work. your net server needs to run on a separate port than the expressjs one
 
@ircmaxell tests/lang runs in 5 seconds for me (on a slow debug build)
 
@Neal, is that a real question or only for the sake of getting a hat?
 
5.3?
 
@igorw ... that is really annoying... why is it that express can run on the same port as socket.io then?
 
10:33 PM
Ahhhh, xdebug!!!
 
@Neal An old answer of mine (very old). I just got an upvote on it, went to do a bit of QC and it's not the best answer in general. But everything does seem factually correct, but I'm not 100% sure about that statement, especially given that the question is about handling file uploads.
 
@Alexander real question. No way i am getting the question hat lol
 
@Neal I still do not see why on earth you need ExpressJS for simple IPC message passing.
 
idk how the heck he had over 30 Questions in 2 weeks:
Bohemian, Melbourne, Australia
63.6k 5 36 90
 
hrm, disabling xdebug only saved 3 seconds...
 
10:35 PM
@DaveRandom there are other parts to my app where i need express. also socket.io does not seem to work with net module...
 
I wonder if Suhosin is blowing it up
 
@ircmaxell are you sure its really really really disabled?
 
@Neal it's a diagram of the ISO/OSI model, which shows the different protocol layers. protocols are stacked on each other.
 
@NikiC removed it from ini
 
10:36 PM
@DaveRandom yes.
 
@ircmaxell And from the right ini?
 
$ php -v
PHP 5.3.15 with Suhosin-Patch (cli) (built: Jul 31 2012 14:49:18)
Copyright (c) 1997-2012 The PHP Group
Zend Engine v2.3.0, Copyright (c) 1998-2012 Zend Technologies
 
okay, now I believe you
 
I updated my question.
 
;-)
I know Suhosin slows some stuff down with its canary checks...
perhaps that's what's happening
 
10:37 PM
@Neal You really have a hard time with the hats. Take it easy, it's for fun.
 
then again, it could just be that Mac's shell sucks that bad at opening new processes...
 
@hakre :-P There is no fun on the Stack Exchange
 
I doubt anyone with 20+ just did it for fun
 
@hakre Really? It doesn't dump uploaded files to disk on the fly? That kind of sucks.
 
Jeff Atwood on January 04, 2010

I noticed that the Stack Overflow question Strangest language feature has been closed and reopened several times now. The text of the question is brief:

What is in your opinion the most surprising, weird, strange or really “WTF” language feature you have encountered?

I agree this is not exactly an ideal question for Stack Overflow, per the FAQ:

Avoid asking questions that are subjective, argumentative, or require extended discussion. This is not a discussion board, this is a place for questions that can be answered! …

 
10:38 PM
Or, maybe I should say 25+?
 
@ircmaxell "Mac [...] sucks" Yeah, that sounds about right :P
 
@Alexander (30+) :-P
 
@Neal or actually, this one is a bit better: bit.kuas.edu.tw/~csshieh/teach/np/tcpip/dod.gif TCP is at the transport layer, http is at the application layer
 
@Neal Yes, right, fine - but why are you hung up on getting them to work with net? Why can't you create an HTTP server and a TCP server? Hint: there is no reason.
 
(not asking for votes either way, but if I did (in theory) have votes here, I would have another hat)
 
10:39 PM
Ok, I have a 5.3 version without suhosin as well, and it's still just as slow (without xdebug): 32 seconds...
 
@DaveRandom ehhhh. true. but then how do I get the websocket part to work?
 
@DaveRandom I think that changed some time lately probably, you're right.
 
i dont want to use so many ports for no reason...
 
/Applications/MAMP/bin/php/php5.3.6/bin/php -v
PHP 5.3.6 (cli) (built: Sep 15 2011 11:22:25)
Copyright (c) 1997-2011 The PHP Group
Zend Engine v2.3.0, Copyright (c) 1998-2011 Zend Technologies
    with XCache v1.3.1, Copyright (c) 2005-2010, by mOo
 
10:40 PM
Could anyone please tell me why the hell the text-area won't respect my margin on the left?
 
so it must be OSX...
 
Even after explicitly setting it with Chrome Dev Tools to 50px it still does nothing.
 
@Neal Exactly like you always did. I'm not suggesting you modify any of your code except the IPC part.
 
@DaveRandom But i need that part to get socket.io to work
why do we always have this covo at the end of the work day? lol
 
@MadaraUchiha I don't know what your reason is, for me it's clearly outlined:
 
10:41 PM
@Neal at the TCP layer you bind to a port. but TCP is just a stream of data. your HTTP server has a TCP layer below it. you can run socket.io with an http server, because both are using HTTP.
 
@Neal You need which part?
 
 
I'm going to have to try a minimal build on OSX to test this out...
 
@DaveRandom the http server.
cuz I want to share the port
currently i have express and socket.io using the same port
 
@hakre -_-
 
10:42 PM
@PeeHaa ?
 
@Neal OK, firstly, why would that matter for the IPC, you don't even need ports open through the firewall, the traffic never leaves the loopback, and secondly if you use unix sockets ports are irrelevant.
 
Another, answer thrown to the thrash. I shall pay more attention where I answer then. I think for a reason I got the "Unsung Hero" badge
This sucks
xD
 
@DaveRandom ok... how do I use unix sockets with php to node?
wth:
0
Q: PHP PDO Prepared Statement Semicolon

J LI've got a question that I've not been able to answer myself. I recently had an issue that was similar to the user's at Why does PDO::lastInsertId return 0?. Like that user, my problem was solved by removing a semicolon from the end of a PDO prepared statement. I'm wondering if someone can expla...

 
Seriously, forget about socket.io, forget about express - all I am suggesting you do is take the bits of code where you communicate with the local PHP process and add a local socket for the communication instead of using HTTP.
 
@DaveRandom ok. will do. but all I am asking is how.
How do I do it?
I know knothing about sockets.
 
10:45 PM
@Neal I guess you're not listening to me, so I will stop trying to explain it to you.
 
user1125394
that's little socks
2
 
Anyone?
 
@igorw hmmm? no I understand http has a tcp layer.
@DaveRandom is saying not to use it at all and use raw sockets.
idk how to....
 
So you do a net.createServer({path: '/path/to/socket'}, function(c) { /* connect handler */ }) in node
 
10:46 PM
@DaveRandom ahhh I did not know I could do that. that sounds cool.
How do I connect to it in PHP?
 
and for the sake of simplicity in php you do $fp = fsockopen('unix:///path/to/socket');
 
@DaveRandom this is in windows.
 
@DaveRandom @NikiC ? :P
 
@MadaraUchiha foo?
 
user1125394
var net=require('net');
 
10:48 PM
7 mins ago, by Madara Uchiha
http://codepen.io/RikudoSennin/pen/GjbIo
 
@Neal you are trying to have a "tcp app" and an "http app" on the same port. that doesn't make any sense, since those are different layers.
 
@NikiC Why the hell won't it respect margin-left on the textarea?
 
@Neal OK, so you use a TCP socket, in which case your node settings object is { localAddress: '127.0.0.1', port: 4567 }
 
@igorw ahhh yes. but isnt there a tcp layer to http that i could tap into instead of using net as a seperate fn?
 
@MadaraUchiha omfgrtl
 
10:48 PM
@DaveRandom ok. So I do have to explicitly set the port. Which them PHP has to know.
 
@NikiC Hebrew, I know.
 
and in PHP it's fsockopen('127.0.0.1', 4567);
@Neal And that is a problem because...?
 
@DaveRandom it isnt. just another line to a config file ^_^
 
NB: use stream_socket_client() in production, not fsockopen(). That is just the simplest way of doing it, not the best.
IMHO
 
@DaveRandom what is the difference?
 
10:50 PM
@NikiC same issue on LTR though.
 
@MadaraUchiha Which margin-left? I don't see no margin-left
ah, now I see it, inline CSS
 
@NikiC The general margin rule should be applied on all sides, but it doesn't work on the left side
 
Anyways I will get back to this tomorrow.
 
@Neal stream_* functions in general are more configurable and controllable.
 
For now it is time to head on home
 
10:51 PM
the inline CSS is a desperate attempt of my to make it work, but it didn't.
 
Have a good night everyone!
 
@Neal if you really wanted to you could stream a protocol over HTTP, but that's what @DaveRandom is saying - it does not really make sense to use that. Instead use an application layer protocol on top of TCP, running on a separate port.
'night
 
It shouldn't appear in the real code.
 
@MadaraUchiha I think you're confusing left/right due to rtl ;)
 
@NikiC I am not.
 
10:52 PM
Replace margin-left with margin-right
 
I have a margin: 2px set
 
@MadaraUchiha Okay, do a margin: 10px then ;)
 
You'll see that the margin is actually there
At least for me it's there
 
@MadaraUchiha Y U PING ME WIT YO STOOPID PRBLM???
:-P
(I kinda suck at CSS, I am not the best person to ask)
 
10:53 PM
or are you talking about some particular browser?
I didn't read the chat history, you know ^^
 
This behavior is consistent across Chrome/FF
Didn't check IE.
 
@MadaraUchiha Which behavior?
I'm confused
 
@NikiC "far" margin is not respected
 
that it overflows the red box?
 
I've set the margin to 10px
Why won't it take 10px off the end?
 
10:56 PM
sorry, could you be a bit more clear?
 
It should be on the same line as the last input
 
It is on the same line as the last input
screenshot pls
 
@NikiC I mean on the "far" end
not on the "near" end.
 
now we're getting somewhere
 
I'm pretty certain margin doesn't work like that
 
10:57 PM
so you put it to 100% width and added margin to it
So what else do you expect?
 
@NikiC I'd expect it to have 10px margin on each side, and take the remaining space?
 
nope
 
No because margin doesn't contribute to width
(right?)
 
How can I achieve that effect?
Keep in mind it should be aligned with the inputs above
 
10:59 PM
Put them in a container with 10px horizontal padding and just give it width: 100%
 
@DaveRandom Ah, but now we're adding nonsemantic markup
 
Then I don't know. Like I say, not my strong point.
 
@NikiC what do you think?
 
I'm sure @tereško will have some useful (if sarcastic) comments on the matter.
 
user1125394
webscale css
 
11:04 PM
ow wait
I just noticed you use border-box
in which case it should about like that
But you use the generic property that browsers don't support
 
Chrome supports it
 
I tried adding a -moz-border-box and in that case the situation improves
 
-webkit-border-box?
 
@DaveRandom No, the unprefixed version.
@NikiC Tried adding both though, no luck.
I get no difference.
 
I have often wished that CSS let you do negative px values and interpret it as 100% - 20px
 
11:07 PM
for me it stops overflowing then
 
I'm sure some people will shoot me for that
 
@DaveRandom it actually does allow negative pixels in many situations. but not this particular one
you can often use margin-left: -10px as a means of relatively positioning something ;)
 
user1125394
@DaveRandom same here
 
@DaveRandom CSS allows you to do something like width: calc(100% - 30px) though ;)
 
user1125394
should be called eval(100% - 30px)
 
11:08 PM
@NikiC Sweet. I really wish people would pull their collective finger out re CSS3
 
@NikiC Really? In FireFox?
 
@MadaraUchiha yeah. it won't overflow (but still won't have a margin on the right ^^)
 
@NikiC FFS I think I'll just go with a container
 
hey guys i need a little advice on choosing the right host.see ive developped my website using php and mysql.recently ive seen many ads about winhost but it seems to support primarily asp.net.is it a good choice for me to go host my site there?
 
It'll die on mobile though
 
11:11 PM
@MadaraUchiha Any case, my CSS-foo isn't really strong, so I can't really help you
There probably is an elegant solution to this
 
@LilzVotcaLove Asking which shared host to pick is like asking which disease you would prefer. Go with the third cheapest one that offers the features you need.
 
ok thanks for the advice
 
@MadaraUchiha Also, what I said about box-sizing is BS. The box still doens'nt include the margin. It only improves the situation becaus border and padding are handled correctly
 
@NikiC Yeah, I know
 
@LilzVotcaLove I know it's not that helpful but seriously, it's not likely to result in productive debate. I say find the cheapest, then find the two next cheapest and go with the last one - because the very cheapest things tend to be crap.
 
user1125394
11:13 PM
localhost.com why is that domain not available?
 
@DaveRandom yeah i know what u mean ill compare ad see for myself the average one
 
@cyril It's registered, the root A doesn't seem to be running a web server though.
 
user1125394
hmm k
 
user1125394
w3c acquired it
 
@LeviMorrison nvm I already answered myself :)
BTW: IT'S FRIDAY!
 
11:22 PM
@PeeHaa :)
 
@PeeHaa UTC or gtfo :-P
 
:D
 
0
Q: How can I send datas from web page to serial port of visitor's computer?

İnsanlardan Bir İnsanIs sending data from PHP web page to one of the serial ports of visitor's computer possible or not? If it is yes, how? If it is not, basicly, I want to write a client for a web backend that retrieves the data from the web and then writes the retrieved data to a serial port.

-________-
 
Can i haz datas
btw ubuntu.com/devices/phone kinda what to try it out just for shits and giggles
 
11:33 PM
@PeeHaa Uncle @Gordon was saying exactly the same thing earlier today.
I have a kind of morbid interest, but it's still fundamentally Ubuntu.
 
We are both part of the hive
 
And therefore it's a bit no.
 
@DaveRandom I know I know... still
 
Yeh it's an interesting concept. Just have a wait for a good distro to copy it now.
 
:)
 
11:34 PM
Is this an unfixable problem? How do i do this the elegant fashion? Thanks: much appreciated.
 
Correct me if I'm wrong but as long as I know, this should work, right?
0
A: jquery .serialize() select multiple tag name for array is being encoded

AlexanderI think you are just a bit confused since you may be unfamiliar with URL escaping. But, this works perfectly in PHP. For instance, print_r($_GET) will output: Array ( [city] => Array ( [0] => METROPLOIS [1] => GOTHAM ) ) Being city interpr...

 
@Alexander Yes it should and does.
 
what would b your advice, any documentation, any help and advice will be apreciated, i always have this kind of problem, how can i fix it?
 
I need to say I never had to do that with query parameters though
 
@webarto Y MY CODEZ NO MAEK SENSE???
 
11:37 PM
@DaveRandom hopefully that's enough info for you Gurus out there. if not let me know.
 
Just use Java, because the client would be vulnerable either way :) — PeeHaa 1 min ago
trolololol
 
Trollus Maximus Peehaanus
 
@PeeHaa can you provide any references? — İnsanlardan Bir İnsan 28 secs ago
:P
 
can someone help me with this?Some idea,or link with example will be great.Tnx
 
thanks in advantage for your help
 

« first day (810 days earlier)      last day (4152 days later) »