« first day (2600 days earlier)      last day (2352 days later) » 

9:00 AM
Can never get the gf to get the spot exactly, feels like it could be behind the bone
 
Yeah, peanut. Go to a physio instead of masseuse.
 
Physio -.-
Thought I might have to, not these cheap Chinese masseuse places everywhere :D
 
Physio is great, worth going every now and then anyway.
 
Good morning
 
@Jimbo you know… these places where they offer happy endings are not actually massage places. ask @Fabor…
 
9:06 AM
Funny how accepted they are here
 
we got height adjustable tables and ergonomic chairs at work. can work on these a full day straight. Cant do that at home because shitty table and chair. but sports helped a lot.
 
trust me if you sit with proper support for your back you won't have these problems.
 
Hello people.What would be a good practice for handling timezones considering that my user base is not strictly located in one timezone.Should i handle it with offsets in the query and return it.Or should i return a format like this 2017-11-27T01:35:01+0000 than they can adjust to the timezone.
 
Depends on what you need to do regarding user times and dates
 
9:21 AM
how do you mean?
 
What are you trying to do?
 
@mega6382 Is that lean back serious?
 
Yes
 
@PeeHaa Im collecting posts from facebook,twitter etc and serving it to users via my API and they need to adjust the time for them.For example 2min ago etc
 
@DaAmidza Give them UTC and let them convert it however they want
 
9:24 AM
I think I also saw being discussed on QI.
 
@DaAmidza And use the full ISO 8601 format so they know what they get
 
moagain
 
@Jimbo Here is an article by BBC news.bbc.co.uk/2/hi/6187080.stm
 
@PeeHaa thanks a lot
 
@PeeHaa eh, unix timestamps are fine
 
9:27 AM
@DaveRandom I like being able to see what it is when I am working on something
Weirdo
 
you're the weirdo for not being able to do unix timestamp conversions in your head
 
:P
Meth is hard yo
 
I just have a general dislike of unnecessary stringly typed data
I think we need a new time represention. I propose assigning each second a GUID.
 
:-)
@DaveRandom Normally I would agree. But it's just a standard presentation
ok the standard is kinda bad
But still
 
Oct 4 at 8:50, by DaveRandom
Y-m-d H:i:s is the One True Date Format
 
9:31 AM
@Gordon start deadlifting and you can sit for hours on shitty stuff ;)
 
If you must transmit date/time as a string, at least use that
 
Hello guys!
 
o/
 
@salathe I'm not on the systems ML, did anyone respond to that thread and not copy me in or is it just one of those things no-one can be bothered with?
 
@DaveRandom Which is still iso 8601
 
9:33 AM
Yes 'Y-m-d H:i:s' is a good one, at least for us chinese
 
Don't be selfish
 
@PeeHaa sure, but I assume you were referring to the HTTP Date header string
 
It's also good for us :)
@DaveRandom I think I did. is that full representation including zulu marker?
 
Yeh and pointlessly includes the DoW three letter tag
 
wat
lol
That's even weird for me
I guess that's what happens when creating a standard which is basically all of the things
!!xkcd standards
 
9:35 AM
 
!!unonebox
 
How does such a tiny animal produce such a smelly shit! God damn cat.
 
@adamsmith this is an argument in favour of just using unix timestamps though, because Y-m-d H:i:s, while most people would assume it to represent a Julian time, could also be used to represent different calandars (not sure about traditional chinese calendar?) and then you are screwed again
unix timestamps are universally unambiguous
 
@Naruto I am doing fitness boxing for about half a year now and did lifting before. so I know.
 
9:39 AM
yeah, but I want it for other people
Basically the same as what cap does
 
For those of you who don't know, fitness boxing is where you hire a boxer to chase you around out of fear of a beating.
 
Anonymous
!!wotd
 
benevolence desire to do good to others; goodwill; charitableness: to be filled with benevolence toward one's fellow creatures.
 
@Fabor I need one of those
 
well we could have that edit the last posted message and just prepend a .
 
9:39 AM
@Fabor that would be a better workout that the fitness boxing that I've seen :D
 
The New Spangly twitter plugin should handle the dot hack sensibly, for directly posted images at least
would need special handling for special-case oneboxes
 
@DaveRandom yes please
afk
well working for a bit
Reeeally need to do some stuff
 
Yeah stop slacking
 
@PeeHaa I will see if I can work out a sensible way of logging whether a posted message was oneboxed and then it can find the last posted onebox
 
Should be easy as long as you are doing it :D
It has a onebox class at the top of the tree iirc
 
9:43 AM
@Fabor kinda… it's a mix of technique and cardio. usually you do some punching combos with a partner and then some cardio exercises like squat jumps or burpees or rope jumping
 
Hi
Any one is there?
 
@PeeHaa yeh but because the bot ignores it's own messages it might not be as easy, iirc the PostedMessage struct is a very simple id/raw text tuple, it doesn't actually look at the message as it comes back in on the websocket atm
 
ah k
well
 
will look at lunch
 
Good luck
 
9:46 AM
@Gordon heh yeah, it's pretty good. I hear spin is really good too. You should get some pilates in there. That's good for core.
 
<3
 
@Fabor we do some planking as well
 
Guys need help to rewrite the URL

Actual URL:
http://www.example.site/?portfolio=projectname
http://www.example.site/?post_type=portfolio
http://www.example.site/?post_type=testimonial
http://www.example.site/?category=development

Desire URL:
http://www.example.site/portfolio/projectname
http://www.example.site/post_type/portfolio
http://www.example.site/post_type/testimonial
http://www.example.site/category/development

What can I do?
 
you can google how to rewrite urls
 
Just going to bring this back for a little bit.
 
9:53 AM
Let me check
 
@DaveRandom I'm not on the systems@ list either, but as far as I know no-one replied to the thread after your last message.
 
I tried to find in google but the solution is not working
 
@salathe OK no worries, I'm in no rush obv, just making sure I didn't miss something that people were waiting for me to reply :-)
 
!!? how to rewrite urls
 
Search for "how to rewrite urls -site:w3schools.com" (https://www.google.com/search?q=how+to+rewrite+urls+-site%3Aw3schools.com&lr=lang_en)
• URL Rewriting for Beginners | Added Bytes - Introduction. URL rewriting can be one of the best and quickest ways to improve the usability and s… (https://www.addedbytes.com/blog/url-rewriting-for-beginners)
• Introduction To URL Rewriting — Smashing Magazine - 2 nov. 2011 - Fortunately, there is a technique called URL rewriting that can turn unsightly URLs i… (https://www.smashingmagazine.com/2011/11/introduction-to-url-rewriting/)
 
10:01 AM
@SahilPatel there are 20.200.000 results. how many have you tried to claim they dont work?
and did you also search on stack overflow because how to do url rewriting must have a couple dozen questions and answers
 
10:29 AM
Why do people do these things github.com/icaptious/icaptious
 
Wes
statics all the things
 
It's a wordpress developer doing a framework
 
hey:)
 
hey
 
i got a question/problem its php/mysql related
hope i can get some tips for people
 
10:36 AM
@PeeHaa That guy needs a __wakeup call
2
 
:D
 
16 hours ago, by Neo Morina
I've started building a PHP framework.
Check this out if you are interested in contributing.
https://github.com/icaptious/icaptious
Feel free to contribute
 
Was that in here?
 
yes
@Patrick I'm sorry I've not had any time to read the book yet, I will give you some feedback by Friday though
 
@NeoMorina I am really not interested in writing code for you, but I could yell at you for several security vulnerabilities instead
 
10:44 AM
Or you could tell him exactly what he needs to hear
 
Wes
@DaveRandom so to sum up what i probably failed to explain properly yesterday, with that modCount thing i have all the methods in (e.g.) an iterator starting with a check that verifies whether the iterator is still valid against the collection it iterates over
 
@Wes OK sure, seems reasonable based on yesterday's discussion
is this proving problematic or you just want a sanity check on the approach?
 
Wes
that is very much not-oop, as an object suddenly stops working (or, i deny any interaction on it)
 
yes but as you said yesterday, it's only really a tool to catch logic errors
it doesn't matter whether it's "good OOP", it matters whether you are exposing a sane and well encapsulated public API and that the underlying code is maintainable
 
Wes
indeed, but nevertheless it is strange to have an object that stops working (although it stops working in a predictable way)
 
10:49 AM
The object itself doesn't stop working, the code that uses it does
and anyway, there are all kinds of objects that stop working, e.g. sockets
If you leave anything that carries internal state in a state that makes no sense, it stops behaving as expected
not a lot you can do about that, it's what exceptions are for
 
why the fuck people write code like this: stackoverflow.com/questions/47529247/… ?!
 
Wes
in all the collections i've implemented i could not find something better than that. simple example, when you are iterating over an hash table and you add a new element that causes the hash table to increase its capacity, you get all the indexes messed up, so there is no way i can have an iterator that continues from where it left
in particular i cannot have an iterator that knows what elements were traversed already and those that weren't traversed, because with rehash obviously you lose the order
 
also, mornin
 
@Wes well, it can be done, as PHP does it - CoW. But I personally think your approach is the right one for what you are doing
 
Wes
copy on write is another thing i've considered but it really only works with iterators
 
10:54 AM
Hey if anyone has time could they check this :)
https://stackoverflow.com/questions/47529748/mysql-database-design-query-laravel
 
Wes
i have "views" that you probably know in c#
 
@Wes it creates scope for a lot of much weirder hard-to-find bugs, like you said yesterday, fail early and shout at the user for doing something dumb. If they want a copy, make them copy it.
 
Wes
for example map.Keys.remove("key")
 
indeed, although map.remove("key") is the same in the case, but I use Dictionary<TKey, TValue>.Keys all the time
 
Wes
keys is an object that works exactly like an iterator, it peeks at the original collection ($map) in order to implement the Set interface
$map->keys() instanceof Set
 
10:57 AM
Views should be read-only maybe?
not sure about that
I always feel like UPDATE <view> in SQL is a bad idea, even though it's technically possible
 
Wes
it is not read only, i want all operations to be well divided kinda like swift but even better probably
 
Anyone has a tip?
 
Wes
$set->contains() is a Set operation, not a Map operation, so in order to check if a key exists you have to do
$map->keys()->contains("key")
rather than $map->containsKey("key") like in java etc
 
@Wes ftr I'm a big fan of e.g. IReadOnlyList<T> in C#, stuff like that should be broken up into readable and writeable-extends-readable wherever possible IMO (at the interface level, not necessarily the implementation level)
As a reader of code that uses the collection, it's nice to be explicit about whether you are going to mutate it
 
Wes
hm?
 
11:02 AM
@Wes like, if I'm looking for why a collection has changed and I see void DoThing(IReadOnlyDictionary<Foo, Bar> Stuff) I know that's not where it happened
without having to actually read the body of DoThing()
 
Wes
i do have immutable collections, but those are easy
i have a second hierarchy of immutable stuff, like FrozenSet FrozenMap etc
 
anyone know to how to import database in homestead
?
 
@astrosixer with a cow?
... there is some context missing
 
@jjok @pmmaga @Fabor @DaveRandom @Wes did you find time to read yet? I'm getting a little nervous now that the deadline getting closer ^^
 
@teresko perhaps there I am a beginner in homestead
 
11:06 AM
Noun: homestead (plural homesteads)
  1. A house together with surrounding land and buildings, especially on a farm.
  2. (Can we find and add a quotation of Dryden to this entry?)
  3. The place that is one's home.
  4. (South Africa) A cluster of several houses occupied by an extended family.
  5. The home or seat of a family; place of origin.
(2 more not shown…)
Verb: homestead (third-person singular simple present homesteads, present participle homesteading, simple past and past participle homesteaded)
  1. To acquire or settle on land as a homestead.
 
@astrosixer this? homestead.com
 
Wes
sorry @Patrick i didn't read it at all. i'll do it in a sec. today i am doing nothing and playing with a personal project
 
@teresko nice joke!
 
I am not joking
stop assuming that people can read your mind
your question has no context
 
Wes
@DaveRandom i feel like oop is missing one feature, i cannot force the user to destroy objects. i can't do stuff like, "in order to create this object you need to destroy this one first"
 
11:08 AM
give me a sec @teresko
 
Wes
i think now i get something i read about AOP a while ago and certain stuff they were trying to address with it
programming paradigms are so outdated. functional could be fool proof but it's so inefficient...
 
using vagrant @teresko?
@tereško but you can read ...
 
Wes
so all i got dave is a big pile of shit that i am almost completely sure it cannot be improved more than that. not efficiently at least
@tereško iirc you use valid() on domain objects and kinda stuff, right?
 
@Wes not lately, and only for objects, that have complex validation rules
 
Wes
sometimes you need to do something like that, because oop sucks
and it is basically what i am doing
 
11:16 AM
it seems to be better to blame shitty architecture and not a programming paradigm :P
 
Wes
i always forget that i should not attempt to communicate with you
 
especially, since any serious project will be utilizing a mix of multiple paradigms
 
Wes
trust at least dave's opinion about what i am doing :B
 
huh?
what did I do now? I feel like I missed something.
 
Wes
and there are precedents in basically all programming languages. no one could solve this problem
 
11:19 AM
@teresko??
 
Wes
> The iterators returned by this class's iterator and listIterator methods are fail-fast: if the list is structurally modified at any time after the iterator is created, in any way except through the iterator's own remove or add methods, the iterator will throw a ConcurrentModificationException. Thus, in the face of concurrent modification, the iterator fails quickly and cleanly, rather than risking arbitrary, non-deterministic behavior at an undetermined time in the future.
 
2 mins ago, by Wes
i always forget that i should not attempt to communicate with you
 
Wes
tl;dr it's a mend with some duct tape and some spit for better grip
 
what was this for?
 
Wes
you always assume i write "shitty" stuff :B
i do, but i tried everything this time
 
11:21 AM
it was a general statements, not actually directed at anyone
 
Wes
ok :B i am not offended. i just do my best
it's all i can give... can't blame myself for being stupid
:B
 
is there actually something like onended or can you only be offended?
 
TBH, I tuned out around the time someone mentioned generics
 
@Wes W3Schools should not be trusted as a reliable resource. Click here to read why.
 
Wes
11:22 AM
shut up
 
... let's leave @Wes alone - he has some brooding to do
 
Wes
:(
 
@Wes :)
 
Wes
i have no idea what you said, i can only assume you were mocking me as usual
 
@Wes can you give an example of where you would need that?
 
Wes
11:29 AM
straightforward example is
$list = new MutableArrayList();
$immutableList = new ImmutableList($list); // cannot do DI
$list->add(42); // otherwise rekt
@Patrick
 
@Wes clone the mutable list in the constructor, otherwise it's not really an immutable list
 
Wes
and you don't see any problem with that? :D
 
@Wes no. i think ocramius covered that in his defensive php talk?
 
Wes
defensive copies are shit ftr, would you copy an array that contains thousands of entries?
 
so, don't create the immutableList from array
 
11:38 AM
@Wes are you using references whenever you use arrays?
 
Wes
i think nikic knows what i'm talking about, we talked about it once. it's a shitshow :B
 
@Wes yes.
 
Wes
how about millions
 
@Wes what I am trying to say is just clone it. Microoptimization is evil
If your app gets slow, benchmark it and then optimize
 
Wes
don't treat me like a SO noob pls
 
11:46 AM
But don't do mutable "immutable" objects
 
I don't have millions of things in any of my arrays. Do you?
 
@Wes that was not the intention. But you seem to want to microoptimize something and trade off clean code in exchange?
 
Wes
i am not micro-optimizing anything. just optimizing
 
So you have millions of elements in the arrays you're optimizing?
 
12:14 PM
@Patrick I've started with it but I'm still not finished. I'll try to finish it soon! :)
 
o/
 
\o
 
o/
 
\o
 
12:33 PM
o/
 
this is pathetic :P
 
-.-
 
Jul 29 at 17:00, by Kaori
24 hours ago, by Kaori
Jul 25 at 13:13, by Kaori
Jan 25 at 9:38, by Trucy
1 min ago, by Gordon
51 secs ago, by Joe Watkins
21 secs ago, by Dejan Marjanovic
C-C-C-COMBO BREAKER
 
hey, don't shoot the messenger
 
12:53 PM
hello need help
please tell me where the php.ini file is located on namecheap hosting
 
I don't think you would have access to the php.ini on shared hosting.
 
@NomanJaved create a new file phpinfo.php with content <?phpinfo(); as the only content. put it on your webserver and request it through the browser. Find the line telling you where the ini file is located. Delete the file afterwards.
 
@DaveRandom oooh
 
/opt/alt/php56/etc/php.ini
i got this in phpinfo() but the path is not available. I am unable to locate where is the
file@Gordon
 
Hi Php devs. I am getting an error in wordpress. Anyone knows how to fix this? ERROR: Cookies are blocked due to unexpected output.
 
1:03 PM
@NomanJaved it is outside your shared host. you are likely not allowed to modify it.
!!? Cookies are blocked due to unexpected output
 
Search for "Cookies are blocked due to unexpected output -site:w3schools.com" (https://www.google.com/search?q=Cookies+are+blocked+due+to+unexpected+output+-site%3Aw3schools.com&lr=lang_en)
• Login page ERROR: Cookies are blocked due to unex… - 16 nov. 2015 - This error is generated in wp-login.php , it happens if server is unable to set cook… (https://wordpress.stackexchange.com/questions/208878/login-page-error-cookies-are-blocked-due-to-unexpected-output)
• Topic: Cookies are blocked due to unexpected outp… - We are getting this issues and can't able to login wp admin. http://www.avnarog
 
@RoniqueRicketts ^
 
I just want to update the file upload size form php.ini
 
couldn't you do something like ini_set('upload_max_filesize', '20M');? (not sure if the parameters are correct)
 
@Patrick Hey. Sorry, I've only read a tiny bit so far. Is there a particular bit you think I should read, or just any/all of it?
 
1:05 PM
@Gordon question I am an added admin to the main user's dashboard on wordpress. Is there anyway to find out if the main was using ftp?
 
@jjok all of it would be great if you can find the time ^^
most of it is a tutorial anyways, so hard to read that separately
 
@Patrick OK. I was hoping to start Clean Architecture, but that can wait:P
 
o/
 
@NomanJaved that setting is PHP_INI_PERDIR so the entry can be set in php.ini, .htaccess, httpd.conf or .user.ini (since PHP 5.3) /cc @Tiffany
 
1:13 PM
@NomanJaved On a shared host you can usually use .htaccess files for customer server configuration (if the web server is Apache), and you can put PHP settings in there.
 
@Gordon ahhh, thanks
 
What are you guys using to edit code? Ended up plunging into PC world from Mac... used to Coda
 
@jjok can you please suggest me how can I eddit htaccess for max upload size, and max execution etc.
 
@Darius i think almost everyone in here is using phpstorm
 
1:30 PM
@Darius Atom, VSCode. any of the two works. And for an IDE PHPStorm (<3)
 
@ЧеловекиPHP that might be the worst code that I've seen all year. Congratulations
 
So annoying how everything uses a monthly platform now
 
@Patrick your arguments?
@Patrick it works and it works fast enough
 
@ЧеловекиPHP it's horrible code. Read clean code and then look at the code again.
It's easy to write working code, it's hard to write good code that stands the test of time
 
1:33 PM
hmm i didnt see that crap
maybe something while uploding
 
@ЧеловекиPHP patricklouys.com/resources
go through the clean code and security links
 
@Darius I use VSCode for my stuff and PHPStorm for office work
 
@ЧеловекиPHP I opened Core.php and there was globals and statics everywhere so I closed it again in terror
 
@Gordon the framework works fine, the code is fine
@Patrick it was an upload trouble, i've reuploded and its okay now
 
@ЧеловекиPHP so if you dont accept any criticism, why do you ask us to check it out?
 
1:41 PM
@ЧеловекиPHP Good on you moving to git :P
 
3 hours ago, by IROEGBU
Why do people do these things https://github.com/icaptious/icaptious
Owner asked for contribution
 
@Patrick When's your deadline?
 
@Gordon words without arguments, serious arguments are empty
 
@Fabor launching on tuesday
 
all you say its just your subjectical opinion nothing more, no arguments
 
1:42 PM
...
 
@Patrick Oh 1 week :P okay. I will make a strong effort to read in next 2 days.
 
thanks <3
 
@Fabor i still dont like it, but all the dudes around the world require it
 
@ЧеловекиPHP if globals and statics being bad code usually is just an opinion to you, we will have problems discussing this indeed.
 
1:44 PM
@Gordon it is only your opinionthat globals and statics are bad, IF THEY EXIST, the can be used, so the fact is they can't be bad
 
@ЧеловекиPHP They are bad. @Gordon is right.
 
again if they exists, they are used for something
 
@ЧеловекиPHP why are you so set in your own ways? it's not benefiting your career
 
It's not just his opinion. It's a well held opinion of many high-level programmers.
 
the people who created globals and static variables are not stupid
 
1:45 PM
you could use this opportunity to learn and make much more money in the future by becoming a better developer
 
@Fabor whos that many high-level? i didnt saw any
 
@ЧеловекиPHP and what about the tight coupling they introduce? what about the signatures of your methods not revealing what collaborators they have? Is that a good thing? what about the side effects from mutating global state, etc, etc…?
 
@ЧеловекиPHP You have several authors and PHP contributors in this room.
 
you dont have to touch the core, your thing is use only the module part
 
@ЧеловекиPHP @Gordon probably forgot more about PHP than you know. You should listen to him
 
1:46 PM
Not to mention a ton of speakers.
 
I believe Tereško should be called upon, in these moments... :B
 
again you dont have to touch the core part of the framework, all i did was let the user works with the modules thats all and the Config
 
@ЧеловекиPHP maybe the smart guys at google can convince you? youtube.com/…
 
@Patrick "forgot about php" :D
 
:D
 
1:48 PM
@ЧеловекиPHP I wouldn't build my app on top of a framework with poor code decisions. That's like building a house on a poor foundation.
 
@ЧеловекиPHP the argument "if it exists it cannot be bad" is a very weak argument. ask yourself, what is the utility and effect these things have on my code.
 
@Fabor there no poor code decisions, and my framework works 100% perfectly
 
@ЧеловекиPHP again: if you only ask us for praise, you have come to the wrong place
 
So basically you came here to ask for opinions and then not listen to them unless you agree?
 
@Gordon again if the developers of php created something that is not useful and stupid, then they are stupid too? no thats not how it is
 
1:49 PM
I think you all are wasting your time... Time better spent arguing tabs vs spaces or something
 
spaces
 
We could always ask some, they frequent this room.
 
@IROEGBU it's not an argument if everyone uses spaces :(
 
like... all the IDEs use spaces by default
 
@DaveRandom Wanna weigh in?
 
1:51 PM
@Gordon i didnt came for praise or critisims, just an adequete check of how it could be used
 
1392Kg
am I close?
 
@Patrick No, you can mix and match
 
If we're weighing stupidity then yes.
 
You can (and should) use spaces in some places and tabs in others...
 
@ЧеловекиPHP if you print out the code you could burn it to keep you warm
 
1:51 PM
ok, quick poll: who in here thinks globals and statics should be avoided. hands up.
o/
 
@Patrick that was a joke? or what?
 
o/
 
o/
 
coming in from the blue corner, weighing 3068.835 pounds, @DaveRandom !!!11
o/
 
@ЧеловекиPHP you were asking for how it could be used. that's the only thing that came to mind, sorry
 
1:53 PM
@ЧеловекиPHP You should read @Patrick book.
 
I kicked him
 
lol
 
But he was fun :(
@Fabor maybe you should read it first before you recommend it :P
 
:X good point
 
@Gordon it wasn't completely uncalled for
 
1:54 PM
@Gordon and so what i am here agian
 
@ЧеловекиPHP that's ok. but don't call anyone retarded again.
 
@Gordon what if i want?
 
 
then someone will kick you again and eventually a mod will show up and ban you for good ¯\_(ツ)_/¯
 
ok, now it's called for :D
 
1:57 PM
Aww, I thought someone actually wanted me for something, but it was just the *ding* from the kick notification.
 
Sometimes big, sometimes small, no matter right? lol jk
 
well, that was random
 
Aw, it was a good star
Probably a Laravel developer.
 
He must be the saltiest guy I have met in a looong while.
 
@Jimbo nah. scroll up :D
 
1:58 PM
he'll probably come back in an hour
 
> the people who created globals and static variables are not stupid
Yes he is :D
 
@Fabor you must haven't played some online games in a while
 
@SaitamaSama heh
 

« first day (2600 days earlier)      last day (2352 days later) »