« first day (1033 days earlier)      last day (3900 days later) » 

12:00 AM
Either way, just skimming the document really, I could already reiterate his MVC WebAPI intent and stops along the way because it read so easy.
I like it. Actually, it sort of inspired me; I'm working on a .NET app but it's becoming a beast (and it really hasn't grown from inception yet) and I think this approach will help streamline alot of the "flub" that's been accumulating.
 
it's probably the only decent implementation worth looking at :) and one of the best references on the topic, apart from the original book and c2...
 
Anonymous
1:05 AM
@igorw Not sure, if you are still here. But, I was trying silex, found the same error as mentioned in here Anyway, that "EDIT: as of now, there is" may not be accurate afterall.
 
Anonymous
because, I used composer to install it.
 
@Simon_eQ I used Composer to install and develop a Silex app over the weekend
Had no autoloading problems
 
Anonymous
@cspray I'm not sure of what I have done. But, its the same error. Anyway, I'm downloading the file manually.
 
Anonymous
Yep. Manually, It works.
 
user895378
1:17 AM
For the love of god will someone please apply appropriate up/down votes on these reddit comments that are flat-out wrong.
 
whats the correct syntax for update with an insert on duplicate key i tried this:

INSERT INTO users (quantity,id,uid)
ON DUPLICATE KEY UPDATE
q = q + ?, id = ?, uid = ?

But its not correct
says access violation on line 2 ON DUPLICATE KEY UPDATE
 
ARRRGGGHHHH! How can people write code this horrible?
 
looks like javascript to me
oh this data:<?php header('HTTP/1.0 404 Not Found');exit;echo 'Ok'; ?>
 
@Dave Look closer
 
never mix client with server code in my view
 
1:34 AM
@DaveRandom Actually, my patch solves that already
/me should read the code better
@igorw :-D
 
user895378
@ircmaxell I haven't personally had much need for that functionality with constants but the others, definitely. Looks great to me. Of course if the idiots on r/PHP can be believed (they can't) I don't know what I'm talking about. So take my endorsement for what it's worth.
 
@rdlowrey they all think this is a good idea... :-P
 
user895378
@ircmaxell Problem is, every single criticism of my lib on that site is factually and undeniable wrong. It's annoying. But people don't know any better.
 
yeah, welcome to reddit
 
user895378
I hadn't ever used it before, but it's a good learning experience. It'll definitely take the edge off of my criticisms of other people's stuff going forward until I've had time to fully verify that my points are valid.
 
1:43 AM
just found an amazing site
flightradar24.com see how many planes are over you right now
if your in usa its probably a large amount
 
What would be better? Directly accessing and query the MySQL database and saving all the info in session variables or querying the MySQL database and saving all the info in an IndexedDB database (client-side)?
 
@TheGuyWhoCouldn'tTalkToTheGirl Why not just have a session handler that persists the session on a database?
Also, I wouldn't store session information that you expect to use on the server in the client
 
@rdlowrey trust me, yes, I know :-D
 
@Dave That's really cool
 
yeh
not one plane over me tho to test if its real
 
2:27 AM
0
Q: Change one image into the multiple images.

affan ahmadI am using form inputs for change images i already done this. Actually this images show on home page as a new titles.So i have URl input fields for changing images link.I am facing problem when i submit only one link then other one is empty so that's why other image src null.Basically i want to c...

 
@Dave pretty awesome. However, if I should believe that site, there are more (active) planes at Schiphol Airport than at the three bigger airports in Europe, of which the two have no airplanes at all!
 
user652649
evening
 
user652649
or i should say morning?
 
Hey, so i'm trying to build a query like: SELECT ... WHERE `to` = :to. Naturally this would work, however, sometimes to will be null. We can fix that with a simple OR `to` IS NULL, but I only want OR `to` IS NULL to evaluate to true if :to is, in fact, null also. Any ideas?
Solved with: WHERE (`to` = :to OR (ISNULL(:to2) && `to` IS NULL))
 
user652649
2:53 AM
@Jeremy sadly you can't, it's a fail
 
@Wes Why?
 
user652649
you have to create a SQL specifically for checking NULL
 
@Wes ...what do you mean? Take a look at my solution.
 
user652649
ok
 
@Wes Basically what I'm saying is: look where the to column equals whatever.... OR if the parameter to is null, it's okay for the to column to be null...
 
user652649
2:55 AM
i didn't read you found a solution, it's a fail anyway though
 
@Wes I wouldn't say so :P
 
user652649
i think mysql is the only who evaluates NULL like so
 
user652649
other dbms work correctly also with =
 
@Wes Are you sure? Null doesn't equal null, so that'd seem unlikely to me
 
@Wes what do you thing about using phph +mysql +websockets to build large poling application ? i mean those combination is good or bad ?
 
2:58 AM
hi @all
 
user652649
@Jeremy i'm not sure indeed...
 
@PrincewillObinnaIwuorie hey
 
i have a couple of questions and i have reached rock bottom cause a new to php
basically i have an android app and a php server
both work fine and all
but i decided to add a bit of security
so did some looking around and found i need to use https
more like ssl
 
@Jeremy

coalesce(`to`, '') = :to should work as well
 
i installed the ca cert and key on the server
 
3:01 AM
@Orangepill Alright, thanks
 
and i can access my server via https via a webpage at least the localhost
 
user652649
@Orangepill what's that?
 
@Wes total-knowledge.com/~ilya/mips/ugt.html (man, it took me long to find what the abbreviation was again)
 
user652649
ah, cool @Orangepill never heard of that
 
@Wes coalesce returns the first not null value in the supplied list... so it will get the value of to if it is not null and and empty string otherwise
 
user652649
3:03 AM
yes, very cool :P
 
my question is do i need to do some additional code to enable https when accessing my server from my android app(i know on my android app i need to change some codes) do i need to change anything on my php code?
 
@PrincewillObinnaIwuorie The request is from your app, to the server?
 
@Jasper I like that one
 
@PrincewillObinnaIwuorie And your asking whether or not the request need to be specialized in anyway?
 
3:05 AM
i know the request needs to be specialized
 
@PrincewillObinnaIwuorie "do I need to change anything on my php code?" That's a loaded question. Considering you're only now bolting the security on at the end after everything is done and fine then I would venture to say: yes, you probably need to change some things in your PHP code
 
@PrincewillObinnaIwuorie as far as to support ssl nothing has to be done in php except maybe ensure that the request is arriving via https.
 
@PrincewillObinnaIwuorie If you hover over a chat message, on the left there's a little return arrow. Click it and it'll add an ID to your message that'll ping whoever you're responding to
 
@cspray @Orangepill how do i ensure the request is arriving via https
sorry am really confused
 
3:08 AM
@PrincewillObinnaIwuorie this should help you out there, assuming you are using apache.
 
@Orangepill thanks
is that all i need to do on php side
just ensure the request is https and and ste the connection to secure?
i had a felling i had to write some specialized class
 
If say my homepage shows by default the most recent articles, but also /recent does too, does having both / and /recent in my sitemap which both serve the same content hurt my SEO?
 
@PrincewillObinnaIwuorie to support ssl ... yes... but as cspray stated ssl will only secure the connection ... you still need to make sure to filter and sanitize user inputs
 
that i have done already with prepared statements
 
@crypticツ You might want to look into a canonical meta header on your pages if they can be accessed via multiple urls
 
3:14 AM
@Orangepill what other security options do you think i should look at in addition
 
@Orangepill I have the canonical meta header on the pages, but it basically sets itself to the the current route
 
> The other major issue with site search and dynamic content is that they both can introduce duplication. Site search is infamous for creating infinite variations of pages with the same content but slightly different URLs. Dynamic content can cannibalize a site’s ‘natural’ pages by creating slightly overlapping topical themes and keyword targets that compete with each other. We’ve seen both cause problems. (rimmkaufman.com/blog/site-search-dynamic-content-and-seo/…)
 
@crypticツ if both the routes result in the same uri then you should be good.
 
> Rel Canonical: this is your go-to for everything duplicate content. Rel canonical tags work much like a “soft 301″ and will appropriately pass equity while removing the duplicate URL from Google’s index. Bing follows these clumsily in our experience, and as yet still doesn’t support them cross-domain. On the downside, anything annotated with rel canonical must be crawled to be counted: this does nothing to make search engine crawling more efficient.
(same link)
 
3:17 AM
@PrincewillObinnaIwuorie like I said... never automatically trust anything coming from userland... always filter and validate the data.
 
user652649
@crypticツ you have the same contents on two pages?
 
@Orangepill thanks a lot
 
@Wes I thought her explanation was pretty clear... It's dynamic content, so it's a different situation
 
bleh, ok looks like I'm going to have to allow view to accept an override for it in case I have such an instance.
@Wes yeah the default content showing on / is the most recent articles, which can also be accessed via /recent. I have /popular /trending etc.. as well
 
user652649
make one page print only the link, or link plus the summary, and the other page the full article
 
user652649
3:19 AM
on the most specific page use <article> otherwise <section>
 
user652649
also schema.org would help google identifying page's meaning
 
@Wes I want to list the links with excepts, and then clicking on the link will take you to /article/articleID
 
user652649
also, chill @Jeremy
 
user652649
use <section> on the links list, and <article> on the actual article page
 
@Wes I wasn't to come off as edgy :P sorry if I did
 
user652649
3:23 AM
ok, no prob :P
 
Now the question is which should be the canonical uri between the two?
 
user652649
no need for canonical, one page is a links list, the other one is an article
 
hello people
$match=$this->input->post('where'); $sess =$this->session->($match);
why is this code not setting the session brothers?
 
3:40 AM
@Rozer are you using some library which you're not telling us about?
 
@Rozer $this->session->($match); should be $this->session->{$match};
 
i'm using codeigniter @jasper
 
Or are you just trying something random instead of looking up in the manual how you should do it?
 
tring ur code it gives "undefined offset" error @Orangepill
 
@Rozer what is $match in that case and does that property exist on $this->session
 
3:44 AM
match is an input @Orangepill i guess it doesnt exist in session with these code
 
How do I get http://example.com/ in Twig? I've had to resort to just printing out the root route using url() =o(
<link href='{% if canonical is defined %}{{ url('posts_index') }}{{ canonical }}{% else %}{{ url(app.request.attributes.get('_route')) }}{% endif %}' rel='canonical' /> is my Twig code for allowing me to override the canonical URL on a case-by-case basis. Working great, but there has to be a better way to get the site's absolute path than getting the route for the root directory.
 
J L
4:05 AM
anyone interested in helping me with a CSS issue?
 
@JL Shoot
 
J L
@Orangepill mozzor.com examine the header...circular icons contained in <li> elements that stack horizontally (as desired)
then try shrinking window size by 50%....a gray square appears at the top (bootstrap navbar-collapse) and now the <li> are vertically stacked (undesired)
 
@JL Try adding

.nav-collapse .nav > li {
float: left!important;
}
 
J L
@Orangepill thank you sir!
 
or just change it on line 987 in bootstrap-responsive.css
 
J L
4:14 AM
i try not to edit bootstrap
 
@JL The color picker in the header is pretty snazzy...
 
J L
@Orangepill thanks, i have the docs on the site as well
@Orangepill it was just a little fun project i did
 
user652649
does anyone know if functions like readdir or glob return predictable ordering somehow? or they are just random() ?
 
> The entries are returned in the order in which they are stored by the filesystem. - php.net/manual/en/function.readdir.php
so they'll probably be in the same order each time as long as nothing is changed, but in the end, it's up to the OS
 
4:29 AM
@Wes glob should be returning in alphabetic order unless you have GLOB_NOSORT passed into the flags
 
user652649
@Orangepill ok, right, thank you... i didn't check indeed
 
4:45 AM
morning all.
 
user652649
5:04 AM
morning
 
user895378
 
morinin
i'm trying to set session for the post in codeigniter
  $match=$this->input->post('where');

          $ses =  $this->session->userdata($match);
why is my this code not working??
 
user652649
@rdlowrey i would have added "BITCH PLEASE" also
 
user895378
@Wes I probably should have.
 
user652649
xD
 
5:26 AM
@rdlowrey I'm feeling it's really more of a case of "feeding the trolls" - perhaps not the intentional trolls, but trolls nevertheless. You can probably find a better use for your time than continueing "discussions" over there.
 
user895378
@Jasper Nah, not really. I hadn't looked at it since I first posted it. Jumped on reddit 24-hours later to find a bunch of idiots making things up. So I responded to those. I'm finished now.
 
Disclaimer: I am terrible at distancing myself from a discussion like that when I'm in it, so I know how hard that can be (and in a way, pointing it out when someone else is doing it may be considered hypocritical, but I'd like to improve my own handling of such cases too, so I'd say it's not that hypocritical)
@rdlowrey Ah, ok. It looked a little like overreacting (not so much in the traditional snese but in the web sense, if that makes any sense) to me, seeing how much more you wrote than the other people and how you seemed very much emotionally involved in the discussion
 
What does auto_increment_increment
?
 
does that answer your question?
 
5:43 AM
anyone can help me for whmcs.. when i set create Announcements in whmcs and go in Announcements page and view this Announcements then don't show that id number...
 
JSP page uses this tag <%@ page autoFlush="false" buffer="2056kb" %>
I want to know if it is required to add this tag ????
 
user652649
guys an english question... which is correct to say ParsersList or ParserList (it's a class name) I always forget -__-
 
@Wes ParserList
@DextOr I'm afraid you're in a rather poor place to get JSP help...
 
user652649
it's the case also of other "collection" words such as Collection, Array, Vector, Dictionary etc (less english there) ParserArray or ParsersArray ?
 
5:59 AM
@Wes All singular. So, ParserArray, ParserCollection, etc. There might be cases in which plural isn't incorrect (not entirely sure about that, though) but singular is just about always better
 
user652649
perfect, thank you ;)
 
6:26 AM
morningz
 
@JoeWatkins good morning
 
@NullPoiиteя morning
 
why people are making such awesome design .... :(
 
@rdlowrey say what you gotta say and get outa there seems to be the best way to handle reddit ... it's not just stuff we "shouldn't" be doing everyone has an opinion about, I posted about APC the other day only to have people start telling me how it works and how to use it ... say what you gotta say and get outa there :D
 
Anyone know how to get day by day unique visitors from google analytics api
 
6:37 AM
 
he's got old, very quickly ...
doesn't he just look fucking knackered ??
 
@JoeWatkins although he has control over worlds strongest army ... and ruling worlds strongest country :P
 
@NullPoiиteя are you american ?
 
@JoeWatkins nahh :) i am not (a)merican
 
whenever an american is feeling proud about the status of their country on the world stage, they should consider how they got such a reputation ....
 
6:43 AM
@gowri it's more involved
 
@JoeWatkins most of people used to forget about past ...
 
@gowri the properties in the APi you are looking or are ga:visitorCount = 1 and ga:visitors
for each day
 
they are likely not educated, or old enough to remember ... or ignore it ... the only reason they have a fierce military reputation (which everything rides on the back of) is because of the atrocities they committed in world war two, tricking brilliant men into mass murder, not the actions of a nation I afford any respect, whatsoever ...
 
Morning
 
@Leri Morning
 
6:46 AM
@gowri wait, i'm dumb; ga:visitors is the unique visitors
ga:visits is total
 
@NullPoiиteя How are you? Have not seen you around for a while.
 
@JoeWatkins I respect people, not the nations they are from.
 
@Leri i am good .... just got job and preparing for other job so busy now a days
thankyou ..
how are you ?
 
of course of course ... all men are made equal ...
 
@NullPoiиteя Fine, thanks.
@NullPoiиteя Congratulations. Is it interesting job?
 
6:51 AM
...
 
but it doesn't stop me recoiling whenever I hear talk of America as a some kind of super power, it's a reputation they do not deserve ...
 
@Leri naaaa not a bit ... i have not more than 1 hour of work per day .. :)
whooo flagged it i am kidding :P
 
@NullPoiиteя It's interesting. Real-world commercial projects are always so boring... So you have time for interesting projects.
 
@Leri i just joined job since they pay good (according to india) and there is no(little) work ..... and yes i have lots of time
 
yelo :p
 
6:55 AM
@Hiroto imho people who have constructive thought should be respected ... i dont respect any extremist :)
@AlmaDoMundo hiya
 
@NullPoiиteя Are you working for government? In countries like India, they pay well, AFAIK
 
@NullPoiиteя I reserve judgement until people do something deserving of punishment from a moral standpoint, meh
 
@Leri yupp .. and lots of leave (5day week + 55 full pay leave )
 
55? wow
 
wait, 55 days of holiday?
holy crap, I get 28
 
6:57 AM
@NullPoiиteя Are you in heaven or what? :p
 
@Hiroto I have 31 :p
 
:(
 
@AlmaDoMundo I have only 5 and can't even take them. :(
 
relax, last time a was in vacation hmm... about 5 years ago
 
@Hiroto even i come back to home just after 2 hour from office .. so i do work not more than 10 hour per week ... :D
 
6:58 AM
monday-friday, 9am-5pm :<
oh, and i'm a PHP developer who codes in C# and has been asked to work on an iOS app. fun!
 
@AlmaDoMundo whoot .. i would rather do my own business instead that job which dont have weekend
 

« first day (1033 days earlier)      last day (3900 days later) »