« first day (1494 days earlier)      last day (3454 days later) » 

12:00 AM
@LeviMorrison this also is an example of something I feel is counter-intuitive weirdness
Also, it's worth noting in the RFC that a trivial tool could be written to find and fix affected code statically @LeviMorrison
 
 
1 hour later…
1:16 AM
3
Q: Freelance job offer on public job board to buy Stackoverflow reputation

The AlphaI've found a job offer on a public job board here (completed) which has following description: Looking for a developer to user my account to answer questions on StackOverflow in order to build up my reputation. Questions must be related to listed skills(java, c# etc) Paying 20$ per 100 re...

LOL
morning
 
1:57 AM
 
2:31 AM
 
hello Ms.Andrea Faulds
i have a question i think your more experience than i am
i was wondering if you have encounter some issues when reading an excel with huge number and the display will be list like 1.2323ex12
 
@AndreaFaulds that guy is pretty full of himself, it's kinda basic stuff he's covering
 
when reading php code
i just want to have an import and output
hi CS
 
hi
 
would you mind helping me?
 
2:36 AM
then you're screwed, you just lost precision
probably
 
my problem is i have a functionality of having an import using xls
php coding is okay
but when example i have a field of SSS
then the numbers quite huge
so it automatically having a number of exponents
like
1.23928323ex4
in saving in the database it saves in this format also
do you have any simple thoughts on this?
which is not nice
the number you dialed is unattended press insert coins
 
@CSᵠ He's not full of himself. And, basic as it might be to you, an awful lot of developers don't know this stuff.
 
@boyee $$$ :)
and you want it human readable?
 
yes
 
you might be interested in BC and GMP then
 
2:44 AM
so that i can save it on my database
 
as having huge numbers won't help if converting to integer
yeah, but you're going to use extra space in your db
how large should your numberzx be?
 
atleast 24
 
digits
 
i have a solution on putting '
on the excel but some users dont like that
there too lazy in doing that stuff
 
yeah, store them as strings
use bcmath or gmp to compute stuff with them
@AndreaFaulds he is. but to be fair, the talk is actually quite good, 50 minutes and you're uptospeed with working with db's
 
3:00 AM
So, uh
See why we need bigints? :D
@boyee SSS? Is that some kind of ID number?
 
yes
mostly on country we do have huge numbers
upto 24 i dont know on your country
my recommendation was put single quote or double quote , but i'm worried about some lazy clients that would not follow some instructions
 
Hmm, it might be best to store it as a string, not an integer.
 
@AndreaFaulds I updated my safe cast implementation to only throw CastException: github.com/theodorejb/PolyCast/blob/optional-exception-methods/…
 
Especially if it can have a leading zero
@TheodoreBrown :)
 
3:39 AM
0
Q: How to insert a new line in an excel sheet cell using PHP?

PHPLoverI'm using a ready made class called "ExcelWriter" to write data from PHP to excel sheet. For this I'm creating object of class ExcelWriter and calling it's methods to do the operations using PHP. Till here everything is working fine for me. All the code is doing it's job well. The only issue is...

 
 
2 hours later…
5:43 AM
morning
 
6:00 AM
morning
 
moin
 
Job inteview in -2.5 Hours.
 
Best of luck!
Changing jobs?
 
[= Thanks, been selfemployed last 2 years.. Tired of it.. looking to focus on code code code in the future
2
 
6:16 AM
@RonniSkansing all the best!!!
 
@obiNullPoiиteяkenobi thanks! =]
 
6:51 AM
is there something like jsfiddle for php ?
 
@obi wow
 
posted on November 18, 2014 by Joe Watkins

Fig 1. Strict Easter EggAfter much discussion, the research conducted on introducing strict scalar parameter type hints without changing Zend has been bundled into a pecl package. To install the strict extension for PHP5.4+ execute the following: pecl install strict-beta Then append the following to php.ini, or add it to a file in the config file scan directory (ie. modules.d php.d): exten

2
 
@obi does databse also works in it ?
 
noop only php
@DipaliPatil lxr.php.net i use it more
 
6:59 AM
hello to everyone!
 
nice
but thats not enough, without being able to datamining php is useless
these sites must also provide database access.
a website which will allow all these facilities will be an instant hit...!!
 
i am disagree with your disagreement ... php is useful in its context
 
well they can't give you actual database access ... you can use sqlite3 in memory though, that might be an option
 
@DipaliPatil you can have local server :D whats the point ?
 
I had tried it on local server....but when I make any changes in my documents the out doesnt change....from then on I work on live server.
*out = output
 
7:05 AM
lol that is impossible :D
you are doing something wrong
 
I had used XAMP server
Also tried WAMP
whats the difference between XAMP, MAMP, WAMP ?
 
I'have a question about php. i have 2 system one desktop computer one my laptop. and i a have also small data entry system in local environment in my laptop i work for development after make changes i do override the file in desktop server. but since yesterday i'm facing some issue.
the issue is that.
I've a form for update entry. and it's worked exactly what i want in my laptop. when i copy same file or code into the desktop server it wont work. but all of other update script work proper in both side laptop as well as desktop
 
those are package so you dont need to install php , mysql , Apache separately ... and wamp, wamp for windows and mamp for MAC
@arif and about database ? did you make any change to database or its configuration ?
 
no same database as desktop. even i delete my hole database form laptop and export from desktop server and import in laptop but still work fine in laptop but not in desktop
@obiNullPoiиteяkenobi no same database as desktop. even i delete my hole database form laptop and export from desktop server then import in laptop but still work fine in laptop but not in desktop
 
you deleted hole database twice that is the problem :D
and i can not determine problem it could be because of Apache module not sure
 
7:19 AM
ini_set('display_errors', '1') on your index.php
might give you something
 
i tied to display error but nothing give any error. wait a bit and please try to understand this problem. in my script first i get job_code than delete all job against that job_code and than insert new record after inserting new record into the database it should redirect to index.php. in laptop it work fine but when i try to do same action in desktop it reload the same page as it is. no redirect no any error and nothing else..
@TejaKorlapati @obiNullPoiиteяkenobi i tied to display error but nothing give any error. wait a bit and please try to understand this problem. in my script first i get job_code than delete all job against that job_code and than insert new record after inserting new record into the database it should redirect to index.php. in laptop it work fine but when i try to do same action in desktop it reload the same page as it is. no redirect no any error and nothing else..
 
posted on November 18, 2014 by kbironneau

/* by NekPlusUltra */

 
7:39 AM
0
Q: How to insert a new line in an excel sheet cell using PHP?

PHPLoverI'm using a ready made class called "ExcelWriter" to write data from PHP to excel sheet. For this I'm creating object of class ExcelWriter and calling it's methods to do the operations using PHP. Till here everything is working fine for me. All the code is doing it's job well. The only issue is...

 
hello guys
I've completed a project...
But I'm not sure about its security...
What all things must be checked for security ?...
.htaccess ? That I dont know..
How any virus or bot can affect our website ?
 
7:55 AM
@DipaliPatil shiflett.org/articles for now
 
8:24 AM
morning
 
morning
 
'nin
 
@DipaliPatil You don't build something without having security in mind. Caring about security afterwards is like building your project again.
 
8:37 AM
good meurning :)
 
good morning
 
*grunt*
 
Mornin
quick question here
 
@salathe gruntjs.com
 
8:53 AM
Morning
 
in pdo placeholders , lets say i have a query like so : select * from table where name ='". $name."'";
in pdo is is it necessary to keep the variable name wrapped with the ' ' ?
or can i just go like like ! select * from table where name = ?
name = $name
 
just try it :)
 
i think it works wo ''
 
that's correct
 
ok thanks :)
 
8:56 AM
additional examples can be found at php.net/manual/en/pdo.prepared-statements.php
 
i had this doubt bc with ids (Ints) we dont ususally need simple quote
so iwas just wondering
anyway thanks a lot for confirmation @Gordon
 
yw
 
the world is such a cool place with guys like you :)
 
Morning
 
ThW
Morning
 
9:07 AM
moin
 
ouch ouch, my eyes, my eyes
 
is there any way to voice call or video call in stackoverflow?
 
Hello
Does anyone know if there's a bug in mysqli::bind_result that won't bind one variable ?
 
@arif This is not codementor.io :)
 
@arif google hangouts
 
9:31 AM
Anyone ?
 
@ShowTime well .. it could be , but it seems more likely that you are just doing it wrong
 
Yea, so erm
 
occam's razor & shit
 
I've an issue with bind_result, it seems like it doesn't bind the last parameter no matter what.
 
if you are not looking for moral support, you should probably post some code
 
why are you prepareing the same statement in a loop ?
 
Because I always change the categid variable ?
 
that's not how prepared statements work
 
posted on November 18, 2014 by kbironneau

/* by @csrabl */

 
So I can just repeat bind_param and execute() without always starting a new statement ?
 
9:35 AM
I am kinda convinced that you can also bind once, and just execute in a loop
 
Hmm
 
there is a differenve between bind_param() and bind_value()
 
I'm not using PDO
 
> bool mysqli_stmt::bind_param ( string $types , mixed &$var1 [, mixed &$... ] )
this is the footprint of method
notice the "&"
 
yes...
Isn't that used for var reference ?..
 
9:38 AM
yes , but in the essence, it means that the process binds the variable itself, not the value
 
How would you loop through multiple rows using MySQLi then ?
 
also, you really suck at javascript
 
PHP...
Also why do I 'suck at javascript' ?
 
$this->query = "SELECT id, question, answer FROM faq_questions WHERE category_id = ?";
$this->stmt = $this->mysqli->prepare($this->query);
$this->stmt->bind_param("i", $categid);

foreach(array_keys($this->categories) as $categid) {
    $this->stmt->execute();
}
@ShowTime because you write crap like this: <div class="question_desc_odd" id="q_desc[%i]" onClick="questionPop(%i)">%s</div>
and sorry, but it IS crap
 
Explain my why it's crap...
The [] part ?
 
9:45 AM
because you are doing it wrong: jsfiddle.net/teresko/ZSjnn
also, you shouldn't be abusing IDs
 
we all love teresko's subtlety :)
 
@RonniSkansing how went the interview?
 
Monring @Jimbo
 
@DamienOvereem did I say something wrong ?
 
9:54 AM
Nope. You are just being your loving self. No insult intended. Your way of communicating things can just hit people in the face like a brick.
Does get the point across though :)
 
not sure it does
 
 
lol @Jimbo
 
You can either get pissy that you got a brick in your face, or you can figure out what you can do about it ;-)
There's only one choice that helps you. You choose.
Omg, I'm all philosophical this morning. It's because I'm working from home ;-)
 
That helps doesn't it :)
And I'm not saying its a bad thing. Gordon Ramsey also has a lot of success with the same method.
 
10:02 AM
Morning @DaveRandom
@Gordon I heard last night that gulp.js is what all the cool kids are using now ;)
 
@Jimbo I dont care for the cool kids, so whatever they want to use ;)
 
@Gordon Thought you were 'hip'!?
Anyway, I was introduced to it last night and I've been told it's pretty good, just thought you might be interested :-)
 
@Jimbo nah, never was. It's too stressful always chasing the next hip thing. JS is a perfect example for that.
 
lol
 
mornings
ping @salathe
 
10:08 AM
I am trying to add an email adress to this array: paste.jesse-obrien.ca/X7a
Is this the correct way pretty unsure about this -.-'
Good morning btw :)
 
your indentation makes small children bleed
 
It's about line 6 and 22.
 
it's more like this imho:
 
It's a ugly copy paste from a wp plugin wich has no hook ability which s$cks
 
@DaveRandom pong
 
10:10 AM
@salathe Did you see news.php.net/php.doc/969385244 and does that sound like an awful idea to you?
 
$smtp->SendMessage($email_from,
                                  [$email_to],
                                  ["MIME-Version" => "1.0",
                                   "Content-type" => "text/html; charset=iso-8859-1",
                                   "From" => $email_from, ...], $message);
you get the idea
 
@Duikboot you want to add another recipient ?
 
yes.
 
then add a BCC field
 
Should be even more awesome if I can add this one in CC.
 
10:12 AM
that array has no specified keys
 
It just looks like shit... I don't like it but I only have to modify this part so .. I should try. :D
 
therefore, unless it does some really fancy string manipulations, you can add whatever fields you want in it
 
@DaveRandom I wouldn't say awful, but no I'm not a fan.
 
@Duikboot basically this: stackoverflow.com/a/14238267/727208
 
Ok let's see ... ( Everything in this file looks so 'dirty-written'. )
 
10:14 AM
This whole translated parameter names seems to be making a mountain out of a mole hill. The only problem anyone has at the moment (enough to raise bug reports) is when the languages are mixed. It's inconsequential IMO whether they're English everywhere, or translated, right now. That said, if we did want reflection (and ultimately named parameters) to match the docs; we only have one option, make them English, always.
 
@salathe Given that (and I realise you think this is currently irrelevant but ignore that for a second) if named params are introduced, in that scenario, how would you like to handle the fact that (assuming the policy is to allow them) both the translated and src names would need to be included in the translations, how would you like to handle it in terms of the XML structure.
 
If named parameters came along, translated variable names would not make sense: make them be English.
 
@salathe I have seen real people actually complain about the reflection issue before, I know @rdlowrey (or someone) had issues with it in the context of something to do with Auryn
 
well, he wrote a dependency injector...
 
10:16 AM
I believe we (you and I) have also discussed this exact issue before now
You had a tool based on comparing the reflected names against the manual XML, iirc
unless I dreamt it (I may have done :-P)
 
That's when reflection and the English docs don't tally, which isn't quite the same issue.
English should always match reflection, IMO
(or, vice versa)
 
@salathe Indeed, but if named params are introduced then it will become one and the same issue
The src isn't going to specify the name twice
 
Yup, if they're introduced.
The easy decision right now would be: make everything English.
(and make reflection match the docs)
 
But since the reflection issue already exists, it would be good to solve the problem now at a more leisurely pace while it doesn't matter as much, rather than having to rush a solution when it really matters
@salathe Indeed, however that is a (very minor) BC issue
 
10:19 AM
also there are places where both the docs and the src have not-awesome names
I don't have a concrete example to hand, but I know we found some in the past
Hence, what I would like to do is build a tool to mass-audit the src vs. the docs and fix the problem now, while it matters less
esp. since PHP 7 is coming up, and a minor BC break in this regard is a lot more likely to slip in without too much complaint
Just my $0.02
 
Well, fixing the translations to use English variable names would be the smallest of the jobs really. I wouldn't have any problem against making "use the English parameter names" becoming a rule.
 
OK, cool. The translated names issue is, I agree, entirely separate
But there is a relation, in that if translated names are allowed then it wouldn't be great if users of the translations had to go to the English docs in order to find the naming information
 
@FlorianMargaine Can this work? "From: $email_from , $ccAddress",
 
No ^
 
when $ccaddress is a with an email
 
10:24 AM
In theory in should, in practice many servers don't handle it right
 
Im confused why this is working in the wp plugin: "From: $email_from ", I should think it should be something alike: "From: " .$email_from . " coolemail@server.com",
 
@DaveRandom Go for it. :)
 
I will be attempting to do so very soon
 
It may not be very easy...
 
10:28 AM
Don't forget all of the exts ;)
 
@DaveRandom Is that cleaner?
 
@salathe Yeh I was just going to walk the PECL tree, probably after pre-processor as there are probably some exts that define weird macros to do arginfo
@Duikboot You'd do:
To: to@address.com
CC: cc@address.com
CC: another.cc@address.com
You can also use Person Name <email@address.com> syntax to specify each address
 
in double quotes, no?
 
Oh, maybe
Google it
 
10:31 AM
I never have to work with email any more
@FlorianMargaine :-P
Actually I am eventually going to write a full SMTP imple for use in non-blocking scenarios
But every time I sit down to start it I start reading the SMTP specs and swiftly lose the will to live
 
oh dear
yeah SMTP is not good for the sanity of mind
 
It's not a particularly complex protocol, but it's extremely badly designed and has had all sorts of weird things bolted on the side over the years
Much like HTTP...
 
it's something I want to do too tbh... email is too obscure for me. I want to know exactly how it works.
 
I need to write a generic MIME parser first, that's step one really
 
I once wrote a custom mbox parser... got stumped at how hard it was
 
10:34 AM
And something that can turn a mime message into a stream in a sane way
 
@DaveRandom Like this? Oo paste.jesse-obrien.ca/X7V
 
@FlorianMargaine Yeh never even opened that particular box of horrors. I'm probably OK, tbh
@Duikboot No, separate lines. Suggest you go learn how MIME messages work in general...
 
@DaveRandom I ended up writing ~95% of cases... good enough for the app that needed it
the 5% left? fuck'em.
 
I think that's probably pretty common with email stuff, there are so many weird vendor-specific extensions
Very surprisingly, one of the least-bad offenders in this regard in MS
 
really?
between thunderbird and outlook, outlook is the least-worse?
between postfix and exchange, exchange is the least-worse?
 
10:37 AM
Exchange used to use all sorts of weird and wonderful SMTP extensions, but they switched to this RPC-style protocol ages ago and Exchange doesn't even support the old weird things any more
Their SMTP connectors are "clean" and "standard", in so much as it's possible to be either of those things in this context
(I have gone quite far down this particular rabbit hole in past)
 
Does anyone else see quite a few friends on their social network of choice keep complaining about "there's no jobs anywhere!!" - when all it takes it to save one months rent and find a job somewhere else in the country
Winds me up
 
10:53 AM
Ok lets look for a Mime cc header
 
@Jimbo Yeh also if they're PHP devs, that's really not true, every month at phpnw there are people whoring for new devs
 
@Jimbo moving is not easy, nor cheap
I stayed in the same region and moving cost me 2-3 months of rent
and it means moving away from your family/friends
 
@FlorianMargaine With one months rent, if you don't have any kids and you're not a carer, you can do that. Moving only costs the travel to the new place and the first months rent and food
 
headers & Cc says no.
 
@Jimbo Or a good LinkedIn profile :)
 
10:56 AM
@PeeHaa Add :!SSLv3 to the cipher list
 
@ManeatingKoala linkedin sucks
 
@ManeatingKoala Obviously you'd find the job first...
 
Not sure why that would be necessary, have to updated the to latest openssl?
(not sure if that would make a difference, tbh)
 
Why does it suck? It got me all my jobs and offers
 
It's because nobody wants JS devs ;) trololol
 
10:57 AM
Aren't "man" and "eating" separate words?
 
@ManeatingKoala I'm mostly spammed...
 
Or is your name actually Maneating
That would be unfortunate
 
Man-eating tree can refer to any of various legendary or cryptid carnivorous plants that are large enough to kill and consume a person or other large animal. In actuality, the carnivorous plant with the largest known traps is probably Nepenthes rajah, which produces pitchers up to 38 cm (15 in) tall with a volume of up to 3.5 litres (0.77 imp gal; 0.92 US gal). This species may rarely trap small mammals. == The Madagascar tree == The earliest well known report of a man-eating tree originated as a literary fabrication written by Edmund Spencer for the New York World. Spencer's article first appeared...
 
Not yet able to use this Carbon copy. paste.jesse-obrien.ca/X8P Must be doing something wrong.
 
I got my jobs through confs or ear-to-mouth... or whatever the word is
 
10:58 AM
@FlorianMargaine foot-to-mouth
4
 
"Word of mouth" is the English expression
 
ah, thanks
 
@FlorianMargaine I'm spammed too, but still once in a while there's a good offer
 
in french, literally translated, it's "mouth to ear"
 
Dont exactly know what you are trying to accomplish Duikboot, but if you want to do anything with attachments, you'll need to look into "boundary"
 
10:59 AM
@FlorianMargaine That makes sense I suppose
 

« first day (1494 days earlier)      last day (3454 days later) »