« first day (1183 days earlier)      last day (3991 days later) » 

09:01
ping @HamZa need your regex-fu skillz for this
https?://stackoverflow.com/q(?:uestions)?/\d+/?[^/]+/?$
it's goiing to need a negative lookahead to make sure link is not a question answer link
the first two sets of links are correctly being matched. The second set of links, nothing should match for them.
https?://stackoverflow.com/q(?:uestions)?/(\d+)(/[^/]*/?)?$
that's what my regexes do
the latter also matches the Q's id
09:11
is there a way without the $ usage the string being matched against may have text afterwards
I see
second
Morning ya'll
morning
I've a CentOS server, where's the recommended place to install Nginx, PHP and MySQL?
09:17
/opt?
@zerkms sweet, thanks a bunch! Btw what does d++ do?
I usually install into user directory as my servers are only used by me
@MadaraUchiha doesn't package manager do it for you?
@zerkms I was hinted that the repos are horribly outdated.
@crypticツ it's a so called "possessive quantifier"
09:20
And that I should compile from source
@MadaraUchiha oh if that is what you think, you should use gentoo.
in 2 words what it does - is it doesn't go back to try to match after it consumed some characters
@hakre Not sure if a joke or not. In any case, it's a bit too late for that :P
so for aaaaab string a+ab will match
but a++ab won't
09:21
@MadaraUchiha Well CentOS is based on RHEL. That is for stability, not for getting the latest source changes compiled and packaged.
because a++ matches all as, and when it meets b - it cannot match another a and cannot match ab as well
whereas a+ would just make a step back
@MadaraUchiha Otherwise you need to pick a package repo that has the packages in the version you're looking for.
@MadaraUchiha go compile yoru sources somewhere else!
CentOS uses rpm.
@hakre So installing via yum should get me the latest stable?
09:23
btw, if I were a person who wants to do that on a non-slackware distro, I would create a custom rpm and set up a local repository
@MadaraUchiha It should get you what the vendor of the OS (here Redhat) considered as stable enough for it's customers.
CentOS de-brands the Redhat stuff.
But it's merely the same edition.
1.4.4, that's good enough for me
Now for PHP (which I'm pretty sure I'll have to compile, since I want 5.5 :D)
Which CentOS version do you have btw?
And I suggest you use remi repositories:
09:25
@zerkms and what's the difference on slackware?
@andho originally it didn't have any package manager and any dependency manager
so you had to satisfy all the dependencies manually
@zerkms how's that like?
you opened a special site, found what you need to compile
wrote down all dependencies
then opened a page for every dependency
repeated the step #2 for them
and continued until you write down all possible dependencies
it was one of the first distros, wasn't it?
then you install them in the reverse order
09:27
I had a bad day just downloading .deb packages. Having to get source and install! That's gonna be ... a waste of time?
it was long ago though
@hakre probably yes
but installing just php, nginx, mysql. That I'd be happy with. If the distro had atleast the latest libs
if you want to compile something just choose gentoo
What's special in gentoo?
it builds everything from sources
and ebuilds are really easy to write
Remi also helps out with PHP core. And he offers repos for Fedora, RHEL, CentOS.
so if it lacks something or doesn't have a necessary version - you can build one easily
It's very comfortable. He also accepts donations :)
@zerkms you mean the builds are automated?
09:30
yep
even though it's all compiled - it has a nice "package" manager
interesting
I used to use it for couple years on desktop
6 hours for kde
another 6 hours for OOo
3 hours for for FF
FireFox?
yep
Gentoo is pretty much current to upstream.
09:32
Was it the whole Mozilla suite?
not sure of details
but I remember XUL thing took at least half of it
I compiled that once. I couldn't get it to compile separately
@andho what is even more fun is that it doesn't have an installer
(the distro)
09:33
@zerkms But this has a clear reason.
you need to install it manually - including partitioning, loader setup, initial kernel compiling
yep
@zerkms hehe
after 2 times it becomes easy and you could do it with eyes closed
With Gentoo you're creating your own kernel. All those installers (Fedora, Ubuntu, ...) come with a bloated Kernel with all drivers in so that you can run the installer on nearly any hardware.
and for very that reason you can handle your installation easily
I started my initial setup in a virtual machine
and when it was more or less ready - moved to a bare metal
09:39
What I remember best from my gentoo course is: change root. First time I understood what that means :D
@hakre i remember compiling my own kernel around 10 years ago with a slax installed locally. That's the first time doing a chroot
Slax was my first linux. It was so cute with just 120 MB
10:03
"A closure is a function that isn't accessible in the global scope. Kinda"
kmp
for the long time I cannot understand why the concept of closures is so complicated for people to understand
but is that really an inherent characteristic of a closure?
what?
the quote I made?
@zerkms yeah
definitely not, that's why I noted it with "kill me please"
the whole discussion is here stackoverflow.com/questions/21060784/…
@zerkms well in my defense I didn't know kmp
10:06
can a high rep user please post a question ID for a deleted question?
"why don't you explain what I'M trying to do and why it doesn't work" comment by the OP ^_^
but in php you have to inject the variables of parent scope into the closure :S
yep, because it's php
pshhhffft
but also, any function in javascript is a closure isn't it, in that they have excess the parent scope
@crypticツ I cannot remember one actually
@andho no, you need to refer to a free variable explicitly
@zerkms is still viewable by you? stackoverflow.com/questions/7338625/…
10:14
yep
@zerkms i see
ok, I'll use that ID, just want to check what the API returns or not in regards to a deleted question, thanks
How can I disable the splash screen in PHPStorm? Would that be an acceptable question for main site?
@toscho for what?
It is always on top and I just don’t need it.
10:22
oh :-S
it's on top for several seconds
user652649
1- leave phpstorm always open
2- ...
3- profit!
every second counts. :)
@Wes wrong
3. PROFIT!!!11
@toscho no it doesn't
it's not a HFT
it's IDE start
HFT?
high frequency trading
10:23
Can anyone help me with configuring Nginx?
so when you start it - just look through the window, give some relax to your eyes
you should see how I work :D
actually if you do it that way - you're doing it wrong
you should see how I work
It is useless for me, so it must go away
so ask, you've spent 3 minutes discussing it
I'm wondered that you cannot afford 10 seconds on phpstorm start and then discuss it for several minutes
it's not consistent for me
10:25
@MadaraUchiha watcha need help with?
chat happens one time, but the splash screen annoyance accumulates.
Well, I'm getting Starting nginx: nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use), with no clue on how to debug it
don't close phpstorm
for the whole december I started it may be twice
when I restarted my machine
I shut my computer down when I go to sleep
@MadaraUchiha netstat -avn | grep 80
user652649
10:27
@toscho don't sleep
I try, really.
netstat: no support for `AF INET (sctp)' on this system.
netstat: no support for `AF INET (sctp)' on this system.
netstat: no support for `AF IPX' on this system.
netstat: no support for `AF AX25' on this system.
netstat: no support for `AF X25' on this system.
netstat: no support for `AF NETROM' on this system.
tcp        0     48 81.4.127.186:22             80.179.184.165:49784        ESTABLISHED
I'm guessing that's the SSH connection
@MadaraUchiha sudo lsof -i :80
@zerkms
Nothing
10:29
try to start nginx again then :-S
do you try to start it as a root?
Starting nginx: OK
yes
wait, what
It just vanished :o
? :-S
Okay, so now I need to configure it to work with PHP
@SweetieBelle hi
@crypticツ Hello
10:32
Thanks
(It's not ubuntu or debian though, does it matter?)
@Shyam random ping...
user652649
i have to get a woman nickname, so everyone will be nice with me. suggestions are welcome
@MadaraUchiha only how you install them would be different for you. The general setup is common
@Wes Butch
user652649
@crypticツ haha
10:35
it goes with your avatar as well
user652649
avatar must be 99% pink
10:53
Morning.
ThW
ThW
Morning
11:09
LOL someone has up-voted ^
@NikiC NAMED PARAMS!
TT^TT
Congrats though :)
32:2?
11:25
@rdlowrey you'll like this
@codelust well, you are right. I just meant vanilla php. You could fake multi processing with libevent too.
@MadaraUchiha yep
and morning
Cheers, and monin :)
moin @NikiC
I hate FTP :|
@NikiC is named params still on hold ?
11:26
@MadaraUchiha why do you use FTP
use scp
@andho No SSH access on the other server... :|
(Moving all files from the shared host to my new VPS)
:| and it calls itself a server -.-
oh nos, we're running out of RFCs =oO
@NikiC not yet merged =/ :-P
@crypticツ Don't worry, Named Params will never see vote, right @NikiC? :P
11:28
@crypticツ create a new genius RFC …^^
Any CURL command line experts here?
@bwoebi *bundles in pecl_codeigniter* =oD
@crypticツ are you trolling here?^^
RFC http kernel y'all
I want a PHP6 that fixes all (most) of the awkwardness in PHP (the inconsistent naming, the bad outdated libraries, the php hammer, etc).
But I'm guessing I'll be like, 50 before that happens :D
11:32
@MadaraUchiha heh, you think it'll happen
@salathe I can dream, can't I?
@MadaraUchiha :P
11:46
@bwoebi Need to figure out how to use git rebase every time anew
I always forget how the 3-way rebase works
@toscho commandline options checked?
@hakre where can I see those? I looked through the .bat and .properties files.
user924016
12:08
Moorning
@NikiC I have no idea how rebasing works… maybe just put a quick hint in gitfaq on php wiki would help…
@bwoebi I know that none of you guys knows how rebasing works. Otherwise I could actually review things like merged PRs. Right now that is impossible because people just merge them as 10 individual commits...
@NikiC ...you might be talking about squashing (which is part of rebasing)
life would be easy if everyone understood git. That would mean they are competent programmers as well
Yes. I usually don't bother with rebase for that and just use git reset ^^
I'm trying to push git flow to my devs hoping to make my life easier
12:14
@NikiC that's why a few git cmds on php wiki would be really helpful…
@NikiC you mean... huh, what?
@NikiC does it really work?
@andho I mean a git reset --soft HEAD~N followed by a git commit --amend
Why don't we have something like: boolean str_contains(string $needle, string $haystack) ?
@NikiC yeah got what you mean. Just never thought of that hehe
@NikiC and then a git pull from master?
12:18
And I know about return value of strpos. :)
@bwoebi git pull? dunno about git pull, I don't use that
what do you use then?
You mean for updating the tree? I do a git fetch php-src and then git rebase php-src/some_branch
That's probably the same as doing git pull --rebase ;)
In PhpStorm I've put $this and $this->app where ??? is and it still does not understand addCritical() is a method in Monolog. If it was $app['monolog'] I would put $app, but what do I put for a property?
/** @var ???? \Monolog\Logger[] */
$this->app['monolog']->addCritical('Request failed: ' . $e->getMessage());
so that's still a rebase you use?^^
git.php.net/… ……… niiice @NikiC !
12:23
@bwoebi For updating, yes. I was talking about squashing previously ;)
Ah, then I misinterpreted context ;-)
@toscho I was looking but no luck. The switches I could google so far are pretty limited into the direction what you're looking for.
I would open a ticket in their bugtracker.
Hey everyone
I have another probably stupid question
Is it possible to easily integrate php with python
I have done so much work on an app in python and now the project leader want to use python
Define integrate
12:32
Make them work together
Like have one part of the app php and have the other part python
@JVarhol but to which extend? how should those different parts talk to each other?
What @hakre said
@hakre Yes, or at least php talk to python
@JVarhol How does it sound when php talk to python? Can you say which words are used in that talking?
And if no words are invovled, how does that talking look like then?
12:36
2 mins ago, by hakre
@JVarhol but to which extend? how should those different parts talk to each other?
Php sends data to python
@JVarhol like with brainwaves?
So like TRADE BU +10%
Then it's easy. You only need to sit next to the application and sing OmOmOm
We are getting no where
No seriously you need to more technically specify what you want to do.
An easy way to have two programs interact with each other is via standard streams of your operating system. en.wikipedia.org/wiki/Standard_streams
Nah, its okay I'll just rewrite my entire code in python
No big deal, just a few hours wasted
I'll probable just go build a computer to store all the python files
yeah, that'll probably help ...
user924016
^ hehe
What Ronni
Looks like I am going digging through my stuff for computer parts
You guys wouldn't happen to be well versed in networking would you
12:48
What specific part of networking?
Bridges and such
Bridges as in routers and stuff?
nah bridges as in the bit where you just build as many computers as possible so that php can talk to python ...
Bridges as in bridges, specific pieces of hardware made for extending your wired network, by connecting to the wireless
When in doubt start throwing cpu's at the problem!
Also monring Joe
12:50
Cou's?
If those bridges of yours run ios I might be able to help you
moin @PeeHaa
/me glares at joe
Nothing personal
If however it is consumer grade stuff no thanks
Why iOS
12:53
why anything, why are you talking about needing to build a computer in order to get php to talk to python ?? if you ask a stupid question, expect a stupid answer ...
Because it at least tries to be sane and somewhat rigid router OS
Ios on networking equipment, never heard of it
...
Kids these days
Cisco IOS (originally Internetwork Operating System) is software used on most Cisco Systems routers and current Cisco network switches. (Earlier switches ran CatOS.) IOS is a package of routing, switching, internetworking and telecommunications functions integrated into a multitasking operating system. Interface The IOS Tcl command line interface provides a fixed set of multiple-word commands. The set available is determined by the "mode" and the privilege level of the current user. "Global configuration mode" provides commands to change the system's configuration, and "interface con...
Oh that iOS I was thinking of apples ios
put did DDD WRT on most my routers
Oops one d too many
I really like dd wrt haveyou used it before @peehaa
5 mins ago, by PeeHaa
If however it is consumer grade stuff no thanks
12:59
Isn't consumer grade its way better

« first day (1183 days earlier)      last day (3991 days later) »