« first day (1586 days earlier)      last day (3359 days later) » 

12:12 AM
@PeeHaa Watch out, you don't want a bunch of VC-backed circlejerking blowhards on your case for actually trying to improve the quality of the site.
 
oh no, another scalar type hint proposal
I thought sara was going to take over the old version with a tweaked declare
 
@Charles I want to be a VC backed circlejerk :P
 
hello, is there a way to capture class not found error and define it at runtime something like __call magic method but for classes ?
 
how could you be so fast ? are you a robot :)
 
12:19 AM
That said, if you create classes at runtime instead of load them, whoever inherits your code is likely to hate you.
@someone One word replies are easy and I type quickly.
 
thank you that's solves the problem. but that's really impressive :)
 
@Sara Right; I was just saying that I think it's odd we duplicate it. I am definitely in favor of moving to the zend_arg_info.
In general I'd like to unify behavior or user-land and internals functions.
Right now you can observe several difference in how they handle errors.
 
Yep. It makes me sad too
 
@Charles can i get the called property name or that's beyond the limit ? like SomeClass::$property define the class with __autoload and the called property
 
@someone Sounds like you're looking for the magic __set and __get.
 
12:31 AM
yes that's what i thought after posting the question lol
thanks
 
1:08 AM
> int->float is actually secondary to "123"->int.
I hope that this is not the direction the "strict" mode is going to be taking.
 
1:52 AM
How would I be able to tell if 'php://input' is populated? I know it's a simple question and I looked around a bit, but to no avail.
 
user895378
$input = file_get_contents('php://input');
$isPopulated = isset($input[0]);
 
user895378
If you're worried about buffering large amounts of data all at once just use fopen() + fread()
 
user895378
We hates php://input, precious.
 
Why do you hate it?
 
user895378
Let me rephrase: I dislike the web sapi in general. php://input is fine.
 
2:02 AM
Oh, okay, good, scared me for a minute. Have to use it, I'm coming from NSChat, iOS doesn't let you do it any other way.
Thanks for the help.
 
2:20 AM
Hey good news guys: I may get to go to a PHP conference or two on my work's dime!
I don't get to do much with PHP at work so it was somewhat of a surprise.
They want us to get training (and they especially like conferences) and we couldn't any more directly applicable training, so my boss is going to talk to his to try to clear it.
So in that vein: what conferences in the continental US or in Switzerland will you guys be attending this year?
(the Switzerland bit is half-joking)
/cc @rdlowrey @ircmaxell @NikiC @bwoebi @Andrea @Danack @DanLugg @salathe @Sara @m6w6
(and everyone else too!)
@LeviMorrison couldn't find any more*
 
2:40 AM
@rdlowrey Tricksy && false?
 
3:05 AM
Still can't sort this setcookie issue. I set a cookie value, then 30 minutes later try and overwrite it with exactly the same but different content, in my browser it has not changed even though the code has ran and returned true on setcookie?
 
Are you sure the path is the same?
 
it's exactly the same.

Can you do $_COOKIE['cookie'] and then setcookie('cookie', after in the same page load?
 
Btw, if you leave the path empty, that's not considered the same.
 
setcookie('rememberme', $cookie, time()+60*60*24*30, "/", "domain.com", true);
 
That should be fine.
 
3:10 AM
hmm this is very strange
 
You know that $_COOKIE doesn't update when you call setcookie() inside the same request, right?
 
yeah that's fine, it's just not overwriting them with the new values :s
there's no way to unset a cookie then immediately reset it?
or if you're overwriting the time doesn't need to be in the future or anything strange like that?
 
3:31 AM
Are you checking the response headers?
 
if(headers_sent()){
returns false after setcookie
 
4:23 AM
Hi, can I ask how can I convert this 6180864 to make the output like this 8844373
 
4:49 AM
@jemz Add 2663509
 
5:11 AM
@Sara, Y we add ?
 
5:49 AM
How would I be able to save the contents of php://input to the disk? I'm aware I'd use move_uploaded_file(), but I'm not sure what variables I would pass.
 
6:20 AM
This is worth reading considering it affects most server side languages and frameworks.

It's about Path-Relative Stylesheet Import Vulnerabilities
 
'nin
 
mornin
 
6:43 AM
downvote please
-9
Q: What is the faster parsing process between Flash VS PHP

Josua Marcel ChrisanoI'd like to know about parsing process between Flash and PHP comparing between: {"test1":10,"test2":0.2,"test3":50,"test4":"40"} // in json // FLASH should parse test1 as string, test2 as int, test3 as string, test4 as float and {"test1":10,"test2":0.2,"test3":50,"test4":"40"} // in request ...

-9
Q: What is the faster parsing process between Flash VS PHP

Josua Marcel ChrisanoI'd like to know about parsing process between Flash and PHP comparing between: {"test1":10,"test2":0.2,"test3":50,"test4":"40"} // in json // FLASH should parse test1 as string, test2 as int, test3 as string, test4 as float and {"test1":10,"test2":0.2,"test3":50,"test4":"40"} // in request ...

 
1 message moved from [Java and Android era ](chat.stackoverflow.com/rooms/19132/java-and-android-era)
 
good morning
 
7:13 AM
good morning
 
@NikiC ping
moin all
 
morning all
Puzzle
Guys am weak at probability so please help me..!
what is the chance of 3 to come if there are 5 numbers in an array and if we pick out a number from an array it will be 3
array(8,4,3,7,9) how to do it via a function?? Thanks
 
7:35 AM
posted on February 18, 2015 by kbironneau

/* by QQping */

 
@user2736704 count_of_occurence / total
in your present array result will be 1/5
 
I have found this example but isn't working
function probability($arrayOfValues = 0, $probabilityForNumber = 0)
{
$probability = 0;
$occurence = count($arrayOfValues);
foreach($arrayOfValues as $value)
{
$probability = $probability + $value/$occurence;
if($value == $probabilityForNumber) break; } return $probability;
}
$arrayOfValues = array(8,4,3,7,9);

echo probability($arrayOfValues)."<br/>";
Is this logic gonna work for probility?
Let S be the sample=8+4+3+7+9/5
 
7:55 AM
that's average
function prob(array $arr, $val)
{
    $count = count(array_keys($arr, $val));
    return $count / count($arr);
}
this probability right? mathsisfun.com/data/probability.html
 
mng
 
good morings
 
Hi
I have stored  image links from some  websites  as varchar datatype  with this code I can display links in a php file  echo    $row["test_name"]  ;
but I failed to display the images
echo "<tr><td><img src='".$row->test_name."'></td>";
I tried with the previous code but I failed
 
I do have several translation units of about 10Klines. But it is a matter of opinion and habits. I strongly dislike Java because it almost forces to have a lot of small source files (only a few hundred lines each). — Basile Starynkevitch 2 hours ago
Oo
 
Moorning
 
Hey guys,
I am looking for some advice
 
search over there, I'll cover this area
 
In your opinions, what do you think would be good? Is it O/L -> Advanced Level and Degree or O/L -> Foundation Course and Degree
 
I have stored image links from some websites as varchar datatype with this code I can display links in a php file echo $row["test_name"] ;


but I failed to display the images


echo "<tr><td><img src='".$row->test_name."'></td>";


I tried with the previous code but I failed
 
8:14 AM
What do employers give more preference to?
 
depends on the employers...
 
@iroegbu Thanks the probability for 3 would be 1 when two dices are rolled up and the result would be some thing 1/6 and 0.02 :) {3,3}
 
@FlorianMargaine In your opinion, what would be the best path?
 
there's no best path
and you certainly shouldn't trust an internet stranger to decide for your future
 
Eh
I cannot trust anyone
But I wanna analyze everyone's opinions
 
8:18 AM
you'd better ask indian people anyway, your question is country's specific
 
I'm not Indian. :/
I'm Sri Lankan.
And I have no plans to work in Sri Lanka either
 
oh?
my bad
 
My goal is to work in England
The University i'm joining is fucking cheap lol!
 
rains a lot ...
 
@user2736704 gwydir.demon.co.uk/jo/probability/calcdice.htm understand probability first, then implement.
 
8:21 AM
drive on the wrong side
no real money
 
@HassanAlthaf May I ask why England and not some other country?
 
messed up metric system
 
@Leri Cuz I like that country as it has a lot of people living with the same race as mine in there.
 
Weird goal to me but good luck with that.
 
good meurning!
 
8:24 AM
@HassanAlthaf My goal is to work in Germany ,Netherlands or England
 
8:37 AM
@JavaFan Why Netherlands?
 
@Loko It's a very beautiful country
 
@JavaFan I live there
 
You've earned the "Enthusiast" badge (Visited the site each day for 30 consecutive days. (Days are counted in UTC.)).
yeah :P
 
@Loko you are so luckly
 
@JavaFan Where do you live?
 
8:45 AM
sudan
 
aha
 
@Loko Are there jobs for java developers?
 
@MarcelBurkhard most of us have the fanatic badge...
 
@JavaFan No idea. Im still in college
 
@FlorianMargaine yeah multiple times probably
 
8:48 AM
Hi @MarcelBurkhard
 
and I've seen posts on meta, 2000 days, 2000 conse...
hi @JavaFan
 
Yesterday I tried to configure symfony2 with Eclipse
 
Not success yey
yet
but I will try again and again
 
I have a meeting shortly, lets discuss that later ok? chat.stackoverflow.com/rooms/68838/symfony2
I'm working with eclipse too..
 
8:51 AM
I know this might not necessarily have to do with php but I need to know it for my code. A table that's 7*4 with every column that has the possibility to get a 0 or 1. How many combinations are possible?
 
so 56 ok thanks
 
That would be my guess yes
 
I have a freaking annoying problem :S
-2
Q: Code to insert 150+ rows in mysql automatically

LokoIm trying to write a script that inserts 392 rows in the database. There's a group column, that has 7 pages and with those 7 pages there's a crud system in it. So atm I insert this with my code: group | page | create | read | update | delete | 1 | 1 | 0 | 0 | 0 | 0 ...

 
ugh
392 queries is never a good thing
 
8:56 AM
Yeah well I need to insert 300 things actually
 
INSERT lets you insert multiple things in one query
 
392 to be exact
@FlorianMargaine yeah ok I know. I'll edit that but the problem I'm having, I dont understand it at all
@FlorianMargaine The php code I've written there is just made in like 2 minutes.
 
oh, it seems you want people to write the algorithm for you?
 
No I dont understand the algorithm. With a little help I could go on my way
I've never written anything like this at all
 
@Loko I'd try starting with a nested for loop, i=0;i<7 and j=0;j<7
 
9:00 AM
@MarcelBurkhard Euhm why like that?
for what part is this?
 
in general
you have 7 x 7 x 4 x 2
 
@MarcelBurkhard yes that's 392
 
probably cumbersome to loop over 392 and then calculate divide by 7 etc.
but your use case isn't really that clear to me
 
@MarcelBurkhard yeah i kinda did that already by the $page%8==0
 
9:09 AM
moin
 
@MarcelBurkhard What dont you understand? tell me
 
@Loko but why would you do modulo by 8?
@Loko everything, take a step back and explain what you are trying to do
 
@MarcelBurkhard Ok everything written in php there works. The page and group insert is going as planned
@MarcelBurkhard I want to insert all the possible crud combinations like so:

|maincolumn|column1|column2|column3|column4|
|page1 | 1 | 1 | 1 | 1 |
|page2 | 1 | 1 | 1 | 1 |
|page3 | 1 | 1 | 1 | 1 |
...
|page7 | 1 | 1 | 1 | 0 |

and:

|maincolumn|column1|column2|column3|column4|
|page1 | 1 | 1 | 1 | 1 |
@MarcelBurkhard Any questions regarding this?
 
9:25 AM
sry I don't have much time right now
but 0-7 is 8 thus, 392 is definetely wrong
would be 512
8 combinations
 
@MarcelBurkhard thanks anyway
 
http://thecodinglove.com/post/111362192713
The coding love
Seeing the state of the project after the intern left us
kbironneau
1424251834
 
go home feeds, you are drunk
 
Any of you have some free alternative geckoboards you use?
 
9:42 AM
Guys, suggest me something to code?
 
@HassanAlthaf free geckoboard alternative
 
wtf is that
Link me, my google search engine ain't workin
 
@HassanAlthaf a browser plugin that automatically googles something for you when you type a question in the chat
 
A browser plugin in PHP?
how?
I thought they were written in compiled languages
 
9:45 AM
you didn't specify lang
 
A sarcasm detector would also be an idea
 
l0l
What exactly is GeckoBoard I dont get it lol
Geckoboard is the quickest way to create beautiful dashboards and get an instant overview of your data.

Connect your data, build your dashboard and share with your colleagues. No coding, no maintenance and no fuss - You’ll be up and running in no time.
 
@Patrick that should be hard... just look out for sarcasm punctuation, maybe
 
@iroegbu eh, it needs a crap load of JavaScript and AJAX
 
typo... I meant "shouldn't"
 
9:48 AM
Any other ideas?
 
@Fabor github.com/Freeboard/freeboard not used it though
 
@JoeWatkins Dropping constants? That's not enough, we should also drop variables.
 
@Leri LOL! You missed out Arrays
 
9:52 AM
meh, array is just a type.
 
@JoeWatkins yeah I laughed :D
 
I need some ideas for a new PHP project. I've only coded stuff like a Blogging System, Accounting System, etc. I want something challenging, inspiring and something that would make me to learn something new! May it be a Library or Application, I am alright with any. So, shoot out your recommendations!
 
Depends on your goals.
 
Got one @iroegbu dashing.io :)
 
was just looking at that
 
9:55 AM
@Leri I don't have a particular goal. My goal is to be as diverse as much as possible.
 
is it ok to rely on allow_url_fopen?
 
I should stop wasting time building side project for these presentations
 
Bah it's in ruby
 
I need it for mPDF
 
@HassanAlthaf Write some financial system. Hire an accountant though.
 
9:57 AM
@Leri eh, I dont wanna do something related to businesses just after doing a project which was related to that.
 
@MarcelBurkhard thank me later
 
@HassanAlthaf Well, php is pretty limiting to web... and in web that's the most fun stuff I've worked with.
 
@Patrick hoster doesn't allow wkhtmltopdf
@Patrick trust me I already checked, would love to use that thing :)
 
@Leri I know right.. :/
Python is a cool language
 
@MarcelBurkhard what do you mean by hoster? are you using a shared host?
 
ThW
9:59 AM
Morning
 
But it's syntax makes me go mad
 
@HassanAlthaf What's wrong about it?
 
@Leri I don't like it. I like it when a language uses those beautiful braces and parenthesis which Python lacks.
 
Learn Lisp then. :-)
 
ThW
hehe
 
10:01 AM
@Patrick Yes exactly (Not my fault)
 
I'm learning Java. @Leri
 
10:12 AM
how to fetch data from both tables via many to many relationship in laravel??
 
... laravel.io?
 
I know I'm meant to be interested ....
but but ...
I'm just not ...
 
I'll just wait for @rdlowrey to explain to me why I should be excited.
 
I read about it a few months ago, it's maybe got some exciting stuff for server programmers, but for us it won't really matter I don't think ...
I can be wrong, waiting for daniel also ..
 
mornings
 
10:39 AM
@JoeWatkins well, php -S could be improved to take advantage of http2
 
okay but no matter the language, it doesn't really effect server side programmers, if a language is to take advantage of something at the server layer (which they don't really do), then it won't mean anything to us, in php, java, c#, etc ...
 
Morning @tereško
Must be close to new PC() time now...
 
I am already ordering in the parts
 
Nice. What's the first game on the list?
 
btw, are there any reasonable alternatives to Noctua case-fans ?
 
10:45 AM
@tereško Phanteks
@tereško I'd just go with Noctua though, very satisfied with mine
oh sry you're talking about case fans? Just choose a a big diameter for the fans, makes it quiet
@tereško newegg.com/Product/…-na--na-_-na&AID=12087162&PID=3899435&SID=skim14‌​02X558040X4270f5df346143aacfd33896963efcbc&utm_medium=affiliates&utm_source=afc-S‌​kimlinks
 
for CPU I am going with Kelvin S24 from fractal design (seemed better than Nepton 280L and Hydro H100i)
 
ok I googled a bit, newegg.com/Product/…-35-856-012--Product
on newegg they're all rated with noise levels and air flow
 
yeah, this one is up to 35dB, with pretty mediocre air flow
 
1
Q: How to get data from both tables in manytomany relationship?

asimI have users and emails table. Each user have many email and each Email can have many users. I have users_email pivot table to query for data. $all=User::with('emails')->get(); The above query works fine but now I want to use WHERE clause to fetch a specific user with specific email. I've tri...

 
@Fabor mostly the stuff that I already have in my Steam library .. but I first have to build that thing
I already have the case and they are currently shipping video card, cpu and cpu's cooler (and I have figured out what I want for motherboard and PSU)
 
10:54 AM
@user2736704 enjoy the rpe
*rep
 
@MarcelBurkhard this one actually seems promising
 
Hey guys, trying to get my question asking block out.
 
@HassanAlthaf please learn the language and stop guessing code
 
@tereško this is a very old question. And I wasn't guessing code, it wasn't working.
 
@HassanAlthaf I downvoted just because you asked for an upvote
 
10:58 AM
also, asking for upvotes in chat is against SO policy
 
Oh.
Sorry I didn't know
 
also, same applies to asking for downvotes
there was a huge shitstorm about in in Meta more than a year ago
 
@tereško Build is easy enough, just make sure you put the heatsink backplate on before you screw the motherboard in.
Don't forget thermal paste too.
 
what I am more worried about is whether there will be enough clearance for radiator and whether I can achieve a positive air pressure
 
11:20 AM
@tereško I don't know, where is the fan, rear, bottom?
 
the box that I have is Define R5 .. so the answer would be "anywhere it needs to be"
 
To be honest I bought a cooler master case with case fans already included because I was to lazy
that doesn't look like it has good airflow, although that could be a good thing when it comes to noise
oh wait from behind it looks ok
 
I am thinking of putting two powerful ones in the front and at least one in the bottom
 
Mornig
 
@tereško are you planning on doing SLI / CrossFire?
 
11:23 AM
not at first, but yes
 
I received my second gtx 770 for sli on monday
shipped it back today, not satisfied, I'll stick to single gpu and ugprade to gtx 980 soon or the new amd 390x
so the point is, and thats not just my opinion: Go SLI or not, but make up your mind now, because you won't get another one later probably
 
I ordered this one ... I think I will be good for now
 
I have this case: http://www.newegg.com/Product/Product.aspx?Item=N82E16811119225

and with a single gpu I have no heat issues whatsoever
and its not loud too
@tereško yes definetly, but chances are you're not going to do crossfire ever
I would just use the case with its 2 fans that are already supplied, should be sufficient
 
I want to play around with it :)
some overclocking'n'shit
 
I overclocked too
you already ordered the case?
 
11:30 AM
I already have the case
 
alright
 
it arrived 2 days ago
 
It seems my case has 4 fans
so you'll order the COUGAR 120mm fan?
 
I will be looking at 140mm ones
 
@HassanAlthaf that's not working buddy
 
11:32 AM
but I will do some research first
at least now I have some alternatives
 
they have those too newegg.com/Product/…-35-553-007--Product
good luck anyway
 
also, the case come with only two fans and has spots for 8 fans, airflow in general won't be an issue .. directing it - might be
 
@JoeWatkins pong
 
@NikiC morning, when you have a minute could you look over the pr for expectations rfc from dmitry please ?
 
11:35 AM
I can't decide if what he has done is strange
 
@PeeHaa open for delv
 
@PeeHaa new project. OS Real time stats dashboard.
Go!
 
@Fabor What part exactly is it about? The getting stats pert or the frontend part?
 
@JoeWatkins yes
 
thanks
 
11:37 AM
Simple Network Management Protocol (SNMP) is an "Internet-standard protocol for managing devices on IP networks". Devices that typically support SNMP include routers, switches, servers, workstations, printers, modem racks and more. SNMP is used mostly in network management systems to monitor network-attached devices for conditions that warrant administrative attention. SNMP is a component of the Internet Protocol Suite as defined by the Internet Engineering Task Force (IETF). It consists of a set of standards for network management, including an application layer protocol, a database schema, and...
le protocol
 
@PeeHaa Both mainly. Make it so people just config sources to their data. Configure what they wanna see and boom. Dashboard
 
Yeah snmp is a good start for that
 
@tereško will you get a freesync / display port 1.2a monitor?
 
@MarcelBurkhard no, it's a bit far-off at the moment
it only will be available for general public in winter
 
I have a korean overclockable 1440p monitor, no g-sync / freesync though :S
but standard v-sync @ 105hz works fine for me
 
11:41 AM
I think freesync/gsync will be universally available only when 1.3 monitors/cards come out
hell, I don't know any 1.2a port cards ATM
 
ah thats not the issue
current amd gpu's are already compatible
they can patch it with software
 
I thought that they need 1.2a port (instead of 1.2)
 
same with hdmi 2.0
takes the same ports/cables as hdmi 1.4
but you need different "firmwares"
and you can't install new firmware on your monitor
but amd can patch the firmware of your gpu
 
well, I havent even begun researching monitor yet
 
Cliffnote: your 290x will support it
 
11:47 AM
cool
so it seems to have some longevity (aside from the 8GB thing)
 
oh I think 8GB should be fine
unless for 4K Surround
 
ping @PeeHaa
 
as in 11520x2160 pixels
 
I will be aiming for 1440p ... also those 3440x1440 curved ones looked awesome AND expensive
 
n/m @PeeHaa, E_PEBKAC
 
11:51 AM
@tereško what refresh rate?
(although that has nothing to do with VRAM, just curouis)
 
currently they are at 60
 
anyway 1440p you'll be fine
 
@bwoebi Done, and updated dep in amphp/dns (but not done a release of that) /cc @rdlowrey
 
I have no issues with a GTX 770 4GB at 2560x1440
8GB should be plenty
 
I got a GTX 780 and it cost me £520 when I got it :/
Then went down £100 the next week
 
Bad luck @Jimbo
 
BF4 only uses 6GB of VRAM at 4K surround it seems
 
well, Shadow of Mordor wants 6GB for the HD texture pack
 
Does it not lag in PS3 and XBOX360
Gotta take a shower, ttyl
 
you probably play 720p@30fps on PS3/XBOX360
consoles are a joke
 
11:56 AM
Heya All xD
Any Yii expert ?
 
only yii-haters
 
Ouu!
Why do you guys hate it ?
 
@TheLittleNaruto here are few reasons: stackoverflow.com/a/10960679/727208
 

« first day (1586 days earlier)      last day (3359 days later) »