« first day (2289 days earlier)      last day (2650 days later) » 
00:00 - 15:0015:00 - 00:00

Wes
12:01 AM
@MikeM. you also did if($property == "role_id") instead of if($property === "role_id") :P
 
They won't care about that in the assessment :P
pfff now getting one result and my check being != 1
 
12:23 AM
@MadaraUchiha I mean I can't improve myself within my organization. I need to look outside like SO. And for a while, I didn't know where to look. I was afraid of joining SO for fear of being judged because my code is generally shit.
 
Fair enough
Although I've never thought about it from the perspective of being judged.
I thought about it as being yelled at as a motivation for improving ๐Ÿ˜€
 
I don't have the self-esteem to be yelled at and take it positively. Though, it does depend on my mood. I can take the criticism and go, "okay, this is what I need to work on," and go from there. Today hasn't been one of those days.
@Danack I meant in the context of the organization I work for, not in the context of improving myself in general. There's no one within the department I work in that can help me improve my programming, I have to turn to sources like SO, Sitepoint, etc.
Hopefully that lessens the intensity of your drinking, but if you're wanting to drink, then ignore above :D
 
I've started by myself
So self-improvement comes more naturally to me than improvement by other people in physical proximity.
 
I used to work with another lady who was generally better at coding than I was. For quite some time, I felt like I was living in her shadow when she was laid off.
And she helped me improve tremendously.
...I still feel like I live in her shadow, actually.
 
I like to remind myself that no one was born with knowledge (except for @tereลกko, whose first words were "that's not MVC you twat")
 
Wes
12:34 AM
@Tiffany have you tried instead "doing stuff your own way" rather than expect to be told / look up what to do. practice is a good way to learn even if you write code wrong. equally valuable lessons are learned in defeat and victory (quote from enzo ferrari, the creator of ferraris)
 
Heh, I remember @Wes as an IT guy with near 0 programming knowledge, and today he's writing RFCs for PHP
 
@Wes I try to, but I sometimes fall into this hole of constantly questioning if I'm doing something right. I have to push myself to "just try it."
 
You can improve yourself, and SO is a great place to do it
 
And occasionally I fall into the trap of over-optimizing before I've written anything.
 
@Tiffany I think all programmers were in that stage where they'd look upon week old code in disgust and rewrite it for the 7th time
 
Wes
12:37 AM
@MadaraUchiha fu. my knowledge was already pretty decent at the time i joined SO :B
 
@MadaraUchiha :P Yeah, I've been there.
Mainly with my old HTML/CSS
 
@Wes ๐Ÿ˜›
 
It's weird seeing emoticons now.
And I need to install the dark theme extension on my home computer
 
Aye, rlemon's theme has automatic replacement
So I use them more frequently
Although, sad as it makes me, they look better on Win10 than they do on my Ubuntu -_-
 
Work box is on Win7, home box is on Win10
 
12:39 AM
Wait
 
Work box, emoticons don't load :(
 
You develop PHP on a windows machine? :o
 
yarp.
 
Out of choice?
 
Narp.
well, partially narp.
 
12:39 AM
Didn't you say you were a one man team?
 
yarp.
 
One... woman... team? whatever
 
:P
 
Don't you get to make those tech decisions for yourself?
 
It doesn't matter to me, really
Yes. I've had this discussion before in chat. ๐Ÿ˜› TL;DR: I don't know LAMP yet. I've actually made it a goal on my evaluation for this coming year to switch our web server environment from WIMP to LAMP.
I got used to coding on npp though.
 
12:41 AM
Have you ever tried development on other systems?
@Tiffany I'm guessing you don't mean the New Patriotic Party?
 
Tiny bit on Mac, tiny bit on Linux.
Notepad++ :P
 
Ah
Is it any good?
Last I tried it I hated it
 
It's a great notepad replacement. I don't use it as much for web dev anymore, ever since I got used to phpstorm.
 
Then again, that's what I said about TypeScript, and now it's improved immensely.
@Tiffany Ah, I see.
I use vim for that :D
 
npp was my first code editor, and I'm just used to it. I've tried Sublime Text and others, but ended up going back to npp because I know my way around it and can get shit done.
I use vim when I'm ssh'd into a linux box
hmmmm
I need to try something when I'm at work next
 
12:45 AM
Welp, I think the next step for you is to get a $5 DigitalOcean box and just play around with it.
Try to install PHP, Nginx, etc.
Not even for your work projects, just as an aside
 
we use this paid-for SSH program called Reflection, but I'm literally just sshing into a linux box, there's no reason why I can't use PuTTy for that, where I'd have better syntax highlighting in VIM than I do in Reflection.
@MadaraUchiha when I can motivate myself to dink around with programming and Linux and not play video games, I plan to set up a VM on my home box with Linux
actually, since I'm waiting on my boyfriend to finish whatever he's doing, I can start setting up the VM now
 
@Tiffany I find the paying for it helps motivate
Especially if it's every month and you get innocent email receipts that stab your soul once you realize you've burned money this month while doing nothing.
 
What distro is commonly used for LAMP boxes?
 
@Tiffany I like Debian
 
Arch Linux? or something else?
I'll try that then
 
12:49 AM
No organization I know uses Arch on a production server
Most use either CentOS or Debian
Where CentOS puts emphasis on stability
 
CentOS was what I was thinking of, couldn't remember the name of it
 
You'll generally get the oldest supported version for every software you install by default
Debian is closer to Ubuntu, which is the distro most of my machines run on, so it's more familiar to me.
 
Debian 32 or 64? I wanna say 32 just to be safe for setting up PHP and Apache together, but I'd like to use 64
 
I've never had problems running 64 with PHP
 
Must be because I was setting it up on Windows then. :3
 
12:51 AM
Also, learn you a Nginx while you're at it
Nginx is almost strictly superior to Apache in every regard
 
yeah
LAMP rolls off the tongue better. I don't know what the acronym would be for Linux, nginx, MySQL, PHP
LNMP just doesn't sound as fun.
It sounds like LIMP.
Almost as bad as WIMP.
 
I hate all those acronyms
They always felt like sales pitches to me
 
Do you hate it when people say "sequel" instead of "ess cue ell"?
 
@Tiffany Yessssssssss
 
hahaha
 
12:54 AM
Goddamit yes
 
I have to share that with a friend, he also hates it with a passion
 
The problem with all those acronyms is: who decided that all 4 of these very large, encompassing tools, are the ones I need for my problem?
 
A team he used to work for that was going to be rewriting their ERP, he was trying to push them to use PostgreSQL just so they wouldn't/couldn't say "sequel"
 
People throw LAMP around (and MEAN, and WIMP, and whatever) like it's the golden solution to everything
What if I decided that MongoDB with PHP is better to me than MySQL?
 
Well, MongoDB still starts with an M.
 
12:56 AM
Goddammit
 
>.>
<.<
 
Postgres then
The only reason PHP and MySQL get clumped together so tightly was because in the early days of PHP, the maintainers decided that MySQL is the best for their needs, and so they added functions for it into the language
The very same functions that got removed from the core lib when PHP 7 happened.
 
Honestly, the only reason I use the tools I currently do is because I'm used to them, and I need to take the time to get used to other tools that are better now.
And generally when I get home from work, I don't want to look at anything programming.
 
@Tiffany That's fair.
I used to feel the same a lot.
Then I switched jobs vOv
 
I hope to switch at some point. No employer will hire me right now because I'm in the middle of treatment for my mental health.
I'm a liability.
@MadaraUchiha I do appreciate the help you give me, same with several others in the chat. @tereลกko, @Leigh off the top of my head
I'm getting sappy
 
1:08 AM
Glad to help, that's what I'm here for, at least.
 
Anonymous
Evenin
 
@JayIsTooCommon \o
 
Wes
@Tiffany you didn't met many programmers, right? :B i think recruiters know by know that most of programmers are in some way crazy. in fact skills and craziness are directly proportional :B
 
@Wes I suppose. :P
@MadaraUchiha my friend is saying to use ubuntu instead of debian because it has a larger community. Opinion?
 
Wes
it's fair. but afaik debian and ubuntu are almost the same
ubuntu has just a larger bundle, i think
 
1:13 AM
@Tiffany I was told that Debian is more optimized for servers than Ubuntu (which is more for desktops)
I've never actually checked that claim, and never actually tried Ubuntu on server.
But like @Wes says, they're almost identical.
 
@Wes Yeah, he said debian is based off ubuntu and that it's used frequently in prod. My concern was if ubuntu can handle being in a prod environment
he said to get ubuntu server
 
I'll try both
Since it's a VM
and I have the room
 
mrrrrrrrrr
 
hello!
 
1:18 AM
-_-
where has everyone gone!
 
@Leigh To lie down by themselves in dark rooms.
 
I went out with friends, found a place that does absinthe cocktails, I'm home, my friends are gone, and I'm hungry
Also they made me drink pickle juice... :(
@Tiffany Ubuntu is to debian, what malware is to spyware
It has tons of shit you don't want
ubuntu... more up to date packages, less stable. debian... more stable, less up to date.. pretty much it
But the real drawback of Ubuntu, is Unity, that stuff is cancer
 
@Leigh what would you suggest to use on a prod web server?
 
@Leigh what?
You're aware there are minimal bases you can build on, right? (Like the minimal CD)
 
@littlepootis Minimal ubuntu is.... debian
@Tiffany debian or centos
 
1:30 AM
When the Debian installer asked me if I wanted to set up predefinitions, I picked debian desktop environment. There was an option for web server. Should I have picked web server, or is debian desktop environment fine?
 
Not really
You should have picked the server env
 
fuck
 
Unless you want a desktop environment
 
oh well, I can scrap and start over
 
But you should be able to just disable it.
You don't need to start over
 
1:31 AM
typical server usage doesn't include having a monitor attached or an X11 session
 
There's no harm in having one if you're just learning
 
stars galore
2
oh geez
was that a spammer?
what is going on o.o
 
ubuntu users
 
I should have gotten a screenshot of that for sake of context
 
1:40 AM
I can try helping to you with this in the morning
 
@littlepootis oh god that is horrifying, but probably accurate
So I think I'm okay to install GRUB boot loader on my VM, but I'm not sure where it should go. /dev/~?
and I'm not sure if I used ~ correctly, but I mean it as a wildcard.
 
Probably /dev/sda
 
@littlepootis fanks
lol, I'm spoiled on premade Linux systems. I need to write the alias for ll
 
2:04 AM
if I alias a command, do I need to restart the OS for it to recognize it?
 
no, just source the file
source ~/.bash_aliases
or just . ~/.bash_aliases
 
I was in .bashrc and saw the command I wanted to alias commented out, so I just removed the comment for it, but if I try using the command, it says it's not found
or do I have to use .bash_aliases?
I feel like I should join the linux chat so I'm not bombarding php chat with linux questions, rofl
 
source ~/.bashrc
 
what does source do?
 
I have an alias re="source $HOME/.bashrc, so I could just type re if I wanted to source it.
@Tiffany It's similar to typing everything in the file manually.
into the terminal.
 
2:13 AM
OH
I see now
thanks :)
it's like saving the file, then compiling (in similar fashion, anyway)
@MadaraUchiha maybe I should become a twitch streamer.
 
2:32 AM
@Wes is performance critical to the domain? I sometimes don't even notice a difference btw
 
Wes
i don't know anymore if what i'm doing even makes sense
 
3:15 AM
@Tiffany Just worry about progressing your skills week by week and being responsible.
It will all work out.
 
3:30 AM
@Wes then why care about performance in first place?
Just slam varnish in front of it, and who cares
I even put varnish as a proxy for outgoing http requests, and it's awesome
 
Wes
@Ocramius because if it's too bad i would rather keep the problem i'm trying to solve
 
It is not a big issue, although caching is indeed suggested
since it's a static-ish operation anyway
 
 
1 hour later…
Wes
4:42 AM
@Ocramius why would i ever need to use ghost objects? the only use case i think is letting the objects to pass through type hints against a specific class rather than an interface. am i right?
eg function foo(SomeClass $class){}
class WhateverProxy extends SomeClass{}
can't do wrap in that case
 
morning
 
 
1 hour later…
6:02 AM
posted on January 21, 2017

New Cyanide and Happiness Comic

 
moin
@Stricted I don't know what that is either, but someone at travis does, it happened before
@NikiC @bwoebi any idea what's going on here ?
 
6:43 AM
moin
 
/me can't stand incorrect typography, especially capitalization and spacing
 
 
1 hour later…
8:09 AM
Cthulhu, it's too early for me to be awke
 
/me gives an a letter to @Tiffany
It fell from your sentence
 
@Trucy I'm a grammar nazi. I don't blame them, but inevitably I edit ESL posts because the grammar and spelling is usually atrocious and I can't let it stay.
thanks. I'm too tired to care right now. :D
in which case, bed :D
 
bed as in "I'm going back to bed" or as in "I'm being extra lazy in bed"?
 
8:26 AM
@Fabor lol
 
Wes
8:38 AM
i love hard that people are voting yes hard to deprecate hard
 
9:17 AM
morning
 
I can't believe I've been clickbaited by a "marriage blog". The title read "Setting up a marriage with a paraplegy". It sounded interesting because I wanted to read how one can organise a marriage with a (pretty severe) handicap (I love organising events). I wanted to learn about logistics, about the venue, everything practicalโ€ฆ But the whole story turned out to be "I'm not paraplegic. I'm plannig marriage. Accident. I'm paraplegic. I'm planning marriage. Marriage occurs. Happily ever after."
 
error occur like this:( script timeout passed, if you want to finish import, please resubmit same file and import will resume.) while importing sql(732kb) into phpmyadmin
 
morning
 
also good morning kelunik
(and @tereลกko)
(and r11 in global)
@abdul I think that the script you want to import is too big
You might want to use this: ozerov.de/bigdump
 
@Trucy now what will i do?
@Trucy any other way is available??
instead of that?
 
9:26 AM
@abdul not that I'm aware of. But you need to divide your big script in several smaller scripts
 
oh Thank you @Trucy but may i use this method??(stackoverflow.com/questions/30448037/…)
 
Er, well, yes, but I don't know how you configured your php.ini or server, so the best way to know is to try by yourself
 
oh well ...anyway thanks for your support
 
9:47 AM
Morning
 
\o
 
o/
 
o/
 
@JoeWatkins Presumably divine punishment for using references
 
@NikiC LOL
 
morngins
 
morning o/
 
Anonymous
@Gordon my brain hurts
 
Anonymous
I wanted to learn C so I could check out the php source, but my sanity is more important to me ...
 
Anonymous
Whatever is left of it anyway
 
10:36 AM
@Gordon That's a good example of why I prefer defined types rather than inline declarations of types.
 
nobody would write it like that ... it will raise warnings on most compilers I think
also \o
 
morinis!
 
10:53 AM
ioing
 
11:09 AM
@Jeeves did you talk to @CapricaSix last evening?
 
@Gordon <html>
 
@Jeeves I guess that's a valid conversation for the likes of you
 
@Gordon <html>
 
@Jeeves ah, a gentlemen doesn't tell, huh?
 
@Gordon <html>
 
11:11 AM
@Jeeves are you broken?
 
@Gordon <html>
 
lolwat
hahahah
!!changelog
 
[ Jeeves ] [ 3e746ec ] Remove superfluous new-lines - Commited by: Chris Wright on 20.01.2017 15:43
 
@Jeeves Are you a bot?
 
@PeeHaa Step aside you filthy human.
 
11:12 AM
hmmm seems like cleverbot is broken
 
Wes
mornings
 
hey wesley
 
Wes
has anybody ever tried doing this with composer:
i have a package A that requires-dev the package B
the package B requires A
ie, a circular dependency
 
if it all can target the same version it shouldn't matter I think?
 
Wes
dunno. don't even know if i should try it... without polluting github and packagist, i mean :B
 
11:16 AM
BTW it is a good indication it should be in a single package I guess
 
Wes
probably
 
@PeeHaa not necessarily. it's more an indicator of a missing abstraction/decoupling
like when they depend on Guzzle directly instead of a GuzzleAdapter
though that's probably not what it is here
 
Wes
11:35 AM
@PeeHaa imho it should work. because B is only a dev dependency to A
 
HTTP/1.1 404 Not Found
Server: nginx/1.6.2 (Ubuntu)
Date: Sat, 21 Jan 2017 11:41:33 GMT
Content-Type: text/html
Content-Length: 177
Connection: keep-alive
 
Not sure if I implemented pandora yet
ugh I am going to do the shower thing and hope that helps...
 
11:53 AM
 
12:04 PM
:P
TBF they don't do apis which is probably why they are trying to block us now :D
 
@JoeWatkins people using memory_get_usage() with true โ€ฆ
โ€ฆ interesting, still leaks
@Danack 3v4l.org/dntLu also leaks in 7.1, but just the references the array is not duplicated in PHP 7.1 here.
 
12:45 PM
hjughu
 
user895378
morning
 
morning
 
oh god - linux.
I've created a fedora live usb stick. Booting from it gives me a grub cli screen. Is there a standard way to actually boot into Fedora from that or do I need to rtfm.
 
1:14 PM
@Jeeves ??
 
@Linus <html>
 
@Danack That grub screen should have your boot options on it
 
Tech-support-over-tcp https://t.co/jEVCoFWI7r
that's what I see.
 
Looks like you don't have any grub entries
did you literally dd the bootable image to the stick?
 
Yep sudo dd if=./Fedora-Workstation-Live-x86_64-25-1.3.iso of=/dev/rdisk2s2 bs=1m
 
1:20 PM
tried typing boot at the grub prompt?
 
> error: you need to load the kernel first.
 
:D
kernel /path/to/kernel
 
there doesn't appear to be a command kernel, also I'd need to find the path to the kernel first.
I'm going to check all the partitions are exfat....doing ls seems that some of them might be applefs
as the output of ls includes (hd0), (hd0,gpt2,apple3).....(hd0, gpt2,msdos2)
the iso is probbly on the msdos2 partition....but maybe other info is on those apple ones.
On my mac, doing diskutil list gives:
/dev/disk2
   #:                       TYPE NAME                    SIZE       IDENTIFIER
   0:      GUID_partition_scheme                        *16.0 GB    disk2
   1:                        EFI                         209.7 MB   disk2s1
   2:       Microsoft Basic Data                         15.7 GB    disk2s2
For the usb stick, which seems reasonable?
blah found it probably
I probably ought to use MBR....
nope apparently.
 
1:42 PM
I think I might see a problem
So in your dd line...
you specify of=/dev/rdisk2s2
Does /dev/rdisk2 exist?
Looks like you might have copied a whole disk image to a partition, rather than to the whole disk
 
that would make sense - I was following these instructions: osxdaily.com/2015/06/05/copy-iso-to-usb-drive-mac-os-x-command
 
ISO not necessarily equal to bootable image
 
"Does /dev/rdisk2 exist?" is also exists as well as the partition inside it.
So I should try imaging it with just sudo dd if=./Fedora-Workstation-Live-x86_64-25-1.3.iso of=/dev/rdisk2 bs=1m ?
 
How come you didn't just download the Fedora Media Writer for OSX?
 
@Leigh it crashes on my mac.
 
1:47 PM
I would try it on the whole disk yes
 
Should have brought my work mac home to have an uptodate version of osx...
 
you'll obviously wipe all existing data
 
yeah, that's done already.
 
and on USB 3 you can up that block size for faster transfers
I usually go for 10
 
Thanks - that appears to have worked as I now have a boot menu.
 
1:52 PM
:)
 
and on that day Danack's beard grew 2 sizes
 
neo
guys is there any limit in number of updates on a field in mysql per second ?
lets consider the case of facebook like button.if there are 1000s of likes in a second and i need to update the like count on a particular field with respect to the likes
is it possible to achieve so ?
 
The trustworthiness of my beard puts me somewhere between very trustworthy and threatening... like a homeless philospher
 
@neo I'd suggest using redis, memcached and the like and periodically pushing to your mysql db.
 
@neo there are limits based on exactly what queries you're running. but it's a difficult problem. Facebook and other large scale organisation have hundreds of people working on making their systems scale. I'd suggest reading a lot of highscalability.com
Also - you're not actually going to make the next facebook. I'd suggest just making anything and worrying more about scaling when you have some users.
 
2:00 PM
You'll want an in-memory store with periodic flushing
For really high scale, that'll be flushing to a queue for aggregation
 
neo
@Danack haha i was not going to build another facebook.i was just mentioning a common scenario
 
1000s per second is not a common scenario
 
I'd probably even say that 10 per second is a reasonably uncommon scenario.
 
neo
@Leigh lol i just pushed to some extend just not to get a common reply that its nothing to worry
@Danack 10/sec uncommon ?100/sec may be uncommon..
any guys running ads on your website ?
isnt cpm rate of .05 dollars very low ?
 
...
 
2:07 PM
no we tried ads, we didn't like it
 
And nobody likes ads
 
@NikiC have you seen github.com/Microsoft/tolerant-php-parser? Just thought you'd like to know about it.
 
Not sure how weird this sounds, I'm looking to run a cron job to php, but don't want the script itself running as root. However, the user I want to run it to won't have access to /var/log. Reckon I could run the cron as root but su as the user, then redirect the output of the su the /var/log location?
 
@Sean why not create a /var/log/myscriptusername and then grant permission to write to the user running the particular php script?
 
@marcio I'll give that a shot :>
Don't think it's particularly possible. Being in the log folder pretty much everything is root:adm, and I don't want to give the user access to any of the other logs
 
2:27 PM
@marcio yeah
 
@Sean Not sure what you've tried, but you'd need to create the log file first sudo touch /var/log/myapp.log and then allow user that will run the script, like sudo chown theappuser /var/log/myapp.log
 
@marcio That's what I did. The folder the log is in doesn't have execute or read for the user so they can't even see the file
 
weird... I'm pretty sure this should work, done this before. But gotta go now, good luck ^^
 
Probably, I am a bit stupid when it comes to this stuff so I'll need all the luck I can get :P
 
@Sean Got the posix extension available?
You can open a handle to /var/log/whatever then drop priveleges
 
2:42 PM
I don't think I do, but I haven't touched it before either
 
php -m
or maybe it's available for you to install (and you're allowed to)
 
Showing in php -m, also allowed to
 
So you have access to setgid and setuid
You can start up as root, open the file handle, drop privs
sorry those are prefixed by posix_
 
so I just finished Undertale for the first time and dont know what to make of that game
I felt half of it was boring and the other half was annoying
 
2:58 PM
but you played it through anyway
 
00:00 - 15:0015:00 - 00:00

« first day (2289 days earlier)      last day (2650 days later) »