« first day (833 days earlier)      last day (4130 days later) » 

9:00 PM
I have a weird problem with google contacts importing
need some help
0
Q: Error in importing google contacts

user2003663I am using this to get all gmail contacts from my id something@xyz.com: Import Gmail or Google contacts using Google Contacts Data API and OAuth 2.0 in PHP However, I get only 30-40/300 contacts displayed. And when I set the max_results to very high value, i get an error: Fatal error: Uncaugh...

 
@user2003663 , you should investigate what is contained in the XML file that you receive
the exception indicates that the XML file is malformed
 
but then how is it working for 20-30 contacts?
 
well .. investigate
Also, why use XML? I am quite sure that google can provide you with perfectly fine JSON
 
No need for XML here...
@tereško Suggest me a web page design :P
 
9:15 PM
table realtime framework method wrapper
 
can you guys provide me with a sample using JSON.. i am new to this
 
then learn php
@webarto , what would be your target audience ? And what's the site about ?
 
India :P
@tereško I don't really know, I want to put something there :\
 
well .. the current version will be hard on people with motion sickness
 
@tereško 2advanced.com/#/home "inspiration"
Although I suck.
 
9:22 PM
though it's pretty enough in 2008th style
 
I'm so passee...
 
user652649
@tereško 2006 i think :P
 
you might find this article interesting : matthewmooredesign.com/almost-flat-design
though i am not completely sure what's it about
... it's waiting in may "to read later" tab group (which currently has 15 other items there too)
 
user652649
the almost flat design is interesting if your site has a lot of contents in the single page
 
@tereško Read it, but... almost flat can mean, I don't know how to design and I'll play it safe... It's totally OK for (web)app UI.
 
user652649
9:25 PM
i don't think it is good for small companies websites... but something similar
 
user652649
maybe some gradient more
 
user652649
it is the best design nowadays
 
I don't like gradients tbh.
 
user652649
very soft ones are good
 
@webarto , you might be interested in mediafire.com/download.php?p3evdf35ys3y1nd and mediafire.com/download.php?4a59basyto57xjh (it's a two-part archive)
 
9:27 PM
Yes, they are first one targeted by beginners... gradient ALL of the things.
@tereško Already downloaded part 1, will do second now.
carnationgroup.com this is too much heh
@tereško thanks btw :)
 
user652649
@webarto do you like dark background?
 
@wes Well for photos, yes... but for text, white is better.
1md.be/about this is good lol
Ah, f* it... it's useless anyways...
I'll just put up... This domain is for sale :D
 
user652649
cssbased.com this was a great site for finding inspiration... now... just try no navigate it... you will love the js... -__-
 
9:49 PM
is this correct syntax to see if row doesn't exist:
if (!mysql_num_rows(mysql_query("SELECT * FROM table WHERE id = '10'"))) { }
 
hello
@teresko i didn't know you spoke javascript
 
cssbased.com's navigation is annoying
 
@bushdiver , don't use mysql_* functions in new code. They are no longer maintained and are officially deprecated. See the red box? Learn about prepared statements instead, and use PDO or MySQLi - this article will help you decide which. If you choose PDO, here is a good tutorial.
 
oh dear
i don't have energy to learn today :( please tell me.. whats best syntax to see if row doesn't exist
oh that's why I keep seeing that mysqli mess.. I kept thinking it was typos..
 
@bushdiver the syntax isn't the problem, more the query. don't mind @teresko telling you to try to learn a new syntax which is truly a component of an entirely new coding paradigm in one day
 
9:54 PM
more the query?
 
see if there is a record with an id of 10, then, if so, fetch it
 
so.. if (mysql_num_rows(mysql_query("SELECT * FROM table WHERE id = '10'"))) { }
 
sure
 
hello friends. Can you help me : paste.ubuntu.com/1574104
 
sure, as in "Yes thatll do", or sure as is "Youre an idiot bushdiver, quit talking"
 
9:57 PM
as someone who's been called an idiot by compuderscending in this very forum, i would never
but you should consider someone's response fully before removing an ! and saying "like that?"
 
ok.. the syntax isn't the problem, more the query. .. i don't know what to make of it.. my query is all wrong?
 
user652649
@Eray why you need it without quotes?
 
Because i'm using it on jQuery's autocomplete. Like this:

$(...).autocomplete(JSON COMES HERE);

it should be like this :

$(...).autocomplete({label: 'test', category: 'category'});
@wes
 
user652649
i don't think quotes are your problem
 
@bushdiver without any code, what is your script asking the database?
 
10:02 PM
@Eray Quotes around the keys are perfectly valid in JS
 
user652649
what is the exact output of the json?
 
@PeeHaa , really ? But it's not working. Maybe there are another problem. I thought it's because of quotes. Pelase give me a few minutes :) I'll try another thing.
 
user652649
did you parsed the json/eval(uated) it?
 
@wes exact output on my paste
no i'm getting it with .autocomplete({source: datas.php})
 
@Eray "it's not working" is never a proper problem description or an error message
 
10:09 PM
@PeeHaa you are right. But i'm checking Firebug console, there isn't any error message. So i'm having problems with finding problem
finaly i got an error message : Uncaught TypeError: Object #<Object> has no method '_renderItemData'
finaly i got an error message : Uncaught TypeError: Object #<Object> has no method '_renderItemData'
I'm using this codes : jqueryui.com/autocomplete/…
 
user652649
 
@teresko i was practically begging you to jump into the OOP discussion in the javascript room
 
 
i am reading a book
 
"Our download sections features items for DOS, Tandy and Toshiba."
 
10:13 PM
i wish i could read
 
"It is physically impossible to lick your own elbow."
I just bought a book today
it has a really stylish (but oldskool) cover - @tereško
@dyelawn well, what do you do in a chat if you can't read?
 
@hakre siri
 
@dyelawn so you want to tell me you can listen only. but hopefully because you're blind and not because you never learned to read, right?
 
nah, as many in this room can attest, listening is not my strong suit, either.
 
user652649
 
10:28 PM
that is an attractive woman. is there something i'm missing in the picture
 
user652649
@dyelawn can you believe that she isn't human... thats a robot
 
user652649
also shes a spaceship
 
that seems more plausible
 
@wes She merely pretends to be one in order to mindfuck the one who tries to capture her...
 
user652649
10:37 PM
i wish she would mindfuck me :P
 
Managed to get PHPStorm to stack overflow \o/
 
@Leigh what do you mean? (more wine, brb)#
 
made it's parser crash
 
@wes @rdlowrey's sister? worked on that show
 
@Leigh really? you mean like a real stack overflow? please paste the code (or link it)
and also please link the ticket if you reported that
 
10:40 PM
@hakre $a = [[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[‌​]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]‌​]]]; youtrack.jetbrains.com/issue/WI-16365
:P
 
user652649
@PeeHaa i don't know who she is... and which show you are talking about :P
 
Fun Fact: FAQ PHP question #1: How to prevent SQL injection in PHP? - 1053 votes
1053 votes. that's more than double the votes of #2.
 
@wes Well she is a robot ;)
 
@hakre Nice one Sir. Thank you for reminding me.
What shall I use to store some user-input config data in flat file, JSON, INI?
 
10:45 PM
so since @teresko is too busy reading, this is a dumb reason to advocate against OOP, right?: github.com/Colingo/populate
 
@dyelawn I really hate it when people put the commas at the start of the line
 
user652649
@webarto maybe you can understand that
 
user652649
 
@Leigh +1 Shoot at sight
 
user652649
json is ok anyway
 
10:48 PM
Anyone know what the max nesting level of arrays is?
 
@Leigh Until lights go out.
 
Hello! I have a question. I have to create a "php server", which can communicate with and "android client" through XML, and also has an "admin web frontend", to manage the database. I just wondering, is it effective, that the "admin web frontend" communicates through xml by sending http request to the "php server" although they are on the same computer, maybe the same apache service, but this is not strict.
I think this may be good, because both client uses the same interface, its better to separate the "admin web frontend" from the "php server". (Is this question better asked on SO instead of chat?)
 
user652649
 
STAHP
@omnosis In current form, your question doesn't make sense.
 
@omnosis No not on the site. Will be / should be closed as not constructive
Also ^ what that guy above me said
 
10:51 PM
@webarto what do you mean? why do not make any sense?
 
@omnosis I'd say that this doesn't really have any advantage and I would recommend just giving the web interface direct access to the underlying storage (eg database).
 
@webarto Actually seems about right, 10k levels nested just fine.
 
Of course, if you want to keep the option open to separate the web admin server from the server that does the real work (the one that has an xml API), you could keep it separated like that, but I think it would be a lot of extra work for little gain and even if you want to separate the two later on, there are better solutions
 
hm, nestign an array 1 mil levels deep takes up more than 128mb of ram
 
user652649
going to bed
 
10:54 PM
@Leigh I think only limit is the memory. There is a limit on GET/POST/REQUEST (max_input_vars), but you know that.
 
user652649
night folks
 
@Jasper is it a common solution to make http requests within php?
It looks kinda weird to me :\
 
@Leigh And how much does million array keys/values take?
 
@webarto I've actually just got the CLI to crash without printing a memory limit error... now I need to reproduce somewhere that I have GDB
 
@omnosis Generally only when the resource you want is on another server and thus you have to do it like that
 
10:56 PM
0
Q: MYSQL Merging tag tables into one

bushdiverI have tables to organize tags.. 3 tables for articles and article tags: article_tags --- tag_id * tag_name articles --- article_id * article_name individual_article_tags ---- article_id * tag_id * AND 3 separate tables for images and images tags image_tags --- tag_id * tag_name images ...

 
@Leigh yeah, that's irritating. but i was more referring to the fact that it actually increases the number of lines required to dynamically generate markup in a way that cannot be reused
and the argument for it, and against OOP, was how adaptable it was.
 
@bushdiver Your question is missing any work on your part. What have you done and why doesn't it work
 
@omnosis If you clearly and specifically explain your concrete programing question it might not get closed as either not constructive or too localized.
 
Program received signal SIGSEGV, Segmentation fault.
0x00000000005e45b9 in zend_hash_destroy ()
 
to prevent not constructive don't ask for subjective things, comparable too: My favorite color is pink. Should I take dark pink or light pink for the headline?
Similar for too localized: Make your question concrete but also target a more general audience like yourself. A bad idea would be: My favorite color is pink. Can I take blue?
@Leigh you really push it right now. like that.
 
11:02 PM
i've spent like five days writing an adaptor for doctrine <=> backbone.js, and i'm not particularly good at JS or PHP. i can only imagine what would happen if the good JS authors and PHP authors got together to try to accomplish the same goal:
 
@omnosis The fact that I was the only one that understood your question means you should reword it, not that you should invite me to a private room
 
@hakre this is something else! $a = []; for ($i = 0; $i < 180000; $i++) {$a = [$a];}
 
@Jasper ok. than sorry.
 
@Leigh cool, try to write a small script to reproduce that and create a PHP ticket.
 
that is the small script, recompiling php with --enable-debug
 
11:03 PM
develop a truly OO framework for PHP/*SQL/RESTful/AJAX applications that can accomplish the simple tasks for you
 
I know with some similar code you can hit the memory limit easily, but didn't know you can trigger a segfault.
(a true segfault, not PCRE related ;))
 
@hakre sure, with 1 mil iterations you hit the mem limit, this one is within the mem limit but segfaults
 
@dyelawn for the simplest task OOP is not a wise choice - by design.
@Leigh Let me reproduce
 
@hakre i misspoke. the application is not designed to accomplish a simple task. it includes a bunch of simple tasks that are universal to applications built on the same architecture
 
11:06 PM
@hakre from GDB this also looks like a stack overflow, a proper one
 
namely CRUD, relationship mapping, rendering, and security tasks
*and routing
 
Looking for opinions: should I flag this answer as not an answer?
0
A: SQL: Update on join, in standards?

Jeff ModenCareful now, folks. Writing truly portable code is much more difficult than you would imagine and you also have to be willing to give up a lot in the areas of performance, ease of coding/maintenance, and readability. Just declare and use one variable in, say, SQL Server and your code is no long...

 
@hakre Just FYI it usually doesn't make sense to report stackoverflow segfaults
 
@Leigh I don't get a stackoverflow here on windows PHP 5.4
 
(I always find it hard to make such calls when the question is my own...)
 
11:11 PM
@NikiC which ones?
 
@hakre all of them
 
@NikiC why?
 
@NikiC This one is slightly more interesting I think, since I think it is actually happening while the giant nested array is being destroyed, not constructed.
 
@hakre wont be fixed
 
I mean what I learned so far is that common (by experience) stackoverflows are PCRE related, so it's something not releated to upstream.
 
11:13 PM
@Leigh yes, sure. the way you are constructing it is non-recursive. no way a segfault can happen there ;)
 
But however if it's PHP related, doesn't the PHP group want to know about the reports?
 
@hakre PHP is aware that various recursive behaviors can trigger a stackoverflow
the most common one from direct recursion will throw a nice memory error (I think)
but there are many many many many many cases in which a stackoverflow segfault can happen and those will not be all fixed
 
@NikiC Hmm, I guess, since construction doesn't actually keep adding to the stack, but destruction it has to recurse into each nested level, then destroy the next level, etc.
makes sense, thanks
 
@NikiC sure, I mean, an error is an error. and typically stackoverflow should be one, especially with processing that is not in some kind of sandbox. However, isn't it interesting to learn about the boundaries?
I don't say it's all fixed, but it's probably worth for the report.
 
11:17 PM
if you want to report it just for fun without expecting it to get ever fixed, sure :)
 
@PeeHaa +1, especially suggesting jQuery mobile is most often a short-sighting. Okay to sell the job once, but well, it's not a good mobile framework at all.
I won't take it for the long run.
 
Hi, I need some logical help here.
 
@NikiC I guess the case here is, to get someone to say "yea sorry, but that's going to happen", so the next person who gets the error has the reference
 
I am creating a website for a basketball league. I have the whole schedule with dates and times and team matchups with me. I have to create a matchups page where, for each data, I display the matchups for that day. For example, on Jan 29. - Team 1 vs Team 2.
The problem is that I don't know how to incorporate a mysql database into this.
 
1
A: How to Code in PHP for SEO and non SEO Url > Giving Choice to User

hakreStep back a bit. The general saying is: Cool URIs don't change The next most important thing to keep in mind is, that what is talked about SEO often is a myth. Don't focus search engines, focus your users firsthand. Users bookmark complex URIs. So do search engines. It actually is the reason...

 
11:22 PM
Anyone please?
:(
 
// quietly restrains giggle
@DemCodeLines some sort of computer program might do the trick
 
This is a website. I don't think manually entering everything will be efficient.
 
this is a website?! dang it, i'm out
@hakre i'd really like it if people started pushing schema.org in those SEO questions
or, not schema specifically, but object definition repos
 
@dyelawn well I strictly talk about hypertext here. that is before schema, specifically becuase it's a first mover. something like that let's you become a knight by the queen.
not registering a webaddress inside hypertext and then collect some resources (which on it's own is not a bad idea at all).
 
@hakre i know it would have been helpful for me in understanding why markup structure is so important, and why it makes rendering and styling so much easier
 
11:32 PM
keep in mind that Tim Berners-Lee did not onyl wrote HTML specs but also wrote the browser that showed how it works. I think this is important.
@dyelawn actually in the beginning it's not worrying about styling much at all. you can say, at that time, there were only (non-dedicated) user-agent styles.
however, the idea of styles already lived in the markup.
 
@NikiC I've always thought of a bug report as making the programmers aware of the problem, not as a request for a fix. It's a service you lend to the programmers in return for using their code. Well, with free projects anyway.
 
just without the style, just the markup.
to be precise, a well known methodology for that is form follows function which often is true (but if you take it bare, it kills all creativity, so stem your heartbeat against it).
 
@hakre right, but for someone who has been on the user side before the author side (especially those who are just now starting to author markup) the markup is inseperable from the style
i've had to limit myself to developing all functionality before opening illustrator or writing any css
 
@dyelawn which actually is no contradiction. HTMl 2.0 (or HTML plus) didn't have any style information explicitly, CSS did not exist yet. However, it was clear, that some day there will be styles.
 
because i start worrying about whether my column layout conforms to the golden ratio, and if my color palette is harmonious enough, and... well, you get the picture.
 
11:38 PM
As you can see with the development of HTML it first got over the point where markup made no sense any longer style-wise. The font-tag for example. Because it makes no sense we don't use it any longer today.
 
and incorporating third party content definitions like schema, that i can associate with real things has helped me reconcile the importance of good, clean, logically structured markup
 
@dyelawn Thinking about golden ratio should be foremost before thinking about hypertext and adding style to it.
at least as long the website you write is not about the golden ratio I'd say.
 
@Jasper A nice way to see it :)
 
@Jasper I'm with you. First of all that is the case (even if the reporter does not see it that way) in my eyes.
Feedback. It's communication, it's always two-sided, we can never escape from that ;)
 
@hakre meh, for me (i like to look at visual details; sometimes all leaves and no forest) i need to make sure the thing does what it's supposed to before i worry about whether or not it looks pretty in doing so
and if i start worrying about things like layering/texturing, i end up with divs nested in divs nested in divs
 
11:43 PM
@dyelawn You already say that you don't believe this is all good. Good point.
 
@hakre i just think for some beginners, it might be helpful to see that a common (and commonly misunderstood) goal like SEO is better accomplished through simplicity and logic than some sort of magic
 
Visual details. If you like to build things for eternality, visually, this is pretty hard. The best form I know is a sculpture. Similar to creating a building, a sculpture is a subset and it leaves more room for the form. In hyptertext, the sculpture is very much related to the form, not the visual representation which often depends on devices.
 
@hakre i think we might be saying the same thing
 
hey guys, I know this might be wrong here, but I have a small emergency. My wordpress blog does not seem to connect to the Mysql database anymore, say 0 posts, but in phpMyAdmin the database seems to be 100% fine, and all posts are there, password works too - any ideas?
 
@dyelawn There is no magic at all in our environments. You can create the illusion of magic to fool subjects, however it does not mean that there is magic.
@uncovery check the database configuration in wp-config.php
 
11:48 PM
@uncovery debugging.
 
@hakre I did, it is correct. also it does not say "db not connected" or similar. It simply says 0 posts
 
@uncovery query parameters are likely incorrect
 
@dyelawn such as?
 
pretty hard to tell without seeing your query
 
@dyelawn it's a wordpress blog...
 
11:51 PM
@uncovery something is broken. if it's the correct database (containing posts) then wp_query is broken. Remove all plugins and themes (but the default theme) and try again.
Sure, keep backups. Just remove everything added in the meanwhile and try again.
 
ah. I had to manually remove the plugins from the directory since the database would not work
 
@dyelawn probably. the interesting part is always where things differ. keep on struggling and and you find out the best things.
 
thanks hakre
 
@hakre stackoverflow.com/questions/14542867/… what do you think aboute this question? valid?
 
@omnosis first of all it's LONG ;)
start with the question - not the motivation. I think it's good you have both in there but the art is to formulate the question on this website. don't run away from it, try to fromulate a well made question first.
 
11:56 PM
@omnosis needs more code
 
@dyelawn its a design problem, therefore its code independent.
 
@omnosis and please don't write a paragraph that consists entirely of "And,"
 
@omnosis to tell you the truth, I'm pretty sure your question can not be answered. It's looks to be too localized, however I'd say the main problem is how you formulate it.
 
a big part of getting the answer your looking for is properly relaying the question.
 
@omnosis Design problems are never code independent. It's a common mistake to think so.
 
11:59 PM
if you get an error on a long sql statement for 1 row ( #1062 - Duplicate entry '38-18' for key 'PRIMARY' ) does the statement stop there or does it keep going?
 
@bushdiver what do you mean? I think for a transaction it will (must) fail.
 
@bushdiver if you combine into one query and tell mysql to ignore warnings it will keep going
 

« first day (833 days earlier)      last day (4130 days later) »