« first day (1055 days earlier)      last day (3909 days later) » 

7:00 AM
it's not too fresh, but it's the last one that seem to hold up pretty well
 
@JoeWatkins Text is perfectly acceptable, it just misses the part if you are not familiar with asynchronous programming, take a look at [reference(s) here] and come back to this document so you'll understand pthreads better.
Sure, that needs to be rephrased. I just gave you my point.
 
sure sure thnx
 
But if you really create another document on threading, you can start with it and tell programmers who are familiar with async stuff to skip that chapter/section and go directly into pthreads.
 
the only people who are really going to feel at home is java programmers, and because they feel at home they will make assumptions that could be wrong, so an introduction for everyone even those who "know what they are doing" will at some point be required ...
 
Damn I'm not in a programming mood today... more in a reading mood. :D
 
7:05 AM
@Duikboot some reading for you gist.github.com/krakjoe/6437782 feedback/suggestions ?
 
@Duikboot try "Altered Carbon"
 
Added to the reading list will read it in an half hour... I first have to make some progress.
@tereško Im not reading 'reading'books only books where I can learn something from like 4hww is awesome to read ;)
 
look at it this way: by reading literary books you will be learning better english
 
What are you doing Mr.Chrome? http://alpha.castel.be/shots/Schermafbeelding%202013-09-05%20om%2009.08.54-jGz9pesHLr.png
That's true I should do that my english isnt good at all :D
 
7:11 AM
@Duikboot English is my native tongue, I did not know it wasn't yours ... don't worry about it so much ...
 
tongue? oO
 
Yeah like mother language :D
 
I have not touched java since my first and last j2me app but working on C# for multi-threading tasks on my daily work and I still feel very comfortable with pthreads as it is described in the docs.

What I'd really love to see at this point is what I should be aware to avoid some fails. I have not really got into pthreads yet, but you can cause segmentation faults pretty easily if you misuse something, I guess. This may considered as a next chapter of given document.
 
Hello, I use CodeIgniter and I need to access model from My_Lang class in core folder. How I can do that?
 
7:15 AM
the term is mother tongue ... but you just told me you weren't english and I didn't want you to think I was telling you my mothers native language .... you souldn't have said anything ...
@Leri a pitfalls section is something I am drafting right now ...
 
my condolences
 
@Leri just compressing it down into something you will remember reading, most segfaults arise for the very same reason, but you've probably seen @rdlowrey struggling to spot when that is ... so needs some thought ... but yh pitfalls definitely ...
 
@JoeWatkins I'll shut my mouth :P
 
@Duikboot :)
 
@JoeWatkins You start worrying about it when you fail to understand context and result in stupid position during conversation and when you can't form properly what you actually want to say. :)
 
what kind of books do you read if you are learning english ?
 
@AlmaDoMundo I don't really think that this should be closed. There's demonstration what OP has tried, how it failed and is interested why it failed.
 
@Leri isn't is an RTFM matter? i.e. 'minimal understanding' there is about the fact - that OP did not even try to google for solution (first link will fit)
 
Some books from school, I don't even remember. To be frank, programming taught me English (i.e. reading books about it and listening some talks on youtube).
@AlmaDoMundo Well, agreed with RTFM part.
 
@JoeWatkins , ya know, the usual - some Milton, a bit of Crowley
 
7:30 AM
@Leri may be it's my personal opinion, but for me 'I didn't google that, but here is my code' === 'I didn't try to solve that'
 
but seriously, you cannot "learn" a natural language by reading books, but, if you have strong basics, you can improve
 
@AlmaDoMundo Kinda right but there're folks who need to google how to google first, and I think that was the case.
 
hm.. what? oO google how to google? You mean.. how to type text in text field? You have no respect to people, you know.. :p
 
it's actually not that simple
 
why? what other secrets do I need to google? :p
 
7:36 AM
@AlmaDoMundo it actually entails pretty high amount of mental work, which at some point you stop to consciously recognize
 
@tereško You can gain strong basics on the fly as well but true, you need some basics to start with.
@AlmaDoMundo If you put your question directly in the text box you will get very few to 0 answers on your question.
 
@Leri and.. ? Is it so hard to put only key things?
 
it's the same as it is with stuff like video games - are you even aware how much stuff you need to understand to play video games ?
 
why? you just.. sit and play? no?
 
try that with your grandparent , that might give you some perspective
 
7:39 AM
@tereško @Leri got the point! :p
 
@AlmaDoMundo You know you need to put only keywords, at some point you realized it but others still need to realize it.
:D
 
@tereško your 'try this with grandparent' is the best explanation for @Leri's point
i.e. the best I've ever seen :p
 
most of ordinary users are no more skilled than that
 
@AlmaDoMundo Grandparents are always to the rescue. :p
 
in fact, I have no grandparents, but agreed - there are many people in 'user' level (and there's nothing shameful in that - not all people should deal with digital/computer staffs)
 
m59
7:44 AM
@JanDvorak @Jack sigh. sigh. sigh.
 
part of problem is that people, who are in direct contact with computer-savvy individuals, tend to pick up small skills through osmosis if nothing else
 
m59
I figured it out.
I'm pretty sad.
 
which means that even your "friends and acquaintances" circle is not likely to be a average subset to measure by
 
m59
The problem was actually js and I didn't remove the factors there. I had an extra ajax call to the api I forgot about and it was running my test script with no data, making the field empty. screw.
 
@m59 I've once had a problem with my script picking up empty values from an API but not when testing. It turned out my colleague was calling the script on form creation instead of submission.
 
7:53 AM
Let's start programming, checking out the new Shigeto CD : 0
 
m59
@JanDvorak this issue was seriously so stressful that I'm ill.
 
Off-topic: How do you think, should my comments on this question converted into answer?
 
m59
Of course, the narcolepsy knocked me out a whole bunch of times and I neglected to eat. I really gotta remember not to obsess.
 
php.net is down ??
 
yep.
 
m59
7:58 AM
yes
 
sad :\
 
@Leri I think, yes , you have to write it as answer with detail explanation.
 
m59
@Leri I would add the answer.
 
php.com is still alive, however
 
8:00 AM
Just use a mirror uk3.php.net
 
@YogeshSuthar @m59 Ok, thanks. Off to work now, later I'll write some well explained answer. See you later.
 
$filename = '/var/www/test.sql';

$file = fopen($filename,"w+");
for($i = 0, $l = count($resultQuery); $i <= $l; ++$i) {
 fwrite($file, $resultQuery[$i]);
}
  fclose($file);
}
is this code will work ?
 
@ఠ_ఠ Try it out ? Hint: there is an extra }
 
i need to write data into file
it's ok.but this not working
 
8:06 AM
Is it hard to create your own mirror for php.net?
 
"not working" is not an error message.
 
Unless you work for Microsoft.
 
Lol @DaveRandom
 
8:08 AM
What 12GB a day :P
 
Doesn't matter anyway, it wouldn't be accepted, there are already two official mirrors in NL
 
How do i create a file with file permission in php
 
Im not from NL. :)
 
@Duikboot orly? I thought you were
 
8:11 AM
Belgium, but there are already 2 mirrors too.
 
Only fully lit motorway network in the world, that's pretty much all I know about Belgium, and I only know that from Top Gear
Oh, and Bruge used to be on the coast, apparently
 
:D Yeah Brussels is horrible.
 
Chech motorways are pretty well lit, too, aren't they?
 
Maybe, never been to Czech Republic
 
Yeah belgian coast is about 20 minuts from the coast.
 
8:13 AM
Never been to Belgium either, actually
 
Where you from?
 
I guess uk :p
 
The greatest city on earth
(Manchester)
 
Manchester, United Kingdom
 
wow, @DaveRandom I guessed? :p
 
8:13 AM
I didn't guess.
 
Jo room
 
@PeeHaa hi
 
Sup dawg
 
I have a Q when you do a SQL statement and you are not executing it, can I see the expected result in the database?
Hi @PeeHaa I know I got some work to do for you but it's kinda busy those days :-/.
 
That makes no sense ^^
 
8:15 AM
Im sorry.
 
no worries
 
Do you mean you want to see the execution plan without executing the query?
 
That should be awesome. :)
 
hi there
any one is familiar with regular expression?
 
@paulcheung depends. Are you a help vampire?
 
8:17 AM
@Duikboot EXPLAIN EXTENDED will fit, I think
 
i want the string 2.3 and 4.5.6 to be matched, i mean the string should begin with number and ends with number
the product version string
 
@paulcheung The important point is... what have you tried?
 
number dot number dot number
 
Cool thanks.
 
i dunt care how long the string is, every two numbers must be divided with dot?
 
8:20 AM
@paulcheung hint:/(d+.)*d/
 
Why the hell is this one not working anymore :P
http://pastebin.com/jQRsUpkW I have to change every x in the database to 1.
 
Morning
 
It's a code for a active - not active - waiting for approval status.
 
@JanDvorak I would have gone at the from the other side but that works I suppose
 
1 = active
0 = not active
x = waiting for approval.
 
8:20 AM
^[0-9]*.[0-9]*$
 
Would probably want the repetitions to be possessive, that cold get nasty on the backtracking
 
@paulcheung you need to escape the dot and you want to add some repetition
 
@paulcheung That's not far off at all. But you'll need to escape the . because you want it to be literal, and you'll need a repeated group if you want to match more than on trailing component
 
@DaveRandom I think I'm still linear
 
@JanDvorak Yeh I'm just benchmarking some stuffz, actually your way around is a bit nicer than mine from a backtracking point of view
(on the JGSoft engine, anyway)
 
8:24 AM
@DaveRandom is it? Interesting...
 
1.0 and 1.2.45.6.6.88.34 should all be matched, i do not know how to write the expression
i just know ^[0-9]* ...... [0-9]*$
 
@paulcheung Like I say, the expr you posted before is pretty close, you just need a repeated group to match an arbitrary number of dots and digits
 
@paulcheung /^(\d+\.)*\d$/ is probably what you want.
 
yep,
 
@paulcheung hint: use parentheses to group expressions for repetition
 
8:26 AM
why begin with / ?
 
Delimiter
 
@SweetieBelle I doubt he wants the anchors
 
Searches for any number of digits followed by a dot, any number of times, then a number
 
@SweetieBelle /^(\d+\.)*\d+$/
 
@paulcheung What about false !== version_compare(PHP_VERSION, $version, '>')?
 
8:27 AM
@JanDvorak Yeh I'm struggling to get my head around why, as well, I need more tea I think :/
 
@DaveRandom Possibly not, but he's using anchors in his own expression. Depends if he's validating or extracting version numbers.
 
@SweetieBelle good...
 
true, true, I'm assuming too much...
 
i just to that...
 
isValid($versionNo) probably wants anchors, getVersionNumbers($string) wouldn't.
 
8:28 AM
@Touki That is one thing that I would very much like userland operator overloading for
I hate the syntax of version_compare()
 
@paul, just a note, this will match 1 as valid. If you want a number with no dot and following number NOT to be valid, change it to /^(\d+\.)+\d+$/
 
@SweetieBelle Probably want to repeat the last digit as well
 
Herro
 
@paulcheung /^(\d+\.)*\d+$/ is correct, the one I gave you won't match 1.12.
 
8:31 AM
@Jimbo morning
 
Ho well, my suggestion were incorrect anyway
 
morning all
 
Anonymous
 
Anonymous
I found this vulnerability in my site
 
Anonymous
I am not sure, if I should worry about it,
 
Anonymous
8:36 AM
is this false positive? @SweetieBelle @DaveRandom
 
@Leri got a pitfalls section ...
 
@Simon_eQ Are you running latest Apache?
 
Anonymous
yes
 
@Simon_eQ Do those links at the bottom lead to trusted sources?
 
Anonymous
8:39 AM
yes @SweetieBelle
 
@Simon_eQ Then it's probably not a false positive
 
Anonymous
It does seems kindf known
 
Anyone see the Samsung Galaxy Gear? Looks crap!
 
I was going to buy one, may skip having read that :/
1 day battery?
 
@Leri updated preface too, better u think ?
 
8:51 AM
@tereško ...because?
 
because it's bad
 
If you use XMLHttpRequest to request to an external PHP script and you use echo("hello"), will "hello" output to the page you requested from?
 
@SweetieBelle thank you sir, if i a string must contain number, underscore and english char, meanwhile can not contain blank space?
 
@Simon_eQ Tested URL?
 
@paulcheung /^[A-Za-z0-9_]*$/
 
Sam
8:55 AM
@SweetieBelle Hello How are you?
 
@SweetieBelle \w
 
Anonymous
@DaveRandom you need the URL?
 
@DaveRandom That can match other characters if non-ascii is enabled
 
@Simon_eQ So I can see if I can work out if it's a false positive or not. It's pretty unlikely to be though, I doubt you are running the latest Apache
 
Sam
@SweetieBelle ??
 
8:57 AM
@SweetieBelle Won't be an issue in PCRE without /u
(I think)
 
@DaveRandom Think \w matches - and ., could be wrong though.
 
@SweetieBelle No, just perl words, which is that exact character class
 
\w would not match -
 
@rdlowrey can you give my pitfalls section a scan and see if it explains the problem to you in a way that will help you to avoid it in future ... your are my test elephant ( guinea pigs are too stupid to program, obviously, while all elephants know php, obviously ... )
 
@DaveRandom What if unicode support is on? Or we're in unambiguous mode?
 
Anonymous
8:59 AM
I wish I could give you, but I am at work, and they asked me to find something on a prod server @DaveRandom I used Acunetix btw.
 
> The definition of letters and digits is controlled by PCRE's character tables, and may vary if locale-specific matching is taking place.
Yeh I guess it's not safe
 
Anonymous
I don't trust people here.
 
@LogicalAngel XHR says nothing about where you output
 
Anonymous
@LogicalAngel where do you people come up with those weird names?
 
Anonymous
what the heck!!
 
9:01 AM
@Simon_eQ Well one thing I can say is that your Apache is reporting in the Server: header that it's < 2.2.20. If you are running Apache, it's unlikely to be a false positive, since modifying the Server header would require custom modifications to the Apache source code
 
@paulcheung Depending on locale, \w may do what you want it to.
 
Anonymous
@DaveRandom Well, I just checked, we have Apache 2.2.14/Ubuntu
 
Anonymous
I guess, I discovered something \o/
 
Can anyone in here help me with an apache issue?
 
good mornings.
 
9:05 AM
@Purify Maybe
 
I created a new virtualhost on another port and whilst it seems load, it reads an index of the files in there, not actual web pages. If I go to say a PHP file, it'll read it as raw code, not as a page.
 
@Simon_eQ Yeh you need to sort that out. Preferably upgrade to the 2.4 branch, it's better in many ways
 
Sigh.. wordpress update causes strict warnings and stack is flooded...
 
Control Panel says Apache / Mysql is running and I have restarted apache several times.
 
9:08 AM
@Purify What OS are you running?
 
Windows8
 
It sounds like you either don't have PHP installed or don't have the Apache PHP module installed
or both
If it's showing a list of files, Apache is running
 
i have another port
and that runs it all fine
 
Anonymous
@DaveRandom thanks, I'll them know right away.
 
Anonymous
Best web vulnerability scanner === Acunetix.
 
Anonymous
9:09 AM
for a supposedly-secure site, I was able to find 20+ issues, with acunetix
 
-1
Q: With what encoding does chr () work?

JItendra makwana a. ASCII b. UTF-8 c. UTF-16 d. Implementation dependent e. None of the above

am i right?
 
Morning
 
@SweetieBelle Looking in xampp folder, there's PHP and phpmyadmin
 
@Purify How many copies of Apache are you running?
Xampp on both ports, or another Apache service on the other port?
 
1, I think?
 
9:11 AM
@Fabien @hakre morning
 
i just created a new virtualhost in the httpd
so both ports i hope
 
Anonymous
@Fabien morning.
 
Hi, I have some trouble with a Crontask
Cron with PHP5.2 - CLI Passed
Same with PHP5.3 - CLI Mysqli fails without any errors? http://pastebin.com/Zsn4gvg8
 
Next week on drupal course. The company wants to use drupal in the future.
 
Ugh Drupal
 
9:13 AM
@Purify Looks like the PHP parser isn't running on your virtualhost
2
Q: Apache Virtual Host not parsing PHP

user1075581SOLVED But I guess, still being new, I have to wait until 8 hours after posting this question. So, answer will go up tomorrow, since I sincerely hope it helps out someone in the future who has this same problem. Oh boy... I am ripping my hair out over this one. I decided to enable virtual h...

 
Im not against Drupal but I don't like speed. It feels so 'heavy'.
 
dafuq
 
@hakre, what do you think about this answer: stackoverflow.com/a/18632214/1503018 ?
 
if only complaint about Drupal for you is "speed", then there is a lot for you to learn
 
@tereško, and what do you think about this: stackoverflow.com/a/18632214/1503018 ?
 
9:26 AM
We've decided on using wordpress.. but definatly not because its codebase is nice to work with >.< ... it's marketeer heaven though
 
@JoeWatkins Yes, it is. It's more friendly now. Pitfall section is nice. What I liked the most is explaining why segfault happens not just how to avoid.
 
@hakre, thanks
 
Compiling Qt
On a workstation
We could be here some time.
 
9:44 AM
@JoeWatkins morning :D
 
What the hell is this
feeling dizzy as hel and getting spots in front of my eyes
 
low blood pressure
 
Is there a way to solve that? I got that many times the last days.
 
hello
 
depends on your age
usually some additional physical activities would help also caffeine as more short-term solution
 
9:46 AM
You are a Dr.? :o
 
22
 
@iroegbu I'm son of a doctor =P
 
why don't you recommend beer? :(
 
I kicked off cafeine
I drank about 12 cups a day
Today it's my 4th but I've limited it to 6 cups a day
 
9:50 AM
@hakre Just my thought ^^
 
:D
Some great news. The Private medial consultants I saw who I can't afford referred me themselves (bit naughty) on to the NHS. So now I get NHS (free) treatment with them :D
 
Maybe I'm drinking too much beer..
 
@Duikboot withdrawal .. you have been accustomed to much higher blood pressure OR (what's more likely) your natural pressure has lowered to compensate for having too little blood in your caffeine/sugar solutions
 
Ok i'll only drink water from now on.
 
9:53 AM
@ashish good beer, just like good wine, has positive effects
though, for a male after 30, i would recommend going for wine instead, because brewing process causes beer to contain estrogen
 
@tereško yes thats right but not be habbitual
 
Now I should challenge myself to stop smoking.
And then after a few months I should be a healthy person again... maybe.
 
@Duikboot that will be good
 
Quit smoking wil be hard
 
9:55 AM
@Duikboot here is something to look into: epigenetics
 
@tereško more estrogen in body cause many problems
 
Can we set chmod when get a file via FTP ? yes.I'm downloading a SQL file.So when i execute it via php it does nothing.i open that properties ? now it says
 
@ashish , here is the problem with consuming estrogen as a male: it messes with your metabolism (makes you fat) and can also cause some trouble with erections.
basically, if you are over 30: beer is something you can drink on weekends, not every day at lunch and every evening
 
It's on UBUNTU
 
When is drinking too much? If you just like going to a pub instead of sitting in front of the tv every evening? Is that wrong? If you drink daily 5 beers or something?
 
10:00 AM
depends
 
@tereško yes you are right
 
@tereško have you any clue on that ?
 
on th other hand, beer contains B-group vitamins, which are beneficial for different neurological functions
 
@tereško Any good effects from good rum? :D
Because that's about all I drink these days. :(
 
not that i know of .. at least non that are unique for rum
 
10:03 AM
I think I drink too much for my body but not formyself I mean im not drunk on weekdays but I drink about 5 -6 beer in a week but in the weekdn I can reach +10..
( Im working out 4 days /7 too )
 
ask your doctor =P
 
Usually I drink in moderation
Sometimes the night gets a bit wild.
On weekdays I rarely drink, maybe a rum on the rocks as a night cap 1-2x a week
 
I dont' drink strong drinks only beer pils :)
I don't like whiskey or something
 
I always wonder how consistent this guy is when it comes to comments, see if anyone can figure it out
 
Sometimes I drinke havana club ruhm but only the brown one.
 
10:12 AM
Havana Club is for mixers
I drink Kraken or Myers usually
 
Is there any way to verify/determine that Bitbuckets POST Hook actually fired or not , and what was the error it encountered ? Any help please ?
 
I am going to start crying.
 
@Duikboot I gave up cigarettes a while back but still occasionally smoke a cigar.
Because Sicilian cigars are plentiful and great
 
I had to create a basic website with a subscription form now the whole validation process went via PHP. Now they want certain action where I have to use AJAX for problem... I there is no time/money to built it in Javascript.

So for example there was a username lookup if the user was found the form triggers an extra div with a select box.

Now when you click submit and you have an error in your form ... the AJAX check is gone ofcourse.. and when you refill the email field to lookup the user it wont' check the database anymore -_- what the hell..
@SweetieBelle "You think its bitter but I think its great. I also drink whiskey and we smoke cigars. Don't believe me? Smell our cars. "
For my problem what could be a solution? Using a session to see if the box is checked after a form validation?
 
10:24 AM
I don't think I will ever have a taste for Whiskey or cigars.
 
Is there a special reason for that?
 
I'm not much of a whiskey drinker
 
both give me GERD and whiskey makes me gurn.
 
I have a database with 400,000 bus stop coordinate pairs in. My mobile application makes an AJAX call to a PHP file in an API passing the screen bounds. The API would then perform a check on every single coordinate pair within the database and check if the passed coordinates (screen bounds) contain the pair in the database. The PHP file then takes all the coordinates that are within the screen bounds and prints them in JSON format. The application then displays these bus stops on the map.

Does this sound like the best way of doing this?
 
@JoelKidd You want to tell a user the busstop he could use?
 
10:29 AM
@Duikboot It's basically display bus stops on a map, obviously I can't display all 400,000 at once, so I'm just trying to display the ones the user is looking at (within the screen boundaries)
displays*
 
@JoelKidd You can do that comparison at db level...
 
So it are all long and lat coords?
 
Correct
 
Can you count a range you want between the point the user is?
 
It needs to be fast, this is my worry (I haven't done it yet, I'm just planning), ideally <= 1 second
 
10:31 AM
SELECT * FROM bus_stops WHERE longitude > screen_bound_long_min AND longitude < screen_bound_long_max AND latitude > screen_bound_lat_min AND latitude < screen_bound_lat_max;
 
How do you mean?
Oh sweetie
I think you just made my day
 
Something like that will be MUCH faster than doing 400,000 comparison operators in PHP
 
I LOVE YOU!! :)
jesus christ
How does that work though
I thought > just checks if a value is greater than etc
 
Also make sure you construct indexes on those columns in the db
It does
 
Maybe I just need to learn more about lat/lng coordinates if that works then
That's awesome
 
10:32 AM
If the bus stop's longitude is greater than the longitude at the bottom of the screen, and less than the longitude at the top of the screen, it works.
 
Thanks so much
 
As long as you dont allow rotation by the user and north is always top.
If you allow rotation its more complex
Remember to index on those columns, it will help a LOT
 
lunch brb
 
Can you tell me how the indexing will help?
 
10:34 AM
@JoelKidd This will explain better than I can.
 
Thanks very much for your help
 
No problem
 
i have an sql query .i want to execute it only one time using PDO
is there anyway to do it ?
 
God hakre that made me belly laugh
 
great to see you're still on your project. keep running on!
 
10:37 AM
If that was directed at me, thanks a lot dude :)
 
@ఠ_ఠ why do you have jQuery as a skill in your profile and you don't have js?
 
Learn vanilla.js, it's OP
 
alias name='command' Why has no one told me about you?
 
@iroegbu i know jquery API more than JS
that's why i added it
:))
 
How can tool (e.g. Linux here) be a skill? Weird.
 
10:54 AM
@Leri it can. If you're Linus :p
 
@Leri Many stackoverflow users seem to be skilled at being a tool, if that counts?
 
I don't get you.
 
@Leri It takes skill to correctly use a tool.
A programming language is a tool
(or rather, set of tools)
 
@hakre do you have time for a few PMs to explain my problem in detail (english aint my native so it is hard to make a good constructive text to explain the problem that I have :D)
 
@SweetieBelle Generally speaking, everything is a tool.
 
10:59 AM
@DaGhostmanDimitrov right now it's lunchtime over here.
 
I always thought and still think programmers' skill-set is programming languages, dbms and everything like that (i.e. everything that s/he modifies to satisfy business needs) and everything that s/he uses to manipulate with them is a tool.
 
@Leri not exactly right there
 

« first day (1055 days earlier)      last day (3909 days later) »