« first day (1321 days earlier)      last day (3852 days later) » 

11:04
WHM - What? Huh? Meh...

Pretty much sums up my experience with WHM.
That's a fair assessment, indeed.
@Fabien look for a file matching *2760*.cfg
@DaveRandom Google's first result for 2760
classic
11:07
I loved that phone
@DaveRandom Literally. In the phone world, that's like owning a '76 Mustang.
Nah mate, 3210 is where it's at
or maybe a 5110
Morning.
@DaveRandom Either or. Remember having to extend the antenna on a "cellular" phone?
@DanLugg That's one reason the 5110 was awesome, because you didn't have to extend the antenna and you could replace it with one of those funky flashing things
11:11
@DaveRandom lol phone swag.
^^ That was my beauty, circa 2004-ish.
I remember playing hacky-sack with it. On several occasions.
@DaveRandom OSX search is wank
Still looking
@Fabien s/search//
@Fabien I always wanted to ask: Y U OSX?
No there's nothing for 2760 sorry :(
@Leri Work.
I wasn't given an option. We all have to use OSX>
11:14
^^ VM that shit.
Do you work for apple? :D
heh. Impressions mean a lot where I work. And that impression is 'industry standards'.
I don't get why companies force developers to use x platform.
We have a clean desk policy and all.
That's fine. You can still use OSX to VM something else though.
11:16
I've managed to nab myself a normal wired mouse though. So i got that going for me :P
@Fabien Are you a designer? No? Then Apple is not the industry standard.
OSX has some nice touches. Development wise it's alright.
@DaveRandom 'impression' is the key word :P
I get the impression your workplace is run by dolts.
Can someone help me with a query please ?
@Fabien That's why I hate apple and all its production.
11:17
I try to remain positive :). They do well within the industry.
I can empathise with their reasoning.
Even if it wouldn't be my decision.
No, they've fed you enough kool-aid to think you're empathizing when you're just bending over.
Even if I couldn't get new hardware, I'd be running a VM.
If a place wanted to take action over my running an OS that I can be productive in, then I think I'd opt to depart; sooner than later.
@DanLugg It'd be nice to have options :P
goes to happy place in head :)
^^ No, I get that part; it's tough out there. But I mean, I wouldn't be particularly receptive to such constraints. And I'd sure as hell try to do something about it.
I'm actually kind of in a similar situation as you; I work in the "marketing" department.
Land of the overpromise
I just established straight away what I was going to use, and what I wasn't.
Rather, I didn't establish anything; I just use what I use.
11:21
@DanLugg Well, forcing employee to use some OS is still better than requiring dressing code. the latter simply sucks. So, @Fabien, don't worry, it could be even worse. :P
fucking project manager
=/
@Leri Smart-casual here.
That means?
lol, we have a "dress code" at my workplace too.
@Leri Yeah! Who are you to tell me to wear pants for work? Ha?!
11:22
Business-casual. I, however, just wear whatever.
Means dress relaxed but not too relaxed. No jogging bottoms etc.
preferably wear a shirt or polo
But you can get away with t-shirts.
^^ Yea, I can't get away with non-collared.
If a client is coming in, they prefer you dress up.
Thankfully I don't own much that isn't collared.
I like wearing shirts during the working day anyway. Shirt and cargo trousers.
11:24
@Leri I dunno. Unless the dress-code is ridiculous, I'd trade equipment/resources for attire any day.
As soon as I get home I change in to jogging bottoms, a t-shirt and a hoodie though,.
I can be productive when I'm wearing pants, and when I'm not. I can't be productive on a Mac under any circumstances.
@Fabien Well, that's not actually what I meant.
I always say 'Wearing a suit has never made me better at my job'.
It just makes your boss better at their job.
11:25
I mean when people require suits, and black trousers.. well people who forces you to look like a guy from FBI movies or matrix. :D
lol yeah. I couldn't do that.
I didn't even wear proper shoes to my own wedding.
lol
s/proper//
BAREFOOT WEDDING!
@DanLugg Yep, it's less painful while dancing. :p
@Fabien See, I don't think there's anything wrong with that.
You look comfortable.
11:29
Yeah. It was a causal wedding. No dress code.
One guy had a cowboy hat on.
Hello every one!
Seriously though. WHM is weird and the way whoever setup these sites used it is even weirder.
INSERT INTO `shower` VALUES ('Dan');
Check y'all later.
See you later
Mrongn
@MrDanack if your the actor we have the same birthday July 1st so tell me happy birthday you old bastard.
11:35
Ever WHM @Danack?
@Danack lulz
@Fabien nope.
@Fabien I have, but not for a few years, dunno how much has changed
@DaveRandom It's only a small issue/misunderstanding
@KamranAhmed I think it's pretty synonymous but still curious, which one is proper: Hello, everyone or Hello, every one. Personally, I "feel" the first one more natural, since you greet everybody and not every single person in community. /me looks @DaveRandom
11:38
But when I look at add a new config to virtual host I am tutorialled (new word) to look in WHM -> Service Config -> Apache Config. Then apply my new host to one of the three place. Pre-main, pre virtualhost and post virtual host.
@Leri I would prefer the concatenation in that context, but I don't think there are any formal rules regarding that
Only thing is I can't see ANY of the current virtual host settings in there
"everyone" is itself a pretty informal concept
Then there's all this wankery about includes
# DO NOT EDIT. AUTOMATICALLY GENERATED. IF YOU NEED TO MAKE A CHANGE PLEASE USE THE INCLUDE FILES
mornignin people
11:39
# Include "/usr/local/apache/conf/userdata/path/to/site/*.conf"
But this folder doesn't exist.
So I figure that's just some global overwrite of the values
Still no idea where it was originally setup.
@Fabien Wait, so you are adding a new vhost or modifying an existing one?
morning @PeeHaa
What kind of sorcery is this? 3v4l.org/6tusM
@DaveRandom Modifying an existing. Well I just want to know how the hell they added it. Or where.
@DaveRandom Nice thing to keep in mind. Thanks.
11:41
Because I added one using the tutorial which works fine. But that's not how the previous person has done it.
@Fabien Then you need to find the existing vhost container config. It possible that it has been manually added (not via whm) in a file that's not accessible via whm
Somewhere there's some file(s) where they have all these v-host setup for each domain and it's being magically included in to this v-host setting.
@DaveRandom It can't be manually added as the httpd.conf is generated by WHM
eeeeeeew whm. The horror
Gone through the httpd.conf looking for includes. Didn't find any relevant ones. Checked all I could find.
@PeeHaa Yup. But WHM done poorly too.
11:44
@Fabien Unlikely. More likely is that a "master" file is generated by whm that is included by the real Apache default config file.
Of course I can't login to the hosting site because the listed password is wrong.
Awesome.
@AmalMurali garbage in => garbage out
Disagreement. ^
goes back to happy place in head :)
@AlmaDo I've often had to work with awfully designed APIs where the only proper way was to create parser/translator which was quite crappy, however, returned objects with descent interface for application layer use.
It was garbage in => product out.
@Leri was that project well-designed? scalable? re-usable?
I didn't say anything that "garbage" can't work
@Fabien winner. Sounds like you need to do a proper audit and get a proper password storage system (I recommend this). While you're at it, you might consider upgrading your DC to an OS that's less than a decade old.
@AlmaDo Yes. That handlers were part of huge system integration with payment gateways.
A quick question about responsibility. It's client-side though. If I am INCLUDING a twig file within a base file, is it the responsibility of the file I'm including to check that the user is logged in to show certain items, or is it the responsibility of the calling base file to check before including the other file? Basically, where do I put the {% is_granted('ROLE_USER') %}
11:50
DC?
domain controller
Let's take a bigger step back and recommend they hire a sys admin :P
@Jimbo Does {% is_granted('ROLE_USER') %} represent model-layer state?
Or bring someone in temporarily to sort it all out
@Leri I.. guess.. Let's just assume it's a JS function for the moment.
11:52
@Fabien Even just contracting it out to someone would be an improvement
hi ya
I'm thinking in the included file, because then this can be included anywhere and it'll handle it's own stuff
@DaveRandom Aye. How much does something like that cost?
does anyone had any trouble trying to join a single table inheritance entity on dql?
@AlmaDo Uh, what?
11:53
@AmalMurali the principle
@Fabien Depends on exactly what you have them do, you'll need a one-off sys audit and then it'll be annual maint probably.
I can recommend a few good people if your bosses are prepared to move the entire business to the north west :-P
lol
@Jimbo However, that might be extra knowledge dependency for template. Quite confusing situation...
@markcial may need more context (for a start, what's the trouble you are having?) and also our resident Doctrine guy is currently not here by the looks of it
hi @DaveRandom
i have a base class called "Discount"
and then i have another one called "GiftDiscount"
11:56
@DaveRandom I'm going to email the big-wigs and recommend a sys-audit. Something yearly.
i query the "Campaign" entity for all the "Products" inside the "GiftDiscount"
What is a "GiftDiscount"? What does it represent specifically?
but dql throws an exception because "Discount" class does not have products, only "GiftDiscount" has products
@Fabien Really all you need is a one-off audit to get all the info you don't currently have and set up the systems correctly so that you don't lose it again, and then it should more-or-less maintain itself
a Doctrine entity @Jimbo
11:57
That extends Discount?
@markcial Yes yes what is it though? What's it for?
it represents a Discount that has a gift included on it, that its because the relation on product
Ah
@DaveRandom Amended to clarify yearly isn't necessary. One off is beneficial.
just messing around with this piece of code
11:59
@Fabien Also, if nothing else you should invest in a proper password management solution
$qb = $this->getEntityManager()->createQueryBuilder();

        $query = $qb->select('c', 'd')
            ->from('Package:Campaign', 'c')
            ->join('c.discounts', 'd')
            ->where('d INSTANCE OF Package\DiscountModuleGift')
            ->join('d.product', 'p')
            ->andWhere('c.expire_at <= :from')
            ->andWhere('c.running = 1')
            ->orWhere('d.quantity = 0')
            ->orWhere('p.stock = 0')
            ->setParameter('from', $from)
            ->getQuery()
@AlmaDo Why are the results different though? The only thing that changed is the capitalization.
@DaveRandom Currently we use keepass. Main issue being it's all saved to a file on the shared drive. I can rarely if ever update it because it's almost always read-only.
as someone else has it open.
@Fabien ffs, an access database would be better than that
@Fabien Use keepass it autosyncs / merges on save
12:00
@PeeHaa I meant keepass :)
Then why would it be readonly?
Keepass has no issue with that and will happily merge on save
I'm noticing that the people at #javascript are identical to the ones at #php :P
I never encountered a readonly lock
Real men use Excel
Excel All The Things!
GTFO dave
12:01
@markcial Might be worth posting an SO question specifically with your schema(s) and your query
we open a keepass file in order to get to the passwords.
@markcial Also exception stack trace might be helpful.
@markcial I think I'm out on this one, I just don't know enough about Doctrine to be useful
Seems to be that this path is a no go :(
Cannot check if a child of 'Package\CoreBundle\Entity\Discount' is instanceof 'Package\CoreBundle\Entity\DiscountModuleGift', inheritance hierarchy exists between these two classes.
12:03
@PeeHaa OK, I admit it. Sometimes I use notepad.
@PeeHaa Process wise. Open .kdb file. Told to open in read-only mode as it's open elsewhere. Can't save from then on in.
*keepassX
@Fabien kdb or kdbx?
Scratch that, was someone's error on another post
12:04
kdb
I can see a .lock file with it too
Uuuuuuuuhh yeah
upgrade you password manager dude
:P
Don't know about v1. Maybe it does indeed lock
@markcial Is DiscountModuleGift derived from Discount? It pretty much is. Does it make sense to remove that hierarchy?
@AmalMurali because what you've passed to the function, is garbage. It's ok to expect garbage in return :p Actually, on what you can rely - is formats, which are described in the corresponding manual page. Other things are not claimed - and if they occasionally work (it's about your third sample) - then it's like undocumented feature.
@PeeHaa I am on 0.4.3 the latest.
@Leri it inherits a lot of properties, will be a mess
12:06
I guess I need to recreate the file with a new format?
@AlmaDo The documentation doesn't say the relative format needs to be in all lower-case. I think of it as a bug.
Though new file only gives me a .kbd save option
if you have a bunch of models which are almost always populated by arrays - is it better to accept an array in the constructor; or use a static factory method for the array, and populate constructor with property arguments
Don't think the databases are compatible though, but your version sucks if it locks
12:07
KeePass different to KeePassX?
@AmalMurali yes, documentation does not say that explicitly - but yet in the same time, there is a list of all possible accepted options. And that list is all in lower case.
@PeeHaa OSX version is 0.4.3
Sorry, don't know. I have a real OS :D
lol
@AmalMurali so, what documentation says is: "Ok, here is a list! All will work with values from it". Nothing more, nothing less. That does not means that uppercased letters will work (or will not work). It's just undocumented. So I doubt if it's a bug. At best just needs clarification
12:10
basically wondering whether static factory methods like ::fromArray() is an anti-pattern
@markcial Alternative option. Create interface (not empty of course. I mean complete interface with necessary method signatures) for DiscountModuleGift implement it and check for interface inside instanceof expression.
Could always delete the .lock file
Not sure but I hope that works. Also, quite clean.
@Fabien I think it is there for a reason though :P
Most likely.
12:11
@AlmaDo Bug or not, I'd like to know why it behaves that way.
@AmalMurali because PHP uses internal OS C API call for that, obviously
@Leri trying the contents of this ticket => doctrine-project.org/jira/browse/DDC-2235
but thanks for the input :D
Ok, are there any gods of SQL ?
I need help :-D
sql or mysql? :P
@markcial You're welcome. ;)
12:13
well, if that will work in common SQL - it's great, but I'll limit me expectations with mysql only :p
Meh I can copy past the kbd file and make changes.
I need to know if following is possible: SELECT {something(N)} which will return one row of N columns. "something" should: 1. Be immutable for any N; 2. Should not use stored code
You want to grab random n columns?
oh, well, N is valid input, so N>1 and it's integer (ok, let's limit it with .. hm, 32)
@Fabien Was that you learning C?
12:16
Was what? The keepass shtuff?
@PeeHaa no. I just want what I've posted. General question
that's why I need gods of SQL :p
Method for updating keepass file. Copy file, paste, add new entries. Save. Move old file in to 'Old' folder. Currently we're on kbd file number 83 :P
God that is horrible :P
@AlmaDo But what is something?
Just some value you enter?
@PeeHaa that I'm asking. It's some "text, which were typed on the keyboard, and with that text DBMS will understand what I want :p
So it may be anything SQL-valid. Only thing - it should not use stored code. I.e. it should be self-sufficient
Still not really clear to me. Do you have example somethings?
12:19
no, no. "something" is just to show that "something should be typed there". Some "SQL which will depend only from N and return N columns"
@AlmaDo What data is in the returned columns?
Ffs why is ACL such a pain in the ass
anything. Does not matter. You may return row from N NULL-s if you want
it should just be one row. With N columns
@Fabien Never mind. Probably, messed things up.
@AlmaDo And it has to be done in pure sql?
12:23
is it wrong to declare the PDO object inside another class?
@DaveRandom mysql-specific things are allowed (such as variables) - but no stored code
I have in mind "dirty" way to do that, but.. :\ It's not good enough
var msg = new SpeechSynthesisUtterance("I will not buy this record, it is scratched");
window.speechSynthesis.speak(msg);
Run in your browser
hi
@AlmaDo I was thinking $sql = "SELECT"; for ($i = 0; $i < $n; $i++) $sql .= " NULL AS col{$i}";
@BenjaminGruenbaum Damn that works pretty damn good
12:26
@DaveRandom eh? no. That should be some thing which will be run by DBMS
This startssl website definitely doesn't have an alibi.
Anyways, I've just started reading this book and it's pretty good, informative and I think I can advance quite well when I finish. If anybody is interested and is open to read e-book, it can be found here. Sharing just because they claim that everything is legal. So use that resource just for informative purposes as they say in their terms, please. :)
@AlmaDo What's the use case?
12 mins ago, by Alma Do
@PeeHaa no. I just want what I've posted. General question
It would be used within some other thing
it's about fighting against Jaywalker. Long story
4 hours ago, by Second Rikudo
@salathe The GIF police isn't here yet?
Victory! :)
12:29
:-)
@AlmaDo Then I don't think there's a sane way to do it without a stored proc
@DaveRandom well.. I know that way, but.. :\
@salathe Damnit what did I miss?????????/
Scroll back through transcript to remove gifs
@PeeHaa Nothing at all! :D
12:31
I would like to know, what are the pros of mocking in PHPUnit? I really don't understand when to use them.
@Litz When doing unit tests you want to be testing units and not units and all there dependencies and their dependencies
Yeah but for instance, I want to test my createUser method (create a user from array + save in database) in different situations (no user in db, user with the same email, etc). I'm using Doctrine.
Do I have to mock the Doctrine parts? Why can't I use the entityManager directly?
@DaveRandom my current though is:
1. SQL
2. Prepare statement
3. Execute
Ok, bad thing - I won't be able to use it inside another query :\
@Danack Meh, central firewall between me and WAN. Well, just title in the link is enough though. :)
@AlmaDo My thought is: rethink the idea .
12:36
Thanks for notice, btw.
@PeeHaa you're just slacker (:
I'm going to do it hard way (c)
:)
And I applaud you for that
:P
hi
i need one help for php code
Well, partly I've achieved my point. One of my goals was to show how painful is to deal with Jaywalker
If you only need one pick @DanLugg
12:38
On this startssl thing it says "Use the control Panel to create a private key and certificate and transfer them to your server. " I created a private key and cert but how do I find them? :-/
@PeeHaa What am I doing?
@DanLugg Nothing good I assume :)
@VbizSolutions Sorry, I only give helps in multiples of 7.
Come back when you need 6 more.
if (($helps % 7) !== 0) troll();
why 7?
my divisor is 1
if (($helps % 1) !== 0) troll();
Having a noob day evidently.
12:41
@AlmaDo I need 0.7213 of a help.
@Fabien yeah, yeah. Just a regular day
@DaveRandom smart-ass (:
I need π helps
@AlmaDo $helps = -INF;
@AlmaDo lol yeah.
ok ok ok
if(1) troll();
12:42
I was referring to myself tbf -_-
@AlmaDo That's my general policy.
@Fabien so was he
:-P
happy place
blah.. that may cause that people will think what I'm just a troll. I need some twisted condition
@AlmaDo so always help is true
12:43
which is 1
while
@AlmaDo pow($helps, 0);
Wonder how ballsed everything would be if PHP released a version inverting true/false.
Seriously though. Am I supposed to get a .key and .crt file from startssl? :-/
only 330 rep to go until 44444
@Fabien ...because you didn't or...?
I like to keep my rep in the http status codes.
@DaveRandom I got a .cer file which is just my chrome one for logging in elsewhere I guess.
12:46
@DaveRandom I'll spoil it :p
DAMN YOU @AMAL I WAS JUST EDITING THAT QUESTION!
:D
Maybe there should be an edit lock
or notification
@DaveRandom btw. Will that always return 1? No matter what is in $helps?
E_TOO_LAZY_TO_LXR
@CSᵠ mostly, yes
root# php -r 'var_dump(NAN % 1);'
int(0)
root# php -r 'var_dump(NAN % 2);'
int(0)
root# php -r 'var_dump(NAN % 3);'
int(-2)
^ anyone can explain?
@bwoebi noob! using root access for that!! :-D
@AlmaDo it just was an existing root shell…
@ircmaxell , which deployment tool are you using?
yeah, yeah. But why your NAN % 3 is -2 is because of bits juggling and two's complement
12:55
@tereško in what sense?
I guess (:
@AlmaDo ah? then look at INF bit representation. Why does modulo there always return 0?
Does PDO fetch escape chars like '\' ? Because when I do fetch by namespace i.e 'Library\Front\Controller\Admin\Login' it won't find it, but if I search for string 'hey' it will find results? and yes I use prepared statements
@ircmaxell as in: capistrano alternatives
I don't really use a tool. My platforms do automated deploys for me
12:58
"Anything else is about having a PR department and it is really the last thing I would like to see on www.php.net/."
Yeah, because the last thing a project needs is someone who can promote it.
so , you push to a repo and it automagically gets deployed to the linked server?
root# php -r 'var_dump(INF % INF);'

Warning: Division by zero in Command line code on line 1
bool(false)
root# php -r 'var_dump(INF / INF);'
float(NAN)

« first day (1321 days earlier)      last day (3852 days later) »