« first day (1856 days earlier)      last day (3107 days later) » 
00:00 - 14:0014:00 - 00:00

2:00 PM
When I see cached in this context I will think it means somethign else in a month or so
 
So is it common to have a detailed SRS
 
@StephenWolfe If it is a professional project, then I'd suggest not to use a mindmap.
 
@PeeHaa .. and that's why your first idea was "Static" ?!
 
Well dynamic v static
 
dynamic wat
 
2:01 PM
page
 
Is there any good tutorial you know which teaches you to write code with minimal if-conditions
 
@PeeHaa future you would have hated the past you
 
he always does :)
 
@HassanAlthaf I currently dont use SRS a lot, I was thinking I really should now as my software projects are getting quite large.
 
@StephenWolfe developers do not write SRSes
 
2:03 PM
@tereško Who does?
 
project managers and sales people
 
Developers just code from the documents they receive.
 
@tereško hmm
 
developers translate them in mindmaps, uml diagrams, userstories and doodles .. and some expletives
 
I was taught to plan my projects out with UMLs and ERDs
and write a SRS
Think there was some other things I have forgotten
I just wanted to write my project up in to a document and I was hoping SRS is still a popular way to do it.
Ideally i want to be able to hire someone who can follow it.
No good me handing them Use Cases and what not if they dont know what they are
 
2:08 PM
@StephenWolfe SRS + developer + coffee is what eventually produces a project
 
:D great
 
SRS (with designs and concepts) is what gets sold to the client
 
I can do all that
and i have a coffee machine!
 
9 mins ago, by Hassan Althaf
@StephenWolfe If it is a professional project, then I'd suggest not to use a mindmap.
this makes me wonder, @HassanAlthaf, how may professional project have to participated in?
 
Does anyone here develop in Laravel?
 
2:11 PM
@samayo is it a bad thing?
 
Not voluntarily,@StephenWolfe
 
@tereško Currently, in a Hackathon, since these stuff are not required, I'm not doing them.
 
@tereško haha are you ever positive about anything?
 
@tereško But for my course, I have to prepare these documents to learn how to prepare them. The course also includes presenting them, etc.
 
@HassanAlthaf I assume "project management" is part of what you are studying
 
Anonymous
2:14 PM
@Shafizadeh no
 
ok :-)
Is there any tag to bold a HTML text? (I want something with a thickness of less than <b>)
 
it's not a big Hackathon
 
Anonymous
@Shafizadeh font-weight
 
@tereško Yup, it includes project management.
 
@samayo ow ! why I did not thing about it, ok tnx
 
2:18 PM
@underscore Yup, thats why I'm not doing them bs lol.
If it was some professional hackathon held by some University or a well-off company, then I'd definitely do it. ;]
 
do an innovative thing
 
Like what
I think it is innovative enough.
 
and do a best presentation
 
It's a combination of Facebook and StackOverflow.
Which doesn't exist
I suck at presenting.
Hopefully, I do well.
Do I have to bring my machine? or will you guys install it there?
 
you can't
 
2:21 PM
you cant what
 
There is hella lotta files in my proj -__________-
 
i was at the technosoft exhibition which was held at the Advanced Technical Institute in kurunagala last week as a speaker
 
Nice
I am just participating in this Hackathon for recognition
 
someone came to show us his project which is doing the things that yo doing
 
2:25 PM
Like what
lol
What was his name
Well, thinking of some idea is difficult.
Quite difficult.
Something innovative.
Requires a few months
If it was easy to think of something innovative, then there'd be loads of innovative inventions popping up every now and then.
Damn got stuck
 
o/
 
Doing WP theme-dev on sunday ' yay '
 
Woo! completed the ability to cast upvotes
@Duikboot ded.
 
-_-'
 
2:37 PM
@Duikboot Make sure you have a doctor close to you. ;o
 
Thanks! I'll write his emergency number on a post-it.
 
it sounds more like a call for emergency beer stash
 
@underscore Is it legal to ask for optimisation tips for my project in Hackathon?
 
Hahaha :D
 
i don't think we will have enough time for that
 
2:43 PM
@underscore Well, I will. :0 It's just a single ugly method.
 
but personally you can ask from us
 
@tereško tnx
 
@underscore Can't I ask from peepz like @tereško and @PeeHaa
 
Optimisation tips for this method would be highly appreciate guys: pastebin.com/iifUNLTX
 
2:46 PM
use switch
i see you have ton of $postType
 
public function validatePost($postId, $postType)
{
    if ($postType === PostTypes::QUESTION && $this->questionsRepository->doesQuestionExist($postId)) {
        return true;
    }

    if ($postType === PostTypes::ANSWER && $this->answerRepository->doesAnswerExist($postId)) {
        return true;
    }

    return false;
}
but this is not optimization
just a removal of bullshit
 
3:07 PM
Can someone please give a look on stackoverflow.com/questions/33717494/…?
while i'm into php-amqp extension, i'm not good with pthreads
p.s. the question is not mine
 
Finally, completed the voting system
@Shafizadeh Nice that you accepted my f/r. ;)
@tereško You're the king!
So tired.
Gonna stop for today.
Finished everything that requires a lot of logic.
Only easy stuff to do left.
 
@HassanAlthaf ;-)
why some questions has a background color ?stackoverflow.com/questions/tagged/php
 
@Shafizadeh Yellow ones?
 
no, almost red ones
 
Dunno, I dont see em.
 
3:17 PM
I have not seen yellow background color so far
 
Oh ok.
 
@Shafizadeh because they have tags from your "favorite" list
 
oh really?! I see
 
That's meant to be yellow. @tereško
At least that is what I see it as.
 
@HassanAlthaf color names are interesting. For example, in japanese only recently was introduced different name for green and blue
and some languages (like swahili) does not even have names for colors
 
3:45 PM
hello
someone's up for a quick session question?
 
ask it first
 
I'm going for a beer
 
anybody watch "Big Bang theory" serial in this room ?
 
4:04 PM
@underscore it's about handle sessions in a mvc architecture
 
how do they refer to colors in swahili @tereško?
 
there is explained
with details
 
@FélixGagnon-Grenier the car is in the color of grass
 
how poetic
you mean you can actually tell a girl her eyes are the color of the sky and not sound cheesy?!
 
yup
@FélixGagnon-Grenier that kinda reminds me of i.imgur.com/EySktLl.jpg
 
4:10 PM
trololol
btw thanks for encouraging me yesterday. those images are being served way faster now.
 
5:09 PM
 
Take the first number -> multiply
So.... 126
 
correct
it needs maximum 2 min ...!
 
@Shafizadeh eek
 
@NikiC there is no reason for scaring, it is simple.
 
@Shafizadeh The solution is trivial, I just don't like large numbers
Doing 114/2 or 57/19 in my mind is hard ^^
 
5:20 PM
:-)
@NikiC ok well, try this: (it is really hard one - I can not solve it)
 
Hi guys, does anyone here work as an employee within a web dev, mobile dev or programmer field?
 
I've totally forgotten how docbook works
 
Can anyone give me an idea what kind of experience you gain from working in a web development business?
 
@JoeWatkins that's a positive thing, right?
You haven't forgotten, you have suppressed
 
5:24 PM
no, I have to create phpdbg stuff ...
suppressed is a better word ...
page with a simple table in it nikic ?
blank
found one
 
5:48 PM
Hello evil doers...
How's it going?
 
We aren't evil......just misunderstood.
 
Can I ask a web app question.. Yes. So here it goes. How do I build my app to be ready to expand to multiple servers. I'm hoping just them running the same code, having a dispatch server (directs user to a server with less load than others), and just having alot of hardware... ]
@Danack sure... lol jk jk
 
@JustinKaz There's no single answer to that, other than to understand what would restrict you from being able to expand to multiple servers, and to not do that. For example, you need to store your sessions in a place that multiple servers can reach them; which would eliminate storing them either in a servers local file system or APC cache.
 
yeah they have to be stored in a session database or table
 
cough redis.
 
5:57 PM
redis?
 
Abe
\o
 
Normal databases are not designed for the number of accesses required by a session system. Hint - each page access will require touching the session, which often requires acquiring a write-lock on the session to prevent concurrent modification.
 
Or memcache. But that is a bit blah in my opinion.
 
6:01 PM
so I could encapsolate the session storage as it's own object that I can modify later
so instead of using $_SESSION['blah'], i'd use $this->session("blah")
 
@JustinKaz you can either do that (I'm working on library to do that, but it's not at all ready for use) or you can set the internal session handler to use the storage you want through the session handlers php.net/manual/en/class.sessionhandler.php digitalocean.com/community/tutorials/…
 
becuase it's going to be enterprise level app, I'm worried that someone somewhere will want XYZ security implemented... this way I can just update the object for storage and have it perform the way it's suppose to.
I'm also scared to mess with the internal handler :(
@Danack thank you!
I'm assuming that I can encampsolate connecting to a MYSQL server so I can support clustering in the near future with ease
Would that work?
 
fyi s/encampsolate/encapsulate/ - of which a literal translation is "en" "capsule" "late => "in" "a box" "put"
 
oh lol
 
@JustinKaz This is a basic wrapper around the internal stuff - don't use it from that library - rip it out and use the appropriate session object for your codebase.
And I'm not going to give advice about clustering MySQL, as I don't have experience of that.
 
6:15 PM
@Danack you just saved me from writing a whole object... I may reformat it a bit... but THANK YOU
 
@JoeWatkins oh, finally :-)
 
6:33 PM
hey I'm having issues with my icons not displaying right
I'm assuming its a cross domain issue, (my icons are now on a CDN) how do I fix that?
I remember it as an xml file and something I added in the .htaccess file but I can't find the google page that helped me last itme.
 
6:46 PM
I found it!!!!
Header set Access-Control-Allow-Origin *
Header always set Access-Control-Allow-Methods "POST, GET, OPTIONS, DELETE, PUT"
Header always set Access-Control-Allow-Headers "*"
wooot... well of course I have to limit the type of requests tho
 
Or just don't use javascript for fonts / icons like a sane person
 
@Shafizadeh that's not an IQ test
 
it's a pre-built template in bootstrap for fast loading... I don't want to mess with it. BUT when I get to the fine tuning I'll put that on the list
 
it's one exercise in 6th grade math
 
@PeeHaa the font is actually being loaded by CSS... and still encounters the issue
 
6:50 PM
Well if the browser thinks it's a bad idea to embed cross domain fonts I tend to agree
 
Whats the best way to get the current time when a user submits a comment? A hidden form field, automatic from mysql db, etc.
 
its a performance thing. I need the CDN ability.
 
7:06 PM
@tereško yes, that is not, but next one it is.
 
7:31 PM
@JustinKaz Hav e you actually tested it?
 
Anonymous
@benlevywebdesign ... mysql
 
@samayo well yes but, would I use a hidden form field that inserts the time or do just from my mysql db?...
 
Anonymous
Yes. just use NOW() and let it be. There is no reason to hesitate in this scenario
 
I tried using NOW() and so far I get nothing
 
Anonymous
besides, you want to get the time when user submits to db, not when user presses the submit button
 
Anonymous
7:38 PM
@benlevywebdesign make sure to change the mysql field, or check your comment script
 
Anonymous
When you are not doing it right, you'll get nothing
 
I'm using the type "time". Should I not be using that type and using timestamp?
 
Anonymous
pastebin
 
7:55 PM
I think safari is breaking the Accept header of my background-images. or rather, not setting it
can I even force a browser to set a Accept header?
 
Anonymous
In firefox you can
 
Anonymous
with the developer tools
 
@FélixGagnon-Grenier why do you think it's required to set an accept header?
 
So that the client can undertand the resource correctly. I'm trying to serve an image as a background-image, and while firefox sets image/png in the accept header, safari doesn't, which is why I think it doesn't display the image
my hint is safari complains that
Resource interpreted as Image but transferred with MIME type : image/png.
 
@FélixGagnon-Grenier you have a shareable link to that image?
aka I think you're doing something else wrong, and blaming the wrong cause and effect.
That's not a png.
 
8:03 PM
are you actually serious?
 
I never joke about image file formats.
 
Abe
haha
 
Sorry...
OSX was being crap.
.....I saved it to desktop right-clicked info....and apparently the dsstore file got move in the way....
that is a png.
 
8:06 PM
nice.
I was somewhat wondering what the hell was happening :p
 
lol
Check the exact mime type.
Content-Encoding:gzip
Content-Type:: image/png
 
What I'm doing with N0W() should work... pastebin.com/YyYAugya
 
there appear to be two colons.
And this is why I always use quotes or other brackets in error messages, as it should be:
Resource interpreted as Image but transferred with MIME type ": image/png".
 
hmm. let's remove that. yeah while setting the response header I had a colon
however this doesn't seem to have any effect. Firefox was already managing to correctly display the image as such, while safari still wants me to download the image right away instead of showing it.
 
Same link?
 
8:12 PM
oh, not pushed yet. one moment
yeah, header looks nicer now
 
@FélixGagnon-Grenier some browsers do content-type sniffing, you can disable that with a special header.
 
...Or just not have typos in your code.
 
you mean the colon @Danack?
thanks, checking that @kelunik
something like that?
$this->response->setHeader('X-Content-Type-Options', 'nosniff');
 
btw....I don't really recommend resizing images directly in a web request. it makes caching the images be a bit annoying, as well as making your webserver clog up with requests. I recommend ought to check how I do them for phpimagick.com/Imagick/adaptiveBlurImage
It's not at all documented properly, but the two functions to look at are Serve an image from file on the disk, with consistent naming
 
8:30 PM
wow. that was the topic of my all-nighter yesterday. came up with a far from optimal solution, saving the images once resized, but quite faster then resizing on each request
 
8:52 PM
ah goddamn it. of course I was just not using the right css for safari.
 
@PeeHaa yep just tested it!
@PeeHaa worked flawlessly
 
Btw. @JoeWatkins when I can help you with the actual content (not docbook syntax), feel free to ping me :-)
 
10:01 PM
@rdlowrey Why do we pass a watcher id to immediates in Amp? after all the id is meaningless in any case? If you need some id to map some data, there's always $options["cb_data"]... \cc @kelunik
consistency? don't know if that's really an argument here…
 
Probably.
 
Also… any reason why we shouldn't change it?
 
Consistency.
[22:01:20] critical Amp\File\FilesystemException: inet_pton(): Unrecognized address 127.0.0.1:34736 in /home/kelunik/GitHub/kelunik/aerys-acme/vendor/amphp/file/lib/BlockingDriver.php‌​:276
 
So fgc returns false without throwing a warning?
 
hehe… we really ought to check for where the warning was thrown…
@NikiC yeah, some paths do… don't remember when exactly; would need to look up in source…
 
10:08 PM
@NikiC Yes, if permission is missing.
 
should be like:
 
hey
i'm trying to setup a script that will activate my customer's user name and password upon paypal payment
 
$e = error_get_last();
if ($e["line"] == __LINE__ - 3 && $e["file"] == __FILE__) {
    $msg = $e["message"];
} else {
    $msg = "file_get_contents() failed, but without warning; probably permissions were lacking";
}
^ @kelunik
 
any ideas?
 
@bwoebi Or you can just use an error handler...
Also, why is there no warning for permissions?
That's like, the one warning you'd be interested in!
 
10:14 PM
@NikiC Yeah, but that would be general… I can't do it specifically for just that line?
 
@bwoebi set+restore
 
E_OVERHEAD?
 
ah, this is critical code?
 
this one maybe not, but in general, we have other places where we have this
 
comparing line numbers is ugly ^^
 
10:16 PM
I have an object I want to treat as an array list
 
if you don't care about php 5, there is error_clear_last()
 
I want to be able to do $xyz['this'] = "that"; or $xyz["this"] = [that, this, and the other thing]';
how do I do that?
 
@NikiC hmh… yeah, I could call it before.
Good idea…
 
@JustinKaz php.net/manual/en/class.arrayaccess.php - it doesn't work for multi-level access though.
 
@bwoebi btw, that won't work if you first do a fgc call that warns and then do another one that doesn't warn
been there
 
10:19 PM
@Danack what does that mean "mult-level"
 
e.g. $foo['a']['b'] - doesn't get handled...I think.
tbh I would suggest not using it ....unless you have a really strong reason to use it.
 
@NikiC … and then call error_clear_last() … was my logic. I didn't think about calling it before…
 
@bwoebi Aerys uses 100% CPU currently, btw.
 
I'm thinking about leaving code as is and adding a branch for PHP 7 to error_clear_last()…
@kelunik how do I repro?
 
docs.travis-ci.org -> Google 404 oO
 
10:23 PM
lol
 
@kelunik Google app engine...apparently.
 
10:34 PM
@bwoebi Just try kelunik/aerys-acme.
@bwoebi Actually any config, just start with the demo.php.
But there it's just the aerys process, no aerys-worker as it seems.
But I didn't send any requests, maybe that's the reason.
 
11:22 PM
What's this stupid constant naming
STREAM_CRYPTO_METHOD_SSLv23_SERVER means everything from TLS 1.0 and up
STREAM_CRYPTO_METHOD_TLS_SERVER means TLS 1.0 only
\cc @rdlowrey
 
@Danack I just augmented your session class with that ability... now i don't have to train people to use a new object... just treat it like a $_SESSION[]
 
$_SESSION['foo']['bar'] = "this doesn't work";
Also...global variables are bad.
 
@Danack true... now I do $na->session['blah'] = "Justin is now the vodo master.";
 
11:45 PM
@bwoebi you sure that doesn't include SSL 3?
 
@NikiC I am. I've verified with source: lxr.php.net/xref/PHP_7_0/main/streams/…
also what's that STREAM_CRYPTO_METHOD_TLS_ANY_SERVER enum constant, it's never exposed to PHP userland…
 
@bwoebi ugh
Compatibility with pre-5.6 can go F itself, if that's the result
 
agree.
 
Now, anyone who tries to force TLS will end up actually forcing TLS 1.0 ...
 
11:48 PM
@NikiC which is exactly what happened to Daniel and now to me…
 
okay, I understand changing SSLv23, BUT WHY CHANGE TLS ?!?!?!?!?!??!!?!?
 
hmm
 
bah
 
this was changed in a 5.6 minor… can we revert it too for next minor? :-)
after all this bugfix was definitely a not valid BC break inside 5.6, we definitely should revert that!!
 
we should add ::function which would do exactly the same thing as ::class
because you can already use the latter where you want the former but it feels wrong
 
11:53 PM
@Andrea no you can't...
they have different aliasing tables
 
they're equivalent unless you want global fallback
 
no they're not
 
well they are except different aliasing tables though… so nearly the same, just different ht…
(you mean use vs. use function, right?)
 
yes
 
Abe
@Andrea or Stuff::&method $stuff->&method as in groovy. but i would prefer php having class symbols referring to either methods or fields, not both
 
11:58 PM
nite
 
Abe
unfortunately i don't think that will happen any time soon :B
 
@bwoebi oh right...
I'd never thought about use, silly me
 
00:00 - 14:0014:00 - 00:00

« first day (1856 days earlier)      last day (3107 days later) »