« first day (1408 days earlier)      last day (3554 days later) » 

12:46 AM
Took me some time to figure out how to register ini entries. Tried some things in module struct because there is a field for ini entries, but that does nothing. Needed some time to notice that other extensions do a REGISTER_INI_ENTRIES(); in MINIT…
 
Is it possible to return a recursive value without putting it in a string array?
 
1:01 AM
@Carnal define 'recursive value'?
 
 
4 hours later…
5:11 AM
I have this code http://pastebin.com/wXCm78Z6

It's a recursive function that should return a multi dimentional array's elements chronologically. This function works just fine, the problem is I have to declare a string variable to concatenate the value each time it recur. That makes me wonder how to do it without having to create that string variable. I'm trying to create this without using any loops or array_.. functions @Danack
 
5:38 AM
Does anyone see something wrong with this SQL?
CREATE USER 'admin'@'%' IDENTIFIED BY 'password';
GRANT ALL PRIVILEGES ON * . * TO 'admin'@'%' IDENTIFIED BY 'password' WITH GRANT OPTION MAX_QUERIES_PER_HOUR 0 MAX_CONNECTIONS_PER_HOUR 0 MAX_UPDATES_PER_HOUR 0 MAX_USER_CONNECTIONS 0 ;
 
 
2 hours later…
7:25 AM
@Carnal Where did this problem come from?
 
7:49 AM
which Linux server do you guys use ?
 
freebsd 10.0
 
8:05 AM
centos for me
 
Ubuntu
 
-1
A: parallelize php script for drupal

watcherFrom the manual: pthreads is an Object Orientated API that allows user-land multi-threading in PHP. pthreads are user land, not kernel. Since PHP is written in C, I would imagine that under the hood a PHP pthread is no different than a C pthread. This question is also related, and may pro...

what the fuck ...
 
lol
 
I don't understand =o(
 
I wish that guy all the best of luck
 
8:18 AM
@crypticツ don't feel bad, nor does the person who answered the question ...
 
individually the tags [drupal-7] and [parallel-processing] have over 6500 questions each. that question is the lone result with both.
 
8:33 AM
0
A: parallelize php script for drupal

Joe WatkinsFirst, some actual facts: The pthreads API facilitates multi-threading in user-land: It does not create green, or user threads. Green threads are implemented as a kind of co-operative multitasking in languages whose virtual machines or environments are not well prepared for truly multi-threaded...

 
morning @TomášAresakMalčánek @AlmaDo
 
8:50 AM
hi, @Joe
 
9:09 AM
@derp it was a problem from an exam. I couldn't solve it that is why I want to solve it so bad and get the logic around it. They said it can be simplified even more.
 
@Carnal I ask because someone posted something like it as a question on SO. when I solved it they moved the goal-posts, imposing additional constraints. was rather frustrating, actually. Do you happen to have the complete problem statement? I'd like to have another look, but don't want to have my solution rejected again due to something unstated upfront
 
Hello @JoeWatkins
 
@derp I don't remember the exact statement, but I remember that I shouldn't use loops and array_.. functions. Also, it must be simple. not too complicated. Heck, I even thought my code is simple. Turns out it can be more simpler. Recursion really hurts my head. haha
 
9:24 AM
@Carnal oh well. yeah, recursion can twist your head around sometimes.
 
that user seems to have a habit of posting about shit he doesn't understand: stackoverflow.com/a/11689228/727208
 
he really does
 
@derp Yeah, just to fill my head with something during the weekend.
 
Hi guys, Is there a way to encrypt messages of two users, and no one except that users can decrypt the msgs ?
 
9:37 AM
> Warning: array_map(): An error occurred while invoking the map callback in ./CVBacklogUI/src/CvRing/Backlog/BacklogCore.php on line 59
much description
 
so.. go ahead and investigate (:
 
Public-key cryptography, also known as asymmetric cryptography, is a class of cryptographic algorithms which requires two separate keys, one of which is secret (or private) and one of which is public. Although different, the two parts of this key pair are mathematically linked. The public key is used to encrypt plaintext or to verify a digital signature; whereas the private key is used to decrypt ciphertext or to create a digital signature. The term "asymmetric" stems from the use of different keys to perform these opposite functions, each the inverse of the other – as contrasted with conventional...
 
@AlmaDo found the problem. stackoverflow.com/questions/25457587 non-English chars in the title of URL which was triggering error for validation. Bah
 
hi guys :)
mmm ok I got the answer before making it XD
 
10:02 AM
mornings
 
@Carnal When doing recursion you should do two things. i) Start with the simplest case possible - which in this case would be just passing in one string. ii) Pass the remaining work into the recursion function, not the progress: pastebin.com/CaBFeN7X
 
Morning
 
Sunday is not same as Saturday =[
 
moin
 
@Carnal Or you could really take it up a notch - stackoverflow.com/a/1320259/778719
 
10:30 AM
@PeeHaa morning
 
11:11 AM
Can someone help me with this? pastie.org/9498617 Problem is in additional params like (:number) because preg_match is strict
 
@Danack Thank you so much!
@Danack If i want to only parse url I should use RouteParser? right?
 
I don't know, not my code.
 
ok, anyway thanks
 
11:33 AM
@Danack I'm trying to do it without a loop though.
 
@Carnal m'kay. Sounds dumb, but you could probably do it with php.net/manual/en/function.array-pop.php
 
@Danack array_... functions aren't allowed too.
Which is kinda make my head roll. haha
 
@Carnal Who is setting these rules and are they retarded?
 
It was an exam.
I actually failed it. haha
That's why I'm trying to figure it out.
Interview exam more likely.
 
ThW
@Carnal, still trying to join an recursive array structure?
 
11:47 AM
@ThW Yeahh.. :/
 
Is it possible without concatenating it?
 
ThW
? concat is the name of my function
 
what does implode() do?
 
how would you return it without putting it in a string variable each time it recur?

If we do return the value of the current key.

@CSᵠ concatenate an array into string.
 
posted on August 24, 2014 by Ghost Owner

You're live! Nice. We've put together a little post to introduce you to the Ghost editor and get you started. You can manage your content by signing in to the admin area at <your blog URL>/ghost/. When you arrive, you can select this post from a list on the left and see a preview of it on the right. Click the little pencil icon at the top of the preview to edit this post and read the next

 
@Thw, okay that is something. o.o
Let me analyze.
 
@Feeds wut?
 
ThW
The loop is replaced with an recursion
 
Is @fabien playing with blogs again?
 
12:00 PM
LOL
I knew this would be happening, sorry about that
 
morning :)
 
I've restarted my blog and it auto posts this "welcome to ghost" thing, please delete / ignore those, won't happen again
I'm going to do a blog post on global state anyway
 
lolwut!? When I go to twitter I get just json :|
That's not really nice to read tweets from :P
 
ThW
@PeeHaa you can throw it into FluentDOM ;->
 
:D
> Foutcode: ERR_SPDY_PROTOCOL_ERROR
Now it is really broken. I totally blame chrome this time
 
12:05 PM
Your code is fout?
 
heheheh apparently I have a dutch browser for some reason :P
 
Hi, do you know how to implement additional parameters to framework like toroweb.org or how to make something smillar in klein?
 
@ThW, your code is so simple man. But can you explain to me the return lines. I think the last return isn't necessary
Sorry, this simple things kinda hurts my head. Burden of beginners.
 
ThW
it is not neccessary, because a void value would be cast to an empty string
but having an undefined state is BAD
 
12:30 PM
what do you mean by undefined state?
 
12:42 PM
@levy lol php logo
 
@Carnal is the input array constrained in any way as to the types it might have? (can it include NULL, boolean, etc. or is it just strings and more nested arrays of strings?)
 
ThW
@Carnal I added some markers so you can see what is donehttps://eval.in/private/9665b0d693f1f8
 
@ThW How come you added another concat on line 6
it was working fine already
Wow. this is definitely a great way to debug
 
Anyone please answer this table structure question pls stackoverflow.com/questions/25471857/…
 
@derp Yes, it's just strings.
 
12:54 PM
@TechGuy you asked c# question here ..lol
 
sweet
 
@NullPoiиteя no.it's regarding to dataabse table structure
 
ThW
@Carnal actually that was a bug
It broke with a second subarray
 
When you added that? The additional code on line 6?
Oh yeah, I figured
With that removed
[ADD]apple[NEXT][ADD]banana[NEXT][REC][ADD]white[NEXT][ADD]black[NEXT][NONE]
Looks much cleaner. :D
Wow. Man, Thanks!
I am hoping to become a great programmer someday.
 
1:13 PM
who flagged the feed post?
 
I did. Because someone is using it to push spam
 
1 hour ago, by Jimbo
I've restarted my blog and it auto posts this "welcome to ghost" thing, please delete / ignore those, won't happen again
 
Morni9ng
 
1:49 PM
Can somebody help me with SQL (Screaming language)?
 
@VeeeneX from the last two pasties, a little side note, there is a difference " and ' when it comes to strings
also if you concating strings and not variables, why not just 'productname', ..
 
@RonniSkansing Iit has been generated by Medoo php lib.
 
JOIN ON productproduct_img_id seems strange?
 
ok i can change it to img_id
But the problem is that my href is empty
 
if you query is borked how would you expect a valid result?
Have you mixed column field names like imgid, productid vs img_id ?
also I am not sure I understand why you are generating code which X libary and then changing it afterwards.. What is the purpose then
 
could you answer some of my questions?
 
yes
:D
 
and could you var_dump( $sqlString )
 
My query isn't borked it has been printed after query using last_query
 
I do not understand how you can then just change it from productproduct_img_id to img_id
 
2:01 PM
And question n.2 no
 
how come some of them are with a _ then ? It is abit confusing
 
Ronni Oh, I changed a table
@RonniSkansing This is my code pastie.org/9498843
And I'm sorry but i don't understand your question
 
yea that makes abit more sense now. Sorry dunno.
 
That's my fault
So any way I don't have any idea how to fix it...
 
if noone is able to help you, you could consider setting up a sqlfiddle with the tables and the query
 
2:10 PM
ok
 
Why must the view be bad? Just curious. Thanks for your answer. — tastro 4 mins ago
is this guy reading the same words as the rest of us ?
or could it be that I have gone insane at some point ...
 
2:37 PM
 
if you ever meet anyone that works at nintendo, punch them in the throat ...
 
@JoeWatkins Why?
 
yet another wii added to the pile of wiis that just randomly stop working today ... that's like the fourth one I think now ... stupid things ...
 
oh
 
Hi. So when is PHP 7 coming out?
 
2:45 PM
It's PHP "7"
 
@PeeHaa Yeah, I saw the meme
 
Why all the quotes?
 
To confuse all pythonists
 
3:06 PM
@DesmondHume tomorrow evening xD
 
haha
 
No no, PHP 7 comes out at PHPNW when ircmaxell announces his secret project is actually just PHP 7
 
3:30 PM
@VeeeneX the img_id is null
 
For the glory of PHP 7, Richard Stallman eating smth from his foot youtu.be/I25UeVXrEHQ?t=1m47s
Ada is best
 
These are all from You Can't JavaScript Under Pressure, neat little coding challenge
Go play it
Ohi @Ocramius
 
3:45 PM
Wish PHP was more like JS
 
@DesmondHume would you care to elaborate, why? :-)
 
Current PHP feels like C, too many functions
 
ohh fuck cent os install php5.1 by sudo yum install php php-mysql
 
6 messages moved to Trash
 
@JoeWatkins Aww, you're no fun :P
2
 
3:48 PM
Second that
 
they were making my cursor flicker and mouse slow ... also, they are annoying after 10 seconds ...
 
...what, in this era? Are you using Windows 98?
 
For the love of Ada..
 
yes
 
@Carnal So I went ahead and made this eval.in/182695. It's that entirely recursive array concat you were playing with, but without using builtin functions. Also should work with more that just string - basically anything except objects and nulls can be in the arrays. If I'd realized isset() was a construct rather than a function sooner I would've used it instead of the null termination stuff. Then it could work with null values as well.
 
3:49 PM
No seriously, are you using an environment which doesn't support compositing?
 
don't think so ...
possible tho ... can't see any ...
 
@AndreaFaulds alo' :-)
 
@DaveRandom Sorry about yesterday, forgot to open chat :-/
 
@Ocramius HaPpY BiRtHdAy
 
deng yoao
 
3:54 PM
0
Q: Login to facebook through the POST request instead of API

Kamran AhmedIs it possible to log yourself in to the Facebook account by sending a post packet to the http://facebook.com/login.php instead of using the API, I have checked the request that is sent to the script and here is what it looks like? I know that it'd be of no use in a "real world application", b...

 
@KamranAhmed what would be the purpose for doing this?
 
@KamranAhmed The image prolly needs a larger resolution
 
@DesmondHume sorry for that. Just drag it to the new tab and it would get bigger
@RonniSkansing I just want to automate a personal task of mine.. I'd like to save certain pages..
 
@KamranAhmed also I do not think a single transfer will be enough, with csrf and al
basicly if you can not do it via the api, it is not allowd
basicly you are asking how to start making fb bot
or am my completely wrong?
 
@RonniSkansing thanks for your insights. Actually, I have just played "a little" with Facebook API and was just looking for the easy way around..
 
4:01 PM
@KamranAhmed you might want to look at the possibilities with apps
 
@KamranAhmed In what lang u are writing that chrome extension?
 
@DesmondHume Javascript
 
4:23 PM
Stay away from flash as far as you can.
 
indeed. sitting too close to the monitor is bad for the eyes.
 
^ I heard that is a myth
 
it probably is
 
5:24 PM
@RonniSkansing Ehmm.Uhmm.Hmmm.**** Aghrrr. Thank you Ronni.
 
6:01 PM
--with-mysql expects the headers dir, --with-mysql the mysql_config binary… why, PHP, why?
^ --with-mysqli, not mysql in the latter one.
 
wat
 
yeah, just tried to install with libmysqlclient…
 
<- uses freebsd
I actually have an integrated system for building software from source
 
6:18 PM
^ sigh .. and some people here dear to blame me in using Slackware (:
 
slackware is for enthusiasts
 
@VeeeneX np
 
6:51 PM
and freebsd is for .. ?
 
7:02 PM
...other enthusiasts?
 
Let's be honest here, any linux distributive is for enthusiasts. /me hides
 
I always thought that linux is .. for guys who just do work..
 
7:23 PM
that's why I'm on windows right now. unemployment sucks.
 
I'm on Win because alfa-testing HoTS (: the only reason
 
@AlmaDo Not really, I was never paid for the things I've done on Linux, despite that they were much hard things to do.
 
@Leri strange. I always was working on linux
 
@AlmaDo Well, most of my time I've spent as .net dev...
 
@Leri oh, I see
well, the only linux specific things that I made last time is this . Not paid. By money. But by some rep. points..
 
7:31 PM
In case you didn't see this RT @shanehastie: Seen at #agile2014 - management wisdom from Deming http://t.co/xEZMAOtn3R
 
hey, that's neato. I love it when people put serious effort into accessibility stuff.
shame about the comment thread on it, but whatever
 
7:52 PM
btw.. hilarious that "best" answer currently is not related to php. and, more, was a first (and last, for now) thing, which I programmed in C for linux..
anyway, night, room
 
8:07 PM
Nite, @AlmaDo
 
8:23 PM
Night room
 
 
2 hours later…
@NikiC What does c-pls mean anyway?
 
@AndreaFaulds j.mp/18eUa3Q
 
@crypticツ Aha, thanks
 
10:22 PM
gn8 folks.
 
-1
Q: Using previous form submission details without re-entering information

Kate NaomiI have been working on creating a webpage when clicked, will take them to the page where users have already submitted their personal information (form with first &last name, email, contact phone, zip code and square footage of house) but not have gone through with the purchase of product. Created...

How not to do prepared statements...
 
@ThiefMaster so many people think ->prepare is just mysql_query
wiki.php.net/rfc/closure_apply#vote - kinda disappointed this only has 10 votes but whatever
 
10:37 PM
@AndreaFaulds pretty common that small features only attract ten or less votes
you only get 60 votes if there is major controversy and everybody is bullying people into voting
 
@NikiC That's true. It's completely uncontroversial, too.
 
so better to have 10 yes votes ;)
 
@NikiC What? That never happens, ever. Nobody has ever bullied someone into voting :P
@NikiC I like saying my RFC's passed unanimously ^^
Also, I just made a weird email to internals about what to do with bigints
 
@AndreaFaulds By "bullying" I mean complaining on Twitter very loudly and in great quantity how everybody is f'ing stupid and voting the wrong way ;)
 
@NikiC I can think of at least two people who do that. nobody on internals is like that, at all!
 
10:40 PM
you're looking for strike ;)
---strike---
 
Thanks
 
sorry, I thought you can see history of non-edited posts as well
 
I can't see source, which is annoying.
 
 
1 hour later…
11:48 PM
@AndreaFaulds or many abstain too, like myself, I don't see any harm in it, it might be eventually useful, I'm not really sure; so I let people with more experience in that field decide.
 
@bwoebi Fair enough
 
morning chaps
i'm glad the int renaming thing has been resolved :)
 
Yup, me too, really.
 
Hmm, it seems that ext/date bug #67118 has had some odd effects on ZE, like this.
 
can anyone help me with building iso 8583 message by using JAK8583 class?
 
11:59 PM
ugh, phpclasses? no thanks
 

« first day (1408 days earlier)      last day (3554 days later) »