« first day (838 days earlier)      last day (4335 days later) » 

user652649
11:00
@MikeAshfield look at the "INVOICE" value
Do you know where I'd find documentation on that? x.com/sites/default/files/ipnguide.pdf isn't really very helpful, only skims the surface of things like this.
@wes I believe invoice is also shown to customer. I could be mistaken.
@wes So the \w regex is those characters. Just realised I can't use underscore. Is there anything like \w+ that allows plus signs too? ^^
@MikeAshfield The paypal API docs suck big time. Good luck my friend]
@Jimbo [\w+]
user652649
11:01
@Jack don't think so
@Jack lol, thanks
wait
we already have \w+
Hmm
So [\w+!] would allow both a + and a !
user652649
but you may be right... btw @MikeAshfield theres also PAYMENTREQUEST_n_CUSTOM
user652649
that i believe is private
@Jimbo Yeah, \w+ is not the same as [\w+]+ :)
11:03
Great! THanks @Jack and @wes
user652649
yw
@Jack Not confusing enough. [[\w+\]]+
@DaveRandom That's not just confusing, it probably won't compile lol
Hmm, it compiles in JS
@Jack Actually it will. You don't need to escape [ in a character class, only ]
Ah yeah, my eyes aren't sensitive enough to backslashes lol
11:06
The only things that need to be escaped are ^ ] \ -
I really need to learn regex
fecking markdown
Two big R's - regex and recursion
Recursive regexes ftw
lol, my worst nightmare
11:08
hi guys
99.9% of the time if you are using R you are abusing regex. Although to be fair that's only because of the number of people who attempt to parse SGML derivatives with regex.
The human brain is simply not made to deal with recursive regular expressions.
i want to create dynatree of Folder ...Folder should show Files as well as Directories and also files in that directories
@jack
@DaveRandom I think one of the comments in the poetic answer covering regex + html basically said "What about a recursive pattern? :)"
@DaveRandom It's working only with <100 KB. Unfortunately I have been testing with images of >300 KB because I had only those images and it ate my time since this morning by showing Filename cannot be empty error which made me skeptical on code, but not on the size of the image itself. But when I got a thought of testing with low mem size images, it worked. Why like that? But I need it to work even on large image files.
11:10
Yeah, but what if you use regexes with backreferences? — stimms Nov 13 '09 at 23:43
@DaveRandom I was wrong, backrefs was the question :) still funny though.
Ooh, I'd like to populate my jsperf test results =D
i want to get all files and folder from a directory ...what can i use
i used scandir and readir
scandir only list files and folder but not files insite folser
Family duty calls, cya laterz!
@jack man
wait
atleast tell my answer
@Jack Cya . Take care. :)
@korhan can u help me
@Korhan
11:16
Well I am not much of a PHP developer, but I will try. What's that?
i want to get all files and folder from a directory ...what can i use
i used scandir and readir
scandir only list files and folder but not files inside folder @Korhan
Then call scandir again on folders that are inside a folder.
@Korhan one more thing u knw Dynatree
user652649
and folders of folders of folders
user652649
and folders folders folders of folders
11:19
@korhan i want to show a tree like structure ....i need a plugin
I hv seen Dynatree
user652649
you need a recursive function
but that i dont know how i will make files and folder show in that
@Dashang No, I have no idea on it.
@Jack Would be interested to see the diff between that and document.querySelectorAll() with a for loop, and using el.style.display = (go pure-vanilla)
11:31
OMG My the person I work with is an idiot
@PeeHaa In other news, the sky is blue.
Just had two "discussions" with him...
1.
Why do you use wikimedia browser stats which are clearly not trustworthy because they are "not professional"
2.
Leaving the trailing comma after an array declaration is bad practice
user652649
lol
user652649
"not professional"
11:36
Next thing he will probably tell me is that SEO is the solution to all world problems :)
guys i have seen DYnatree and jsTREE and i am confused about loading Files and folder names dynamically
@PeeHaa Bad practice it taking it a little far but it does slightly displease the anal clean-freak inside me.
user652649
"Leaving the trailing comma after an array declaration is bad practice" IS THAT POSSIBLE WITH PHP? :|
using readdir i m gettg all names
but how to represent in tree structure
?
@wes: Sure!
11:37
@DaveRandom anal clean-freak? Damn you have issues
@wes I'm assuming he's talking about [1,2,3,4,], which is semantically identical to [1,2,3,4]
php > $a = array('Hello', 'world',);
php > print implode(' ', $a);
Hello world
Yes, but considering this:
@PeeHaa Nothing like a clean anus.
:-P
$array = [
    'foo',
    'foo',
    'foo',
];
no forgetting the comma when adding a new item
user652649
11:38
yes me too @DaveRandom i always thought for some reason php didn't allow that
no git diff telling you two lines are achanged
I mean Python does it!
;)
@PeeHaa True, but on the other side of that: JS will throw up, so if you write a lot of both you're just moving the problem from one language to another
@DaveRandom Yes this is true, but that should prevent you from using the language to its full potential imo
javascript doesn't support public / private so I'm not going to use it in PHP
Although just to spite me, I find that Chrome doesn't throw up when you do that. However JSON.parse() still does.
Yay terrible example :)
@DaveRandom Neither does FF
It's just IE
11:42
48 mins ago, by DaveRandom
Just ignore me.
user652649
LOL
doesn't js work with that? atleast it does with object literals
user652649
@DaveRandom was about to telling you that [222,] works
user652649
:P
11:43
json does work with non-string keys in object literals also
> ['hello','world',,,]
< ["hello", "world", undefined × 2]
user652649
wut
@andho That's non standard, it shouldn't. Some parsers might forgive it but you shouldn't rely on it
user652649
alert([22,].length); = 1
> A string is a sequence of zero or more Unicode characters, wrapped in double quotes
user652649
11:45
['hello','world',,,].length
user652649
only the last comma is ignored
> [,,,,]
< [undefined × 4]
Yay Javascript!
I'm going to start using arrays of undefined. There must be a use case somewhere.
user652649
lol
> {hello:'world',}
< SyntaxError: Unexpected token }
That's more sane
GUYS
NO ONE TO HELP ??/
11:50
Hi all
I am worried about my performance for ILIKE quries with postgres can anyone help ?
@Dashang a) use glob() b) you need to recurse through the results, you can't get a tree from a single call
@ScoRpion... LIKE performance always sucks. Avoid it if you can.
user652649
@ScoRpion... do exist collations in postgre? ILIKE is totally useless if you are using a case insensitive collation
@wes Not (any more) useless, it just effectively becomes a synonym for LIKE
user652649
yes
@DaveRandom @wes we have a huge code application and have used ILIKE with wildcards before and after like %abc% hundreds of times. So what would be the best approach to up the performance. I had a look at Trigram and wildspeed, but the issue with them is again HUge indexes
even though I can bear huge indexing, but i would like to get a good suggestion from well experienced person
user652649
11:59
never used postgre, but as DaveRandom said, LIKE sucks... does postgresql have fulltext?
Is it worth to spend time to look for each query withen my code to fix them and modify and remove ILIKE where ever i find it useless
@ScoRpion... IIRC %abc% just won't go anywhere near the indexes, because it starts with a wildcard.
@DaveRandom yes I know..
@ScoRpion... Yes. Use = wherever possible, and try and start the match with a static string if possible when using LIKE, because then it will at least use the index to find a list of likely candidates
12:03
It's also probably worth setting up the trigram stuff if you are still going to have a lot of wildcard queries after that exercise though.
And what else I can do, when I am going to spend my huge time with it I would like to correct with every small issue..
@DaveRandom i've got the XML file from the company
Why can't my fingers spell exercise!?
seems to comprise a few parts like <Student> <Group> <AspectId> <Results> etc
@MarkH kk, paste?
12:03
i really cant
(you can change the data if you want)
its live data
yea
i need to get the file downloaded here and chop it down
need to pop to Tesco
need smokes
That sounds like a bloody good plan.
@DaveRandom @wes And one more thing, what would be the best approach using ILIKE or using upper or lower with LIKE with
user652649
can you modify the table structure?
12:07
@ScoRpion... ILIKE I would say. Normalising the case before the comparison is going to be even more expensive, at least with straight CI searches you can do funky bitwise things, if you were to explicitly force one case or the other you'd be breaking it up into multiple ops
Need a little regex help again... /segment/(\w+)/(\w+) matches /segment/word/word, I need it to match /segment/word.word-2.word_3/word (so basically the (\w+) has to also match full stops, minuses and underscores)
Trying this: (\w[\-_\.]+) failing
user652649
because you can clone the text all lowered in another column of the table... and use WHERE field_lowered LIKE ...
@Jimbo Put the \w inside the character class
@DaveRandom thankyou
@DaveRandom So ([\w\-_\.]+)
12:08
@DaveRandom hehehe
user652649
[\w-_.]+ @Jimbo you don't need to escape inside [ ]
@Jimbo Yes. When it's outside, it becomes two tokens, the + only repeats the last token
@wes You should escape the dash. It that case it won't make a difference but it's a good habit
To be fair it's harmless to escape the dot as well, and again it's probably a good habit
hi
user652649
i don't agree, less escaping means more readability :P
@DaveRandom lol
12:11
@DaveRandom @wes Brilliant - finally got this bloody thing working, cheers
@wes True, but if the audience is a regex beginner I would advise escaping. Trying to force the rules to for what needs to be escaped where on a beginner is kind of unfair, even now I'm never 100% sure if I should escape a dash in a character class, I kind of wish the empty range end didn't exist, it just adds confusion and all it does is save 1 character.
Can we please change strtotime so that it returns the link to bugs.php.net/bug.php?id=22486 whenever someone uses +1 month in strtotime after Jan 28? I've seen at least two questions already and I wasn't even looking.
@DaveRandom Can you tell me what would be the effects and Consequences of huge indexes for postgres
> But would choosing Feb.28 really be any more correct? If I told you on January 30 that I would come back in exactly one month to beat the crap out of you, when would you think I would show up?
lol
If i use trigram or wildspeed they create huge indexes, will there be any effect on overall database.
@ScoRpion... Honestly, I don't know. My instinct says that it would be slightly detrimental to performance, yes. Whether that would be enough of an issue for you to worry about, I don't know. The only real way to know would be to benchmark it for you application, I'll see if I can dig up any refs
@ScoRpion... Actually if you have a B-Tree index over the column as well it probably won't affect it in a noticeable way. The index for the trigram will only be used when required, if the query can use a standard index it should prefer it.
@Gordon wow all that crap during my lunch :(
@PeeHaa ive been wading through it all morning
user652649
@wes I believe you forgot to tag it with an indication to not open it with your boss behind you ;)
@DaveRandom You are saying absolutely right but when i will look into the code say i still find a lot of ILIKE to be kept there with the wild card at the beginning eg %abc
@DaveRandom from my end I would try my best to avoid that thing but still if i couldnt?
user652649
@PeeHaa did your boss saw?
user652649
LOL
user652649
12:31
i'm sorry
hehe it's ok. I just said it's work related ;)
any one here who know about flash as2 ?
@DanishIqbal It's sortof somewhat kinda ecmascript so you will have better luck at JS
12:35
howdy everyone
should i go with redis for storing users' friends lists vs. a regular many to many table?
i made a flash menu but stuck on one thing
ah, just everything
@user1673575 should I eat cereals for breakfast or bread?
Bread +1!
(;P)
12:38
Morning
@gordon please reconsider your delv
hahaha.. So technical Question... Rice
@SalmanA No
i've explained it in my comment
@ircmaxell morning!
12:40
what's the good word
what does this mean delv-pls
@gordon then closing it as duplicate should be enough, no?
@Gordon @PeeHaa what does this mean delv-pls
12:42
Jan 24 at 9:10, by Madara Uchiha
@SalmanA We don't need 1000s dupes
@SalmanA The answers do not address the OP's problem, so I favor deletion
any one know about flash as2 ?
m stuck on 1 issue
@ircmaxell stackoverflow.com/questions/14625912/… sounds like you like to answer it?
@Gordon hrm...
@gordon: well you're wrong about deleting answers that do not address OP problems, it could address someone else's problem,
but anyway, duplicate sounds ok
12:45
@DanishIqbal Don't duplicate (a.k.a. spam) the same question everytime.
1. read the room description
2. read my reply to you
@PeeHaa k
@SalmanA it could address someone else's problem, true. But that someone else won't find the answers because they won't look there because it's a different question. Do you look for Pizza at a chinese restaurant? No.
@Gordon Chinese Pizza is the best!
@ircmaxell I just remembered you digging into references some time ago so I'd ask you if I had that problem ;)
@Gordon I just have no idea what he's asking
12:49
@ircmaxell: Heh, my local chinese place actually has pizza :P
@ircmaxell OMG, chinese pizza really exists?
@NiekBergman I thought all chinese people have a snackcorner now?
ok, then make it you dont look for meat in a vegetarian restaurant
@PeeHaa: they have that too, yes :p
Which includes pizza.
12:52
@Gordon no idea, was just busting on you
looks u hungry
@Gordon: I am sure you did not understand the question
@SalmanA which is why I have asked the OP for clarification, which he did not give
@Gordon, ok, I answered
@ircmaxell yay
13:03
@gordon, here please
@Gordon: i am not going to argue anymore, i'll just say that if you don't understand the question, don't delete it, leave it to someone who does
bye
posted on January 31, 2013 by Brandon Savage

When you buy a book on Amazon, the transaction ends when the book gets packaged up and shipped (or delivered wirelessly over Whispernet). There are no updates (typos are corrected over Whispernet, but content is not updated), no connection to the author, no new versions when the material changes. For most books this is just [...]

@SalmanA like I said: if your reading is correct, then its a dupe. If it's a dupe, we delete it, especially since 5 out of 6 answers are incorrect and misleading then. And the simple fact that 6 people read 6 different problems into the question is ample reason to close and delete it either.
13:19
@SalmanA @Gordon Please Don't fight each other.. The world is so small and u have to leave everything here be it your knowledge, power or anything.. All you can do help people, understand them and avoid fight...
tumbleweed
Hey, has anyone seen RIM's latest attempt at staying in the market? Their new Blackberry smartphones?
Hm? Haven't seen those.
Do they run Android? ;P
The right one.. lol
4.2" screen, 1.5Ghz Dual, 2GB Ram, 8Mpx rear camera, 2Mpx front, SD card and NFC
Still ugly as hell
And the LTE they have in it wont even work in the UK on more than one network as it's not in the 800Mhz spectrum or something
Blackberry are likely getting bought out anyway
@MarkH Who would buy RIM?
I think it was Oppo... they're interested in buying it out.
was either Oppo or some other new Chinese manufacturer
how do you post image here?
@MarkH Just copy the image link and paste it right into the chat box - don't use any other text around it
13:46
ah
my phone..
A Miphone designed to look like the Samsung?
I googled Miphone and I can see iPhone lookalikes too!
user652649
@MarkH Just paste the URL in, if it's a valid image it should just render. It seems to be a bit hit and miss with URLs that don't end with .jpg, .gif etc. Alternatively if you hit the "upload" button to the right of the "send" button you can upload images from you HDD or another URL.
@wes 3210 ftw
user652649
ftw always.
@Jimbo looks nothing like a Sammy ; )
13:49
I did like my 3310 though
Besides, the screen on this thing kicks the ass off the iphone : )
higher ppi and also retina.
user652649
3310/3330 was nearly identical to 3210
@MarkH Apple will have to up their stuff with the 5S or risk being left behind..
they're already left behind : )
user652649
13:50
i had all 3 btw
user50049
Android FTW
@TimPost lol
@MarkH That can be argued either way - I much prefer iOS
(once jailbroken, of course)
walled-garden OS?
not for me : )
13:51
See ^
yea even so, you're limited : )
@TimPost android or ios ? :P:P
you can't run custom IOS ROMS :P
you're stuck in a hole with the same UI :P
@DaveRandom I have tried by adding these lines in my php file .

ini_set('upload_max_filesize', '10M');
ini_set('post_max_size', '10M');
ini_set('max_input_time', 300);
set_time_limit(200);

Still no effect.
Android. I can customize it if I want to, but I get a GREAT user experience if I don't
user652649
13:51
@NullPointer hey... switched back to eclipse :P did you have ever tried eclipse? i think its better than netbeans... way better
@Korhan are other htaccess changes working when you add them?
I love that UI, but there's this thing called Dreamboard that themes your iPhone..
@Korhan if not, check the error log for your apache server host.
@Jimbo that's Sense and Sense sucks
@Korhan the first three can't be set in a script, as it's already errored by the time it would hit the script. It needs to go in php.ini
@wes tried but still love netbean ...
13:52
and (last image I promise)
hehe
@Jimbo well weather is really yellow pink
user652649
@NullPointer did you installed eclipse PDT?
yupp...
For some reason, my PDT is not capable of any PHP code completion feature past the current file I'm editing ... infuriating.
@ircmaxell Okay. I am gonna add it in php.ini-development file and check.
13:55
no, not -development
that file is not read
it needs to be named php.ini
the -development is just a sample file
and I'm off to work, later all
cya
@MarkH Sorry, I didn't get you.
"I'm reading C primer plus" <--- That is your biggest problem!! Kill that book with fire!!! RTFN — Tony The Lion 24 mins ago
its fine
user652649
@Jack and netbeans yes? btw eclipse's autocompletition is not good i know but editing is better... it is more close to a simple notepad
13:56
is Zend Studio is cool ?
user652649
zend studio == pdt i guess
Zend? and its monolithic libraries?
@wes nope
neeeeeeveeeeerrrrrr
Zend Studio is supposed to goodz
yea - if u have no desire to have a social life, Zend is awesome :P
user652649
it is based on eclipse as far as i know
lol
many things are built on eclipse
it's like saying it's written in java
ehh well, you get what i mean
user652649
:P
13:58
it practically is :P
@wes zend studio is the shiznit if yo needz the other zend shit, dawg
I think the inline refactoring can't be understated.
tbh, i've taken Zend libs and used them in other frameworks without too much trouble
@Korhan OK so going back to basics, can you upload a file > 100K to the server using a simple HTML form? Also, you should check the value of $_FILES['filename']['error'] (where filename is substituted for whatever you are using)
than which is better Zend , eclips pdt , netbean ?
user652649
13:59
@Gordon again, in english?
@TimPost That's a picture of you, yesterday isn't it? Come on now, tell the truth...
I am able to upload only which are <100K but not more than that. @DaveRandom
@NullPointer everyone will say different, go with one you feel happy with
user50049
@DaveRandom Earlier today. I was yelling "HOLD ON WHILE I EAT THIS SANDWICH"

« first day (838 days earlier)      last day (4335 days later) »