« first day (1798 days earlier)      last day (3376 days later) » 

00:02
^ looks more like a common email client bug, also the TLD rfc says "is intended for use in..." so it's not something that should be impossible to happen.
00:33
@LeviMorrison not sure if you were planning on working on it, but that chap on internals does have a point; any RFC for enums ought to cover what happens during serialization. And people are quite likely to want to be able to control what an enum is serialized to.
@Danack Don't know what there's a big discussion? Just serialize as o:1:{s:7:"ordinal";i:1} ?
@bwoebi PHP's crappy built in serialization of objects is not the only serialization. If you want to serialize anything else you need to be able to do something like:
class Foo {
    function toData() {
        $data = []
        foreach ($propertyToSerialize as $property) {
             if (is_object($property) == true) {
                 $data[] = $property->toData();
             }
             else {
                 $data[] = $property;
             }
        }
        return $data;
    }
}
Or similar.
For scalars you just want the value.
For objects you can control the toData method.
For enums.....people are going to want to control how what it gets converted to.
Anonymous
@Danack What is this $property.toData()?
So that they can have readable data.
@samayo An obvious typo. which should be ->
Anonymous
00:44
Oh, sigh of relief.
@samayo I call it, Japha
@Danack I'd called it C, but okay ^^
So even for simple stuff like DaysOfWeek, although they could be just numbers, it's reasonable that people would want to have the output as Monday etc....as it makes data be far easier to use elsewhere.
@Danack Don't disagree.
I think it would be probably a great idea to strip the ordinal away and just go by name.
You probably could....but just playing devils advocate, people are going to argue that there are valid use-cases for using an enums as an ordered set derived from the ordinal. e.g. Logger::WARNING < Logger::ERROR.
00:55
@Danack if they need that they should implement a custom comparing function reading the enums class and looking at the order in values() … sigh.
01:25
heck, I had no idea SplEnum - php.net/manual/en/class.splenum.php - existed
Anonymous
That's because it's trivial
Advice on a bullet I've somehow dodged for a long time? I'm in a team environment where we're all sharing a private github repo. I have a decent dev environment, so I run under localhost. The rest of the team uses remote ftp hosts....
all through the app, there are links and refs that look like /css/file.css that work great on the remotes, but completely fail on my local. I have to fix the rel links to work, then prune my fixes with each push. There are about 400 of them lol.
Abe
Abe
02:04
mornings
02:36
@kevinard how are the links specified.. full url or absolute path
i.e. are they http://somehost.com/path/to/file.css or are they /path/to/file.css
@marcio new to me as well.
I like levi's proposed one better though
morning
Abe
Abe
02:58
danny boyle making a film about steve jobs is like jesus using a fishing pole
what a shame
films about steve jobs: 6
films about mandela (just to say one): 4
adam sandler films: 55
Abe
Abe
well at least they aren't actually about adam sandler
ron jeremy films : 723
Abe
Abe
ahahah
did you actually search for the number
:D
no... just a ball park guess
Abe
Abe
03:59
@LeviMorrison any chances to get covariant return type working in php 7.1? 3v4l.org/VT4iO iirc you wanted to have it but then you found a pita (autoloader, perhaps?)
would get rid of @return :P
or also this 3v4l.org/1bYJv
2
I get fucked over being on pacific time.
04:25
in other barely even news anymore: arstechnica.com/security/2015/09/…
omg there's security issues with wordpress
04:41
I am trying to screen scrape from facebook, but it doesn't work because I'm not logged in. How do I make my code log into facebook?
morning
@user2736976 you do know that facebook offers an api to access it's data
04:56
guy woke me up at 4am with email asking me to chime in ^
writing a letter of resignation is almost as hard as writing a resume
@Orangepill just write "SMELL YOU LATER, I'M OUT" on a piece of paper, everyone knows what that means ...
Abe
Abe
ahahah
after 15 years I think they deserve a little more then that, plus i'm going to probably going to be doing ongoing consulting for them
you could send them a friendly video
05:02
don't want to nuke any bridges
you worked at the same place for 15 years ?
yeah .. unfortunately
why resigning then ?
it's not really unfortunate ... I'd love it if one company could find enough work to fill 15 years of my time ...
company is directionless since the death of the owner...
I hate starting new jobs, because new people
ouch, you don't open your letter with that do you ?
05:05
no... it's been discussed for the last four months that I was going to be leaving
having been there for such a long time, why aren't you in a position to provide direction anyway ?
can't you just fix the problem rather than leave ? it's pretty difficult to find such reliable work I think, you'd be lucky to find that again ....
politics mostly...
people suck
I'm personally excited to get out of this into a more tech oriented job.
Plus this being the only developer on staff thing sucks
been talking about it for four months and they haven't replaced you ?
perhaps they don't think it's going to happen ...
Abe
Abe
05:08
@JoeWatkins small company, perhaps?
nope... the company is up for sale so they don't want to incur additional overhead
125 employees... but a lot of the middle management and account people are jumping ship.
I don't understand how these things work ... I wouldn't buy a bakery if there was no baker ...
web and development isn't our primary product.
oh, what is ?
we mostly marketing services like producing and fulfilling credentials for loyalty marketing campaigns
Abe
Abe
05:11
@Orangepill have you found a new job already?
nope :)
Abe
Abe
don't do like i did. i should have found a new job first :P
always have a job to walk into ...
Abe
Abe
had bad times for few months
I have 6 weeks of vacation they have to pay out and I have a few prospects already
05:13
any really good ones ?
yeah... there's one I'm really excited about
that still wouldn't be long enough for me ...
@Orangepill detail ?
wheniwork.com
that does look pretty cool ...
startups though ...
I don't think I'll be working with another startup, too risky ...
you can do the best job possible and the company still fail, and you're out of a job ... I hate that ...
yeah.. I'm willing to gamble though...i've played it safe too long
actually my current position was a startup.... I was the first non-family member hire
05:17
the world was different then ...
enough investment and ingenuity and 15 years ago, you could make it ... now though ... everyone has a hedge fund backing them, and its not really about ingenuity so much as besting competition, and there is competition for absolutely everything ... it's a different game I think ...
yeah. well it's going to be better then my current situation... my only concern is going to be working from home. luckily the kids are in school so I will have a quiet house for most of the day.
yeah its definitely a good prospect
I work from home, works for me ... most of the year ...
pretty difficult to get shit done on summer holidays though ... kids don't enjoy watching daddy work ... and they are extremely vocal little buggers about it ...
I know what you mean
but if it weren't for that, I probably wouldn't take holiday, year round, ever ... so maybe a blessing in disguise ...
I know what you mean...I can't not work.
05:23
I only take a few days over christmas, and at least mine and my partners birthdays ....
I couldn't do it any other way, I hate offices and everything that is involved in offices ...
how old are you kids?
mostly people ... they just never leave you alone ...
mine are 7 and 9
10 (nearly 11) and 6
I found that if you make yourself too accessible people come to you instead of thinking
05:26
yeah that's exactly it
but then the problem with being at home is, there is nobody to ask when you yourself are stuck on something ...
I use this room for that, and it's a godsend, more than a decade I spent with literally nobody to ask ...
That's why I starting hanging out here but without the benefit of being at home
I can cope alright with being called on for advice, what I can't cope with is all the noise that other humans make when I'm just trying to get shit done, they'll see you sitting at a computer, sweating, breathing exercises, in the zone, the whole 9 yards ... and think it's probably okay to interrupt you to ask if you want a fucking sandwhich
yeah, that's so right ...
I never want a sandwhich, I never want to go to get coffee, I never want to go outside to smoke with other people, I never want to be interrupted ... but if you have that attitude in an office, you come off as an asshole ... but you can have that attitude remotely and respond to comms, in your own time, you can even explain to your boss you are going to do that and it's not rude when it happens ...
That will be nice for a change....
Abe
Abe
05:39
in HTML / CSS / Web Development, 2 days ago, by Abe
my programming workflow:
gotta do X, but i'll need C
but for to make C, i'll need T
but for to make T, i'll need A
but for to make A, i'll need R
but for to make R, i'll need U
but for to make U, i'll need O
makes O
makes U
makes R
makes ?
...why did i even started this?
Abe
Abe
happens all the time :(
in fact right now i'm making U, and X is something i started like 26 months ago
barely remember what was it
look at the bright side ... you got an O
Abe
Abe
:(
user924016
05:50
Happy frydaaai
yo new peepz
06:05
Help
♪ I need somebody ♪
I want to get the field itemdescr and currqty from the table (tb_groceryitems) in that case display
tb_empgrocery has no field the same like tb_groceryitems has
moin
06:21
:(
Morning: Is there a way to give permission to all my folders, I am on an other computer and fetching a 'git pull' resolves in a permission denied for every file. What is the ideal solution? Chown 755 +R But how to do it for all files and folders?
06:37
chown -R username:groupname *
hai guys $this->db->where("DATEDIFF(NOW(), date_and_time) BETWEEN" .$number1. "AND".$number2.); what iam i wrong here its not executing ?
 $this->db->where("DATEDIFF(NOW(), date_and_time) BETWEEN" .$number1. "AND".$number2.")";
you missed quotes in the last )
Where groupname is? :) Probably Staff
14
Q: How to chown/chmod all files in current directory?

AndrewI am trying to change the ownership and permissions of some files (and directories) in the current directory. I tried this: chown username:groupname . ...expecting that it would affect all the files in the current directory, but instead only affected the directory that I am in (which is the op...

can someone please help?..
06:43
you got fire attract ?
call 911
What's the issue ?
@underscore its not working :(
The above syntax of mine is correct.
do you got errors still ?
Works, thanks a lot.
ur welcome
case "ApprovePartial":
$sql = "SELECT * from tb_empgrocery";
// $myData = mysql_query($sql,$con);
$result = $atecCoop->query($sql);
// mysql_close($con);

$html = ''; $ctr = 0;
if ($result->num_rows){
while ($row = $result->fetch_object()){
$id = $row->empgrocID;
$empgrocID = number_format($row->empgrocID);
$itemdescr = number_format($row->itemdescr);
$currqty = number_format($row->currqty);
$qty_ordered = number_format($row->qty_ordered);
$unit_price = number_format($row->unit_price,2);
(see full text)
06:46
@underscore ya $this->db->where("DATEDIFF(NOW(), date_and_time) BETWEEN" .$number1. "AND".$number2.")";
            $itemdescr = number_format($row->itemdescr);
            $currqty = number_format($row->currqty);
            $html .= "<td class='date_ordered' style='text-align:center'>$itemdescr</td>";
            $html .= "<td class='order_no' style='text-align:center'>$currqty</td>";
these are from table (tb_groceryitems)
i want to get that 2 fields
use a pastebin
okay
@Crysis what are the errors ?
please check the fields that i've commented
06:50
@underscore its in controller i cant find errors, if i comment tat line page loads otherwise its not. $this->db->where("DATEDIFF(NOW(), date_and_time) BETWEEN 30 AND 60"); this one works
Hi guys. Here anyone who have knowledge about probability?
@underscore tb_empgrocery and tb_groceryitems has only 1 the same field which is unit_price but unit_price in both tables is not unique
@Micaela
@underscore
You selecting data from
$sql = "SELECT * from tb_empgrocery";
06:53
yes
i dont know how to select data from tb_groceryitems
using 1 query
itemdescr and currqty is from tb_groceryitems
wait
can you give me the relation ship of those tables
06:54
do I have to use join? but... they don't have relationship
they have the same field which is unit_price
but unit_price is not unique or primary key
from both tables
can you give me a screen shot of your table structures ?
@Gordon you there?
how can I attach
@underscore yes
@Micaela click the button next to the box saying upload
upload it to here
yes
There's only send here
06:58
@Gordon can you look for a while into this ? pastebin.com/7pUXy5jf
I have set of arguments and i parse those into the parent::setMysqlWrapper
Did you see it ?
posted on September 18, 2015 by nlecointre

/* by Warkore */

did you see it @underscore?
seeing
thanks
07:04
you see that there is a relation ship between item no
isn't it ?
@underscore what do you want to know?
you see that i'm execute returnCertificateMasterId inside the array
it only return the id which is already in the certificate master table
i want to get the the id after INSERT INTO certificate_master query executed
is that possible in this situation ?
select * from tb_empgrocery INNER JOIN tb_empgrocery ON tb_empgrocery.item_no = tb_groceryitems.item_no
@Gordon clear ?
no datas shown why?
07:11
wait
small mistake
select * from tb_empgrocery INNER JOIN tb_empgrocery ON tb_empgrocery.item_no = tb_groceryitems.itemno
ur tb_groceryitems use` itemno` not item_no
oh..
It's not a problem
did it works ?
no.. I think they do not have relationship
see that your 4987 item_no
07:16
so it should have a relationship exits
cardinality
unit_price also is the same like that item_no
ill show you the structure
@underscore
HAPPY FRIDAY ROOMIES!
07:27
mogguh
Laravel ported to Java - really don't want to read this today
6
click bait with a shortened url, on a day like today... hmmm
meurning!
@PeeHaa Wh said it was a happy one? :O
@underscore without seeing your data, no clue. sorry.
@Jimbo too far fetched ;)
:D
07:39
@Gordon can you help me in my query?
@Micaela sorry. not atm.
What bell-end flagged that? :D
Abe
Abe
@Jimbo too obvious
@underscore It works now. I've changed tb_empgrocery to tb_groceryitems
"SELECT * FROM tb_empgrocery INNER JOIN tb_groceryitems ON tb_empgrocery.item_no = tb_groceryitems.itemno"
Thank you @underscore
07:56
Good morning
morning have great friday
Don't know how great it will be, slept through 4 alarms and got to work 2 hours late.
Hi everyone. May someone help with netbeans (php platform)? I have 1 opened prioject & IDE requires 600mb memory. Is this normal?
netbeans ver: 8.0.2
Project seems like Drupal 7 releases (base).
good morning
08:09
moin
@HassanAlthaf I want to click, I really do, but I won't.
^ :P on fridays
Fool me 5 times, shame on you
@Epodax Go ahead, look at it. It's the iOS9 OS designed purely in HTML, CSS, JS.
08:16
Fool me a 6'th time, shame on me
@HassanAlthaf I don't know man, I've been hurt before.
Click it tomorrow then, lmao.
GOD FRIDGE DAMN IT
There's a special place in the freezer for you!
How can i get the lastInserId if all the arguments are parse to the parent method
08:19
@Gordon Can't you disable all links in the php room on Fridays? (if just for me at least) I can't seem to trust myself not to click on links.
@ircmaxell @ScottArciszewski can I use int fd = fopen("/dev/random", "rb"); uint8_t bytes[128]; fread(&bytes, sizeof(uint8_t), 128, fd); to get 128 random bytes? Is it safe enough?
can a cat possibly be that knocked out? Lol
08:40
How to get composer to autoload a repository that was manually included using a package definition that does not follow PSR-4 because the repo owner doesn't care/is busy with other things?
no composer, no standards compliance. Not sure how to get it to work.
Hot coffee is a bit sore after you got elbowed in the mouth :(. But Friday \o/
@Naruto BECAUSE IT IS FRIDAY SO IT IS HAPPY BY DEFAULT
@PeeHaa I guess the default has changed lately over here :P
what is intl doing that causes that ?? /cc @FlorianMargaine @bwoebi @nikita2206 @NikiC @anyone
08:56
@Naruto THAT MAY BE THE CASE
@JoeWatkins sorry, not sure I can help there. Looking at it, all I see if /dev/random output.
monfriringday
@DaveRandom GOOD FRIDAYMORNING
REAL MEN ITALICISE WHEN THEY SHOUT
@PeeHaa seems your caps lock and BOLD button is stuck :D
AAARGH... COCK
Its Friday AFTERNOON
@PeeHaa fail, sir
Grettings Guys.. Having fun.. 0/
\0/\0/
09:02
\o/
MOAR EFFECTS
I guess I just didnt take enough drugs to see the effects ;)
@FlorianMargaine my stupidness getting in the way again ...
@SammyK Shame. They usually pull in a lot of traffic.
@JoeWatkins what was it?
09:11
just wrong headers
diff --git a/Zend/zend_object_handlers.h b/Zend/zend_object_handlers.h
index 9e5cc82..960e6d2 100644
--- a/Zend/zend_object_handlers.h
+++ b/Zend/zend_object_handlers.h
@@ -181,7 +181,7 @@ ZEND_API int zend_check_property_access(zend_object *zobj, zend_string *prop_inf

 ZEND_API zend_function *zend_get_call_trampoline_func(zend_class_entry *ce, zend_string *method_name, int is_static);

-ZEND_API zend_long* (*zend_get_property_guard)(zend_object *zobj, zend_string *member);
+ZEND_API extern zend_long* (*zend_get_property_guard)(zend_object *zobj, zend_string *member);
(see full text)
that ...
yeah, stupidness ...
09:30
I get to write some code today \o/
Maybe even some PHP
way to ruin the whole day
Broken Friday code
I have a session ID stored, trying to filter search results that match the session ID with client_member_id e.g. session ID is 7, and all rows in database created by that user has a client_member_id pf 7 associated with it. I'm really stuck! Anyone fancy taking a quick peak at my code?
how client_member_id is generated?
@FlorianMargaine Actually I've now elected to write this particluar applet in Py
09:45
@DaveRandom thinking about it, you might have a word about this
@DaveRandom great way to have a not-so-ruined day
@DaveRandom do it in lisp and you'll have a great day
:D
Quiet you
@FlorianMargaine I'm not as well versed in such matters as others, I know there's a whole bunch of stipulations about random/urandom etc having better entropy and differing in blocking behaviour, but I don't know it off the top of my head. AFAIK the general mechanics of reading random bytes from devfs devices is sound though
It depends quite heavily on whether you need CS random bytes or just "some random bytes"
err, CS random bytes, I guess?
I'm not sure I need CS random bytes, although it's used in a security-sensitive context
hm...
thinking about it, I do need CS random bytes.
CS random bytes means "if you know e.g. the time of the random generation, you still can't reproduce", right?
@FlorianMargaine It's about being able to reproduce the results if you know the state of the PRNG, yes (again, I have a loose understanding of this stuff but Anthony/Dan/Niki/Bob/maybe Joe can give you more authoritative answers)
m-m-m-m-m-multiping!

« first day (1798 days earlier)      last day (3376 days later) »