« first day (789 days earlier)      last day (4164 days later) » 

12:19 AM
Goodbye, Uploads https://github.com/blog/1302-goodbye-uploads
^^ getting a lot of negative feedback, hopefully it'll be temporary. Anyone with a Twitter account (who disagrees with their decision, don't just do what I say) kindly express your displeasure in a polite, troll-free way
Right, I'm going to bed
nighty night
@PeeHaa Enjoy your hardcore drinking session :-)
 
Thanks @DaveRandom. Later
 
12:36 AM
 
vas ist das?
 
user1125394
haagen dazs
 
are we playing "guess the framework"?
I say CodeIgniter
 
 
1 hour later…
 
1 hour later…
@Touki thank you that worked out well.
 
4:18 AM
posted on December 13, 2012 by PHP Advent

When I started designing for the Web years ago, before the dot-com bubble burst, the term interaction design quite often referred to the use of Flash when it came to the Web. If you wanted to make your web site interactive in any way, that’s what you used. While we’ve mostly done away with Flash, the trade-off is that static web sites are still the majority. Pages on the Web are full of text,

 
 
1 hour later…
5:26 AM
Hi
any1 here ?
 
maybe...
 
Obviously, no-one is here.
 
6:01 AM
hey
 
who's a sublime text 2 fan/master?
i wanna invoke fuzzy fileselection for autocompletion to fill in a filename
like,
require(<invoke fuzzy selection here>...
 
@andho abhishek in the JS room I believe
 
@ShyamK thanks
 
np
 
7:05 AM
> thanks, please help. I need it in a couple of hours
 
7:19 AM
@LeviMorrison I only do that when they're trying to do something specifically convoluted. It's surprisingly hard to think of examples, but say they show 3 queries that can be combined, I'll suggest the combination. If they want to permute data in a specific way for no discernible reason, I'm less likely to ask "what are you trying to do?" - There's occasionally a question where the OP is asking to do something ridiculous, but solving it in the way they asked is actually mind-engaging.
@DaveRandom It's also what nginx does. 1.0.x was stable, 1.1.x was dev, 1.2.x is stable, 1.3.x is dev
And < 1.0 technically beta
 
7:36 AM
Hello Guys.
Can anyone explain,how to perform actions like onchange or onclick over drop down menu items in Joomla?
 
morning
 
mornin'
 
morning
 
7:53 AM
Who wants to participate
58
Q: Stack Overflow Annual User Survey

Alison SThis year's survey is officially open! We've added a few new questions based on your feedback from last year and we are really looking forward to publishing the results in January. Once you've taken the survey, we will send you (US or Canada) a limited edition sticker as a small, yet terrific, ...

3
 
8:09 AM
morning
 
8:25 AM
gods below , i had not heard "Zombie" in years !
 
How can i set timezone in config.php of yii . I want to know the syntax.
this is simple method to set timezone I have used in a controller and echoed it just to confim whether it is working or not : date_default_timezone_set('Etc/GMT+5');
 
8:52 AM
Shumaila, you can use

date_default_timezone_set('Europe/Istanbul');

for example
 
@ShumailaKhan Don't use Etc/, it's deprecated
 
morning
 
Hi @Dave
 
i want to ask something too. I made an admin panel, i used filter_input, PDO but still i got serious SQL inj vulnerabilities.
who can share tricks about security(especially DB functions)?
 
@kvasirr lol, you must be using it wrong
post code
 
8:58 AM
header('Content-Type: text/html; charset=utf-8');

$parray = explode('_',filter_input(INPUT_POST, 'urun', FILTER_SANITIZE_STRING));
$paket = $parray[0];
$paket_sure = $parray[1];

$musteri = filter_input(INPUT_POST, 'musteri', FILTER_SANITIZE_STRING);





$stmt = $db->prepare('INSERT INTO lisans_tablo (alanadi,kayit_tarihi,duzenleme_tarihi,ip,musteri,paket,paket_sure,bakiye,eposta
) VALUES (:alanadi,:kayit_tarihi,:duzenleme_tarihi,:ip,:musteri,:paket,:paket_sure,:bakiye,:eposta)');
$query_params = array(
and db config.php:

<?php
$config['db'] = array(
'host' => 'localhost',
'username' => 'root',
'password' => '',
'dbname' => 'kvasirr_pentapanel_db'
);

$db = new PDO('mysql:host=' . $config['db']['host'] . ';dbname=' . $config['db']['dbname'] , $config['db']['username'] , $config['db']['password'] , array(PDO::MYSQL_ATTR_INIT_COMMAND => "SET NAMES utf8"));
?>
 
@kvasirr Instead of SET NAMES utf8 use the charset parameter in the DSN, and add PDO::ATTR_EMULATE_PREPARES => FALSE to the attribute array
 
$db= new PDO(..., array(PDO::ATTR_EMULATE_PREPARES => false));
 
thank all of you
 
@kvasirr Regardless, the above code still should not be susceptible to injections though
Can you give an example of a flaw that you have found?
 
$db = new PDO('mysql:host=' . $config['db']['host']. ';dbname=' . $config['db']['dbname'] . ';charset=utf8', $config['db']['username'], $config['db']['password'], array(PDO::ATTR_EMULATE_PREPARES => false));
 
9:03 AM
i'm searching flaws with Netsparker Software
actually it enters a endless loop with injections
so i can't define flaw.
i can give address if you want
 
@kvasirr Well an endless loop is not likely to be SQL injection itself, it's something in the logic of the app
 
but it overrides my data in DB
 
@kvasirr If you don't mind providing a URL and some example input that causes the problem that would be very usefull
 
@kvasirr Also I've just noticed: never use root to connect to your DB from your app, and never have a blank root password (unless you just removed it for posting here?)
 
9:07 AM
it was localhost's example, in my host it's diffrent
 
@kvasirr Even on localhost it's not a good idea, it's best to get into the habit of doing things properly, even in dev
 
okay, did you find any flaw on that URL ?
 
@DaveRandom: I don't always test my code, but when I do, I do it in production.
:P
 
:D
 
@kvasirr OK so I got a login screen, that doesn't appear to be subject to SQL injection, using a username and/or password of ' or '1' = '1 doesn't get me in. But when I click the "Anket Sonuc" link (I guess that means sign up? Sorry I only speak English :/ ) I get...
bence güzel olmaz = 1,
ilgilenmiyorum = 2,
bence umut vaat ediyor = 3,
güzel olur abi = 4,


Warning: mysql_connect() [function.mysql-connect]: Can't connect to MySQL server on 'pentadesignorg.netfirmsmysql.com' (4) in /home/kvasirr/pentadesign/anket_sonuc.php on line 17

Warning: mysql_select_db() expects parameter 2 to be resource, boolean given in /home/kvasirr/pentadesign/anket_sonuc.php on line 18

Warning: mysql_query() [function.mysql-query]: Access denied for user 'kvasirr'@'localhost' (using password: NO) in /home/kvasirr/pentadesign/anket_sonuc.php on line 22
 
9:13 AM
 
...where you are clearly not using PDO at all...
 
it was an old page, wow
 
@NiekBergman Damn straight
 
i just forgot it there
anket sonuç means "poll results"
it was an old poll dashboard for my self. Sing up means "Giriş"
 
@kvasirr I know that But I want to know how to add it in config.php file because in config file file all added things are in some arrays !
 
9:15 AM
@DaveRandom Doesn't Chrome ask you if you want it translated? :-P
 
@kvasirr :P sorry I have no idea, we English are arrogant enough that our schools barely bother with foreign languages...
@ShaquinTrifonoff Actually no. I was a little surprised about that.
 
@DaveRandom Hmm, it did for me, odd
 
:6678955 Ok thanks .
I changed it : date_default_timezone_set('GMT+5')
 
@kvasirr OK well I can't find any SQL injections, what input did you give that makes you think there is?
 
actually you need to see it yourself, wait a sec
URL : http://pentadesign.org/pentapanel
user : Dave
pass : 12345
Click "Lisanslar" menu item
and refresh periodicly
logged in ?
 
9:28 AM
Sorry Chrome just crashed on me, logging in now
 
@DaveRandom call me when you ready, i'll start inj software.
 
Right now logged in
 
do you "lisanslar" page
 
@kvasirr FYI it's very rare that you should return false; in a JS click handler, use .preventDefault() on the first argument to the callback instead. Here it doesn't matter, but again it's a good habit to get in to
 
there is only one record here right ?
watch now
you can refresh now @DaveRandom
click again "Lisanslar"
 
9:34 AM
@kvasirr I'm still just seeing the same 2 records I saw in the first place
 
wow now, it tottaly corrupt my db
 
haha, i deleted old poll .php files
 
^^ that's what I see
 
and seems it was gone
 
9:37 AM
just refreshed again, I'm still getting it
 
problem solved i think
and it was a really stunnig exp for me
 
cool :-)
 
Thank you Dave.
 
morning ...
 
morning
 
9:40 AM
Hi @Null
 
Hi all good Morning
-6
Q: How to get lyrics of a song from a audio file?

jothikannanit is possible to get lyrics of a song while upload in php. i know it is possible with Flash and javascipt, while record a song we have to do this, but i want to get lyrics while upload a file, please advise me it possible or not. Thanks in advance .

 
Do you mean, look up the song title online and find the lyrics? — Shaquin Trifonoff 17 secs ago
 
@Baba My best guess
lol
 
@ShaquinTrifonoff .. :)
 
9:52 AM
guys, when somebody talks about sm and si
is he talking about software maintenance and software implementation?
 
ok .. guys , i need some help .. or maybe "opinions"
i have a codebase where i use factory to initiate one of two different sublclasses of an abstract Attachment class : Image and Document
everything is fine when i am using them to store info , but problems begin when i am retrieving the data
at the point when i should be initiating the instance i know only the ID of file (the rest of file details are in the database)
the retrieve information from DB i should use a mapper on the Attachment subclass .. which cannot have
 
@jothikannan The only (feasible) way to do that is to use an HTTP client to fetch the lyrics for the title. Although there can be ID3 lyric data, not all songs will have that data.Shaquin Trifonoff 2 mins ago
 
basically i have ended up with circular dependencies
any ideas, suggestions, comments, leading questions ?
 
user1125394
why can't you have a DocDM and ImageDM?
 
then i would just have two problems
i have only the ID of the document , i do not know it's type
 
10:06 AM
@tereško (probably not helpful) Why is Image distinct from Document? Because images can be viewed within the HTML but documents have have to be downloaded? What's the behavioural difference between the two? It seems to me that an image is a specific type of document.
 
"documents" are pdf,doc,xsl
they have different validation operation (for example images are restricted to max 2MB, while documents have 20MB limit)
 
if images exceed the "soft limit" they are queued for resize/conversion
 
user1125394
they have an attribute imAnImage //true false ? or whatever name
 
no
they have different implementations of public function analyse()
 
10:10 AM
@tereško But validation is surely done when using them to store info, when retrieving the information can't you just use a single class to handle everything? If it's not relevant to the application on retrieval, why bother to make the distinction? Maybe you could make the Attachment class instantiable, if you never call analyse() on retrieval.
 
hmm
i was thinking about it
sucks that you cannot cast classes in PHP
 
Indeed it does. Don't let @NikiC hear you saying that though ;-)
 
user1125394
there are docs and images in DB, (different tables?) I though you could just save them on FS and store their metadata on db maybe
 
the table is the same
ehh ... i guess i will just remove the abstract keyword from definition
 
user1125394
activerecord it :p
 
10:16 AM
@cyril did you know that it is impossible to lick your own elbow ?
 
@tereško you done that
 
who the hell stared those two lines ?!?
 
user1125394
fail to understand if there's a link between the elbow and your design
 
@tereško Not true. I can't do it but some people can.
 
user1125394
yea midgets can
 
10:21 AM
@tereško I'm struggling to come up with a nicer solution, but then again as we all know you shouldn't listen to me about anything ever.
 
@cyril you suggested to use activerecord .. i made sure that you tried to lick your elbow (and hoped that you are at work)
 
posted on December 13, 2012 by Gareth Heyes

I started to try and break the 10 charset limit of PHP non-alpha after @InsertScript showed me that PHP Dev supports [] syntax for arrays. I wondered if it would be possible to break the limit within production PHP. At first I thought you could but then after some testing I found that there was no way to concat without “.” and no way to call a string as a function without $ and =. However since

 
back .. what did i miss
@tereško you can also make Image extend Document .. rather than make it a separate class they some a lot of similarities
 
the similarities a in the Attachment class definition
 
@Baba I wondered about that
@tereško Well yes but you could put that into Document and just overload analyse() in Image
Also, kudos for spelling analyse correctly
 
10:32 AM
@tereško .. i think i agree with @DaveRandom on this
 
Hahaha I just had to share this, puu.sh/1ApeE
My code, I don't think it exactly turned out perfect. lol!
That goes on for around 10,000 more lines lol
 
@Necro. what code
 
I know what I did wrong, placed my foreach a line too high lol..
 
@Necro. Yeh you need to filter out . and .. when you loop a directory. Take a look at this, it will change your life ;-)
 
@DaveRandom ... lol it will change your life
@Necro. .. you would be surprised so many thing you are doing wrong
 
10:38 AM
@Baba Well spoken, that quote can be used in my life about everything.
Hmmm, how to go about performing a ZIP archive of a directory...
 
1
Q: Levenshtein Distance to Group Products

StuartHi and thanks in advance for stopping by to read and help me with my question; I want to group products together that are the same but in different variants. So for example I have these products in my $products array: Array ( [0] => Array ( [name] => Cat Bowl Gr...

 
@DaveRandom That is the single most awesome Doc page on php.net I have ever seen, thank you haha.
$Directory = new RecursiveDirectoryIterator('path/to/project/');
$Iterator = new RecursiveIteratorIterator($Directory);
$Regex = new RegexIterator($Iterator, '/^.+\.php$/i', RecursiveRegexIterator::GET_MATCH);
**Drools**
 
@hakre I'm sure I checked the request method get_headers() was using with Wireshark when I wrote that comment, but I've just done it now and you are indeed correct. That kind of sucks but at the same time I guess it's more reliable, it does seem to drop the connection after the headers have been received so you don't have to wait for the body to transfer, that bug is right though - it needs a $context argument if that's the case.
@Necro. Are you using ZipArchive to create it? It doesn't seem to have a native addDirectory() method but there are a few provided in comments.
 
@DaveRandom I tried dissecting the script to learn how to ZIP the directory, when I was putting it back together I misplaced a line, fixed it all up.
I just thought it was pretty funny how many errors showed up. Had to be at least 10,000.
Took the page 5 minutes to load lol..
 
@Necro. Depending what you are doing, it looks like maybe a phar would be better suited to your needs. Are you trying to zip up a PHP project? This is what phar was designed for.
 
10:52 AM
@DaveRandom No its just a simple backup script, tried it and its pretty snappy, it zipped a decently sized website in 3 seconds just for testing purposes. And thanks again for sending me that doc page on RecursiveDirectory, I needed something like that to sort the .zip's to download the backups :P
 
Somebody really likes jQuery
 
lol
@DaveRandom I see you have aliased fonts again
 
@ShaquinTrifonoff Work PC, really doesn't bother me either
 
@DaveRandom There is a workaround via default context. But the bug report is valid, would be good to have, looks like it has been forgotten.
 
@hakre Yeh but that's sucky :-(
 
11:02 AM
@DaveRandom Yes, place your vote on the bug report.
 
@hakre Already done :-)
 
11:16 AM
@ShaquinTrifonoff Hello :]
 
Hey @Mirwais
 
@ShaquinTrifonoff You alright
 
Yeah
are you?
 
Yep, tho tired as always hehe
 
11:18 AM
10pm for you?
 
@MirwaisMaarij 12:19am
lol
14th Dec
 
Oh
you live ahead of me
Tell me the future lottery numbers!! lol
 
@mayank, DO NOT spam rooms with promotional links. Thanks.
 
@ShaquinTrifonoff I smell a bot
 
11:25 AM
so do I
hmm
No way to flag a user account?
 
Yup, he probably entered all rooms, there should really be a limit on how much rooms you can attend.
 
@ShaquinTrifonoff Not without pinging a mod. I have wondered about that, but it'd probably give the mods even more junk to deal with. At least this way you have to go out of your way to do it, so you have to really care/have a good reason.
 
@DaveRandom tavern on meta maybe?
 
@webarto I know it's possible to post messages with PHP, it might be a PHP script.
 
@webarto Yeh, or just wait till tim or thief show up, thief is usually in JS, go and ping him the user ID if you want. I cba.
 
11:29 AM
@ShaquinTrifonoff You can't do it with PHP (at least not easily), there is a token, better option would be to fire up from console.
 
@webarto It is easy, all it needs is a cookie and the fkey.
...and a loop.
 
@webarto Take a look at Ziraks chat bot, they've got that running on Node I think
 
We'll I know it is easy, it's just not worth building one for spam purposes, what I meant :)
 
The guy's accumulating flags anyway, he's gonna get a serious chat ban, hopefully that'll flag it up to the mods
 
11:31 AM
<?php
$curl = curl_init('http://chat.stackoverflow.com/chats/11/messages/new');
curl_setopt($curl, CURLOPT_HEADER, true);
curl_setopt($curl, CURLOPT_HTTPHEADER, array('X-Requested-With: XMLHttpRequest'));
curl_setopt($curl, CURLOPT_POSTFIELDS, 'text=test&fkey=your_fkey');
curl_setopt($curl, CURLOPT_COOKIE, 'usr=t=blah&s=foo;csr=t=bar');
curl_exec($curl);
 
@ShaquinTrifonoff But you need to be logged in? :)
I don't think fkey is static.
 
@webarto Of course. You get the data from a browser once you've logged in.
 
@webarto It's OAuth I think, it's easy enough I imagine (never tried it)
 
I've done it like that for facebook, scraped mobile version, because little or no JS, there weren't some API options at the time. Yup, it sure can be done.
> This user is suspended on the parent site and cannot chat for 29 days.
 
11:39 AM
What do you when when OP edits the question totally and gives something new
and a clown does not check and gives you a downvote
 
@webarto That's fast
 
public function actionLove($id, $ip) {
$model = new Business();
$model = Business::model()->find('id=:id', array(':id' => $id));
$ip_model = new IPAddress();
$ip_model = IPAddress::model()->find('address=:address', array(':address' => $ip));
if ($ip_model) {

echo 'already liked it <br/>';
}

else {
$model->loves = $model->loves + 1;
if($model->save())
{
$ip_model->address = $ip;
$ip_model->save();
}
}
My values are not getting stored in db , can anyone tell me why ?
 
@Baba Call him an idiot.
 
1
Q: Levenshtein Distance to Group Products

StuartHi and thanks in advance for stopping by to read and help me with my question; I want to group products together that are the same but in different variants. I have reformatted this question. So for example I have these products in my $products array: Array ( [0] => Array ( ...

 
$ip_model = new IPAddress();
$ip_model = IPAddress::model()->find('address=:address', array(':address' => $ip));
WOW :D
 
11:41 AM
@webarto ??
 
@webarto the guy completely change the entire question
 
Help me please, I am newbie
 
user1125394
what shocks you about active record? @webarto
 
@cyril Sorry, what do you mean? I'm not shocked by AR :)
 
user1125394
11:44 AM
a ok I though you meant, wow like ugly, there's maybe ::model() that's ugly
 
@webarto I don't always use static methods, but when I do I make sure I instantiate the class they belong to first.
 
@cyril No, no, you see that he is making an instance of IPAddress, and then he just... what @DaveRandom said :)
 
user1125394
@DaveRandom lol
 
@cyril It would go like ... AR::model('IP')->find, something, something...
This is just nonsense...
 
11:46 AM
staticphobia
fear of static methods or class :)
 
static has its use, somewhere, but it is abused :)
 
user1125394
@webarto AR::model('IP') like a factory?
 
@cyril Yup, there is no logic that model returns instance of itself, statically... you would then just instantiate it in the first place...
 
@PeeHaa ping
 
user1125394
k
 
11:48 AM
@webarto where are you from ?
 
user1125394
eastern Europe he is :p
 
@Baba From Bosnia and such.
 
Oh ok
 
user1125394
webartovitch
 
@cyril South-Eastern, technically :P
 
11:49 AM
Just on the side
where are there so many Phobias
The English suffixes -phobia, -phobic, -phobe (of Greek origin: φόβος/φοβία ) occur in technical usage in psychiatry to construct words that describe irrational, disabling fear as a mental disorder (e.g. agoraphobia), in chemistry to describe chemical aversions (e.g. hydrophobic), in biology to describe organisms that dislike certain conditions (e.g. acidophobia), and in medicine to describe hypersensitivity to a stimulus, usually sensory (e.g. photophobia). In common usage they also form words that describe dislike or hatred of a particular thing or subject. The suffix is antonymic to...
Papaphobia – fear of the Pope
Panphobia – fear of everything or constant fear of an unknown cause
Halitophobia – fear of bad breath
All English men here help out ..
Cyberphobia – fear of or aversion to computers / Learning new technologies
 
user1125394
some of my colleagues are
 
@cyril by adding vitch it just means like you belong to some group or something, cyril + ovitch means your descendants :)
 
@cyril are you kidding me ?
 
@Baba "Phobia" is just a greek routed suffix meaning "a fear of". If can be legitimately applied to any noun or verb with a Greek root. Medically recognised phobias don't follow this rule, for example you listed "Papaphobia", which is a Latin root.
 
hi i have question
 
11:54 AM
@DaveRandom .. so its valid to say DaveRandom is staticphobia .. it does not really have to exist officially ?
 
Of course, it doesn't have to be listed in medical (something).
 
@Baba It is linguistically valid and meaningful, yes
 
Dave Manchesterovich :D
 
@DaveRandom ... wow ... thats something now .. thanks Guys u too @webarto
 
Useless English fact of the day: Television should not be a real word because "tele" is a Greek root for "far away" and "vision" is a Latin root meaning "to see".
 
11:58 AM
lol
 
@DaveRandom Would that be Gratin or Leek?
 
i have table register that have attribute ( StudentID -SectionID- exceed ) knowing that exceed boolean (yes or no) i want i query that i can get all section with the number of exceed that is value yes can you help me
?
 
2
A: Changing array key value in PHP

Mark Baker$newArray = array_combine( range(2,count(array_keys($originalArray))*2,2), array_values($originalArray) );

 
@ShaquinTrifonoff seems like it's Leeking to me... But then again Gratin is a real thing so...
 
why do people vote without testing a script
Ok It has been fixed
 
any help ?
 
@Baba Although it looks cool, I'm for some reason not a fan of this method, it's not readable on first look, to me.
 
@DaveRandom i try to get count of exceed where exceed = yes but what if i want to see al the section even if the exceed = no
 
@webarto .. you are right .... it can be simpler .. he just made it complex with so errors
and people still voted
 
@DaveRandom so i want to see all section and if section have exceed yes i want to know the number of tuples
that exceed = yes
 
12:04 PM
@Baba Unless you make a function, and describe it, it's confusing if you run into something like this in code, without comments... I personally think if you can write code without many comments, you are doing it right :)
 
@webarto definitely .. i use comments but i also make variables names tell me the story
 
@Baba Exactly, code should be speaking for itself, as much as possible.
 
@webarto that is why am always scared of codes written by Indian Programmers
Sorry no offence to the Indians here :)
 
in Tavern on the Meta on Meta Stack Overflow Chat, yesterday, by ThiefMaster
Yeah, software development work in india almost completely stopped due to this!
 
plz help me ?
 
12:08 PM
Rewind few messages :)
 
@webarto What would you rather do, loop? I'm kind of ambivalent about that whole thing, it's a bit to trivial for me to care how it is done. I agree that was unreadable though, if you did that it would need a comment. I have to question why you'd need to change the structure at all though, seems like it's probably for outputting in a foreach, so just do it on the fly
 
@Baba Where are you from btw? :)
 
Nigerian
 
@Baba can you help me
 
@DaveRandom I'm not quite sure... You are right, how do you end up there in the first place. But he is from India, anything is possible :) (no disrespect, just describing majority)
 
12:10 PM
@webarto Lots of Indian and European developers here
@sara .. how may i help you
the Indians would write 10,000 lines of code
reading it makes my eye bleed
 
@Baba I haven't seen anyone on SO from Nigeria I think :) Great!
 
@webarto lol .... now you see one :)
 
@webarto I think the Indians for whom that is not true are fully aware of the problem, probably more so than us because they will be dealing with it 100% of the time. I'm sure I've seen @ShyamK bitching about it before.
 
;)
 
@baba i have table register that have attribute ( StudentID -SectionID- exceed ) knowing that exceed boolean (yes or no) i want i query that i can get all section with the number of exceed that is value yes so it will retrive for example section 1 with 5 time is exeed for the whole student
 
12:13 PM
@sara are you talking about your question here : stackoverflow.com/questions/13108447/…
 
i can not answer question :( i break some rule in website so i go to the chat to get the answer
 
@DaveRandom Yes, it definitely ruins reputation of real developers, just like you are British, and we don't mind you, that much :P
 
@ShaquinTrifonoff How is the chatbox?
 
phalconphp.com I thought of using PhalconPHP for this really simple API, what do you guys think?
 
@MirwaisMaarij No progress since last time (sorry), I've been working on another site
 
12:15 PM
@webarto I wish I could argue with that... But then helpvampirism is endemic in every society in every walk of life.
 
@ShaquinTrifonoff No worries
 
@DaveRandom ..... lol
@sara no rule was broken .. you just need to know how to ask your question correctly
@sara SEE sscce.org
 
@Baba this is what it is say Sorry, we are no longer accepting questions from this account. See goo.gl/C1Kwu to learn more.
 
@DaveRandom have you implemented Von Neumann extractor in PHP before
 
@DaveRandom Yup, it's that there is 1.2 billion of them, and the volume of bad developers from India beats all stats. But I think ratio is same pretty much everywhere, not true for highly developed countries.
 
12:19 PM
@DaveRandom
@webarto can you look to my question
 
@sara No, sorry.
 
Web everything; IT Engineer; ZEND PHP5.3 Engineer; DebConf11 organizer; Open Source enthusiast and Android & Ruby developer wannabe.
@webarto am sure the ladies love that :)
 
Meh, no one knows me. I'm Anonymous, lol.
Anonymous = have no life
 
Hola
 
12:29 PM
@MikeB plz can you help me :)
 
Shut the doors @Mike, snow is coming in.
 
0
Q: Mapping Excel Sheet Field with my pre defined database fields php

SharmajiI am having a number of different excel sheets at my end. I need to put their data in the database. There are some predefined fields in database (country,code,start date, end date) which I need to fetch from excel and need to put in the database. Tried so far : I have fetched the data and putti...

 
@Baba No (had to google it) but looks easy enough - what are you actually doing?
 
@sara Whats up
 
@MikeB thanks for replay :) can you look to my question i have table register that have attribute ( StudentID -SectionID- exceed ) knowing that exceed boolean (yes or no) i want i query that i can get all section with the number of exceed that is value yes so it will retrive for example section 1 with 5 time is exeed for the whole student
 
12:31 PM
@MikeB Mega vampage and a refusal to properly explain what has been tried
 
SELECT COUNT(1), sectionId FROM register WHERE exceed = true GROUP BY sectionId?
 
@DaveRandom ircmaxwell recommended it yesterday has alternative shuffle algorithm
 
@DaveRandom It's too early for me to feel spiteful :p
Give me a few hours and I'll hate everyone
 
Should I buy it or not, randomize it :)
 
12:35 PM
@MikeB what do you mean by count(1)
 
@DaveRandom .....when i was working with @webarto to review a lotto Number generator
 
@webarto I love that two-tone
 
@webarto looks .. nice .. spec ?
 
@MikeB I couldn't recognize you when you logged in all nice and s* :P
@Baba 2.0 Turbo (gasoline), 240hp... I was just looking... I couldn't afford it in 5 years lol...
 
@Baba To shuffle what? An array? What are the two inputs?
 
12:37 PM
@sara count() counts the number of returned rows. SELECT count(1) from register; // will give you the number of rows in that table
 
@webarto It's a Range Rover. Only buy it if you want a car that will gradually fall apart with no external assistance.
(depending on how old it is)
 
@DaveRandom upload.wikimedia.org/wikipedia/commons/7/78/Mazda-CX7.jpg Mazda CX7, 2.3T (260hp), costs around ~$15.000 used. Range Rover Evoque, it's like $45.000... plus it's "luxury", so it will cost you double in parts...
 
@DaveRandom original code pastebin.com/qSXbaB0a ... modified version eval.in/4488 ....
@webarto how much ?
 
@webarto Same some money and assemble it yourself :D
 
12:41 PM
Lada Niva, best offroad in the world :) youtube.com/watch?v=IFx5b5Tpjfc You can by used one for $2000...
@MikeB I live in a poor country, if you show up in a car like RangeRover, you are drug dealer automatically...
 
Hi everyone . Can anybody please have a look at my question.
thanks
 
0
Q: Mapping Excel Sheet Field with my pre defined database fields php

SharmajiI am having a number of different excel sheets at my end. I need to put their data in the database. There are some predefined fields in database (country,code,start date, end date) which I need to fetch from excel and need to put in the database. Tried so far : I have fetched the data and putti...

That one?
 
@Baba For the record I don't like $algo = $this->algo; $algo($this->items);, use call_user_func($this->algo, $this->items); instead
 
@ShaquinTrifonoff yes
 
@DaveRandom ... hum .. good idea ...
 
12:49 PM
@MikeB to understand me look at my database store3.up-00.com/Nov12/Omu02855.png i want i query that retrive section 44 count is 1 and section 55 count 1
 
SELECT sectionId, count(1) FROM register WHERE exceed = 'Yes' GROUP BY sectionId
You should change your exceed column to a bit/bool field
 
@MikeB THANKS
 
@sara np, go vote up some of the answers people posted to your questions if they were helpful :)
3
 

« first day (789 days earlier)      last day (4164 days later) »