« first day (1870 days earlier)      last day (3072 days later) » 

1:01 PM
@MadaraUchiha I can see how they pitched it to publishers. We think we have found a decent way to fuck over consumers again. Whenever somebody asks we are doing it for the children a better experience of said consumer
 
@PeeHaa This is something I really find astounding
"Our server-side code is sofa king slow, that it affects our loading times very negatively, what do we do? Let's generate static pages and serve those instead of fixing our performance problems!"
 
@Abe recursion definitely is nice… but after all the specification of the Generic type should be optional after all.
 
Abe
not understanding. optional how?
do you mean it should be proposed in a second moment?
 
@Abe I think she means something like Java7's diamond?
 
@PeeHaa AMPProject website is blazing fast.
 
Abe
1:10 PM
she? wat i'm completely lost now, isn't @bwoebi Bob?
 
Bob is a lady
 
lol
 
Bwoebi is a swag name.
 
Abe
lol.
 
@Abe well, you should still be able to require a class typehint à la Sequence without generics hint…
 
1:12 PM
@HassanAlthaf It's not about performance. It's about advertisements
 
Is anyone else having problems with gpg signing git commits?
 
@PeeHaa Oh... I thought it's about performance. I just went over it very fast.
 
Abe
@bwoebi yes. if Sequence is Sequence<T is Baz> writing just "Sequence" will imply Sequence<Baz>
 
Time to get rid of windows on my laptop.
Brb
 
Performance is what they use to sell it to peasants
 
1:16 PM
Back.
 
Abe
@bwoebi that is not common in other languages though. perhaps for a reason?
 
RIP Windows.
It got me 40 GB of space freed. ;)
 
huh? WTF is this answer and why does it have an upvote? stackoverflow.com/q/28655866/508666
 
@HassanAlthaf Do you use Mac OS ?
 
1:23 PM
@MadaraUchiha I've got work for you
 
good
 
This user stackoverflow.com/a/33983269/508666 is spamming and sock puppeting
Handle it please :)
 
@PeeHaa It's called boosting rep.
 
Ban it please
If anything the account is hijacked
Tnx
 
LOL HE HAS THE SAME ANSWER EVERYWHERE.
AND WITH FAKE ANSWERS HE HAS ALSO GOT ONE OF IT TICKED
 
1:25 PM
It's handled now :-)
 
He's having maxxa fun.
lol
 
nvm you were already on it :P
 
@PeeHaa No I didn't.
 
@MadaraUchiha I bet you pray everyday for some Naruto magic trick to automate your work? :P
 
@HassanAlthaf No, mod-work is specifically not automatable.
 
1:27 PM
@MadaraUchiha Uggghh that mod interface sucks. You should just be able to have a list with checkboxes instead
 
That's the point, everything else is automated for us through the community.
@PeeHaa What are you referring to?
 
@MadaraUchiha The fact that you have to delete the answers one by one
 
@PeeHaa Ah, well, it kindof makes sense
 
@PeeHaa If his answer is not proper in your opinion, you can give him -1 downvote or close his answer... Not introduce him to moderator and tell him ban it. I'm glad you are not a moderator.
 
It's expected that you read the answer before you delete it.
 
1:28 PM
@Shafizadeh STFU
 
@PeeHaa Oi
@Shafizadeh "Just" bad answers deserve a downvote or a vote to delete
 
@Shafizadeh seriously... you're a bit new around here to go giving advice on how to act...
 
Copy pasting the same bad answer to 6 posts requires moderator attention.
 
@MadaraUchiha Well at least some thing to have a list with expandable/collapsible content a bit like in review queue
However I see what you mean. That also sucks in review queue
 
@Shafizadeh It was not a bad answer. It is "spam." He was spamming the same answer.
 
1:29 PM
@PeeHaa Write a userscript/extension :D
 
ok alright
 
I suspect that person to be @Shafizadeh ;]
 
:-)
 
@MadaraUchiha I want slip something in that on even days deletes the entire queue :P
 
1:30 PM
TIME TO CODE!
Wtf, is Node Asynchronous?
 
is shafizadeh the same as sajad? you changed your name?
 
@HassanAlthaf Why yes, yes it is.
 
@FélixGagnon-Grenier Yes he is. Because there was another Sajad.
@MadaraUchiha I thought JS was synchronous.
 
@FélixGagnon-Grenier yes
 
1:32 PM
@HassanAlthaf JS is asynchronous via event loop
That's true for both Browser and Node.
 
Really? I heard from a lecture that although some JS features might have some async capabilities, what it does is act like asynchronous but by nature it is synchronous.
 
/me takes 5 minutes to edit a question...
> A question with that title already exists; please be more specific.
Well fuck you too.
 
#shotsfired
 
That message is so annoying when you have tried to improve a question
 
1:34 PM
@PeeHaa Perhaps SO prefers questions to remain nooby, and end up being close voted and as a result, closed. ;P
 
I edited it because it has 4 answers so i thought I could make sure at least the spelling, punctuation and capitalization is at least somewhat ok.
*5 answers now
 
@iroegbu No, no, you've got to pronounce as 'Bob'.
 
I need to do some shopping, but the only thing that is open around here is a wholesale market :( I always end up with food to survive a 100 year war when I go shopping there
 
lol
 
1:40 PM
hey, is that this old movie about that girl which wanted to do theater before girls were allowed to? I didn't remember the canned laughs though @Danack
 
@Abe Nice, but not entirely true either.
If you really need to, you can spawn Workers that execute on different threads.
The API isn't that complex either
 
It's just that for most normal usecases, the event loop is plenty to handle as much as 50k users simultaneously without breaking a sweat.
 
Abe
are workers in node.js like web workers, without nothing usable in them, apart raw javascript
 
> Kate, an attractive young woman, is attempting to comfort her father upon her mother's death – even though her mother is alive and has run off with Kate's uncle, leaving them destitute. He suggests that Kate become a prostitute to solve their money troubles. Kate refuses indignantly and decides to go to London to seek her fortune, over her father's objections
 
1:42 PM
> I always end up with food to survive a 100 year war when I go shopping there
I always end up with food to survive a 100 year
end up with food to survive a 100 year
survive a 100 year
100 year
 
you're overreacting
 
:P
 
@MadaraUchiha That actually doesn't look too insane
 
1:43 PM
@PeeHaa Yeah, it's spawning processes
And they communicate using the normal messages API that JS uses for everything
So it's pretty nice
 
Abe
@PeeHaa and is that a bad thing? bachelor, right?
 
@MadaraUchiha yeah
@Abe True
 
Abe
i always buy enough stuff for armies, or zombie apocalypse, just in case
 
I always go: oh piece box of candy... oh piece box of cookies... oh piece box of candy
 
Abe
lol
 
1:46 PM
@PeeHaa a palatte cleanser idlewords.com/amp_static.html
 
Abe
my car looks like i mounted low ride suspensions when i have groceries in it
 
@Danack TIL it's called "palatte cleanser" in English
 
actually palette - but I couldn't be bothered to correct it.
I'm going to blame chrome for deliberately failing to detect the typo, just because I was mocking Google.
4
 
:D
Somewhat related: I eat ginger because I like it. Not just in between other food :P
Aaaaaaaaand now I want to get sushi
 
Abe
 
2:00 PM
:P
 
Abe
#china
 
Simple without crapware image to disk emulator tool?
Or is dtools still the shit?
 
Abe
@PeeHaa Virtual CloneDrive wins @PeeHaa
 
ty
 
> If a tree falls in the forest, will it make sound?
isn't it pretentious as fuck, that things would happen or not depending on if it passes or not through your ear?
 
2:11 PM
@FélixGagnon-Grenier yes, or rather the pretension comes from defining 'sound' as something that only humans create by perceiving it.
aka, I don't enjoy philosophical arguments like those.
 
installing tamriel unlimited takes forever, I can't stay in place
 
It's not that good a game
Played it with friends, for me anyway it got really boring and repetitive, certainly not 'Skyrim online'
 
Is there a reason why people don't just use enctype='multipart/form-data' for all forms?
 
yeah, I've got mixed comments about it @Jimbo. I'm more of a solo player, even in mmorpgs. I do hope that it's beautiful at least
 
2:24 PM
> Why not use multipart/form-data all the time? For short alphanumeric values (like most web forms), the overhead of adding all of the MIME headers is going to significantly outweigh any savings from more efficient binary encoding.
 
Abe
seems it's just the wasted bytes used for the multipart boundaries
 
yeah.....I think I can afford the maybe 50? bytes per field overhead....
 
yeah but, but, the planet, and, all those bytes!!
 
Abe
lol, yeah it's not much
although i would check how browsers generate them
 
they're just electrons......and did you know that electricity companies have a 100% recycle rate for the electrons they use?
 
Abe
2:27 PM
they probably use some large strings so they don't have to try many
 
lol... that's not exactly how electrons work, methinks
 
It's true! The electricity companies are selling you the same elections over and over again! It's a massive scam!
 
lol
how come batteries get depleted then, if electrons get back to the source?
 
Hey Guys can anyone help me with this stackoverflow.com/questions/33982537/…
 
@FélixGagnon-Grenier I don't know about other types, but the lithium-ion batteries' electrolyte loses its qualities as electrons move through it.
 
@Adil it behaves as you would expect for protected.....I did not know it was different for private.
@Adil But it does make sense....as otherwise it would be weird: 3v4l.org/jaUs7
 
@Danack Shouldn't Foo have it own copy of test ? copy of test inherited from bar?
 
@Adil it does. But it's only callable from inside Foo's scope.
Like so: 3v4l.org/EtJK2
 
Abe
2:59 PM
gist.githubusercontent.com/WesNetmo/48c06c4c51f101cdb83a/raw/… @Andrea @bwoebi i've no idea what i'm doing
 
@Abe weird o.O in that case use an array. As you said, depth is unknown
 
Abe
@Andrea but it won't be type safe :P
 
@Abe it can't be, the depth is unknown
 
Abe
but you would typehint with a variable depth as well @Andrea
function test(Sequence<string|@> $baz){} something like this
where @ means recurse the whole typehint. although that won't be very flexible
 
@Abe this is what Haskell would call an infinite type and is silly
 
Abe
3:11 PM
eheh, why that? it could be useful sometimes :P
surprisingly everything i've tested so far seems to be working :D
 
3:34 PM
I have $foo an stdClass instance and it has the properties b, c, d. If I do $foo->a = 'val'; it adds that property. But if I do a var_dump that property is listed last, same if I typecast to array. Is there an easy way to have it put as the first property so it's in order without converting to array and using array functions? I'm probably missing the obvious solution.
 
Abe
look, i even have fully explaining error messages:
class A
class Z
class B<$T4 is $T3, $T3 is $T2, $T5 is $T4, $T1 is A, $T2 is $T1>
class C<$T1 is Z> extends B<$T1, $T1, $T1, $T1, $T1>
Fatal error: Uncaught Typo\API\InheritanceError: The type 'Z' is not covariant to '$T4 is $T3 is $T2 is $T1 is A'.
@crypticツ just for var_dump'ing in a more readable way you mean?
 
@Abe well I eventually want to loop through the properties, and need them in the correct order.
 
Abe
@crypticツ 3v4l.org/J24Xl
 
O_o
 
Abe
not what you were looking for? :P
 
3:43 PM
@Abe I think typecasting and using ksort() would be a lot simpler =oP
I wish ksort worked on stdClass
 
Abe
you would better use a sorted data structure rather than stdclass, actually... like php.net/manual/en/class.splheap.php
 
do any of you ever do stuff like open leekspin/rebecca when a colleagues walks away from their computer without locking it?
 
@crypticツ simply put: no, not unless you remove all the preceding keys
@crypticツ I suggest creating an actual class
 
4:05 PM
I only have a handful of properties wouldn't a class be overkill over something like this? (object)array_merge(['a' => 'val'], (array)$foo)
 
Abe
no
 
hello guys
 
anybody knows what symbol is it?
 
Question here, If you have a db table which is called "date" and you want to perform a mysqli select in php with that value inside, how can I do that It work? I ask that because "date" is a reserved word
 
Abe
@Shafizadeh ask on yahoo answers
[...]
 
4:19 PM
@Shafizadeh thank you so much :)
 
@ITProGuy you have to use this character: "`"
 
@ITProGuy you quote it with backticks `date`
 
@ITProGuy you are welcome
@Abe ok, I will .. ;-)
 
thanks to both of you
 
Anonymous
Has anyone worked with a dedicated server?
 
4:20 PM
@samayo it's not like you are first day here. Ask what you really need to know.
 
Anonymous
Hmm, I want to run multiple VPSes with each one allocated a unique IP. I think it might be better than using multiple VPSes. But, I don't know since I have yet to try it.
 
@crypticツ How did you wrapped "data" between those quote in here? when I do that, it shows as code-method...
 
@Shafizadeh I escaped it?
\
 
yes, you did
`data`
 
@samayo better for what?
 
4:25 PM
@crypticツ ok tnx :-)
 
@Shafizadeh it looks like some old pictogram
 
@tereško do you mean is something like a old language?
 
@Shafizadeh google.lv/…
 
very well - tnx
 
Anonymous
@tereško financially and management. I need 4 VPSes (2 for websites, 1 for email and 1 for VoIP) , so it would be easier to manage them all within one dedicated server.
 
4:30 PM
I can also tell you that it is NOT: egyptian, babylonian, viking or baltic
nor is it celtic
@samayo if you get a dedicated server to host your VPSs, then you will also be responsible for managing those VPSs
 
Anonymous
it looks like geez
 
Anonymous
@tereško yes, that's implied.
 
have you used VMware or Xen?
 
Anonymous
not yet, but'll have to.
 
Anonymous
thats what I want to know, how diff it is to manage it
 
4:38 PM
well ... if you really fuck up the VPS, you nuke it and make a new one. If you fuck up a dedicated box, you are driving to visit it in person.
 
Anonymous
well, I can always save a snapshot in dropbox .. I mean, that should not be a factor to avoid it entirely. shit can happen anywhere
 
No, I mean, if a dedicated box doesn't come back up, then somebody has to push the ON button
 
@tereško It can be also a Chinese character ^
 
Anonymous
I guess there is a bit hastle for that, since someone needs some sort of authorization to access it. I read about it a long time ago
 
Anonymous
@Shafizadeh or
 
Anonymous
4:46 PM
with double quotes :)
 
@samayo yes, all of those characters are look like the photo which I have sent. but none of them is not exactly the same with that ...
@samayo :D
 
4:58 PM
"you could google it" or "you can google it" ?
 
Anonymous
both
 
@Shafizadeh context would be helpful
 
Anonymous
the first is a bit polite
 
@Andrea ah so the answer is "depends", ok tnx
 
no
 
4:59 PM
Depend if you're taking the piss or not...."Can you google it......or are you too stupid to use google?"
 
@Shafizadeh no, I'm saying that figuring out what that character is would be easier if we saw other related characters
 
@Andrea ah
 
How do I invite someone to chat about a question, before triggering the "you are writing too many comments, why not move it to chat" thingy?
 
@Danack ah
 
Anonymous
@Shafizadeh context and stressing words are also important reddit.com/r/WritingPrompts/comments/3lssc9/…
 
5:01 PM
inorite
 
Abe
is there a common name for unions and intersections? something like boolean types?
 
@Abe sets?
 
Abe
perhaps too generic?
 
What is your context?
 
Abe
union and intersection types, the same levi is working on
 
5:11 PM
I'd still say that a "set type" is the generic name for the two....but keeping them separate would be clearer for everyone who hasn't done sets in maths.
 
@NikiC I think the most sensible way to proceed with the hashdos protection might be to make the existing zend_hash_add_or_update_... function throw a fatal, but add a version with a non-void return that allows graceful handling, which produces an Error instead
 
@Abe because you'd have incomplete type information then, doesn't work for strongly type langs…
 
this way everything's protected and we can patch the places that cause Aerys et al. trouble
 
Abe
i'm creating a Reflection* class for them, and they both use the same class @Danack
@bwoebi will attempt an implementation of them once i finish the base
 
@Abe I'm not sure why would they need their own class? would have though it would just be added stuff to ReflectionParameter....
 
Abe
5:21 PM
@Danack i'm using union and intersections also in generics, like class A<$T1 is Baz|Bar>
but the class i'm making is actually the reflection for named unions and intersections
public ReflectionClass getClass ( void )
public ReflectionType getType ( void ) // awww :(
(from ReflectionParameter) god why...
why not using the same method?
i also have an idea for "implicit derived generic types" that would be especially useful to have variance inverted without asking the type twice
class A<$T1 is Baz><$T2 is Foo<Bar<$T1>>>
new A<Baz>() // notice defining $T2 is not required, it is automatically defined upon $T1 declaration
 
"really hasn't any benefit" or "really doesn't has any benefit"?
 
Abe
*really doesn't have any benefit
if you correct "have", both are good
with possibly a different meaning i don't get :P
 
I got it, tnx
 
"really hasn't any benefit" is not good grammar "really has not any benefit" is wrong, it would be "really has no benefit".
 
Abe
i shouldn't try to give english help :P
 
5:33 PM
Maybe someone knows why freenode#php channel is invitation only ?
 
Abe
@AurimasNiekis ##php
 
omg.. I am so stupid :d
Ok, I have another question. I have a library which depends on doctrine entity manager, which version should I define in composer? because I only require one method from it :)
 
how do i decode an image from server side ? I send image string encoded with filereader in js with ajax. and i dont now how to save an image in my server ?
 
Abe
@AurimasNiekis implement it yourself?
 
i googled alot but could find any
 
5:37 PM
@Abe persist/flush :D I mean
 
answer
 
5:55 PM
@MadaraUchiha A moderator form puzzling.stackexchange can remove my stackoveflow account?
 
@Shafizadeh No
 
very good :P (tnx)
 
But you generally don't want to piss off a moderator of another site for no good reason
 
I see :D
 
We talk amongst ourselves a lot.
You give off the impression of a troll, all mods on all sites will be aware.
 
5:58 PM
ah, no my problem is not a big deal, just a moderator sent me a warning message. He told me don't ask riddle from other resources. Also I gave him a blunt response ..! (Now I just wanted to know I'm safe on SO or not ;-) )
 
did something happen to Steam?
 
@tereško What are you observing?
 
@MadaraUchiha missing thumbnails in the shop for the app
 
@tereško No repro
Firewall?
 
@Shafizadeh this is steam: store.steampowered.com (you cannot use it, because your have bandwidth limitations)
@MadaraUchiha only if someone hacked the network I am in and managed to put up new software on the router without me noticing
... anyway, restarting the app helped
 
6:06 PM
0
Q: how to send encoded image in string in server using php?

PhoenixI am using php and jquery framework to send an image to the server side(i am beginner so using localhost).I have encoded string in an variable and that pass in ajax but i dont know how i dont know how to decode and save as any extension as image ? This is an small piece of code of my js script.....

please help me
 
Guys, anyone had experience with OS X 10.11 running PHP?
 
me not
 
Anyone else?
 
"Discussion for all things PHP. Don't ask to ask, just ask." aka don't try to get someone to commit to helping you before asking your question.
 
Thank you, @Danack. It's just the problem is very OS X-specific.
 
6:09 PM
@ЗахарJoe Apple has forums for that
or you can call support
 
They made a weird proxy thing that proxies every web request and as a result I only get PHP errors in the logs sometimes.
 
> Hello, I have a problem, but I am too lazy to write the question out until someone says that they will help me. sol.gfxile.net/dontask.html
 
but if you shit is OSX-specific, then it is not PHP-specific, so why the fuck are you even asking here
 
Teresko, would you mind your language please?
 
6:11 PM
@tereško lol
 
Sorry, I don't get these memes.
 
Although yeah, please calm down
 
@Phoenix I think you are looking for this:
13
Q: How to use FormData for ajax file upload

KalpitI'm not figuring out how to do this. I'm breaking my head from last 2 hours behind it. This is my html which I'm generating dynamically using drag and drop functionality. <form method="POST" id="contact" name="13" class="form-horizontal wpc_contact" novalidate="novalidate" enctype="multipart/fo...

basically: it's a javascript problem
 
The problem is partly PHP-specific and partly OS-specific, I think. It's hard to put the blame on one particular entity here. What I do know is if I intentionally put an error in the script and execute it via a browser then I won't get any error either on the screen or in the logs. Even setting PHP to log to a specific location doesn't help. It just exits silently. I'm trying to think of ways to approach this problem.
 
@ЗахарJoe btw you haven't described what you are seeing - You're only describing what you aren't seeing....
for example, would you say that the script is dying and just showing a white screen?
 
6:23 PM
@Danack Yes, exactly that. I do see some errors appearing in the logs for other sites located on the same server and I can't really tell if those errors are complete, because other sites run modx and wordpress. Working on my own script - errors just don't appear.
 
36
Q: PHP's white screen of death

Matthew ScharleyNow that I'm starting to get back into PHP, I'm starting to remember why I gave it up in the first place. The most annoying thing on my plate at the moment is what I've come to term "PHP's white screen of death". When PHP gets a fatal error due to syntax or whatever, it seems like it will always ...

It took you 8 goes to describe what you were seeing....
 
Abe
lol nice title
 
It's not always the white screen. For example, I set it to catch a mysql error (if (!$con) exit ('something')) and I do see that message but again, no actual SQL error in the logs.
 
Why would there be an SQL error in the logs if you've caught the exception?
 
How did I catch it? I only checked if $con existed, the actual error that's supposed to be in the logs was generated by mysqli_connect issued earlier in the script.
 
6:28 PM
The log file typically only logs errors that you don't handle yourself. If you are checking if the connection is valid or not, and exiting the script cleanly, then as far as PHP is concerned, there was no error to log.
 
The white screen of death page you linked is useless to me. Of course I've set display_errors to On, and I've specified a different location for the log file - nothing helped.
Okay, but I may for example omit a semicolon - same thing.
 
> Of course ...
You don't understand how your config is setup to log errors. And it seems that in some conditions it is not logging an error. The answer lies within your config files, not in asking people on the internet to debug things by using the Force.
 
I'm sure I've always seen those entries in the logs: whenever mysql_connect on some wordpress site tried to connect using a wrong password, for example, there was an error in the log file.
 
Well, and I was hoping the people in the know could point me in the right direction and at least make a guess as to why PHP doesn't log things even when being told to do so.
 
6:32 PM
good morning :)
please answer my posted question
0
Q: How to Edit and save Word document using PhpWord?

Qasim KhokharI am using PhpWord Sdk for reading Doc file and than save it after editing. but i can read file when i save it or write to stream it gives me empty file. below is my current code please guide me what am i doing wrong. $doc=$this->DocumentTemplateModel->get_single_document($this->input->get('id')...

 
no
 
So what type of document is it that you're loading into $doc?
 
ms-word 2003 with .doc extension
 
hi guys
 
Have you tried checking for any errors being returned by $document=\PhpOffice\PhpWord\IOFactory::load($filename,"MsDoc");?
Note that header("Content-Type: application/docx"); is wrong
 
6:37 PM
yes i am using it,
i can see my content when print_r $document
 
The correct mime type is application/vnd.openxmlformats-officedocument.wordprocessingml.document
What does $document give when you do print_r()?
 
thanku for correcting
 
But writter=\PhpOffice\PhpWord\IOFactory::createWriter($document);.... what Writer are you trying to create?
 
word2007
i have tried RTF which is producing same result
 
You see your content how? Plaintext? an object?
 
6:42 PM
print_r($document) using this i can view text in object
 
You should be getting a PHPWord object returned
 
IOFactory::load returns reader object
 
load() should never return a Reader object, it should return a PHPWord object
 
Sorry, this is PhpWord
[text:protected] => Nº préstamo: [Id],
this is my content
 
7:01 PM
@tereško aha...! tnx :-)
 
7:12 PM
anybody knows what is the point of this photo?
 
@Shafizadeh this is what's colloquially referred to as "inspirational poster"
I assume you know who the guy in the picture is
 
@Shafizadeh white text on light background, great
 
yeah .. the person who made it didn't really think it trough
 
Anonymous
7:54 PM
racist-turned-hero
 
Anonymous
meh, I really need to learn some C. Not sure how to stay motivated though.
 
well ... since mother teresa turned out to be a sick sadistic fuck, I am all that willing to believe that gandhi is the hero as advertised
colour me jaded
@samayo just for the sake of self-improvement or with a specific goal?
 
Anonymous
both
 
you probably would have more immediate benefits from learning proper JavaScript :P
 

« first day (1870 days earlier)      last day (3072 days later) »