« first day (1649 days earlier)      last day (3314 days later) » 

6:02 PM
o.O
I might not be able to do this stuff as course material until next Fall or Winter semester.
 
why?
 
Doing it in summer term would be 21 hours of work per week.
 
hey guys, quick question regarding SQL, as my sql has gotten pretty rusty
 
I work full-time, have a 2 year old and am expecting another baby soon, so that's probably not a good idea.
 
I have category columns, which are filled with IDs seperated by ,
 
6:04 PM
@GNi33 stop
2
> IDs seperated by ,
 
not the right room for questions like that?
 
Don't do that
 
@LeviMorrison there's no rush anyway, 7.1 is still a good ways off :)
 
yeah, there's not much I can do about that right now unfortunately
 
@NikiC Yeah, but I'm excited about them now :)
 
6:05 PM
@GNi33 The moment you start dumping different values in a single column you are screwed
 
sadly the system I'm working with does exactly that though
 
An externally developed system?
 
yeah
 
heh
 
While I've since implemented a workaround, I've a little DI package I'm working on; it takes definitions, recursively resolves them, and spits out objects. No biggie. So, I decided I'd be clever and model persisted (shared) objects via a definition decorator. Problem was, it was building the entire dependency tree anyway, and then at the end saying "Oh, just use this instance I have kicking around"
 
6:07 PM
anyways, is there a good way to get unique values out of that over several rows?
like a associative array where every occuring id is only stored once?
 
Tmp table
 
I'm doing this right now with concat, store them into a array myself and implode that afterwards for the next sql query
and it feels wrong
it is pretty wrong, I'm sure
 
It is wrong. You should normalize the data first
Everything else is band aid made of mud and spit imo
 
It is wrong upfront, that's your problem there ;-)
 
Hey guys,
 
6:10 PM
@PeeHaa that would be nice, I'm afraid I'm stuck with how the data is stored here though
 
@GNi33 Why?
 
Where does repository interfaces belong?
Domain or Data?
 
Trust if you don't fix this now it will keep annoying you and keep getting in the way up til the point you will have to do it either way
 
yeah
 
Also punch the person / organization that made it :)
 
Anonymous
6:12 PM
how does one punch an organization?
 
to rewrite this now would just be a pain in the ass tbh
as it would probably effect the whole system
 
To give more context: I have one libraries called Core, Domain and Data. Core has defined basic functionality and a generic repository interface, domain has just domain models (entities if you want) and data has mappings to database and actually implements generic repository.
 
Well you could work around it, but it will still be a PITA next week and the week after it
Sorry :P
 
given the circumstances, is there any sane way to handle this?
 
My question is where should I put concrete repositories, that delegates generic repository.
Well, I doubt, core is the place where I should put it. There're two things left Domain and Data.
 
6:14 PM
@GNi33 Sane way no. Some broken workaround sure
 
like I said, I have a SQL GROUP_CONCAT, followed by explode, a foreach - loop to get my associative array, followed by a implode to make it ready for a WHERE ... IN - clause
and I feel bad and stupid just looking at this mess
 
I would like to put inside Domain because this interfaces are truly ignorant from where data is coming (db, web-server, etc) but I am afraid that I am violating concept there.
 
You should be able to do it all in sql
I think this may help you will do it stackoverflow.com/a/17043084/508666
But really fix the database design
 
@PeeHaa Why not split at application level?
 
@PeeHaa wow
Thank you, I'll have a look into this!
have a random upvote ;)
 
6:19 PM
@Leri tmp table looks more sane (whatever that is in this case) :P
@GNi33 hehe no worries
 
@PeeHaa Less f**ked up. :D
And I am now going to do the same and actually put repositories inside domain namespace. :/
 
@GNi33 Also note even if this eventually works out for you. You still have to slap the person who made it like that :)
 
haha, noted ;)
 
Slapping is illegal... but doing that is also illegal, so yeah, go for it
 
@GNi33 BTW wth the hell are you doing with databases and (assuming) php? Aren't you suppose to dick around in JS anyway? :P
 
6:23 PM
Usually I am, thougt it wouldn't hurt to change up a bit and switched into a mixed FE / BE - position after 4 years of purely FE
those 4 years are pretty much the reason why my SQL is horrible too ;)
 
:P
 
but yeah, I'm still a loyal JS-ling :D
 
Good good. Otherwise I would have to report you to room 17
:)
 
don't let them notice :P
 
6:25 PM
:D
 
news.php.net/php.internals/85883 <- this person is about to loose some time drafting a typed array RFC
 
History / doomed to repeat / etc
 
@marcio We had arrayof RFC already.
He has to wait.
 
yea, he|she is not aware of this :D
@LeviMorrison I just realized you sent me an email without CC the mailing list, was it a mistake or intentional?
 
@marcio Intentional :)
 
6:29 PM
gonna do something in java after ages
 
ok, nvm then
 
^ quick before they pull the plug :P
I'll see myself out :)
 
@ircmaxell o.O
 
Interesting. WalMart's Straight Talk is $45/mo with "unlimited" (3GB w/throttle afterwards)
So it's definitely cheaper
 
user895378
6:33 PM
... doesn't seem ethically right to advertise "throttled after 3GB" as "unlimited" to me :/
 
minimalist intros with dots flying and forming all the things are nice, but I watched the video and still have no idea what the product actually does.
 
I agree. US throttling is something of a shell game. But honestly, the only time I ever suck down data is when I watch streaming on the road or I need to tether my laptop
 
@ircmaxell Seems interesting.
 
:-)
it's really an awesome service, I must say :-)
 
6:38 PM
The refund for unused data is definitely interesting
 
I get a better service because of BYU's large contract with Sprint and I don't travel much.
But their rates and such look pretty good and if I did travel that would be way better than Sprint.
 
Fi also requires that you have a Nexus 6...
 
I have AT&T. They just started data rollover but they take it from the previous pool. So you go over your allotment and you get no rollover next month
 
@Charles Meh, that's fine by me.
 
@LeviMorrison $650 up front isn't fine with me, and I'm happy with my Nexus 5
 
6:39 PM
whoever wrote function md10($s) { return md5(md5($s)); } is wrong, that's md25($s). md10 would be function md10($s) { return md5($s) ^ md5($s); }
 
I'm also happy with my $30/month no-contract T-Moblie plan :p
 
@Charles Oh, I meant if you are going to be buying a new phone anyway $650 is fairly reasonable for wha smartphones are these days.
 
ok, the "experience tab" explains it all in 2 seconds - who needs empty advertising videos...
 
@LeviMorrison Yeah
 
@Charles that's almost what I paid for my Z2 a year ago
 
6:41 PM
I'm kind of sad that I just barely got a new phone because my contract expired.
I would have picked the Nexus 6 and kept my options open :/
 
I'm trying to convince my parents to get new phones, they're getting gouged by AT&T right now and their devices suck, but there's no way I'd be able to convince them to spend $650 per device up front....
 
hehe I love Dilbert
 
@Charles Moto X 2nd gen. Just got one on sale and they start at $499 off contract
 
@Charles The reason their plans are so high is because they pay for their devices over time.
:(
 
6:44 PM
@LeviMorrison Yeah and they picked a horrible tiered plan initially and whatnot...
they need to stop buying technology without consulting me :p
 
ok, guys .. I have a question about validation
 
@Machavity More likely to point them at the second gen Moto G than the X. Their needs are modest.
 
@Charles Moto E 2nd Gen. The G doesn't offer 4G LTE at all and they're like $120ish
 
@Machavity As I said, their needs are modest.
 
Also, make sure they are on the new plans where you're not paying for the phone. Much cheaper
 
6:45 PM
They realistically use almost no cell data.
 
@Machavity Z2 compact (it should be under 300$ now)
@ircmaxell I need a small consultation. So ... if I have some domain entity, that I work with, when I need to check if it's not fucked up, I would use isValid() method on it, which would return true or false. But how would you go about in a situation when you need to know exactly which properties failed the validation ?
 
@tereško Some frameworks have isValid() but also some sort of getErrors() method
Other codebases use a separate Validator which does this
Just my 4p
 
@Jimbo the Validator classes tend to act like black holes. Especially since the validation rules that I have are not trivial. And making separate validator for every entity would be reaally terrible idea
 
@ziGi I live in Brabant, all Arriva busses here has it.
 
6:57 PM
@tereško extract the validation mechanism to a dedicated validator object
 
@ircmaxell wouldn't that cause an explosion of additional classes ?
I already have ~ 50 domain entities .. which would probably mean that I would end up with at least 30 more validation classes
 
@tereško Surely the rules must burn down to, at their barest form, true / falses, array keys, values existing...
 
@Jimbo there are "exists" rules, yes, but a lot of them are "if value A is set and value B is not set, then C value must have a specific format"
 
@tereško possibly...
@tereško what specifically is in the situation where you need to know which properties failed?
 
Looks like that validation would comprise of multiple isset()/!isset() rules and a format rule... which is fun to think about, but probably over-engineering. It'd be good if there was a simple way to do this
 
7:04 PM
@Jimbo I wouldnt ask for opinions, if I thought that the case is trivial
 
class CertainObjectValidator implements Validator
{
    /**
     * @var ValidationRule[]
     */
    protected $rules = [];
}
But then you'd need a ValidationRule common interface....
But each rule could contain those assertions, issets, formats etc
 
Anonymous
what's a good torrent video you can find on programing?
 
@ircmaxell I need definitely that functionality for 8 forms in the applications (each with 8+ field (majority with 12+), because I want to offload the validation if said forms to backend (JS people have been making a disaster of it) .. and then I have about 20 different API calls which too would need validation
 
class IssetRule
{
    const REQ_KEY = 'isset';

    public function passes($data, array $requirements)
    {
        return isset($data[$requirements[self::REQ_KEY]]);
    }
}
$x = new CertainObjectValidator;
$x->addRule(new issetRule);
 
@tereško generate the JS from the backend
 
7:11 PM
@ircmaxell I figured that, with this announcement, you were dogfooding Fi, hence carrying two phones around.
 
and Validator::validate($data) would call each of your rules in turn...? And each rule would be able to throw if something didn't exist
 
@ircmaxell :D
 
@iansltx I acknowledge nothing
 
user895378
Longshot but ... does anyone happen to have a TLS-encrypted imap server running that I could test something against?
 
user895378
actually, I guess I could just test it against google or yahoo or something
 
7:13 PM
Yeah, Gmail's IMAP is TLS
 
7:39 PM
Hi all, anyone here can help me with this question please???
-2
Q: How to store JSON data in mysql database

sweetyJSON data {"level":{"Primary":"1","University":"3"},"sub":{"5":"literature","2":"bi","3":"maths"},"rate2":{"5":"20","6":"","7":"","9":"","2":"30","3":"50"},"name":"jessie","action":"test"} I need to split data above and three tables. 1) tbl_user -columns(name) 2) tbl_user_level-columns(leve...

 
Does some one wanna tell me just how stupid I really am and help me out with composer? stackoverflow.com/questions/29807164/… any help is much appreciated
 
How is it that a parameter can be optional, yet have no default value?
PHP doesn't have the notion of "overloads" as in other languages (unless this assertion is incorrect, which it would only be for internals, at which point PHP can go die in the woods)
 
user895378
It's possible the arg info specification is wrong so the reflection doesn't report the correct result
 
PDO::__construct()
 
user895378
I've run into this problem before.
 
user895378
7:43 PM
I just use null if no default value is available when encountering a reflected parameter that's optional.
 
@rdlowrey lol @ 3v4l.org/sLRgN
And fair enough, makes sense.
 
user895378
AFAIK there's no way internally in php-src to declare a default value ... you're only going to get that from userland function parameters.
 
Ah, okay; interesting.
 
@KyleAdams Erm..... s/Element/Elements/ ?
 
user895378
You just assign the default value directly in C if zpp gives you null for an optional parameter
 
7:47 PM
You just twizzle the snoggle directly in the boomfop if twerpy gives you an STD
That's what I took from that sentence.
 
user895378
That. Exactly.
 
@Danack I updated the repository to confirm with the last comment before they deleted it. But I dont understand what your saying Element/Elements?
Oh!
I see nopw
I fail at typing
 
Oh YEAH!
 
lol, seriously though, I got it, but I need to understand internals better @rdlowrey
 
@KyleAdams And at reading error messages ;-)
 
user895378
7:49 PM
@DanLugg I just try to pick up bits and pieces as I go. Most of it I still know nothing about. I just learn how things work as I'm forced to interact with them (usually because I broke something).
 
^^ That's how I've learned about most of the world around me
 
@Danack How ever after changing the name to be Element, not Elements - I still get the same auto loading error >.>
@Danack Do I have to blow away composer and all that and do a composer install again?
 
@tereško Did you come up with an elegant solution?
 
user895378
I didn't realize HHVM has a way to specify default values for reflection with native functions though.
 
7:50 PM
@Jimbo not yet, but I probably will do something along the lines of getErrors() and DTO ... still leaving it to crystallize at the back of my mind
 
all
 
HI dammit.
 
Has anyone here used Nano Gallery?
hey Dan
 
hey Luke
 
@KyleAdams If you did composer optimize autoloader you would need to do that again for it to find the class, you shouldn't otherwise.
 
7:52 PM
:) hey man. Have you used nano gallery before?
 
Sure haven't! Probably never will!
 
haha
 
hoho
 
ok , maybe you can help me
 
Golly, I dunno.
 
7:53 PM
He's an expert at removing cactii from certain areas.
 
i need nano gallery pics from flickr to load automatically , i dont want it to load in a n album
 
areas in the nether regions which are normally one-way streets
 
@LukeSmith Are these pictures rude? We don't allow those sorts of pictures in here
 
this is a website , of a friend of mine- he has nano gallery but he doesnt want the album , he want pics to load automatically when click Gallery from navigation
no here is the website - thomasferreiradesigns.co.za/gallery
 
Absolutely disgusting.
 
7:55 PM
@Jimbo haha no dude not at all
do you know to get those images loading automatically? no need to click the album - our work
 
@DanLugg Man I'm crying right now, I must've missed this
 
anyone know?
 
@Jimbo isn't that where it all began?
 
@LukeSmith Probably can't help on that, we do code in here, not galleries / stuff like that :)
 
8:01 PM
yes , but this has to do with code
 
cvs/cv/s
 
@Jimbo nah, cvs is fine. He doesn't ask for only one cv, but for more :-)
 
Ah, I was thinking only that it wouldn't be picked up by the backlog
 
@Jimbo is that thing really used?
 
8:14 PM
Probably not, exists though :P on the right
 
8:49 PM
Is it possible to stub just a function in php? assuming that function didnt belong to class? I am trying to stub a wordpress function but it seems the only way to stub it, is if it lives in a class - which it doesn't.
 
mock
stub
fake
I guess I could spin up a fake class, use the mock builder and assign the Wordpress method to that class then do what I need from there, but that seems like a lot of work to just mock out a function call, especially when its not apart of a class.
 
lol
 
ah, no you can't
unless it's a callback where the callable is stored in a variable
 
its not. This is why I hate WordPress >.>
 
this is why we banned IDES at work.
 
@KyleAdams are you serious?
 
What about vim with syntax highlighting, linting and autocomplete? Where exactly does it become an "integrated" development environment?
(By the way, I recommend syntax highlighting and linting for vim; check out your options if you aren't doing those yet)
 
@FlorianMargaine yes. and @LeviMorrison I personally dont consider that an IDE. if it can do auto complete, and practically type the code for you - Netbeans is a good example - then you can't use it
 
on a related note ... the new CEO has been making some strange noises about "everyone will have to use phpstorm" .. something about SF2 integration
 
9:02 PM
@KyleAdams Vim has autocomplete extensions…
 
See i hate those types of development enviroments
 
@tereško if it's phpstorm it's fine
 
@KyleAdams lol
 
@LeviMorrison We have very stipped down editors
 
@FlorianMargaine or maybe it was Eclipse
.. I am not entirely sure
 
9:02 PM
like I use Atom, but I do not use all the extensions and crap that comes with it
 
@tereško that's another world
 
/me is a Sublime user
though, I have been experimenting with Atom at home .. if improves PHP support, I probably will switch
 
I love Atom, its so simple and clean and fast.
 
but it's missing things like "go to definition" for php
 
Total long shot but I don't suppose anyone has some experience with laravel forge & heidisql?
 
9:42 PM
@Purify we here kinda tend to avoid Laravel
 
Dear peoples of the past;
What was Wednesday? I completely missed it this week.
 
@Sara Oh hi.
Where've you been?
 
atm, I'm in Auckland
Hence losing a day to the international date line
I'm in UTC +1200, if that's even a thing.
@tereško Nuclide (Which is based on Atom) is going to have "go to definition" and a bunch of other nice PHP/Hack things
 
hmm
 
@Sara how is it? I'm going there in August
 
9:54 PM
Not that I'm really an IDE user myself.
@ircmaxell Everyone kept telling me "IT'LL BE COLD! BUNDLE UP!"
I got here and stripped off ever layer I could without violating decency laws
Which is largely a humidity issue.
 
LOL
 
hahaha
 
temp-wize, it's actually a 17° atm, which is pretty temperate by my standards
 
that's what it is right now in NYC
 
But is it 98% humidity?
Also, it's like 10pm or something like that in NYC.
10am here.
Which I guess actually makes it 6pm there
Fucking intl date line. Screws up ALL my math
THE SUM OF A TRIANGLE'S INTERIOR ANGLES IS 13°
See? ^^
 
9:58 PM
I thought it was 16
 
lol
> Four apps with four windows and none of them talk to each other.
React Native development sounds like a special form of hell.
/cc @Sara
 
tbqh, I know nothing about React (native or not). I'm not really a web dev. :P
 
@Sara 6pm
speaking of 6pm, laters
 
10:17 PM
ciao
 
10:42 PM
@Sara Haha… I was in Brisbane in June two years ago… It always were over 20°C (and relatively humid) … and yeah it's winter on that hemisphere then… What do you expect in April? :-D
 
10:56 PM
> New in GCC 5 is the ability to build GCC as a shared library for embedding in other processes (such as interpreters), suitable for Just-In-Time compilation to machine code.
cc @JoeWatkins ^
 
11:09 PM
dang penn and teller look like shit these days http://t.co/4X4AxB8KBS
 
is there any CQRS nut around?
Was wondering if (opinion) commands should have an identity
 
11:56 PM
@HassanAlthaf Is this still an issue? If so are you going to provide some test code?
 

« first day (1649 days earlier)      last day (3314 days later) »