« first day (1930 days earlier)      last day (3240 days later) » 

00:25
haha. Someone (asking for free code translation service) said "this code is blove" (typo of below". Someone else commented "this code is blove" and as we all know, "blove" is the past participle of "to blave", which means "to bluff".
@jbafford I think it was meant to be "blow"
Are there any MIME specialist that can help me?
0
Q: PHP upload fail for some PDF files

JamesI have a application that allows upload of PDF files and compressed files (zip, rar, tar, etc...). I'm using this list of MIME types as reference to check the type of the files. Here is PHP snippet for upload: $finfo = finfo_open(FILEINFO_MIME_TYPE); $check= finfo_file($finfo,$file["tmp_name"])...

@James allowed mime types can be set in the HTML tag
@tereško that's only an advisory, though. Server still needs to validate, and really by actually verifying the content is what type it's claiming to be.
true .. you can always do a live-edit for a HTML
00:31
@James you wrote the following logic:
if(stuff) { echo 'this is an error';}
//Now continue along anyway
@jbafford Please format your code - hit Ctrl+K before sending and have a look at the FAQ.
@James you might benefit from in_array() ... also what @jbafford said
@jeeves - probably ought to have more than a few lines of code before saying that. /cc @PeeHaa
@tereško I think that it would help to the readability of my code, but will not solve the problem...:-(
@jbafford This is not the problem, I adopted the code to post in SO, in the real code I echo a json array and call this using AJAX, so the echo send the message and exit the code.
00:50
@James you should update your code in your question, then, so that people don't get led off into the weeds by a transcription error.
I'll keep trying here...Thank you guys for the help anyway...
@jbafford Thanks for advice. I'll update the code
01:40
wow - status.github.com is down also.
GitHub should change the unicorn to this guy when things go terribly wrong. #githubdown https://t.co/y750BUEpaA
6
hey, i see this on chrome in my website s28.postimg.org/c2j9canot/… and I have no idea what that is. Is it a virus or what? Thanks
and now I see the same thing from tidaltv.com
what are these?
02:09
my mamp localhost is able to send email but I have no idea why.
what steps should I take to find out the reasons?
I check my php.ini but it is not configured to send emails at all.
hello
02:37
so .. let me check, if I got it right: your problem is that MAMP is able to send emails?
why is it a problem?
because the last i configured was a few months ago and it didn't work
i reverted everything back
now i am just curious what are the causes that my email works again
.. and now you want one of us sacrifice a goat and scry in it's blood? ... of course you do
I am asking for possible reasons, which i can google more to find out on my own
currently the one of the possible reason which is the configuration at the php.ini wasn't the case
03:21
@tereško thank you for putting my thread on hold
now to let you know, it is needed to put the whole code in it to show you all how I needed the help
the items now updates every page, but the highlight on the page numbers are random
if users click on 2, the highlight will be on 5
03:32
it's not a question but badly defined requirements
hey, what would you do if you get 1k lines of code (mostly nested -very nested- if else blocks and sql queries) that's used to shortlist users sorting by 23 variables... and you have to debug it and make it work in 8hours
04:17
its a question, I was asking for why it was showing same results on every page so I can fix it
but instead, you helped by putting the thread on hold
04:48
@Cisco1991 no it WAS NOT A FUCKING QUESTION. You just dumped some code and wrote "make it work like this"
here is a free hint: in english question end with a fucking question-mark
so have you created a new thread yourself just to throw a bunch of codes?? thats why you think of it that way
useless talking
codes wont work with your talks
-1
down vote
favorite
Need help fixing my pagination. I have limit of showing 5 rows per page, and everytime I go to next page, it only updates 1 row at the bottom instead of showing 5 new items per page.
You put it on hold fucker for the fucking reason:
"Questions seeking debugging help ("why isn't this code working?") must include the desired behavior, a specific problem or error and the shortest code necessary to reproduce it in the question itself.
Does that not give you the fucking problem stupid piece of shit
I feel like I just witnessed a meltdown
what happened teresko??
I have a question about the get method, if I send some form input using get and want to display it on another page would I just echo get and the name of the form I want to print?
Seems like teresko is on fire these days ;)
naah, I am just really bored
@StanleyDharan if you set the method to "get", then the submitted field end up in $_GET array
you can do a var_dump($_GET) to see how the array is actually structured
05:21
oh you cant do echo $_get[formName]; ?
not the form's name
in your particular example it would be $_GET['firstName'] (the uppercase variable name is kinda imporant)
oh and thats all I'd need to do to display the name?
probably
but you really should try getting a good book
I would recommend torrenting this one somewhere: wrox.com/WileyCDA/WroxTitle/…
I was recommended something called SAM?
"SAM" can mean 100 different things
I just had flashbacks to Symantec Anti-virus for the Macintosh
@StanleyDharan I will give you a good rule of thumb, that you can use when looking for books in programming: if book's title contains either "and" or "&", there is high chance of it being shit
05:52
@tereško good to know, I will keep that in mind, I want to find a book thats easy to read from, I dont do well reading out on manual type books
morning
just ate a perfectly ripe avocado. those are like... the greatest fruits
06:09
meh
Cooked a bit in the oven, with balsamic vinegar and some salt flower would have been even better, I'll agree
I only consume avocados as part of something else, like guacamole and lavash wraps
guacamole burritos. just found my tomorrows goal
there's this nearby latino grocery store, with fancy spicy jalapenos.
I really need to get a job soon .. I am starting to run dry on my savings
send the cv!!1
and mornin
06:15
I must really suck at programming. I've been employed at the same place (not a programming company) for more then three years, developping their on place managing application.
@SergeyTelshevsky I will, I promise :D
which makes me wonder how @tereško can be unemployed.
I mean, there is no way you can't find some dude who need a simple website.
because I am lazy as fuck
since I started "looking for work" I have sent one job application
what question are asked generally in interview??
do they give you to code
at my level, they ask shit like why don't you use wordpress and why would you use sass or less
and or wouldn't
how to manage databases in case of huge load
06:28
once I was asked: "why are manhole covers round?"
easy
that's not even programming :p
@tereško not once have I heard these types of questions :)
I got that one around 2011th .. the freelance gigs unexpectedly dried up and I had to find money fast
did like 8 interviews in 2 weeks
most of those place where horrifying or located on completely different end of city
Hey guys roughly what is the cost for a simple business website, no login, or back end?
you mean something like an online business card?
06:36
kinda. displaying products, but with a phone number for a quote.
so no online purchasing.
depends
i'm just looking for a rough idea.
do you also have to arrange a designer?
@PeeHaa Code format should be stricter now and requires at least 3 lines of code without natural language.
@tereško well that's all it will be, just a nice looking website.
06:39
@AboutLeros exactly 100% of the time where I tried to do something like say a quote, I was wrong. Clients actually do not know what they want, and the only way to not be paid 6 dollars an hour is to have them know their change of idea means something.
development itself usually costs 20 - 50 euro per hour (if you hire a freelancer)
Normally i would agree, but this client knows exactly what they want.
@bwoebi As long as Aerys dumps exceptions in debug mode, -d is never fine in production. We should really disable exception dumps.
so, if you estimate, that site can be made in 2 weeks, then it's 12 days x 6 hour x 40 euros
depends on how much you ask per hour and your schedule
@tereško so 2,880
06:42
that's a mathematical estimate
yeah just rough idea.
I went with 10 days to actually work, 1 day to deal with bullshit and 1 day to deploy
@tereško hahaha :D
@PeeHaa I'm still not sure why this happened, but should be fixed as well:
10 hours ago, by Jeeves
@AboutLeros Please format your code - hit Ctrl+K before sending and have a look at the FAQ.
@AboutLeros if you live in eastern europe or poorer mediterranean countries, you would be asking closer to 20 euro/h
06:44
Oh, because of the edit. Fine then, he was actually right.
@kelunik are you speaking by yourself, or am I missing some messages?
@FélixGagnon-Grenier @PeeHaa Is pinged, he will read those later. :-)
yeah, that part I think I got
:p
@tereško Good to know thanks.
06:46
Just read the messages yesterday in my notifications and was too lazy to respond, so I'm doing it now.
hmmyah, I think my mind just wrapped around the possibility of someone answering multiple messages without actually pinging someone each time....
nn php
user924016
07:03
Mornings
0
Q: SSL23_GET_SERVER_HELLO:sslv3 alert handshake failure Paypal adaptive payment

ShijinThe bellow is my curl config of PPHttpConfig.php for paypal adaptive payment SDK, public static $DEFAULT_CURL_OPTS = array( CURLOPT_SSLVERSION => 4, CURLOPT_CONNECTTIMEOUT => 10, CURLOPT_RETURNTRANSFER => TRUE, CURLOPT_TIMEOUT ...

any clue?
07:20
😂😂😢😄
Hello.
 
1 hour later…
08:36
@Patrick well ... you probably should watch this one: yow.eventer.com/yow-2013-1080/… ... there are some issues with the talk you linked
also his take on MVC is really strange
Good morning peeps.
@PeeHaa Yup, see message below. ;-)
08:52
:)
Hi @room
Morning all
Morning everybody.
Got any Symfony devs here?
Got a quick question - I'm origionally from CodeIgniter. In CodeIgniter you can pass an instance of your app by using &get_instance(). I need to connect to my database in my package.
Anyone know if this is possible?
Wes
Wes
\o
08:56
@CiaranSynnott use dependency injection instead
Good idea!
I will give that a go Florian
Cheers @Flori
Good Morning, a very quick and idiotic question. When it says on php.net that a function is supported in (PHP 5 >= 5.3.0, PHP 7), is that anything OVER 5.3?
@Lishamatish 5.4, 5.5, 5.6
5.3 and 5.4 are EOL, ftr.
Thanks! Im'
over or equal to (so inclusive of 5.3)
09:02
I'm just trying to use openssl functions in PHP 5.3.2
Well, I am trying to get some developers to and they are saying PHP doesn't support them
Payment integration with Close Brothers
The docs use openssl functions and my devs seem reluctant to find their own workaround
Wes
Wes
@FlorianMargaine @Oldskool apparently the java memory thing worked! :B thanks
@Lishamatish can't they use the openssl functions?
!!urban ftr
09:04
[ FTR ] For The Record.
@Lishamatish And you seem reluctant to use a supported version of PHP. ^^
i am going to play with jeeves someday :D
/me is waiting for @Jeeves to grant me the ability to punch people in the face over standard TCP/IP
@AnmolRaghuvanshiVersion1.0 :-)
34
Q: Punch a user button!

Manishearth Gotten frustrated with a user? Want to vent? Feel like punching them? Don't worry, here's a script that adds a "Punch" button to every gravatar. You can punch all the worst users now: Installation Click here to install. Will work in Chrome or Firefox (the latter requires Greasemonkey). S...

09:09
@JoeWatkins sorry, only possible with IMCP, but don't ask me how!
using rfc 1149 for that would be more entertaining
@PaulCrovella that's outdated… use RFC 6214
Wes
Wes
aw. slow internet today
!!urban PeeHaa
whatchoo talkin bout willis
09:13
@bwoebi until more pigeons are updated with ipv6 support, i'm sticking with 1149 (or 2549 for qos)
@bwoebi did you mean ICMP?
@FlorianMargaine I get it always wrong :-/
@FlorianMargaine They are telling me that the openssl functions are not supported in PHP 5.3 and I cannot upgrade at this time. Trust me I want to but we can't do this immediately
@bwoebi Just say the whole word in your mind, not the abbr.
@kelunik I can't at the moment, it's not viable
09:20
if anything is really not viable, it should be an unsupported version of php
@Lishamatish let me say that another way: php 5.3 and 5.4 are not getting any security fix
@kelunik I had internet message control protocol in my mind ;-)
I don't even know what ICMP means
except "PING"
hi
how to run the laravel existing project in windows local
i'm using xampp in my system
Morning 11
09:27
i want jeeves to automatically add to my tiny avatar list based on an accumulation of keywords.. basically turn it into a spam filter
@PaulCrovella laravel -> tiny?
not on its own, but I'd consider it in the heuristic
moin
@PaulCrovella hehe :)
Hey Guys! How are ya all?
09:40
@tereško it happened 6 months ago.
and nobody cared.
@tereško Best / only thing you can do. Close + lock
why do you care?
Can't wait 'til my hoodie arrives.
ok, time to find my pants and go shopping
Wes
Wes
09:46
what's "pants"?
!!urban pants
[ pants ] rubbish, no good, bag of shite
Wes
Wes
:P
lol
Hello
Somehow I feel like Jeeves should have some abuse protection :P
09:48
well, it could use some spam protection
but that's about it
you really wouldnt want to censor it ... unless you intend to pay someone a regular salary for maintenance
Wes
Wes
ERR_SOCKET_NOT_CONNECTED stupid chrome
@Sean I wanted and still want to give regulars in here the ability to ban specific users from using it
@PeeHaa Yeah, that's what I'm hinting at, not to censor results or anything like that
!!ban PeeHaa
just remembered about this pic:
09:49
@PeeHaa I first read that as giving us non-owners the power to kickban people ^^
:P
!!vote kickban @peeHaa
yea^^
5-strikes and you're out
3 are enough :-P
Wes
Wes
09:51
5? too much democracy :P
Base it on the % of active users :p
active regulars
reminds me of: bash.org/?362137 (also, I apologize for drop in productivity for news 30min)
5
@tereško lol
.. yeah, I'm old. I have been on the internet for 12 years now. That's like 60 in normal human-years.
hey, that's about the same as me
how old are you?
10:00
@tereško LOL
you've seen some shit
@tereško My god, only 12 years? Thanks, I feel ancient now with my 20 years of internet history :(
Anonymous
In order to use more than one model in a controller, is the $uses var still supposed to work in cakePHP 3 ?
you lived in time of usenet, you are ancient
@tereško I did, I just missed the BBS era though, that's a shame :(
@Jay I believe it's replaced with api.cakephp.org/3.1/…
@Jay Yep, seems like it: book.cakephp.org/3.0/en/…
one day I still want to run a bbs on my cell phone that you dial into
10:05
I really miss times when IRC was popular
Anonymous
@Oldskool Argh, how did I miss that. Thanks for your help!
@Jay No problem. Although in my experience when you have the need for multiple models, it's usually better to create a separate class that gets the data you want (like a component or helper), rather than mixing models in your contoller.
Mixing models can get real messy real fast.
@SergeyTelshevsky emm ... IRC is still popular
I am currently in 6 different channels on two servers
@tereško Well, "popular" might be a bit of an overstatement. But it's still being actively used, yes.
Anonymous
@Oldskool So if it's because I want two different controllers to look at the same table, I should create a separate class with a method to just return the data from that table?
10:09
mornin'
@Jay In that case you might want to wonder why the action that taps into the other controllers' model is not in that controller itself.
@tereško if you know what to search for, you can find some of my usenet posts :(
Anonymous
@Oldskool Well I have two controllers, one for back-end and one for front-end. The back-end controller is an admin UI for a user to edit database entries, whereas the front-end controller is used to just display this data... Is this the wrong way to go about it?
@bwoebi Neh the only privileges elevation I want is for pinning / starring I think
10:24
@tereško is there at least one not related to IT?
@SergeyTelshevsky why would there be?
@PeeHaa :-P
:-)
@Jay Yeah, it's cleaner to keep all logic together. Wheter or not it's backend of frontend doesn't really matter for that case. You can use prefix routing to make the backend actions stand out from the frontend ones though: book.cakephp.org/3.0/en/development/routing.html#prefix-routing
Anonymous
@Oldskool Bollocks, I thought I was on the right track :/ Alright time to do some reading. Thanks for your help Oldskool, appreciate it.
@Jimbo monring
@Jimbo o/
10:46
Does anyone else wish we could do !instanceof ?
@Leigh What do you mean? You can.
if (!$object instanceof Object)
Without !($x instanceof blah)
you need your ! on the outside of the parenthesis :)
@Leigh No you don't. 3v4l.org/XPDIi
Wes
Wes
instanceof has precedence over !
@Leigh but i agree this would be more readable
grumble, why have I thought it needed to be outside of the parenthesis all this time
10:50
Yeah, I've also come across the situation a few times where I'd prefer a !instanceof or even something like 'notinstanceof'.
But I guess this will have to do for now.
Wes
Wes
@Leigh it's ok. i learned this recently too :P
@Leigh because you write sane things by default that don't require looking things up on the precedence table
It's probably a case of "I just saw someone else do it that way a long time ago" and picked it up
It still does the trick either way :)
sure, thanks :) the day I stop learning things I should probably just quit life
10:53
absolutely, you should never stop learning
especially not in our business, but basically not in life as well
there's always something to learn somewhere that develops you as a person
Wes
Wes
!instanceof would be good to have though, it's more readable
unless ($x instanceof blah)
@Leigh JS requires it
Wes
Wes
after all we have $a != $b, not !($a == $b) just because it's awful
:P
@Wes Agreed, would look cleaner.
10:55
@PaulCrovella I'd love having when/unless.
!!xkcd 10000
@PeeHaa :(
they're definitely not up to 10000 yet...
Saying 'what kind of an idiot doesn't know about the Yellowstone supervolcano' is so much more boring than telling someone about the Yellowstone supervolcano for the first time.
5
@Leigh what I wanted ^ :)
@FlorianMargaine Does it haz api?
That's an api too I guess :P
10:58
apis are sorta like dildos - everything is one if you try hard enough
^ looks like you're experienced in that
well that was easy
$ sapi/cli/php -r '$o = new stdClass; var_dump($o !instanceof stdClass);'
bool(false)

diff --git a/Zend/zend_language_parser.y b/Zend/zend_language_parser.y
index 49027b7..51c4e8d 100644
--- a/Zend/zend_language_parser.y
+++ b/Zend/zend_language_parser.y
@@ -934,6 +934,8 @@ expr_without_variable:
                        { $$ = zend_ast_create_binary_op(ZEND_SPACESHIP, $1, $3); }
        |       expr T_INSTANCEOF class_name_reference
                        { $$ = zend_ast_create(ZEND_AST_INSTANCEOF, $1, $3); }
Why the hell does explode generate an extra "" entry Oo?
I'm going crazy :\
@TiagoMatos Because you have an empty value at the end of your string probably?
@Oldskool it adds the "" as the first entry
My string is: /Home/Index
I'm exploding /
11:06
Of course it does, there is a "" before the first "/"
@Leigh would it need an RFC?
@FlorianMargaine probably, language change so 2/3 too
Hi all
I'm trying to dive into void return type, can someone say, is void introduced as a new builtin type? //cc @Andrea
@zaq178miami it's just a return type.
11:12
so return type received will be reported as a builtin in void function reflection?
probably it's better to check on 3v4 (which doesn't support bleeding edge master)
@Leigh Thank you.
@TiagoMatos You can trim the input to make sure you don't get empty strings at the start/end of the output.
That's exactly what I did :)
figured it out - it interpreted as a regular builtin type (github.com/php/php-src/commit/…)
I was thinking that the "" was coming from another place.
@PeeHaa In continuation of the UI conversation, the resizing of the chat's input box is quite funny also :P
11:21
:)
11:36
hi everyone
I need a hint here
pointers
Doesn't foreach make a copy of the array
i guess not
I mean it won't work because the second time you call the closure you're passing the copy
Unless you're getting an error?
no error
but then, how can i use the second form passing it as a pointer
@Azevedo i) please use 3v4l.org to show code running ii) don't say "doesn't work". Say what result you're expecting, and how what you're seeing is different.
11:39
@Danack thanks for the tips
You can use foreach to modify the original array by setting it up with a reference like foreach($foo as &$bar)
@Sean you got it!
foreach($myarray as $key => $element){
foreach($myarray as $key => &$element){
thanks!
so foreach() do make a copy (!)
The reason it wasn't working is because foreach makes a copy of the array you pass through. The first call to the closure, you pass the original array's value, the second time you call your closure, it's affecting the copied value instead, not the original.
(Please call me out if I'm chatting bollocks). Your code works, but the second call never touches your original array variable, so the array is never changed.
I've always been told passing by reference is a really dirty thing to do, so try to avoid it if you can
11:53
941
Q: How does 'foreach' actually work?

DaveRandomLet me prefix this by saying that I know what foreach is, does and how to use it. This question concerns how it works under the bonnet, and I don't want any answers along the lines of "this is how you loop an array with foreach". For a long time I assumed that foreach worked with the array its...


« first day (1930 days earlier)      last day (3240 days later) »