« first day (2475 days earlier)      last day (2698 days later) » 

00:00
i know it's a good thing though. still annoys me dealing with that
That seems ideal to me
basically i never have \foo\bar with bar being directly owned by foo. i have \foo that makes sense on its own, and \bar relying on it
maybe i'm doing namespaces wrong
That is confusing, in that case I would have \foo, and then I would have \foo-bar
That sounds actually like a naming problem
But I still haven't really gotten into using namespaces
00:04
you don't name your applications after the dependencies you use @Alesana
@WesStark Ah, I was thinking it was an extension of foo
Like moment.js, and then moment-timezone.js, lol
eh, it's not. foo is a dependency to bar
problem is, i mostly have one level of folders
i hardly go deeper than 2-3 folders
(i'm talking of libraries here, not applications)
Hi mates, any idea why I've got this error ?
Hmm yeah it seems that it would be the only way, I would have probably used even more
00:10
@Baldráni It appears that your XML is not well-formed
@Baldráni would be great if the line/column pointed to the right character, right? :P
Hum right, that i knew but why is it pointing there ?
try to load the xml in some other parser and see if it's giving you a better description of the error
Oh haha I didn't enlarge the image
@Baldráni what is "it"?
00:12
The little red ^
@tereško i might create a micro package for everything and actually put it on packagist
rather than have everything in one place
@Baldráni no, what is the tool/application/whatever that's spitting that out?
i'm not sure if that's a good idea lol
@PaulCrovella W3C
@Baldráni probably just mis-matched character widths
00:15
@WesStark Nice proposition
I found out with a better parser
It was due to an "<3"
Ty <3
Hehe
yw :P
@PaulCrovella WHAT ARROW
@WesStark you know what arrow
oh bloody hell
AAAAAAAAAGHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHTREtertdfgeorij34dfg
i forgot, for a few days i was happy
thanks for reminding me
you're welcome
now just end my misery youtu.be/ALFElBBJZ9Q?t=121
00:46
Array To String conversionerror.
what is the problem in my code
$deduct = $mysqli->query('Select * from inventory where item ="'.$item.'" ');
$remqty=mysqli_fetch_assoc($deduct);
@EarvinNillCastillo for one thing, stackoverflow.com/questions/60174/… .. for another, $item is an array rather than a string .. plus mixed styles ... and using select * rather than specifying columns
also inconsistent white space and poor variable naming
01:04
@PaulCrovella wtf i overlooked my var item.
@PaulCrovella thanks and i will practice prepared statements
$stmt = $dbConnection->prepare('SELECT * FROM employees WHERE name = ?');
$stmt->bind_param('s', $name);
what if there are multiple condition
@EarvinNillCastillo read the documentation on bind_param, it covers this
prior to asking anything consult the documentation for what you're using
@PaulCrovella will check. ty :)
 
2 hours later…
03:14
questions starting with "I need a code" should be automatically kicked to a review queue
03:37
pcntl_fork do not exit – #74990
03:50
o/
04:01
\o
@PaulCrovella I agree, but then you are starting to auto-moderate questions, and that opens up a whole new can of worms
@Alesana the site is continually flooded with garbage, auto-moderation isn't a can of worms (in fact it's already done) - it's a necessity
I didn't realize it's already done
In that case, my 95% agreeing went to 100 :P
04:39
morning morning
05:28
\o
o/
\o
05:50
o/
\o
06:02
include_path has a 4096 char (minus "DIR:") limit, in some PHAR cases – #74991
@Jeeves I hate you
@JoeWatkins You were my brother anakin I loved you!!!!
ffs, just shut up ...
@JoeWatkins how many lines do you need for a full-screen combo?
25 or 26
06:05
I'm tempted to drastically rewrite room history to give them to you.. I don't know why I'm emotionally invested in this now.
@Jeeves FUUUUUUUU
@WesStark May the force be with you.
it's strange isn't it ...
such a simple request, yet...
i am downloading a zip file using force_download in codeigniter but it says failed to open stream: Permission denied. It works if i download single file inside zip file but if its multiple i cannot download it. Need help thanks
06:15
ever got that sensation that you just pressed ctrl+c and lost what you previously had in the clipboard? it's terrible
linux has probably a history for clipboard, right? :B
we should name that "lost clipboard syndrome"
well kind of, but all the things in my history are really old
@WesStark you can find clipboard managers for windows that do that
i'm often like omg i just pressed ctrl+c and i am sure i had something important replaced
yeah but it's just a sensation, i don't actually need the history. i've never lost anything
I use a chrome extension to autocopy anything I select on a page... my biggest worry is accidentally pasting porn somewhere
06:18
hehe
hahha
almost finished the rewrite of that thing @PaulCrovella i'm not sure if it's going to work out but it's much simpler than it was originally and that's a big improvement already. only one thing is giving me headaches... but i'm sure i'll find a decent solution
that... porn thing?
lol
no the mocks thing :B
if you are, I am
 $handler = function(
        Mock $actualMock,
        String $actualType,
        String $actualMemberName,
        Array $arguments
    ) use(
        $expectedMock,
        $expectedMemberName,
        $return,
        $throw,
        $file,
        $line
    ){
god i hate using closures..
06:57
noun: mock, verb: to mock
noun: test double (or just double), verb: ???
"to double"... would that make sense?
unlikely, but it'd depend on how you use it
Anonymous
@WesStark What are you making?
Anonymous
It must be Russian, because it sucks
ie, CannotDoubleException
Thrown when the provided type cannot be doubled.
Doesn't sound right :B
Anonymous
07:10
You are better of to using Python, ever since I started learning the basics ... I get the urge to start all my new projects in Python
@WesStark Undoubleable
DearSirOrMadamCommaThisSoftwareCannotMockTheRequestedTypePeriodRegardsWes
s/Mock/CreateATestDoubleOf
yeah yeah. let's all mock($wes)
@PaulCrovella i would rather use cannot emulate or something
wait.. DearSirOrMadamCommaThisSoftwareCannotCreateATestDoubleOfTheRequestedTypePeriodR‌​egardsWes←
cannot forget your arrow
07:15
thanks for reminding me again
@WesStark yeah that wasn't serious, but finding a way to drop the need for an Exception suffix ain't bad
@WesStark any time
i try to not use the exception suffix. when i remember to do that. however i do use Cannot as prefix :B it makes it more human tho
human
i haven't heard that song in ages
07:19
they were so good
so double as verb is a no go?
we use counterfigure (controfigura) for "body double" but seems to have a different meaning in english
before languages had exceptions we had error codes, this allowed us to avoid the strange task of naming our errors ... I propose we quit naming exceptions and just number them E1, E2, and so on ...
exceptions would in the same kind of vein, E1, E2 ...
ms is still doing this ... Fatal error U1077, return code 0x2 is sometimes all you get ...
@JoeWatkins domain driven design actually suggest to avoid very programming specific suffixes for stuff like exceptions
07:26
Lp0_on_fire, Lp1_on_fire, etc.
holy fuck, can ddd stop trying to claim every idea as its own
in fact i think i've borrowed the "Cannot" thing by the DDD book. or i've read it somewhere
@PaulCrovella apart the non technical stuff, ddd is just basically "good oop" and they make this very clear :P
there have been patterns and recommendations around forever that all of a sudden became "oh, that's a ddd thing"
@WesStark and the non tech stuff is basically "you know, it might not be a bad idea to talk to someone who understands the problem space"
they've just reorganized the thing in a single concept, plus the developing a project's logistics tips
yeah but still, it's been useful to someone. i don't care whose merit it is
every acronym or buzzword anymore is trying to sell you a book, consultancy, and certificate
it is really hard to wrap our minds around these things, it was useful for me and evidently not just for me :B
07:36
imagine a world where top of the reading list for CS students is "the big book of acronyms and buzzwords" ...
> double (verb)
to act as a double in a play, motion picture, or the like.
\o/
hi
brb, off to write the big book of acronyms and buzzwords ... and be a squillionaire
@WesStark yes, it's fine to use as a verb - just make sure you're getting across what you want rather than "make twice as many"
07:38
Can someone help me with datetime? It's half working...
@JoeWatkins :-)
I made when user is not online 2 minutes, his green icon goes red. It's working fine, but when user is offline and real time goes to 00:00 he automatically switch to online, but he is not there. So it's the problem in time...i tested sometin, for example if it's 15:00 and if he goes offline after 2 minutes (15:02) and in phpmyadmin i change his activity time to 14:50 (for ex.) he went online lol I hope you understand me. if(strtotime($r['activity']) > time() - 60)
if(strtotime($r['activity']) > time() - 60 * 2)
This is the code...
07:48
Did you take into consideration that time() - 60 * 2 is the same as time() - 120 ?
Not really reading :) pretty busy
@Monk you need to keep more than just the time of day - store the timestamp
Nah, that's the whole code...i have when user refresh the page, his activity get update to current time, so if he doesn't refresh the page, after 2minutes, the code i showed you will show him offline icon.
@DamienOvereem it's about readability. sure 2 * 60 is easy to figure out, but what if it was 13. can you immediately grasp how many minutes it is by reading 780?
@Monk I told you exactly what you need to do
Can anyone recommend a book on distributed systems that they have read?
07:52
@Jimbo I would, but it's kinda all over the place
sounds highly available ...
@PaulCrovella Any example?
@Monk do you know what a timestamp is?
also, do you understand why your code is failing you?
I think it's a kind of dance
I know @WesStark. Like i said, I wasn't really reading much. Its just that way too many people don't realize that multiplication goes before addition in math.
07:57
@PaulCrovella I know what it is, but no experience with that...
@Monk that's not true, both time() and strtotime() return time stamps - so you do have experience with them
@PaulCrovella if(strtotime($r['activity']) > date('Y-m-d H:i:s','-120 sec')) something like this?
no
your activity column is the wrong type
@Monk I'm talking about $r['activity'] ... in it right now you've only got the time of day, right? you need that to include date information too, so you know when their last activity was yesterday
you are only storing TIME, not DATETIME or TIMESTAMP ...
can you see why/how we know this ?
Have you guys ever faced freeezd ubuntu login screen? I am running Ubuntu 15.10. I left it locked yday, now it shows all * in password box and am not able to do anything. However I am able to access server running on that machine from other machine. Any idea to get it through without requiring hard restart? Sorry for off topic stuff
Ok i set in phpmyadmin to timestamp, and now when i refresh the page, date is saved...but how to check now if user is not active?
switch to terminal console and use single user login, find out what has crashed, kill it, or the desktop manager ...
switch to terminal console? how do I do that? consider super noob
08:06
dm will likely restart if killed, else take note of process name/args from top/ps/whatever ..
@Mahesha999 I think it's Ctrl + Alt + F2
@JoeWatkins how?
And Ctrl + Alt + F7 to switch back again.
thanks for switch back keys...I was scared... xD
I usually hit all the function keys in order until I find the one I want
08:07
@Linus what happens when you strototime(h:i:s), it must assume you mean "today h:i:s" ...
@PaulCrovella I have to perform a twister-like strategy to even press the keys, because logitech in their infinite wisdom has put a virtual lock on the function keys, so they do stupid stuff like pause music by default ... there is no way to remove the lock, so I have to press the function key ...
@JoeWatkins yes
am able to login, but not getting what should I kill and restart from top...earlier I did hard restart...
@Linus look at original description of behaviour ...
@JoeWatkins you need a less fancy keyboard
@Mahesha999 try sudo service sddm restart
@PaulCrovella I can only have one kind of keyboard ... when it goes out of production, I plan to quit the internet ...
08:13
you choose a keyboard that fights you.. and you're dedicated to it
that's not a healthy relationship, joe
we love each other
Failed to restart sddm.service: Unit sddm.service failed to load: No such file or directory
I thought it might fail, because I got that from the internet, which is full of lies ...
if you watch top/htop for a minute, you should be able to see what processes are behaving strangely ...
the window/desktop manager is likely to have the letters "d" and "m" in it, maybe "w" ... it might be something you recognize, lightdm, gdm, xdm, somethingdm ...
08:16
@JoeWatkins abuse isn't love. if you need help getting out there are numerous organizations that can assist. every single person in here will help, because we care about you.
Can someone help me about that timestamp?
@JoeWatkins <3 done, there is bug report: https://bugs.launchpad.net/ubuntu/+source/unity/+bug/1311403

Got it right with service lightdm restart
mornes o/
@Monk we told you everything you need to know ... we can't write the code and make the changes for you ;)
moin
08:22
@JoeWatkins Ok because i'm in the same situation as i was without timestamp :P
I can figure out why code doesn't work from looking at it, I can't figure out why brains don't work by communicating with them ... I'm not sure what you don't understand, and don't know how to guess ...
@JoeWatkins You ever look at cryptocurrency stuff?
@Fabor not directly, or in any substantial way, I've done a bit of reading on blockchains, but my understanding isn't complete ...
Seems like it'd be of interest to you. Now's a bit of a slump coin wise (aka good purchase time). There's some BTC thing happening the next few days which will make for an interesting market
@JoeWatkins Ok then, what's wrong here? if(strtotime($r['activity']) > time("Y-m-d H:i:s", mktime(0, -2, 0)))
08:26
strtotime($r['activity'])
you changed that to a timestamp, don't need to strtotime on it anymore, it's already a timestamp ...
why have you changed the rhs of the expression
time doesn't take any parameters
@JoeWatkins You mean mktime?
time(...) is wrong
Complete or just insite it?
no idea what you just said ...
someone else do words, patience is running out ...
What is wrong? Time(...) or just inside (...)
08:32
/me left the office to pick a fight with a tree
Oh
It's ok, thank you for trying :)
@tereško why is everybody so excited about john wick? it's such a crap movie
I liked it.
it was a good action movie
i knew what was going to happen after 5 minutes in
08:36
good for you
meh... there's not even great action either. not die hard 3 action
lol
Keanu did a lot of gun prep for that movie
it's one of those movies that you watch once and then you never watch again. i don't get all the hype it gets... almost completely bland. it's not a crap movie but the hype is unjustified imo
basically like star wars :B
@JoeWatkins sddm?
@WesStark why would you want to watch movie again ?
08:38
@Mahesha999 What DM do you use? lightdm or gdm?
you don't watch movies again?
35
Q: How do I restart the window manager?

Dmitry VolosnykhHow to restart window manager so that styles (or whatever) are restored? After doing /etc/init.d/networking stop they feel completely broken.

never heard of it either ...
every time i watch pulp fiction, kill bill etc. i notice something new. they are gold mines of awesomeness
Meh, not a Tarantino fan personally.
Split wasa great movie
08:41
it's on my list
will watch it soon :P
@kelunik lightdm....
> You understand what you understand, and another understands what he understands — and that's a beginning and an end of it. There exists between you and every one of your fellow beings a chasm infinitesimally narrow, yet absolutely uncrossable. The heart cannot cross it, the soul cannot cross it: much less can words cross it. -- Louis Sullivan, Kindergarten Chats
yes, i've been flipping through books trying to find that quote again this entire time
Anonymous
morn
08:53
point proven
Anonymous
@Fabor no, it's too late for that. I'm dying.
RIP
We should start a youtube channel called @tereško Reacts. Submit things for him to react to like a Logan Paul video.
09:13
@PaulCrovella he sounds smart
@JoeWatkins he's the father of modern architecture
@PaulCrovella and when you speak to them, don't think that just because they can't program, that doesn't mean they are dumb.
@Danack it kills me a little bit that people need to be told that
09:38
moins
@Fabor I should just start up a youtube channel and do political commentary about happening in Latvia and EU
09:52
wrong behaviour for attribute "selected" – #74992
10:10
@bwoebi Could you finally release amphp/mysql based on Amp v2?
@kelunik yeah, will look at it today
10:21
did some fresh pesto. delicious
wife: did someone just put up a picture of their food ?
me: he's italian
wife: oh
Anonymous
Feel like that's a shutterstock photo..
ahahahaha, hi @joe's wife! your husband never posts pictures of teabags
@JayIsTooCommon i did not actually make a photo of my food :B
Anonymous
photo or gtfo :B
10:25
wife: did someone just put up a picture of their food ? me: he's italian wife: oh
@WesStark which "teabags" exactly are you asking for pictures of?
british i suppose. i bet there is some innuendo i don't know of
Hello All
!!urban teabags
eh, jesus.
Please help
I have one query regarding webservice
10:28
1 message moved to Trash
any one know ?
@WesStark always gotta know
@WesStark Hello
you know about webservices ?
Don't ask to ask, just ask.
I want to show json response with user of my near by 30 miles distance .
let me know where can upload my code ?
10:32
no preference , use any
want to upload .text file
my api code .
<?php defined('BASEPATH') OR exit('No direct script access allowed');

/**
* Handyman APIs
*
*
*
* @package CodeIgniter
* @subpackage Rest Server * @category Controller
*/

// This can be removed if you use __autoload() in config.php OR use Modular Extensions
require APPPATH.'/libraries/REST_Controller.php';

class Handy_api extends REST_Controller
{
function __construct()
{
// Construct our parent class
parent::__construct();
date_default_timezone_set('Asia/Calcutta');

}

/* captcha image*/
@Vamsi @WesStark please check
.........
oh, joy, it's codeigniter
yes ..
why am i being pinged for this
10:38
Sorry ...
But please help ...
I'm stuck at this point .
mhm md5 for password. what can go wrong
... I was about to help, and then I received 3 chat invites ... now you can fuck off to ignore-list, tnxbye
Anonymous
!!welcome Bajaj
Welcome @Bajaj, please read the Chat Guidelines
you are famous 3 chat invites....
10:42
from same person
No , i have send only one invite ..
you received 3 ..its not my fault :P
Anonymous
@Bajaj do some research before you start handling passwords.. You should not be using MD5.
@JayIsTooCommon don't we have !!f**koff ?
@WesStark yeah, if you click their name it's at the bottom
:P lol
10:45
@JayIsTooCommon user result ??
Anonymous
@Bajaj what?
@Bajaj have you asked the question on the main site ?
No ..
@JayIsTooCommon you said do some research before handling password .. research from response ?
Anonymous
@Bajaj no, research how to correctly handle passwords in PHP.
user4962466
10:49
Hey guys I have an interesting problem
posted on July 26, 2017

New Cyanide and Happiness Comic

3 messages moved to Trash
@JayIsTooCommon can't you just write the code, that he want, and drop that "research" bullshit
@JayIsTooCommon password is correct .I have check in DB .
@0x13a or so you believe ...
10:52
> I have check in DB
@JayIsTooCommon 1) In Json response , want to show users list from 0 to 30 mile away
2) Right Now in json response , Only 1 miles away user show .
First point want to show in response and second point current response .
I'm using list_handyman_get function
user4962466
@teresko is the same of yesterday basically, writing all incoming sessions to mysql
user4962466
even tho now it works, the db resources get a lot more of consumption
user4962466
what is a good no-over engineered alternative than writing them to mysql?
@Ekin now you are just being oppressive: everydayfeminism.com/2014/05/grammar-snobbery (warning: might cause aneurysm)
user4962466
10:54
calculating i need them for analitical purposes, so a in memory storage would not be helpful
user4962466
unless i dump it to disk but it doesn't seem the right way to do it
@0x13a switch it to some nosql storage, like CouchDB
Actually I didn't mean the grammar but ugh... thanks for the everydayfeminism :P
Anonymous
@Bajaj No it isn't. Go and do some research.
@Ekin it had morphed in a fascinating cult
hell ... they even have pinned down the "original sin" concept
/me goes back to coding
10:58
@tereško seems so indeed
/me too

« first day (2475 days earlier)      last day (2698 days later) »