« first day (2293 days earlier)      last day (2670 days later) » 

8:00 PM
@JoeWatkins Sadly I don't know how much memory lxr.php.net had; do you?
 
(dunno how much it had)
no
ping tyrael
 
The goal here is to have 2 VMs and hope one of them stays up while we bring back the other ^_^
 
well indexing Jeeves took roughly 4 seconds
Are we wanting to put a php-src index on it?
 
see if you can make it 3
</management-type-shit>
@DaveRandom yes
 
/me has to go back in, ttyl
 
8:02 PM
lata
 
@JoeWatkins Do you have access to lxr.php.net now?
 
no
should I ?
nope, can't get in ...
 
@DaveRandom At least latest minor release plus master.
 
No, just wanted to know whether I can ping you if it's down again. :P
 
Hopefully I have enough disk.
 
8:04 PM
@kelunik we're going to have our own lxr, with blackjack and hookers
 
I know. :-)
 
@JoeWatkins yeah… and the money for me? :-)
 
@bwoebi disclaimer: there may not be any blackjack, or hookers
 
damnit!
 
8:08 PM
lol
73987 is eating away inside at me ...
what do we do ?
 
@Hexacoordinate-C you linked to Direct X. Direct X is not WAMP.
 
You asked about the error
I look at the error 0xc00007b on the net
They spoke about DirectX
 
that's just a memory address
sometimes it's useful, but in this case, I don't think it is. It's not an error code, though.
 
Now I'm downloading X86 32bit
I will see
 
8:11 PM
I wrote my class wrong :/
and I'm rambling...
 
@JoeWatkins :-(
 
@JoeWatkins what's that number?
 
I'm getting an error from composer that the openssl extension needs to be enabled - but looking that the config.log I have | #define HAVE_OPENSSL_EXT 1
 
@Danack php -m
 
@NikiC no openssl.
the with-openssl is set in configure, and I can see configure:17408: checking for OpenSSL support configure:17444: result: yes in the config.log.
 
@bwoebi this
 
@JoeWatkins ah the bug id
 
/pulls out mac to actually get stuff done.
 
@kelunik ferenct started monitoring its availability
 
it's available but ran out of memory ... so that hasn't really worked ... although in fairness, I've not seen it run out of memory before
I've never heard of sabre/event
 
8:31 PM
Evert has some nice sabre libs
 
WOAH! I BLOGGED!
Blogged: on Aggregates and Domain Service interactions: how to let aggregates do I/O https://goo.gl/WOP75U #DDD #CQRS
SWOOOOSH I go for beer.
 
8:47 PM
@LeviMorrison so I have tried, but I do not comprehend how to build one of these OCI container things. All I can find is specs without tooling and/or documents that seem to assume I know what they are talking about with no links for if I don't. I feel like I must be missing something obvious
 
So I create a new object from a class, $mail = new \SendMail\SendMail($to, $body, $headers, $options);, and then I call a method, send_email, but I wrote the method such that it requires basically the same arguments that I used to instantiate the object. So, I'm assuming the way I wrote the method is flawed, but I can't wrap my head around a way to rewrite it to where I don't have to pass arguments to a method a second time.
 
@DaveRandom Meeting starts soon; see if Docker builds compatible files.
 
I think I would write a second method that would be the interface to use with the object, which would call the method that does the heavy work (and requires arguments). Is this correct?
 
@LeviMorrison I have not been able to figure that out, it's weird. I could just build a docker container for now though, now that I have done it once (I have made a bash script that I should be able to "just run and it will work") I imagine it should be fairly simple to switch in the future, given that docker can (apparently) run these things
will be back on in ~1h30
 
@Ocramius nice article :)
 
9:12 PM
I've had enough of today, nn all
 
nn Joe
 
@tiffany X86 works ! :)
Another idea I had was a framework missed but not sure
 
9:40 PM
@Hexacoordinate-C could be a .NET framework since Apache requires a few of those
I had issues when I tried installing Apache and PHP by themselves on a Windows machine using x64, which is why I suggested x86. Everything has to either be x64 (PHP and Apache, and .NET Frameworks) or it won't work. I was certain that they had x86 versions for everything, so it was easier to default to that
 
Can someone suggest me a good sql book?
 
@utdev which brand of SQL? as there's more than one
 
NoSQL
 
@Tiffany hmm what excatly do you mean with brand?
@Tiffany the book should cover some fundametals but also should go deeper
 
@utdev different companies incorporate in subtly different ways
 
9:46 PM
You have MySQL, MSSQL, PostgreSQL
 
to more complex queries for example
MySql
 
@PaulCrovella That cover... that's fantastic
 
I've never read it
 
9:49 PM
Others also suggested me books from O'reilly
 
O'Reilly is a decent publisher
 
Ok thanks
But now another problem lol
In the lesson they said it was good to install Git for windows
 
yes
 
So I did, it is install without problem
 
git is very useful as a programmer
 
9:51 PM
@Tiffany I used git branches to play Pokemon with multiple saves
Git is very useful.
 
@Tiffany do you have any sql books which you can suggest
 
But some line after in the lesson they tell us for example to find the php version we have typing "php -- version" in the app "terminal" or any command line
I did
 
I am trying to get as much opinions as possibly before buying it :)
 
I tried all they want me to try
And all failed lol
 
9:52 PM
@utdev Not personally, because I learned SQL through PL/SQL, so my suggestions would be bad.
 
ok
 
@Hexacoordinate-C What is the error you've gotten?
 
Each time "command not found"
 
@Hexacoordinate-C Both http -v and sudo apachectl start are linux commands
What about php -v
 
@Hexacoordinate-C Try restarting your computer. When installing WAMP, etc, they have to modify the PATH variable. PATH variable modification requires a restart.
 
9:53 PM
OK here we go again lol
 
I'm assuming you're getting an error that says "php is an unrecognized command"
 
php -v doesn't work too
 
"command not found"?
 
try restarting your computer
 
How did you install PHP?
 
9:54 PM
I will I tell you after
 
@MadaraUchiha WAMP x86
 
Yes I installed wamp
 
@Tiffany point them to git-scm.com/book/en/v2, chapter 1.1 covers it
 
x86 32 bits
 
Right, so I'd try restarting, like @Tiffany suggests
Windows is annoying like that
 
9:55 PM
@PaulCrovella Oooooh, that's beautiful. It's free too. :D
 
I consider it required reading
 
PATH variable modification -> restart :(
 
@PaulCrovella is that book easy to read and understand for a none native speaker :)
 
@Tiffany Explaining version control is easy
 
@PaulCrovella I should share this with department, I'm basically the only advocate for git. :(
 
9:56 PM
@utdev I have no way to assess that, but there are lots of translations available, noted in the sidebar
 
@MadaraUchiha our database servers for ERP were on OpenVMS for years because of built-in version control
 
Here are 3 hard problems: 1. I don't know what my teammates did. 2. I don't remember what I've done. 3. I don't want to step on my teammates toes
 
@Tiffany what is the rest of your department using?
 
@PaulCrovella ok thanks alot
 
and also because our DBA didn't want to learn Linux, but I think that was below built-in version control
 
9:57 PM
Version control aims to solve those
@Tiffany Reminds me of a very special daily wtf
 
@PaulCrovella we're not using any version control. I think I'm the only one.
DBA doesn't want to use Git cause she doesn't know it, and she's afraid of it
 
@Tiffany Remind me again why you're working at a tech company where people are afraid of tech?
 
@MadaraUchiha since you're around, can you look at a class I wrote and review it for me? I think I wrote it how I want it to work, but I'm not certain.
 
@Tiffany I'm just about to head for a quick shower
But post it and ping me and I'll review it when I get back
 
@MadaraUchiha it's a community college in the middle of nowhere. You have people that are exactly as you'd expect.
for example, I live in a county that primarily voted for Trump
@MadaraUchiha oh my god that was mind numbing
 
10:14 PM
@Tiffany Objects are representations of concepts in your program
What does it mean for something to hold an object of type SendMail in its hands?
 
argle bargle
give me a minute to comprehend abstract concepts.
 
Okay, let's do the easy stuff first
 
the goal of the class is to send an email using PEAR Mail, and return a true/false value to the calling program
 
SendMail is CapitalCase, where Mail_mime is Capital_snake_case
 
Mail_mime is a PEAR Mail class
yes, the class is coupled
 
10:17 PM
Fair enough
Let me ask you this
 
yes, I know it's bad practice
 
With no implementation details whatsoever
From a pure API perspective
How would you want the API for a mail sending class to look like?
 
$mail = new \SendMail\SendMail($to, $body, $headers, $options);
if ($mail->send_email()) { session_destroy(); }
 
Okay
What if I wanted to send a different mail?
 
using a different mailer plugin?
 
10:20 PM
Or to a different recipient?
@Tiffany Again, no implementation details.
By your API, I would need to instantiate a different SendMail object
And use that
 
mmm, right
 
Your SendMail function is coupled to the PEAR classes, that's fine, that's its job (this pattern is called a Facade)
But there's no reason to tightly couple it to the mail and the receipient as well
Here's how I would want the API to look like:
try {
  $mailer = new SendMail();
  $mailer->send(new Mail($body, $headers), new Recipient($to), $options);
  session_destroy();
} catch (MailException $e) {
  // handle errors
}
 
@tiffany it still doesn't work :(
 
@Hexacoordinate-C php.net/manual/en/…
try that
 
SendMail now only holds the logic of how to send an email through PEAR
This new Mail is your object, by the way, not PEAR's
 
10:24 PM
right
 
This allows you to have different types of mails
HtmlMail, PlainTextMail, RichTextMail
 
Well my windows is in french so hum oh my god
 
And even extend Recipient in the future to support groups, CC, whatever
 
@Hexacoordinate-C I'm unfortunately a bloody American who only knows English and very small bits of Spanish.
 
lol
Have you windows?
 
10:25 PM
Most likely, you won't pass Mail the $body and $headers
Instead, it'd be something like just $body, and let the type of Mail determine the headers
But that's up to you once the structure is defined
 
I set a headers array prior to creating the object, which has the subject and from
 
@Tiffany Right, so something like this then
try {
  $mailer = new SendMail($from);
  $mailer->send(new HtmlMail($subject, $body), new Recipient($to), $options);
  session_destroy();
} catch (MailException $e) {
  // handle errors
}
That reads almost like English now
 
here's the original function that's used in the code base for sending email which I basically used an example with some of room 11's help
I know I don't have to write my class to follow it exactly, but it's what I used for inspiration
 
I like to, before writing my class, define the API I want to see clearly.
(This is also the secret sauce of TDD)
Note that I haven't written a single line of SendMail code
And HtmlMail and Recipient don't even exist yet
But this is the API I would like to see
 
fair
 
10:29 PM
And with that in mind, we can set about writing the classes to fit that API
You don't have to take my API
Just think how, in an ideal world, your API would look like
 
I think I started that way, but when I got into actually writing the SendMail class, I altered the code several times, which you can see, effectively effed the API
 
Right, so I take API changes very seriouesly.
 
if you don't have a lot of experience in the domain it's also useful to look at the APIs of others who've tackled the same problem, e.g. swiftmailer and phpmailer, not just for possible inspiration but to clue you into things you might be overlooking
 
I don't like search and replacing my codebase after breaking something.
@PaulCrovella Right
 
Because I didn't understand how to do stuff, like the get_attachments/add_attachments functions are with help from @Leigh
 
10:31 PM
I have nothing which looks like "advanced tab" :/
 
@Hexacoordinate-C Does WAMP work?
 
If someone one has windows7 can show me
 
Can you access http://localhost and see something?
 
Yes wamp works
 
And yet PHP is not found in the path? 😒
 
10:32 PM
no the command does not exist
 
I was trying to look for examples, but I think because it's the end of the day and my brain's fried, I didn't turn up anything useful. But I didn't think about checking other libraries.
 
Do you know where the public directory is?
Where does WAMP serve the files from?
 
You speak chienese for me lol
 
@Hexacoordinate-C WAMP works by serving files from a directory on your machine somewhere, and pass them through PHP
I'm asking if you know where that directory is
 
Yes in C
 
10:35 PM
@MadaraUchiha I know you mean well, and I appreciate the suggestions. But right now I'm mentally screaming about having to rewrite this again, and my to do list keeps growing. I told my supervisor I hoped to have it complete last Friday. Very rarely do I make my programming deadlines... >.<
 
@Tiffany Does it work?
 
I haven't tested it, but when I started writing send_email in the originating program and realized I was going to have to pass values that are either defined in the constructor, or are strictly inside the scope of the class, I realized I did something wrong.
 
@MadaraUchiha how can it help me to know that ?
 
@Hexacoordinate-C Because then you could place a file with <?php phpinfo(); and it would tell you a lot of useful information
@Tiffany Why'd you remove that?
 
10:38 PM
But I don't understand what to do so ... ^^
 
There's a good chance you're right
 
because you were asking something different that wasn't entirely related to what I said
 
@Tiffany The things you pass to the constructor are the object's state, what makes it unique among other objects of its class
 
but it is correct
 
For the classical example of a Person, that's $name and $age, usually
What does it mean to have two different SendMail objects?
What might differ between them?
 
10:40 PM
different recipients, different subjects, different bodies
 
Do you know where I can find equivalent words between english and french for windows?
 
But those aren't things you'd make an entirely new SendMail object for
@Hexacoordinate-C Is it not possible for you to set your Windows to English for the moment?
 
Is that possible ?
 
@Hexacoordinate-C Windows is multilingual, so yeah...
 
php.net/manual/fr/… I think this is the one you want
 
10:42 PM
A class is the representation of a concept.
A subject, a body and attachments are the property of the mail, not the mailer
 
fair, SendMail is just the name I gave it because the originating function was send_mail
 
A recipient and a sender are possible candidates
 
I was looking at the french php thanks @Tiffany OK so I have not "avancé" in my panel !!
Am I the only one on Earth
:(
 
I might have a certain part of my application always send reports from the same sender to the same recipient
So it might make sense to pass those in the constructor
And use them internally withing $mailer->send()
So you only pass the Mail instance to send()
This is more a question of preference
 
I'm going to copy and paste chat log to notepad because I think I've reached my limit for the day. 😒 sorry
 
10:46 PM
But when I see an email sender class, the likely thing to accept in send() is an email
Haha, that's fine.
 
it'll be easier for me to read this with a fresh mind tomorrow
 
Welp, it's 0:45 here
 
4:45 PM here
 
So not the ideal hour for me either to engage in code structure discussions
You should ping me earlier in the day 😛
 
why can't you be on the same timezone to explain this to me when my brain isn't dead? rofl
 
10:47 PM
Maybe if I re install git you can tell me what the best choice must be
 
@Hexacoordinate-C Git has nothing to do with PHP
 
Be cause I had to choose a lot of them but I let those by default
 
@Hexacoordinate-C The defaults are usually fine
Last time I installed Git on a windows machine I didn't change the defaults
 
@MadaraUchiha so why do you speak about it ?
It doesn't work with me
 
it's version control
 
10:48 PM
@Hexacoordinate-C Because git is a powerful tool that's worth learning?
 
I mean about php
 
Git is something pretty much all programmers use, regardless of the language they develop in.
 
I don't understand nothing
 
say you have Program-1.php, but you want to add New Feature to it, but oh shit, New Feature broke Program-1.php and you rebooted your computer, so you can't undo what you did
 
@Hexacoordinate-C WAMP installations are kinda different from classic PHP installations
 
10:49 PM
with git, you can go back to the previous version of Program-1.php
 
Every time I speak about something you tell me another thing is not what I was speaking about and now I am lost
 
And I don't know much about them, because the last time I installed WAMP was in 2008 :P
 
I prefer xampp :x
 
@Hexacoordinate-C Welcome to Programming!
(I'm joking)
 
if I just need a quick-and-dirty dev environment
 
10:51 PM
Honestly, I'd just grab a WAMP tutorial and go with it
I'm afraid I don't know enough to help you effectively 😬 Sorry.
 
if the course you're using doesn't explain how to set up WAMP
then find a tutorial for WAMP, like @MadaraUchiha said
 
They explain how to install it
 
and set it up to where you can use php -v?
 
After they tell it was good to use line command and GIT for windows was good to install and easy
I did it
Then they tell us to try some lines and ... fail
 
git is unrelated to the php command not working
 
10:53 PM
"php" is not recognized
 
it's useful, but unrelated to the issue
what you need to do to fix the issue is add the PHP directory to the PATH environment variable in Windows.
 
Well don't know how to call it
 
let's try this
click Windows button
 
right-click on the french variation of "Computer"
click Properties
 
10:54 PM
gn all
 
you should get a window that gives basic information about your comptuer
 
ok let see
 
in the left, there should be a link, it's the fourth one down, in English it's called Advanced system settings
click that
a window should pop up, for me it says System Properties
 
for me too
(in french)
^^
 
there should be a tab that says Advanced
it's the third one from the left
@Linus g'night
 
10:56 PM
Well for me it looks to be the first one
 
I have Computer Name, Hardware, Advanced, System Protection, Remote, but when I click on Advanced system settings, it goes straight to the Advanced tab
doesn't matter where it's at, as long as you're on that tab
 
There should be three frames: Performance, User Profiles, Startup Recovery, and then underneath all of that, button that says Environment Variables
 
OK yes @LeviMorrison by the looks of this you can just build a docker container and export/copy/something it. So I'm going to just attempt to build a docker container (something I have never done) and we can look at the whole OCI thing at some point in the future when the dust has settled a bit. The advantage of having two VMs is that we can screw around with one of them without actually having to take the whole thing offline anyway.
 
click the button the button for Environment Variables
 
10:58 PM
ok
 
Do you see a section that says "User variables for <your user account>"?
like for me, it says User variables for tktaylor
 
Asus for me ^^
Yes I see
 
ftr I always add php to the system level %path% to prevent weirdness if you run things with e.g. scheduled tasks @Tiffany @Hexacoordinate-C
 
okay, under Variable, there should be something that says PATH
 

« first day (2293 days earlier)      last day (2670 days later) »