« first day (863 days earlier)      last day (4079 days later) » 

12:00 AM
How is that relevant? ;-)
 
@DaveRandom maybe its you , because the rule says who talks about something it means its he who miss it
its philosofic
@DaveRandom is this your kid in the picture ?
 
It is. I could do with updating it but last time I changed my avatar people complained.
 
@DaveRandom can you put your child here www.followchilds.com ??
 
...
 
@DaveRandom push little my website ;) to grow up. just make your kid ;)
 
12:04 AM
soliciting people to put their child on that website is spamming in my opinion....creepy spamming
 
no its friendly :)
 
OK well firstly it's pretty widely recognised that you shouldn't put much information about your child on the internet for privacy reasons, and secondly I don't really need a website to help me remember things that happened IRL...
 
@crypticツ i never can spam or know what is spamming so dont worry its just begining ;)
 
I can use some reminder sometimes of WTF it was I did last night
 
@DaveRandom maybe you can use this followchilds.com/charts/7/application
 
12:06 AM
@PeeHaa you put yourself on www.followchilds.com
 
:P
 
@crypticツ no he is big not child
 
@echo_me we all have an inner child
 
@PeeHaa Get some friends who put every little thing on facebook, although it then won't be long before what you did last night is self-harm because you are friends with these people.
@crypticツ How many do pregnant women have then?
 
@echo_me What type of person do you suspect would want to "follow" someone else's child? It seems... strange.
 
12:09 AM
@DaveRandom what privacy reason ? last name? dont put your last name, what else ? if something is you dont like it dont put it
 
@WesleyMurch The kind of guy who wears trenchcoats with very large lapels?
 
I mean, I can see relatives, friends, etc. but there's a big sortable grid of kids from different countries....
 
@WesleyMurch I was just thinking about posting him or pedo bear
 
have good night nice guys , time for me
 
"Pedo bear"?
 
12:11 AM
@DaveRandom you don't know about that meme?
 
lololol
 
lol
 
I'm going to sleep. Cya all tomorrow
 
I am going to hit the showers/hay also, because I am softcore.
Nitey nite
 
user652649
12:17 AM
night
 
@DaveRandom it's okay, you are welcome to put me on followchilds
i won't be upset
 
1:19 AM
Just a quick question. I'm working on a CMS, currently I use namespaces a lot, should I leave them in there? The CMS has plugin support already, but it might be harder for people who don't know about namespaces yet to develop plugins? So should I leave them in there or not, what do you think?
 
user652649
there is nothing harder to understand about namespaces, you have only to prepend the namespace name to the actual class
 
user652649
if you don't like namespaces think about a precise naming convention for classes
 
user652649
like Plugins_PluginName_ClassName
 
user652649
which is, a namespace, just less efficient
 
user652649
since you can't define aliases
 
user652649
1:26 AM
@TimVisee
 
Yes, I think I'm just keeping the namespaces haha
Thanks anyway :)
Got to go, cya
 
1:50 AM
-3
Q: Having trouble getting my prepared statement to work

shnisakaI have the following function : function get_config($name = '') { $config = array(); $row = array(); $sql = "SELECT * FROM ".$GLOBALS['prefix']."config "; if ('' != $name) {$sql .= " WHERE name = '". $name ."'";} $result = $GLOBALS['conn']->query($sql); while ($row ...

I know the question ain't sexy and all, but I do feel it has garnered downvotes due to the first edit.
And to prevent DV piles, pls upvote if you feel the question format show enough effort, thnx
 
^^ That one must be solved with recursion :)
 
"recursion" my favorite approach
 
Yeah, because problems become so much easier once you start using recursion; surprised that it's not the de-facto programming style.
 
yey just 3 flag remaining for marshal badge btw
morning ...:)
 
Awesome :)
 
2:25 AM
if one know how to apply recursion properly
 
It's like, why should you use a regular for-loop when you can easily turn it into a recursive call.
Though, I should say, that this sometimes happens when you want to pipeline ajax requests ;-) of course, that's not real recursion, but sure looks like it :)
 
true very true .. there is always first thing in mind is loop .. (at least for me )
recursion is fun more than approach .... can just play with function
 
g'mornin
 
@andho morningng
 
user652649
2:45 AM
morning marshal @NullPointer
 
haha ... morning
ty ..... yeye i got marshal gold badge
 
@NullPointer Congrats! :)
 
user652649
@NullPointer you badge whore sir
 
I remember spending a week getting that badge lol
 
user652649
@Jack you too, sir
 
2:51 AM
lol
 
Tsk, badge jealousy rears its ugly head hehe
 
^^ ... exactly
 
Just found out that I'm still three tags away from Generalist =/
 
user652649
@Jack nossir, sir
 
hi guys
 
2:56 AM
But the remaining tags are like java, ruby, ios, etc. .... shitz
 
i developed a php site ..with xampp in windows 2003 server....its in localhost/mysite
i want to move it to production server....how to move it....any idea???
 
@PeterJennings Where's the production server?
 
production server is in different location
 
Obviously.
 
just coping the files in htdocs...and installing xampp on production server...will be fine???
 
2:58 AM
The first question is of course, does your project pass all your test cases? :)
 
yeah....in the dev...the site is good...all test cases are through...
 
I doubt that your production server should run xampp .. could be wrong of course.
 
is there such a thing as too many fields for a table =/
 
Wait, is this for the company that you work at?
@Dave Depends on the table.
 
yeah...
 
3:00 AM
Just a general question. Is it better to update a question with your new code or do a new one?
 
well none of the field are many to many relationships just one to one
 
@PeterJennings And nobody in your company knows how to deploy the app?
 
so i see no reason to seperate them into different tables..
 
@Dave What's inside the table? Like, what kind of information?
If you have applied up to 3NF, you should be okay.
 
for example user|password|email etc etc
 
3:01 AM
i have to do it myself....
 
field count is 29
 
@PeterJennings Is the production server already set up? Is it already running something?
 
n i think itll be alot more yet to go
 
@Dave 29 fields for a user table?
That sounds somewhat excessive.
 
well it contains all their settings etc
given u only have one settings i saw no need for many to one join
 
3:02 AM
@Dave Let me ask you this then, do you foresee you will be adding more columns in the near future?
 
yes
alot more
 
it needs to be setup...tomorrow....they will setup...i got to deploy the site...
 
@Dave Then, that's probably a violation of the repeating columns rule.
 
so i should put some in a new table even if theres no duplicated data?
 
@Dave Repeating columns (i.e. multiple settings columns) should be resolved by adding a settings table for instance.
 
3:05 AM
so even tho the settings are unique to that person should still seperate them
 
For instance, my user table is basically: user id, password, last login ... that's it.
@Dave Yes, the value for each setting is of course unique.
@Dave But the same setting parameter can be used across many different users.
 
heres example of what i did :

user | email | pass | level | workers |

workers for example is number of staff the user has but i dont need a row of each worker just a count
so in my mind i thought ill just keep a simple integer rather than rows of workers cos their not important only the total is
so i have alot of fields in the table which holds "totals" so i dont have count rows or join tables which i thought would be more efficient but then im told lots of fields is not efficient also
 
@Dave I can't really make a judgement call on your work, but if you're telling me that you will be adding many columns to a table I see a red flag popping up :)
 
well yeh i saw it too
i estimate maybe 40 fields by end of it
 
Many fields can get inefficient, that's true.
Because the row size will increase, and adding columns later will take longer and longer.
 
3:08 AM
is there a point where joins are going to be faster than large columns in one table
 
@Dave I'm sure there is, but you would have to benchmark that.
 
ah
 
Hmm ...
Actually, no ... fetching one row would probably always be faster than joining.
 
regardless of number of fields?
 
But the operative here is "not by much"
 
3:10 AM
what is it about total fields that get heavy on queries
 
Depends on whether you always need all fields I guess.
If you're only fetching one row every time, meh.
It should still be normalized though IMO.
 
hmm my other option is instead of :

total_classA | total_classB | total_classC

I could have a second table with:
ClassType | Total | userID
but im not seeing the advantage to that given joins are more time consuming
 
whats cv-pls mean
 
points to Meaning link in top star
 
3:21 AM
ah close vote please
got it
 
@crypticツ you are taking over the place of hakre :P
 
@NullPointer You mean hakre?
 
@NullPointer is he leaving?
ah ok
 
@Jack yuppp
@crypticツ ya he is living but seems busy now a days
 
3:24 AM
he posted regular cv and delv request here in quite impressive amount
 
I don't have delv priv yet =o(
one day
 
@crypticツ Just 14k more
Hmm, they rolled a new build.
 
omg really you need 20K to delv??
 
how much rep u need for it
 
Hmm, was it 10k then .. let me check.
 
3:26 AM
wow thats a bit steep even 10k is
 
@Jack no no its 10k
 
Ah yes, you're right .. 10k :)
 
@Jack user with 10k can delete post(only question) after 2 days of closed post
 
> You must wait for a question to be closed for 2 days before you can vote for deletion.
Yeah, with 20k there's no such limitation >D
 
@Jack 20k+ user sucks :P:P so i stick with 14-19k :P:P
 
3:29 AM
@NullPointer Yeah, they also say that sense of humour decreases by 2.5% every 1k above 20 :)
 
@crypticツ 20days rep whoring will get you too 10k
 
I can reach 10K in a month easily, but I just don't have the time anymore. I use to be up all night during the whee hours of the morning
 
@Jack you mean you have only 50% sense remaining ... grrr ..... you high rep user .. :P:P
 
There are special time slots where you magically get more upvotes than you're supposed to =p
@NullPointer Hehe, when I get Legendary I will celebrate like 1899 =D
 
@Jack just ~35 days rep whoring will get you ..:P your rep is damn amazing and rep in that time of period too
 
Has anybody here worked with the Facebook API/SDK??
 
@BrandonGelfand i've
 
What do you think I would do to make a thing like Pagemodo.com ?
@andho
 
@BrandonGelfand i think you would connect the different stuff together
very simple
 
define stuff....
@andho
 
3:50 AM
the stuff you want
like the template
 
how do i make something like pagemodo though?
 
and the cover photo
with the facebook page
 
I can make the templates no problem
 
that's a very broad question
can you make a template for a facebook page?
 
but how does pagemodo take control of the Facebook page and add the finished tab page?
what parts of the sdk does it use to take control and add it?
 
3:52 AM
just check the FB Graph API regarding the pages
that page will explain what you need to do to add or remove something from a page
most probably how to add a tab also
it will also detail what permissions your app should request from the server to do any of the actions details
to do any of the actions in that page, you will need to use the Graph API
 
so you think the graph api is basically what pagemodo is working off of?
 
you can use the official PHP-SDK to use the Graph API
 
to connect and add the finished app pages
 
@BrandonGelfand yeah, unless Facebook gave them some special secret api
 
ok, thank so much
 
3:55 AM
facebook php-sdk works somewhat like this after login in
$facebook->api('23434324332/members/293847473', 'POST');
 
do you do a lot of work with the Facebook SDK?
 
that's a request to add a member to a group, where the first hash is the group id, and the second hash is the user id
@BrandonGelfand not alot, currently i am working on a project that uses it though
 
You do freelancing?
 
@BrandonGelfand no
 
3:58 AM
:/
There are a lot of companies that do what I am trying to do, just none that make a web page that truly appears to be made professionally. Ex: Vistaprint, Webs.com etc.
I am including several other features though that they are not.
A lot.....
sorta hard to do this when your 14 and in high school though, lol...
@andho TY 4 the help :D
 
@BrandonGelfand no prob
@BrandonGelfand you can forgo all social interactions and learn this stuff hehe...and do it
 
Yeah, I hope I can do all the stuff I wanna do
I think if I can it will be really good 4 everyone
I just don't see how everyone loves vistaprint so much, when all it produces is garbage websites
@andho
 
There are lot of crap sites that can be improved on alot
and they have millions of users
 
Imagine a site that makes really good looking sites, with the ease of the crap ones plus 1000 cooler features for an even lower price
That is something everyone needs and will want
I just have to make it happen
@andho
 
best to start with the smallest feature
cox the code you write today is crap a year from now
so code base always needs to be refactored
 
4:12 AM
I know, I am beginning to find other developers who are interested in helping, so the process is moving quicker
envato is also doing some stuff too
 
kewl kewl, good luck
 
thanks :D
 
user652649
@BrandonGelfand what are you developing?
 
4:28 AM
Something similar to vistaprint but 20 times nice with tons more features
the website builder they have, not the printing part
@wes
 
1
Q: Add a div to each int in the in the total numbers

Jony kaleI want to add a div (box with style) to each number. for example lets say [ ] is our styled box. and 1,700,700 is our number. I want it to look like this: [ 1 ] , [ 7 ][ 0 ][ 0 ] , [ 7 ][ 0 ][ 0 ] Is this even possible to do? if yes, how? Thanks

this is damn easy question
 
so answer it?
alright guys I'm out for now I have tons of stuff to get done
@wes ttyl
 
user652649
lol ok. good luck with your project btw
 
user652649
5:30 AM here and in 4 hours I'll be at work
 
4:35 AM
@wes .you early bird ...... you really wake up early man ....
 
user652649
@NullPointer no, today i didn't sleep at all actually
 
user652649
who needs sleep lol
 
@wes sleep makes us dumb
 
user652649
does it? i thought the exact opposite lol
 
Sleep makes you taller too
@wes Actually, not sleeping makes you dumb ... or rather, you're dumb if you don't sleep .. ah, whatever.
 
user652649
4:40 AM
@Jack thank you badged marshall obvious LOL
 
@Jack exactly ...
 
user652649
@NullPointer you too marshal even more obvious :P
 
7. Sleepiness Makes You Forgetful

Trying to keep your memory sharp? Try getting plenty of sleep.

In 2009, American and French researchers determined that brain events called “sharp wave ripples” are responsible for consolidating memory. The ripples also transfer learned information from the hippocampus to the neocortex of the brain, where long-term memories are stored. Sharp wave ripples occur mostly during the deepest levels of sleep.
 
@wes Hur hur hur, ohh, thou really cracketh me up!
 
@Jack only when you wake up
 
4:41 AM
@andho You mean if you wake up
 
@Jack lack of sleep makes you creative due to release of theta waves
 
@andho Somehow I don't see that obtained creativity materialize 9/10 times lol
 
@Jack actually it happened to me last week. i usually get lots of sleep, but my laptop broke down during the weekend and i stayed up most of the weekend
and i ended having this uncanny ability and concentration to just write and write about certain topics
not sure if the two events correlate, but could it be coincidence. No, it could not.
 
But looking back at what you wrote, do you feel that it was mention worthy content? :)
 
@Jack actually yes, but you shouldn't be in state of fatigue, maybe 2 hours sleep to refresh
 
user652649
@Jack i was kidding btw, my english is not good enough to understand sarcasm
 
@wes where you from?
 
user652649
italy
 
@wes Are you friends with Mario and Luigi?
 
user652649
4:52 AM
ye ye my english is like mario's ok?
 
user652649
mama mia
 
copy pasta spaghetti code *says in mario's voice*
im hungry again =o(
 
user652649
@crypticツ sigh
 
@wes girls can't drive and we belong in the kitchen, happy? =o)
 
user652649
italians say that? i don't
 
4:56 AM
pssh, I don't know any guy who thinks otherwise
 
I would say they belong in the bedroom, but hey, that's just me :)
 
user652649
@Jack sexist
 
@Jack =o0
 
user652649
@Jack and racist. mamma mia!
 
user652649
@crypticツ how is your site going?
 
5:02 AM
@wes I estimate 3 more weeks until I am done with the menu =oP
 
user652649
LOL
 
user652649
did you switch to pink?
 
no, still blue, it goes well with the dark background. I want to have media and I think media looks better against black.
got the menu all done, now I want to refactor since the LESS CSS looks messy and should be able to be done easier.
 
Morning
 
morning
 
user652649
5:11 AM
did you use LESS? keep in mind effects can be cross browser but not necessarily cross-browser efficient... for example if you use huge box shadows on firefox, it will literally explode
 
@wes I use a boxshadow for the layout and Firefox is doing fine.
I plan on eventually setting up PHP LESS to compile my LESS files into straight CSS so won't be dependent on less.js
 
user652649
are you on linux right? i don't know on linux but on windows "css3 effects" don't run smooth in any way... do you have chromium for a test?
 
Linux, and tested in Firefox, Opera and Chromium
I havent tested on Windows, I need to get around to setting up Virtualbox for Win8
 
user652649
lab.staiano.org/centaurus try to scroll this site on firefox and chromium... eventually ctrl+f5 if you visited that site yesterday
 
user652649
need coffee brb
 
5:21 AM
@wes both scroll smoothly
 
user652649
do you have "smooth scrolling" enabled?
 
yes
 
user652649
so must be a windows thing... here literally hangs and not only on my very windows... on any windows does the same
 
also 'use hardware acceleration when available' I have a 1GB DDR3 graphics card
 
user652649
me too, tried with any direct3d tweak but nothing changes
 
5:26 AM
disabled them and still scrolls smoothly
 
user652649
:(
 
Windows sucks
 
user652649
yeah
 
user652649
but mozilla too
 
5:45 AM
big forms are really pan to create
 
@JuanFernandoz hola
 
fast question: suppose that I make an ajax petion using an php file for process. This php can recuperate data from session? like the user? I mean, the php is called by ajax.
@NullPointer Hola! como vas?
 
@JuanFernandoz sorry i know only meaning of hola .. just because of one mate here
 
user652649
@NullPointer como vas? = how is it going? / how are you?
 
5:49 AM
@JuanFernandoz could you make it more clear .. unable to understand ?
@JuanFernandoz good you ?
@wes thankyou ... learning is always good
 
@NullPointer ha ha yeah, I said: who are you? (there is a lot of way to say that in spanish depends of the country and accent for example the paisa people (colombia or argentina) say: como vas?, but in other regions say: como estas? como andas? etc
 
those are deadly languages
 
@NullPointer well I have a php file and js code, so this make and ajax request to a php file right? so.. this php file can recuperate data from session? like the username?
 
@JuanFernandoz yes
it can
 
but this php file its called by ajax...no problem?
 
5:51 AM
@JuanFernandoz no there is nothing worn in calling pp file by ajax
 
worn = wrong?
Yeah, its nothing wrong but I mean the process php file called by ajax just can have the same session that the original php file (source of the ajax request) ? I say that because the php file its called no from user but for the ajax request..
 
@JuanFernandoz sorry just a typo
 
I dont know if you understand me
 
user652649
@JuanFernandoz anything happens on the client side is part of a user session
 
user652649
including requesting/embedding images and ajax calls are part of session
 
user652649
5:57 AM
so even if they are "shadow" requests, sessions are available also there
 
@wes great! thanks.
 
user652649
for example <img src="getimage.php?id=22">
getimage.php:
<?
// $_SESSION is available here
readfile("image.jpg");
 

« first day (863 days earlier)      last day (4079 days later) »