« first day (1387 days earlier)      last day (3568 days later) » 

10:12 AM
I think this is weird isn't it? prntscr.com/492y1q prntscr.com/492y9k
 
ThW
@VeeeneX No
 
So why that happend? @ThW
 
ThW
No match
and this is really ugly code
 
pc failed :(
 
@ThW I just testing, I'll register method to spl_autoload_register, I don't want to use annonymous function
 
10:23 AM
@JoeWatkins Failed?
 
ThW
You should not, and why do you need to create an own autoloader? I would use PSR-4 and Composer.
 
@Fabien yeah, wouldn't POST this morning, went and got new power supply after much fiddling about, nothing, no power to cpu/pci at all, put old psu back in and it booted but EFI is gone, can't see operating systems or LVM ... dead ...
 
@ThW I'm want to include app depencies for example PageModel implement Database{} Not every model, uses Database
 
@JoeWatkins Mobo issue?
 
seems like it, or cpu
 
10:27 AM
Is it power on then instant shut down?
or non responsive?
 
@VeeeneX PageModel implements Database? No... just no... :/
 
on but no post
 
No other PCs in the house?
 
@Patrick Ok so extends ? :D
 
@VeeeneX A model is a layer. I am assuming you want a Page entity and then a separate class to persist it
@VeeeneX no. Separation of concerns. Different classes for different things
 
10:29 AM
none
 
ThW
@VeeeneX And? Composer provides you with package and dependency managment- it includes several autoloaders you can use.
 
I got a live disk, gonna try booting into that and repairing efi entries I think
 
Fair enough.
Best of luck... not that you have much :-/
BBL Walking to Winchester.
 
@Patrick By this in right in MVC ? class Home extends Controller{}
@ThW ok thx
 
@VeeeneX forget about MVC, worry about separation of concerns
5
@VeeeneX and even if you decide to implement controllers, never extends them from one base class because otherwise you can't specify the dependencies of each controller class separately.
In case someone is interested: hackzurich.com (Hackaton)
 
10:35 AM
@Patrick Can you point me to some useful article? And thank you for your answer
 
http://stackoverflow.com/questions/5863870/how-should-a-model-be-structured-in-mvc/5864000#5864000
http://stackoverflow.com/questions/16356420/mvc-for-advanced-php-developers/16356866#16356866
http://stackoverflow.com/questions/7621832/architecture-more-suitable-for-web-apps-than-mvc/7622038#7622038
 
@Patrick I'm playing with this MVC github.com/panique/php-mvc-advanced It is easy to enderstand, but as you show me it isn't programmed in right way?
 
@VeeeneX No. It isn't programmed well.
 
@VeeeneX yeah... this is full of bad information
 
@Patrick @SecondRikudo No yeah ?
 
10:46 AM
I've edited.
 
Ok so Now I know something about Dependency Injection btw great video
 
the others are worth watching too btw
also, this is great: github.com/rdlowrey/Auryn
 
sigh
21 mins ago, by Patrick
@VeeeneX forget about MVC, worry about separation of concerns
this was the single best advice you could give
all the linked articles afterwards are not helpful
blahblahblah, thou shalt not do this … thou shalt not do that … you are doing it wrong … read this first … read that first … all that lecturing annoys me.
that high brow lecturing and implementation detail quibble is exactly why people should just forget about MVC.
 
@Gordon they helped me a lot to understand things better. coming from codeigniter I had to unlearn a lot of bad ideas
it would be nice if people would learn proper OOP from the start, but with all the bad information out there it seems like that won't happen soon
 
10:59 AM
@Patrick no doubt about that. But you dont need all the lecturing to understand separation of concerns
understanding MVC doesnt need technical implementation quibble or weeklong introductions to OOP.
 
@Gordon Ok, Now i going to translate it...
 
@Gordon good answer. I stand corrected :)
 
If you cut away all the possible implementation details or technical constraints, you end up with a very simple pattern.
IMO, it doesnt matter that MVC on the web isn't MVC as Reenskaug invented it
 
@Gordon It's a common misconception that the Model is just the database? So what can model do?
 
@Gordon The view you are talking about here is a php class I assume and not just a template like in most php frameworks? stackoverflow.com/questions/1973221/…
 
11:06 AM
@VeeeneX Model = Your application minus the Graphical User Interface
@Patrick I don't care how you implement your View.
 
@Gordon So for example can Model work like this? : Controller -> Model(Add Article) { if POST[article] then process it}?
 
@VeeeneX no. The Controller handles the input. Your Model will never know about $_POST, because $_POST is HTTP specific input. Your Controller will extract the post data, verify that it got all the information it needs to call the model and then pass that information to the Model
 
@Gordon Great because my English missed a point you wrote in your answer
 
@Gordon Or, the specific part of the model that can handle your processing needs.
 
@VeeeneX Here is another definition for the Model: The Model is a representation of the End User's Mental Model of what the application is going to do for him/her. Note that this is by Jim Coplien, Reenskaug's close friend.
 
11:22 AM
@Gordon Thank you so much
 
You're welcome.
 
@Gordon That's an interesting way to phrase it
 
@Gordon I think that refers to the "domain model" term
as in "the DDD thing"
 
@SecondRikudo all I get is a "type error"
 
11:31 AM
@tereško Chrome? Webcam?
 
then again, I'm using firefox
 
Chrome only :)
 
what will it show? (I have neither chrome nor webcam, so.. )
 
@Gordon also, any point that you made will be forgotten by him in less then 24h
yesterday, by VeeeneX
Hi everybody! Did you heard about MVC shortcuts?
 
^ excuse me, what?
 
11:35 AM
@tereško Well, all applications will have some sort of Domain Model (holding the code to fulfill the application's core purpose) And all applications will have auxiliary code supporting the Domain Model, e.g. Services of some sort. In GRASP, these are called Pure Fabrication.
 
@AlmaDo The stream from your camera, as colored characters, in your console.
 
Emm ... "domain model" in DDD is not some piece of code, but the accumulated knowledge in the project
 
@tereško yes, but there is no notion of how you have to implement it.
it's the translation of the end user's mental model in code artifacts.
which is really what software development is all about.
 
no, it has nothing to do with the code actually
 
Sorry @Gordon I'm with teresko here. At least in the Evans book.
 
11:40 AM
(which I was referring to)
 
@BenjaminGruenbaum I don't see how what @tereško said is any different to what I said
software development is about providing users with a solution to a problem. and you encapsulate both, knowledge about the problem as understood by the user and the solution in the domain model.
I agree that the Domain Model is conceptual. But you will ultimately translate that to some sort of code artifact because there is no value in having a Domain Model without a concrete realization in code.
that's why all code written is communication artifacts. its shared understanding molded into code.
the only thing DDD adds to that is some patterns on how to best translate/organize it, e.g. Bounded Contexts, Aggregates, Value Objects, Entities, etc
 
@tereško I'm still here
 
12:06 PM
I need a quick test: could someone go to just5.com and perform the register-recover-login sequence and see is it works
I am getting conflicting reports =/
 
On it
Can't sign up
 
same
 
@tereško I click the signup button after filling in my email and generating a password and nothing happens
 
using firefox
 
No errors in the console, using Chrome.
 
12:08 PM
country ?
 
Israel
 
Switzerland
exactly the same thing happening here, also in chromium
 
I tried to register with just4@madara.ninja but I doubt that reached to your servers
 
and now I need to dig up the DB details
 
I think it did, I had a validation error when trying with the same email in another browser
but no email arrived
 
12:11 PM
A question about naming; an object that translates file paths between source and destination ... is ResourceMapper a proper name for that?
 
lol that's just weird
 
@Jack Resource. Then it maps resource paths, not file paths.
 
@tereško when I refreshed it showed me that I logged in, but everything is blank
(It says Hi, at the top)
 
lol
 
No mail in my inbox.
 
12:12 PM
I wonder, which of the fucktards has messed it all up.
 
Start looking at JS
 
@tereško it doesnt accept mailinator emails so I cannot test it
 
Someone clearly stopped the form from being submitted with e.preventDefault()
 
sounds like email validation could be fucked ... lemme check
 
Hi
Everyone :p
Someone I can help?
 
12:14 PM
@hakre isn't a file also a resource? not sure whether the difference is important here.
 
@Anton DONT-3
cc @Jack ^ :P
 
lol
 
We should make a bot that would login to chat and yell at people automatically based on regex
 
@SecondRikudo , could it be that on the first try to register you failed the validation ?
 
@tereško I did use a new TLD (just5@madara.ninja), so it is possible, yes.
Want me to try with my other .com domain?
 
12:24 PM
naah , the TLD seems to be fine
 
Do you have special rules for the password?
 
the JS is fucked (among other things)
 
Not allowing special characters? A length limit?
 
it needs more then 8 symbols
@SecondRikudo also, it's not mine
 
LastPass generates a 32 character password for me, containing lower, upper numbers and symbols
silKjVt0aErxb!D!hqky!FCX7$xroY&j < for example
Will a password like that have problems?
 
12:26 PM
shouldn't be
I cannot see the backend code yet
 
@SecondRikudo only a char limit, I encourage word combinations.
 
also, the site isn't letting me out
 
@BenjaminGruenbaum Is it your site?
 
I am logged in as just4@madara.ninja (password is qwerty123), but I cannot log out
@SecondRikudo he's just better at reading JS then you
 
what's the rationale of not accepting certain chars in a password?
 
12:29 PM
@tereško You misspelled "faster at opening JS files"
@Jack Are you familiar with the experiment with the 5 chimps?
 
yes
 
@Jack sql injections =)
 
That.
 
@Jack misconceptions about what is secure or not, tied with shitty database schemas.
 
got it :)
 
12:30 PM
Alright
 
btw, that 5 chimps answer is awesome
 
@Jack you asked about the naming. so I thought this is important. Take a name that is concise, not general.
 
Let's breakpint through the form's submission and see what's blocking it
 
Next to resource->file there might be also something better for mapper -> ???
as a mapper is a pretty generic term
 
@hakre fair enough .. hmm, how would you name the methods that translate forward and backward?
 
12:31 PM
testing .. 1. 2. 3 .. something's strange going on with my net
 
it was supposed to be a generic name i guess, but i'll be exclusively using it for file paths.
 
@tereško it errors out on the "I agree" checkbox
 
=)
now, if only i could log out
 
@tereško Clear your cookies from the site
It errors out because of this line:
if ($("#newsletter:checked").val() != "on") {
 
da fuc k
 
12:34 PM
@hakre this is an example of a concrete implementation.
 
Which is never true since
<input type="checkbox" name="newsletter" id="newsletter" checked="checked">
 
The name "reverse()" feels wrong somehow =/
 
Has no value=on.
 
@SecondRikudo i think that's the default.
 
You're right
The :checked selector doesn't match.
 
12:36 PM
@Jack there was no such experiment though, I checked.
I think it's even on skeptics.se
 
@BenjaminGruenbaum you actually bothered to check? haha
 
174
Q: Was the experiment with five monkeys, a ladder, a banana and a water spray conducted?

Tom WijsmanI've found the following picture online. It is about the moral/paradigm behind consistent behavior. Click to enlarge. The image text says A group of scientists placed 5 monkeys in a cage and in the middle, a ladder with bananas on the top. Every time a monkey went up the ladder, the...

I found it really interesting. Seemed unlikely.
 
it is
 
@BenjaminGruenbaum I think it was a thought experiment, wasn't it?
 
I hope so
 
12:37 PM
304
Q: What technical reasons are there to have low maximum password lengths?

enderlandI have always wondered why so many websites have very firm restrictions on password length (exactly 8 characters, up to 8 characters, etc). These tend to be banks or other sites I actually care about security. I understand most people will pick short passwords like "password" and "123456" but ar...

Also, if you haven't read it yet: serverfault.com/questions/293217/…
 
@SecondRikudo people claimed it was a real experiment.
 
my local bank has "password must be 6 alphanumeric chars" =.="
 
@SecondRikudo that's the post with the chimps, so I guess everyone here has read it.
 
@Jack Mine's not much better.
Which is why I've revoked internet permissions for everything. I don't trust the password, however random.
 
@SecondRikudo well .. making a max length limit is a good idea.
 
12:38 PM
6-8 alphanumeric is too small a range.
 
1KB is usually acceptable length limit
 
1KB passwords are ideal I would say
 
@tereško Yes, technically, even 72 is enough, if you're using blowfish.
Because anything past 72 is truncated.
@tereško @Jack grc.com/sqrl/sqrl.htm this needs to be a thing.
 
We don't have a high limit but we filter requests that are too large regardless. Also, we don't really worry about DOS.
Basically, it's Microsoft's problem not ours :D
 
If your password is actually 72 chars you might as well use sha1() :)
 
12:41 PM
@SecondRikudo isn't that another case of mistaking the "something that I have" with "something that I know" proof ?
 
the idiotic "thumb-print unlock"
 
@tereško What's wrong with the thumb-print unlock?
 
@SecondRikudo papercuts
 
Not the thumb-print itself, mind you, but the idea of encrypting data with your key and storing it, and then your "password" becomes your key.
This is more secure than password based authentication. The downside is that there is no such thing as a "password recovery" or a "password reset".
If you lost your key, you might as well burn the data.
 
12:50 PM
gods below, I don't want to touch that site anymore
I just realized that , for user to unsusbscribe from the newsletters, said user also has to fill out his complete list of contact information
 
@tereško Hmmmm
 
I really don't want to start looking for a new job, ya know
 
Filling a form with my personal files... or press the THIS IS SPAM nuke button, getting them closer to getting mailbanned by everyone
That would be my face if and when I get the first mail from just5
 
the registration mail already was dumped in gmails spam list
how the hell did they let such a retarded form go through ?!
 
@tereško Step 1. Scrap the entire form. Seriously, just do it. Step 2. Rewrite the form with... you know.. form elements? Step 3. Smack the front-end developer.
 
12:58 PM
it went thought technical design (and client's approval), graphical design (and approval), frontend developent, backend development, (supposedly) someone went through the site and tested that everything really works and it was approved by client and .. it was actually launched
 
@tereško Well, someone obviously screwed up.
Because right now, you cannot register.
My best bet is that a 3rd party dependency was updated, and a bug the code exploited was fixed.
Most probably jQuery.
 
nope
 
hmm, arctic hares are rather funny looking :)
 
I know several cats with that look on their faces
 
Good morning
 
@Jack map($path) - unmap($path) - isMapped($path) - isMappingPath($path)
 
No one feels that the question should be reopened?
 
1:44 PM
why?.. it's reference as it's duplicate
I'd merge those questions since there is good answer in closed one
 
@AlmaDo I was talking to a Stack Overflow mod and he said that this isn't a good candidate for merging
Since my answer on the closed question doesn't have the same context and doesn't answer the same question (even though it's similar)
Which leads me to think that it might not even be a duplicate.
 
The language spec gets kind of annoying when you read "See §§ and §§" ... =/
 
hm, that's odd. Clearly your answer is good and may be an addition to existing reference
 
Sure, the answers have some overlap, but it's not the exact same thing..
 
may be that's because questions are only related but not completely same
 
1:55 PM
@AlmaDo In which case, they shouldn't be closed as duplicates :P
 
hey
 
yes, it's only one point which should have place: if it's duplicate, then it may be merged (and should be) by definition. If it's not, then no reason to close it as a dupe. I stand for first option
 
You have a random class, the purpose of this class is providing random utilities. for instance, generating a random string with given length and maybe seed, random numbers aswell, and more of these stuff.

Why would you prefer to create a new instance of that class instead of using it as static? the class doesn't use the instance at all
 
@BenBeri let me ask something different: why do you use a class with static methods while functions would do it?
 
2:02 PM
Because I am talking about OO-wise solutions. Yeah I know I can include the php file with the functions at the start of the script
@SecondRikudo I had a very good morning at 6:00 yesterday with 4 explosions up to my house lol
 
@BenBeri Yeah, there was just another one in TA
 
now? cause I heard a boom 2 mins ago & TA is 30km from me
 
We've left the safe room now
 
I am just failing to understand why keep killing innocents accidentally if it is possible to technically find out tunnels by UV signal waves >.> (iirc they said they will find them technically on ynet yesterday, not sure how tho)
@SecondRikudo can you use phone in military? i mean are there breaks that u can use phone and laptop?
 
2:18 PM
@BenBeri Yes
 
good evening everyone
 
@SecondRikudo I hope they are long!
 
@BenBeri we have a soldier in this room?
 
Please, no off topic talk about unpleasant stuff in this room.
 
user895378
2:35 PM
morning
 
ThW
2:45 PM
Morning
 
@SecondRikudo that's seriously messed up
 
@Jack It's hilarious and scary at the same time
> By "I hope we stay friends" I meant that I hope that the visitation hours wouldn't be as much as for family when you're in an institution!
That has to be one of the most epic breakup lines I've ever read. Ever.
 
Judging from the weird sh*t she did before the tat it was just a matter of time.
Time for some Fernando Sor to relax again :)
 
that tattoo is pretty good. i wished my gf would do that
so that after we break up, she will remember me when she is having sex ehehe
see this tattoo here ? panorama.com.al/wp-content/uploads/2013/06/… he is sali berisha, the ex prime minister of albania and some d**k head decided to make a tattoo with his face. that is the stupiest thing ever. it is like making a tattoo with the face of barack obama
 
4:31 PM
@BenBeri No, you didn't talk about OO-wise solutions. You were speaking about global static methods.
 
So you're saying that statics are not apart of Object oriented programming?
 
@BenBeri yes, statics have nothing to do with the objects. they are in the global static space.
 
4:45 PM
I see
 
5:12 PM
two more to go :)
So I justed got my stream wrapper ready that is able to read from concatenated xml files.
Yay!
 
user895378
@hakre Do you hate the PHP streams API after doing so? Because that's the usual feeling after having to deal with it.
 
@rdlowrey well it's not that I could say I love it, but I guess because that things is read only, it's not such a burden.
also it works as I can return array() for stat_url.
:)
also I have to keep a global static array for the state of each file/url that was once opened.
 
5:30 PM
boo
 
hui boo
@rdlowrey: is it normal that you can't control the stream chunk size?
 
user895378
I don't really remember TBH. I found the whole filter/wrapper API to be very buggy.
 
user895378
You might try fiddling with stream_set_read_buffer() and stream_set_write_buffer()
 
tried both + stream_set_chunk_size() but no luck on my system here. wanted to manipulate buffered reading for a read-ahead buffer encapsulated that in the end.
$file = "xmlseq://zip://$dir/ipg140107.zip#ipg140107.xml";
for ($iteration = 1, $buffer = null; $buffer !== false; $iteration++) {
    echo $iteration, "\n";
    $buffer = file_get_contents($file);
}
XMLSequenceStream::closeBuffer($file);
 
5:46 PM
Hi
Why is this not possible in PHP? echo date("24:00:00") - date("H:i:s")
 
zip:// unluckily doesn't work with http:// :)
 
Im trying to get a countdown till midnight.
Any ideas?
Keeps returning 7, thats correct, but I need the mins and seconds.
 
user895378
Well IMO the http:// stream abstraction is leaky and should never have been part of PHP in the first place. HTTP is too complex to do anything useful by pretending that it's a stream of bytes without OOB data (like headers and persistent connection management).
 
user895378
The http stream wrapper is a bad solution in almost every case because of its limitations and simplicity.
 
user895378
For the 1% of scenarios where it's useful it can be great. But otherwise it's really suboptimal.
 
user895378
5:52 PM
And it leads to maintenance headaches like the https:// wrapper being horrifically insecure for the past several years.
 
user895378
A language shouldn't try to be an HTTP client. It should provide the tools necessary to interact with HTTP services (or expose a curl extension) or both.
 
user895378
Just my opinion on the matter.
 
@rdlowrey usually file_get_contents($url) is just doing the job. For everything more special, there's Artax.
 
user895378
right :)
 
Not sure if this will help anyone but readfile();
 
6:00 PM
yes, it's an abstraction, and for that it's fine. for everything else there is the HTTP extension muhahaha
 
user895378
 
that doesn't get much attention ... or didn't for a long time ...
 
yes I was joking. whenever I looked into it I wondered if it needs to be that way anyway.
 
6:13 PM
hi
 
6:36 PM
indeed
 
@rdlowrey They say the rim base was about 2.5 feet closer than it should be to the court too.
 
user895378
@Fabien Yeah, that video was brutal
 
Kevin Ware was worse but both are pretty horrendous. As far as breaks go I hear his was a good one. Clean so to speak.
 
can someone with PHP hammer please close this question: stackoverflow.com/q/25103517/367456 against here: stackoverflow.com/q/24971920/367456 - seen the self duplicator too late.
 
6:54 PM
hi
can anybody give solution to my problem - stackoverflow.com/questions/25102250/…
its very urgent plz...
 
7:23 PM
oh noez .... not urgent questionz on the internetz
@everyone answer this guys question, it's urgent don't ya know ...
 
Question
PDOStatement::fetch()
What will it return in the case of an empty resultset?
Will it return an empty array? or just FALSE?
 
@SecondRikudo NULL
may have changed in the last 8 years
 
user895378
@hakre dupe hammer!
 
user895378
handled
 
8:27 PM
Is there a way in php to write something like this?
if (cond1) {
    // Do something
}
if (cond2) {
    // Do something else
}
else {
    // If none of the above ifs work do this
}
Could be more than two if statements. Would I have to use a boolean variable?
 
if ($cond1) { // .. } else if ($cond2) { //.. } else { // ... }
 
Disregard me, I'm an idiot.
 
@rdlowrey Be that as it may, I've given you commit access to Addr. Only things I'm really bothered about (you already know these things but I will tell you anyway): please do not rewrite history on a shared branch without talking to collabs first, and please ensure that you merge *up* and not down (i.e. if you want it in 0.2.x then commit it to 0.2 and merge up to master, not the other way round)
Oh and if you create a tag then make sure you create a corresponding release on github
 
@BenBeri But if cond1 is true none of the other conditions will be checked correct?
 
correct
if you want them to be executed at once, but have a if that will be executed if none of them are true then do

$superCond = !$cond1 && !$cond2 && !$cond3 // and more..

if ($superCond) {
// none of them were executed
}
 
8:39 PM
^^ mmm I was thinking that but it sounds easy to make a mistake. I think maybe a boolean var will be my best bet.
For example sometimes I could have if (cond1 && cond2 || cond3) {
 
@joshhunt I often create temp vars for readability in that kind of scenario
 
@DaveRandom Oh yup that looks like it could be the way to go. I was just making sure that I wasn't missing some basic php function...
 
8:57 PM
@joshhunt Well it depends on exactly what you are doing. For example, if it's possible to reduce your conditions to a set of distinct numerical values and there are a lot fo possibilities, it might make sense to have an array of callbacks
Like, in general if I have more than 2 elseifs in a tree then I will try and redesign it
 
@DaveRandom just say "do it like in php-src" ;-)
 
Also if you genuinely do have a huge elseif tree (it does happen sometimes) then switch might be a better alternative
I am guilty of switch(true) sometimes, which I know many people hat ebut sometimes it does make sense
 

« first day (1387 days earlier)      last day (3568 days later) »