« first day (1774 days earlier)      last day (3184 days later) » 

3:00 PM
@rdlowrey are you relocating or working remote?
 
@kelunik Yes
 
@Sajad that guide is for installing from source code
look up the "pkg" commands that I talked you through yesterday
 
yes, it is blue color :-) ! I passed it ;-)
ok
 
hi there!
is someone familiar with how php-fpm works internally compared to php?
 
@PeeHaa I wouldn't! I wanna get shit done, not stare at people all day long
 
3:05 PM
@tereško ok, don't tell me how can I install it, but at least give me a link ..
 
@Sajad type man pkg into your shell
 
in Root Access on The Stack Exchange Network Chat, 15 hours ago, by tereško
first you need to find a name of the package: pkg search php
 
@tereško like man pkg ? (as @Gordon said)
 
did you really understood nothing of what I told you yesterday?
completely nothing?
 
@tereško not correct !
 
3:08 PM
Anyone of you going for that?
 
When dealing with a "constant" mapping of scalar values, relevant to a certain domain model, I've gone this route:
public static function getFooByBar($bar) {
    static $fooMap = [
        'x' => 42,
        'y' => 65,
        'z' => 74,
    ];
    return isset($fooMap[$bar]) ? $fooMap[$bar] : null;
}
 
I can install freeBSD on Vbox and connect to that server with putty ! they are what I learned yesterday !
 
The domain is "unchanging"; is this appropriate?
 
@Sajad I linked you to where I yesterday explained how to install stuff
read through that chat history .. see, if you can figure it out
 
ok
 
3:12 PM
@danlugg Why not just use constants
Constants represented in configuration files?
 
oci_connect without charset segfaults with php-fpm but not with php-cli (same environnement), I doubt it's a bug -_-
 
Hi all, I have an application form where the applicants pick the days and hours they're available to attend. Currently it saves each day and the hours they're available that day as a single row, so it saves 1-5 rows per user and the table ended up with more than 25k rows... What would be the best way to save this info and use it afterwards?
 
@soyuka definitely a bug. oci_connect is basically never tested afaik.
 
What command do i need to use in redis to create structure like my map?
Sorry Im really new to redis
 
3:27 PM
I'm using php 5.6.12 atm everything is defined as it should (env variables). `php -S localhost:8080 test.php` works, `sudo /usr/local/sbin/php-fpm -c /usr/local/lib/php.ini -F -e` fails `OCIEnvNlsCreate() failed. There is something wrong with your system - please check that LD_LIBRARY_PATH includes the directory with Oracle Instant Client libraries`.

This is driving me crasy -_-.
@NSGod use pub/sub redis.io/topics/pubsub
 
@soyuka so basically pub/sub is like an array of data? Okay thanks
 
redis doc is nice, read it
 
@soyuka alright man Thanks, I just didn't know where to start
but what you send is good
 
3:33 PM
Very pleased to say I will soon be joining the @Grovo team in a senior engineering role. Culture matters :)
 
@rdlowrey Just say it, @ircmaxell matters
 
@tereško your mean is this ?
or this
 
28 mins ago, by tereško
in Root Access on The Stack Exchange Network Chat, 15 hours ago, by tereško
first you need to find a name of the package: pkg search php
 
Abe
apart charlie sheen's of course
 
if you click on the link, it will take you to chat transcript
 
3:39 PM
@tereško I searched pdo like this: pkg search mypackage
there is some result
which one is fine ?
 
you need pdo_mysql extension for php 5.6
which do you think matches that?
 
wait
php56-pdo_mysql-5.6.12 ?
 
that looks like what you need, yes
 
good
I write this? pkg install php56-pdo_mysql-5.6.12
 
without the "mypackage" part
 
3:43 PM
oh :)
 
when that is done, you will need to install latest nginx version
 
nginx has how many size ?
pdo does not install
 
250KB
 
pkg: Insufficient privileges to install packages
@tereško ok, very well
 
@Sajad oh .. you need root access to do that
 
3:45 PM
@tereško ah ok
done :-)
 
congo sajad
 
now, find the latest nginx version (1.9.*) and install it
 
ok
@AnmolRaghuvanshi what is mean of congo ?
 
congrats
 
Should an application respond with an HTTP/1.1 response to a 1.0 request, or vice-versa?
 
3:47 PM
@AnmolRaghuvanshi ah tnx :)
@tereško this? nginx-devel-1.9.2_2
 
yes
 
ok
pkg install nginx-devel-1.9.2_2, right
?
 
@DanLugg hm. Imho it should always return HTTP/1.1, to let the client know of its possibilities.
but I'm not sure, really
 
@Sajad that should do it, yes
 
done :)
so ? what is next ?
mysql ?
 
3:50 PM
@DanLugg Yes, servers should respond with HTTP/1.1 responses to HTTP/1.0 requests according to the spec.
 
@ircmaxell Have you ever had experience working on a team with remote workers?
 
@Sajad yes, you need to find mysql, but there is a tricky bit here : there are a lot of packages with "mysql" in the name
 
so which one is the best ?
 
when you search for them, you will want to filter the results
 
3:51 PM
how to filter the results ?
 
if you write: pkg seach mysql | grep server, then it will only show names that have both mysql and server in the name
the "grep" command lets you filter data
 
ok, I think I used | grep last night
@tereško ok
 
find the newest mysql server's version and install it (that will be a bit over 20MB)
 
@FlorianMargaine Do you know if a server should close the connection in that case? Because HTTP/1.0 doesn't have keep-alive.
 
@tereško please edit this comment and replace "seach" to "search" ;-)
@tereško that's fine
 
3:54 PM
@kelunik in case of http/1.1, isn't it the client that closes the connection?
 
yeah .. typo
 
@tereško ok, look, my server is slow, why ? when I search, it takes 4 sec to show me the result, why ?
 
because it is not a real server, you are virtualizing entire operating system
 
@FlorianMargaine If the client sent a HTTP/1.0 request, I'm not sure. I know that there may be an issue in that case with PHP's file_get_contents, I probably didn't submit a bug report, wait..
 
also .. you are on a laptop .. get a damned sense of perspective :P
 
3:57 PM
@tereško ah, of course some times it takes just 2 sec !
ok
here is the results:
geoserver-mysql-plugin-2.6.2
mysql51-server-5.1.73_2
mysql55-server-5.5.43
mysql56-server-5.6.24
 
just pic the newest one
 
5.6.24 ?
 
you really shouldn't ask obvious questions
 
:) look, it is the first time that I'm installing pkg on the server, often I'm not sure
 
3:59 PM
well, the stuff in you head is NOT meant to prevent echo .. use it
 
ok
 
@tereško :D
 
when you are done with mysql, all of the main parts will be installed and you will need to configure them
 
oh one thing. I installed nginx, it is a web server, so ?! I want to see me website, you told If I install a webserver I can see my website on the browser
 
4:00 PM
(if you need some additional php extension, those take few KB .. you can download them any time)
 
@tereško Configure ..???? Oh No !! it is hard ?
 
not really. it's mostly copypasting
 
ah
 
I will make a quick run to shop .. installing mysql will probably take some time with your internet connection
 
what is your opinion, I don't do them, and I wait, when I buy a real vps, then I them (once) ?
@tereško ah ok ! have fun
 
4:03 PM
@kelunik @FlorianMargaine Thank you gentlemen :-)
 
@Sajad that was not in english
 
@tereško ok never mind
 
@Sajad you can also live your own server ..
what all you need to do is just route incoming request to your port in router
 
@NullPoiиteя he has 2GB/mo bandwidth limit
 
2gb/month is really less i use 4-6gb a day
 
4:06 PM
@NullPoiиteя good for you ...
@tereško what @NullPoiиteя said was related to my bandwidth ?
 
@Sajad yes
 
@Sajad how much you pay for internet ?
 
he was trying to say that you can run your server from your home too .. you can but you really would not want to
 
@NullPoiиteя 10$ for 1 month
 
@Sajad that's exactly what I pay from internet on my phone
 
4:08 PM
@tereško I can run my server from my home ?! your mean is via internet ? (not local)
 
lol, i pay 17$ for 6MBPS unlimited fiber optics internet , my monthly internet uses is like 150gb :D
 
@NullPoiиteя really that's not fair
@NullPoiиteя what is your country ?
 
@Sajad no, you can actually have a reall webserver on your own computer (either virtual or not), but it would eat your internet traffic
 
India :D
 
@NullPoiиteя fk does bsnl provide that
 
4:10 PM
@tereško what ? a real webserver ? what is difference with now ? my nginx is not real now ?
 
> A normal browser would consider the page is fully loaded if the HTTP payload length reaches the length specified in the response Content-Length HTTP header. File_get_contents doesn't do this and that's a shame.
shouldn't we fix this?
 
@AnmolRaghuvanshi i.stack.imgur.com/JCO73.jpg my internet is really cheap
 
@FlorianMargaine Probably, I'll test it. There's already a comment: lxr.php.net/xref/PHP_TRUNK/ext/standard/…
 
@tereško may please give me an example of that ?
 
4:19 PM
@Sajad just a second if i remember my routers password than ill show you
 
ok
 
@NullPoiиteя emm .. I am using the cheapest one I can get here. And it is 100Mbps
 
unlimited data ?
 
of course
 
@FlorianMargaine I'm not sure if we should just always send Connection: close in that case or just close the connection if Content-Length bytes have been read.
 
4:21 PM
@AnmolRaghuvanshi Here i used ActCorp.. 10Mbps : 1000 RS : 75GB FUP
 
@Sajad your nginx is real. It is just not configure and the service is not started.
 
now Latvia is also in my future destination list
 
@tereško ok, but I want to know what @NullPoiиteя said ..
 
 
4:22 PM
@NullPoiиteя I pay $10 for unlimited 4G on my phone :)
 
really.. unlimited on phone..
 
here its like 4$ a GB and i dont have it because it too costly :(
 
thats cool..
 
@Rafee last month I used 56GB (on the phone)
 
oh..
 
4:23 PM
@Sajad sorry i dont remember router password and i can not reset it now :
 
My everyday usage is 20GB..
 
@NullPoiиteя ok !!
 
not on mobile.. at home broadband..
 
ya porn consume quite bandwidth :D
 
fuck i use the worst of worst
 
4:24 PM
@NullPoiиteя your meant was port redirecting ?
 
@tereško recently India, a Company Airtel launched 4G recently
 
@Sajad ya
 
you wanted to show me your local server by internet ?
 
yupp,
 
@AnmolRaghuvanshi Bsnl was my first connection.. later i switched.
 
4:25 PM
@NullPoiиteя ah, I did it already !! :-)
@tereško well, mysql installed !!
 
now it's for me too switch ;p
 
@Sajad gimme a moment, I need to make some food quickly
 
@tereško ah ok ! waiting for you ...
 
@Sajad what are you trying to do ?
 
@NullPoiиteя Configuring !
 
4:27 PM
Configure what ?
 
my Vbox !
 
HI alll,
We created the appliction thats run in the IFRAME,
Not able to get the respose form ajax but its works in desktop it not work only in iphone 6.
 
vbox with what ?
 
php-fpm, nginx and mysql
 
@NullPoiиteя do you know what is FreeBSD ?
 
4:27 PM
@Sajad and where did you got stuck ?
 
@NullPoiиteя actually I don't know next step ...
 
ok, while butter is melting, I will start the explaining a bit
 
@tereško :-) ! I'm waiting , go to the shopping
 
I am already back
 
ah ok
are you hungry now ?
 
4:30 PM
on bsd you have two location for configuration: /etc folder, which contains the configuration related to the operating system and /usr/local/etc where all the configuration for installed software is located
 
@Sajad do you know how to use linux and basic lemp stack setup ?
 
^ no
 
@NullPoiиteя nope
 
Hi
 
@tereško so ?
 
4:30 PM
@Sajad do you know how linux file system works ?
 
@NullPoiиteя he's not using linux .. just so you know
 
@NullPoiиteя look, I'm novice a bit! and I know just about xampp ! :)
 
Ajax response not work in IPHONE 6.
 
@Sajad go to /usr/local/etc directory and take a loog around
 
4:32 PM
@tereško so I go /etc ?
@tereško ok
 
GUYS EMERGENCY,
How do I show messages between users THE LATEST message!
 
is this a PHP chatroom?
 
Yes, @sino
 
This is causing discombobulation in my mind
 
@tereško I went
 
4:33 PM
am lost ppl are talking about linux, and iphone 6 and not php7
 
latest mesage?
 
list files, open some (just don't edit), see what you can figure out, while I make some food
 
@Sino Being on topic is absurd.
 
@Sino na we talk about cat stuff and random song on youtube
 
Yeah, the latest conversation message between two user id's
THIS IS CONFUSING!!!!!!!!!!!!!!!!!!!!!
 
4:34 PM
@tereško here is my files:
@tereško why I can not see mysql ?
 
you need to explain us in detail.
 
The table looks like this
Table - msgs (stores chat msg records such as: ID, FROM_ID, TO_ID, MSG_CONTENT, SEEN, MSG_DATE)
You know twitter?
 
use order by MSG_DATE DESC
 
 
1 sec
 
4:36 PM
bash_completion.d       php                     php.ini-production
man.d                   php-fpm.conf            pkg.conf
nginx                   php-fpm.conf.default    pkg.conf.sample
periodic                php.conf                rc.d
perl5_version           php.ini-development
 
@Sajad why do you want my email address and why the hell you ask for this by commenting on my answer?
 
@Rafee, what this guy is asking
2
Q: Select the Latest Message Between the communication of two user in mysql

Ujjwal PrajapatiI have a simple table maintaining messages between users. The table structure looks like sender receiver message sendtime 1 2 m1 2012-01-01 12:12:12 2 1 m2 2012-01-01 12:50:20 1 2 m3 2012-01-01 1...

 
@Ekin cauz you are pretty
 
@Ekin because I have exactly the same question ... exactly ..
 
And I have provided the answer there?
 
4:38 PM
@Sino and you are being really creepy
 
@Sino You're being that guy. Don't be that guy.
 
Yeah please
 
@Ekin no, But I want to ask a new question on SO, and I will give you its link, If you had free time, please take a look it ..
 
Ok lol I will not be him
 
@Sino go away !!!
 
4:40 PM
@Sajad It is highly inappropriate for you to ask for people's contact details. Please don't do it any more.
 
Cleanup in aisle 11 ^^
 
@Sino This isn't the Lounge - please either stop being rude or just leave.
 
@Sino I asked the email (or skype) name of very persons, like @tereško. so @tereško is pretty ?! your mind is broken !
 
@Sajad Do not be creepy and realize that I am not different than anyone else here. So please be a little professional and just keep working on whatever you were doing.
 
4:42 PM
@Ekin you can always flag for mod attention
 
Abe
generics in hack are just fake, am i right? 3v4l.org/tnOjg
 
@Ekin I know you are not different than anyone else ! and ok
 
I am getting this urge to close chat for few hours and get a boor
 
Abe
have a boor
 
@Abe idk why i never need them :D
 
4:44 PM
I'll have a boor
 
@LeviMorrison yes. and I'm looking to make that possible here (they are not ready for it)
 
@Matthcw sorry.. I didnt understood his question.
 
@Sajad yes, and it was creepy then too
(wrong number, sorry)
 
@tereško Already had a few boors?
 
@Sajad its worth reading some articles digitalocean.com/community/tutorials/…
 
4:45 PM
@DanLugg I bought some, but I want real food. I have eaten only Oreos today
 
@tereško I don't know what is your culture, but in my culture, asking email name or skype name is not a bad thing !!
 
@Sajad It is inappropriate to do this anywhere on Stack Overflow.
 
@ircmaxell being a remote worker for now a year, I can provide some guidance/help/feedback if you want
 
@tereško Hmm, yea, I've gone that route; cookies and beer seemed like a good idea.
 
@ircmaxell We have employees who work remotely a very small percentage of the time. It works because we use IMs, emails and whatnot for communication – we're not build around meeting in the open space.
 
4:45 PM
Good on you for waiting out food.
 
Seems to work well for us.
From what it sounds like a lot of places do regular meetings, particularly with "Agile" development.
 
@Charles alright !
 
@Sajad as I explained before, here skype is used for friend and coworkers. Mainly because it people in your skype list can see details like your phone number, real address and other stuff. It is considered a sensitive information.
 
@LeviMorrison yup, and that's what needs to be fixed (or part of it)
 
@LeviMorrison we have a daily (20 mins) hangouts in my team
 
4:47 PM
@tereško ok, for next time, I will ask: "may I ask your skype accout ? if he said yes, then I ask him !!!"
 
Works fairly well.
@Sajad or don't ask.
 
@FlorianMargaine why ?? I don't undrestand what is its problem !!
 
You're on a chat right here, you don't need another one
 
^^
 
The hardest part of working remote when the rest of your team doesn't is that you miss all the little minor social interactions. The daily standup and constant chat activity doesn't compensate for this...
 
4:48 PM
@FlorianMargaine why ?? I don't undrestand what is its problem !!
 
@Charles yeah, most of the team is remote in my case
 
"Can I borrow your car?"
"But you drove to my house to ask me that..."
 
@FlorianMargaine exactly, I'm on chatroom, it is public, but skype is privete !!
 
@FlorianMargaine ^^
 
@FlorianMargaine 20min sounds nice in my last company it was like handout for 2-3 hours every day which sucks
 
4:50 PM
@Sajad click on a username, click "start a room with...", boom, private chat with a person.
 
@Sajad If you want the illusion of privacy, start a room. ^^
 
@DanLugg you are right, it is like skpye too !
 
@FlorianMargaine Yeah, that makes it easier. Unfortunately for companies just getting into the idea of remote workers, it makes things very difficult.
 
talky.io is also an option though
 
@NullPoiиteя "hangouts" here means "Google hangouts"
 
4:51 PM
Alright, that's enough distraction I think. I guess I can take this opportunity and ask my question :P Is there an effective way to save 1-5 datetimes instead of saving each of them in a single row? chat.stackoverflow.com/transcript/message/25303404#25303404
 
@ircmaxell Well I want to keep my current job for at least 8 more months. So if you can figure that all out by then perhaps there's a chance :D
 
@FlorianMargaine sorry a silly typo ... it meant to be Google hangouts
 
I need a remote gig, and I hope my current company will let me transition to one; kinda defeats the purpose of moving into a nudist colony if I have to put on clothes and leave every day.
 
@Ekin having each entry in a separate row is the right way of doing it. Having 25k rows is fine. Having denormalised data that is horrible to query would not be fine.
Why do you think it would be a problem?
 
4:53 PM
@Rafee what's better than google hangouts in talky? /cc @NullPoiиteя
 
@FlorianMargaine you dont share your personal info ie email or address
 
I am curious to know.. what new feature has it..
It doesnt work on safari.. trying it on opera..
 
@NullPoiиteя in a company setting, does it have anything better?
 
@Danack I don't think it's a problem though the database has became so huge and the employer wants to get rid of all teh tables possible or at least reduce the size etc. What would you advise to do in this case?
 
opera hangs..
not working. damn.
 
4:55 PM
not sure ... never used it like that
 
@LeviMorrison sounds like it could be interesting timing
 
@Sajad now that I have eaten a bit: the mysql config is not there, because mysql is a mess. They put the config examples in /usr/local/share/mysql
 
@ircmaxell and all of you php internals guys: Can you give us protected/package scope in php in the near future?
 
@Ekin Truncating the table and archiving data no longer relevant to the future use of the application.
 
@ircmaxell I'm putting together a course proposal for a special topics class for scientific computing on batch scheduling systems. We're nearing the end of the approval process, so if it goes through it'll be a great experience to teach it at least once too.
But after that I'm not necessarily tied to it.
 
4:57 PM
finally. opera crashes.. ....
 
@Ekin Assert your authority....and tell them that you know best, while maybe quickly reading shop.oreilly.com/product/0636920022343.do and slideshare.net/billkarwin/sql-antipatterns-strike-back . If you wanted to give them technical reason why having each bit of data separate in one row you could say that it allows MySQL to optimise the queries much better than having the data all stored with multiple entries per row. Which has the benefit of both sounding reassuring + true
@Ekin Also, if they think 25k rows is huge...they don't know what they're talking about.
 
^^
 
@prograhammer I am supposed to be doing that ... I have a list of a million things, it's near the bottom ...
 
^ noooooooo (darth vader voice)
 
@JoeWatkins I hope generics/type params are further up ;-)
 
4:59 PM
@DanLugg it's a really long list ...
 
I imagine so.
 

« first day (1774 days earlier)      last day (3184 days later) »