« first day (971 days earlier)      last day (3993 days later) » 

10:01 AM
@Mr.Alien I wouldn't classify two down votes as 'sheep voting'.
 
@vascowhite not classifying, it's just I recollected, cuz its same for votes as well as close votes too ;)
 
Guys, you can typehint for an array in a function declaration, right?
public function setArray(array $array) { }
 
@Mr.Alien Again, it's not SO that's not asking for credentials.
 
@DaveRandom Don't know haven't watched it in ages (or so I say)
 
@Jimbo Definitely.
It won't accept ArrayObject though.
 
10:02 AM
@Mr.Alien I'm sorry, I don't get your meaning.
 
@Jack Ahh, that's okay (Y)
Thought I remembered something not working, it'd be ArrayObject
 
@Jack hmm, dirty
 
@Mr.Alien eh?
 
@vascowhite sheep thingy is same for downvotes as well as close votes, experienced sheep voting many times...
@Jack Eh, open id sux
 
@Mr.Alien No, OpenID doesn't ... this behaviour can be managed with PAPE, it's just a matter of whether they bothered to implement that extension.
The fact that they remember you is not part of the OpenID spec at all.
 
10:09 AM
@Jack hmmm, I don't understand why use OID at first place, have some discipline like google, 1 ID all products, wonder how they manage such a giant
 
Money is the key:p
 
@dragon112 Also brains
 
They just throw lots of money into that project and hire a lot of people to make it work correctly
Brains can be hired with money
 
@dragon112 The discipline, elegance, functionality, just cant complain, if I compare FB and Plus, FB sux, it is just losing it's way now
 
@Mr.Alien Google has OpenID as well :)
The reason they chose OpenID is because it's a relatively easy standard to adopt and makes it possible to authenticate from an increasing number of providers.
Or would you suggest that everyone who wants to join SO must sign up for SE account?
 
10:15 AM
@Jack Oh, ok, ok
@Jack Yes, that will be always preferable way
 
Well, I don't have an SE account because I don't want one.
 
Codeviper7 is so unreliable -.-
 
Yeah, it's too successful ;-)
Maybe we should donate some money to get another VPS lol
I wonder how 3v4l.org gets around though, I've never seen it hang.
 
SO also goes wrong on 1 more thing, it never filters proxies
 
What do you mean by filtering proxies?
 
10:20 AM
@Ocramius I do
 
Just like google and fb does, block the user if the location changes, piratebay is a master in this, just show me pass their proxy filter, they use for other thing, like when posting torrents, not possible to bypass without a real ip
even VPN fails
 
Ehm, I'm not sure how that improves anything in particular.
Or why that would even be a concern for the site.
 
It does reduces account hijacking?
 
So you've hacked into an SO user's account ... then what?
 
You can post stuff
 
10:25 AM
jack and jill went up to hill, jill lives there, jack came down and chat here
 
Or something :p
 
\o/ shocker! ;-)
 
I left the job... congratulate me...
 
haha yes, all things are secured here too even if account is hacked, but something like post randoms, downvote randoms, delete answers etc etc?
 
Congratulations!!
 
10:25 AM
@sectus Proud of you
 
@sectus Congratulations, you're now a bum ;-)
 
Did you threw a resignation letter on your boss's face?
@Jack He sings?
 
3 years without any release...
 
@Mr.Alien There's enough mods to counter that for sure :)
 
@Mr.Alien , no... but i left my code too... ;)
 
10:27 AM
Would be fun to have hijacked Skeet's account and start posting bad answers lol
 
@Jack ha ha, they will award him another account with rep doubled
@Jack infact he will get atleast 4-5 upvotes for bad answer too.. you see? crazy fans :p
@sectus Oh y?
 
who is Skeet?
 
All of a sudden you'd see Skeet answering questions and helping users parse HTML with regular expressions ;-)
 
@web2students.com The single highest rep guy in the entire universe.
 
Skeet is a machine!
 
10:30 AM
Well see, we have a unique person here, @web2students.com Skeet is my best friend
@dragon112 Yea, 1st only till I am not answering
 
@dragon112 His apprentice is called Andy Prowl :)
 
Jon Skeet ?
 
Amazing, you've managed to find his first name!
 
ok, i m lil jealous y he is so famous not me :(
 
Not whining about this fact is the first step.
 
10:38 AM
 
Because he has answers a gazillion questions a day
 
@dragon112 dont sugarcoat it. He's a repwhore. A knowledgable repwhore, but a repwhore.
 
@Gordon Haha all are repwhores here
 
Sure he is, how else would he get that amount of rep.
 
@dragon112 Ya so we should consider <5K as not a repwhore?
 
10:43 AM
@Mr.Alien that's not correct. A lot of us have been to some extent in our early days but a lot of us also realized the negative effect is has on the site and stopped.
 
@Gordon Agreed
 
@Gordon Only for the new generation to start doing it in the older generation's place
As long as there is rep this will probably continue
 
Actually he was here when rules were not that stricter, questions were voted by 100's, answers were voted by 100s and questions were not closed
 
@dragon112 given that more repwhores ceasing repwhoring in favor of closing, having younger repwhores is only an issue when young > old
 
573,322 - 188 = 573134 , so i am only 573134 behind him, not too far
 
10:45 AM
@Gordon I guess, depends on the activity of the old ones :)
 
@web2students.com What you'll do with the rep you earn?
 
@web2students.com hahaha
@Mr.Alien sell it on OLX :P
 
@YogeshSuthar ROFL
 
@dragon112 Even if the The Old Ones lie dormant, they are a force to reckon with ;)
 
@Gordon Are you referring to yourself? ;P
 
10:47 AM
@Mr.Alien i will write book C# in double depth
 
"powerful supernatural entity"
 
@dragon112 yes, of course.
 
Very well, Can't say I disagree in terms of SO :p
 
@web2students.com It's waste of tym if you are posting answers for rep, if you are learning than it's good, but just posting answers for rep, is just a waste of tym, they are earning and you are not
 
How to use "create tag synonyms"?
 
true man
 
@sectus Go to a particular page of a tag, you will get an option to create a synonym there
Though the correct word should be suggest synonyms
 
anyway bye all
 
bye
 
@web2students.com cya
 
10:51 AM
Not me, web2students
I ain't going anywhere man!
 
@dragon112 :p
 
I'm just too lazy to @ ping someone :)
 
Can i create one? Nobody would get hurt.
 
If it's useful yes, else it will be deleted pretty soon after
 
@Mr.Alien No mail yet.
 
10:55 AM
@YogeshSuthar Raining at dahisar?
@YogeshSuthar In office, will reply you as soon as I login my mail account ;)
You sent me on xplode?
 
@Mr.Alien Yeah raining. I sent on echo2xplode
 
@YogeshSuthar Cool, will message you around 7 when am done with my work
 
http://stackoverflow.com/questions/17084519/there-is-few-discuss-about-data-analysis-distributed-computing-in-php-community
 
1 more down vote and I'll delete that \o/
 
11:06 AM
Possibly going to be using traits for the first time - can someone suggest how they're not just the same as a static method or global method?
 
@Mr.Alien go for it
 
It's done..but wasn't that a "Not constructive" instead of "Not a Real Question"?
 
I just cheated, I don't downvote unless required, I downvoted, I casted a delete vote, and I took my del vote back, it removed the delete button but did kept my delete vote ;)
@asprin Who cares, it will be deleted anyways
 
@dragon112 ?
 
11:16 AM
Nevermind:)
 
@dragon112 :p
 
hi i have a doubt
in cURL
anybody is there to help me
iam trying to get users latest tweet using OAuth
 
$content = "Shoulder to Legs : $data['size_17'] <br />";

whats the right way of writing this?
simple things are quite confusing lol
 
$content = "Shoulder to Legs : $data[size_17] <br />";
 
am getting json like this
Array
(
[headers] => Array
(
[cache_control] => no-cache, no-store, must-revalidate, pre-check=0, post-check=0
[content_encoding] => gzip
[content_length] => 994
[content_type] => application/json;charset=utf-8
[date] => Thu, 13 Jun 2013 11:18:42 GMT
[expires] => Tue, 31 Mar 1981 05:00:00 GMT
[last_modified] => Thu, 13 Jun 2013 11:18:42 GMT
[pragma] => no-cache
[server] => tfe
[set_cookie] => guest_id=v1%3A137112232264280663; Domain=.twitter.com; Path=/; Expires=Sat, 13-Jun-2015 11:18:42 UTC
 
11:19 AM
@Kishor {$data['size_17']}
@PeeHaa埽 Extra long code in dustbin
 
I have an array thus: pastebin.com/47AAZcW0 I want to find the values of name and number as pairs and ignore the numbered keys
 
while i use json_decode its not working
 
@Kishor remove the ' like this: "Shoulder to Legs : $data[size_17] <br />";
 
Ok cool.
 
whats better? braces or removing single quotes?
 
11:20 AM
Thanks! :)
 
@Kishor $content = "Shoulder to Legs : {$data['size_17']} <br />";
you almost had it right
don't remove the single quotes... That's bad habit
 
@ircmaxell - Yay! Working nice :D
 
cool
 
@ircmaxell Why is using {} better than removing the ''?
 
@dragon112 See I told you to use braces
 
11:22 AM
@dragon112 outside of "", $data['size_17'] still makes sense. But $data[size_17] does not...
 
@ircmaxell That's true, but it's not outside of the "".
 
@dragon112 consistent usage yields muscle memory
 
@dragon112 inside "" use {}
 
Also if he later concatenates the string and if he forgot the single quotes PHP will throw a warning
 
huh?
 
11:24 AM
@ircmaxell Me?
 
@Mr.Alien I think you are using the wrong word: dictionary.reference.com/browse/concatenate Not sure what you are trying to say
 
"This page intentionally left blank." find the mistake :)
 
@Gordon But it's not blank!
 
Why would a page be left blank...
 
@ircmaxell exactly :)
 
9 mins ago, by iroegbu
I have an array thus: http://pastebin.com/47AAZcW0 I want to find the values of name and number as pairs and ignore the numbered keys
 
@dragon112 So if this $arr['txt'] = 'world'; echo "Hello $arr[txt]"; will be fine but will encounter a warning here echo "Hello".$arr[txt]; <- Missing quotes if concatenated, so I prefer braces
 
you should put braces and quotes
 
Yap
 
echo "Hello {$arr['txt']}";
 
11:31 AM
@Mr.Alien Ah right.
 
@dragon112 :)
 
How about that as a bio: I am an International Software Engineer. I am a Craftsman and a member of a team. I serve my organization and the people using our software products and live the Agile Values.
 
@Gordon For you?
 
lolzzz
 
@Mr.Alien nah, actually, I was just checking if the Americans in here would recognize I just rephrased their Soldier's Creed. So it's less of a bio for myself. More like a general Engineer's Creed
 
11:42 AM
@Gordon ha ha ha
gotta program some forms with dirty captcha, cyu guys after 7
 
Hey
Can someone help me please, I don't feel like it's new quesiton worthy
question*
 
@BeatAlex "Don't ask whether someone is here to help you. If someone is around and wants to help they will."
 
Thanks
Basically, I display a whole list of items from a database, but within that list are a few items I've put in manually which aren't in the DB (and can't be). However, these items from the DB have a value and if they don't have a value, then they display something else. However, at the moment I'm using foreach($results as $row), which is good for the results IN the database, but for the results that aren't in the DB, they don't get picked up by the 'else' because they're not in the DB
If that makes sense...
TL;DR -> foreach loop isn't looping through results outside DB
 
Hello everyone
 
hello H
 
11:52 AM
@iroegbu So how are things going ?
 
good
 
I have a separate array which stores all the values (so I can do a foreach and echo stuff for all values, but I can't connect to the DB)
So I'm basically asking for the logic behind it, rather than actal code
 
@NipunGogia hello hello
 
actual*
 
@BeatAlex So what's your current code (simplified plz)
 
11:53 AM
Can you include two foreaches into eachother
 
@BeatAlex that's possible, if it's good in your situation that's another question ...
 
@BeatAlex if you want to include two foreaches you'd need to do for loops
Easier to control those
 
try {
$conn = new PDO('mysql:host=$host;dbname=$db', '$name', '$pass');
$conn->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
$test = array();
foreach ($products as $val) {
$test[] = "'".$val."'";
}

$string = implode(' OR sku LIKE ', $test);
$results = $conn->query("SELECT * FROM `$table` WHERE sku LIKE {$string} ORDER BY sku ASC");

foreach ($results as $row){
if ($row['fv_page'] == 0){
$link1 .= "test1";
}else{
$link1 .= "test";
}
}

} catch(PDOException $e) {
echo 'ERROR: ' . $e->getMessage();
But $products is an array of products
For example, if I select 10 items, 9 in DB but 1 in not, the db foreach only gets 9 results
the foreach($products as $value) array will get 10 results, but isn't connected to the database
 
wait, you have 10 products in your DB (for example)
and you have 5 products in a custom array $products, you want to show in total 15 then ?
 
No, I'll have 10 items in DB and 1 not in DB, the user can select any of them and deselect, so they might decide to choose 5 DB items and 1 non DB item. the $products array holds all 6 items, whether they're in the DB or not
 
11:59 AM
Should this be closed ? In the duplicate, the accepted answer is old and doesn't work anymore
@BeatAlex Ok what does stop you ?
 
@HamZa then fix it on the old questoin (add a new answer), and still close it as a dup
 
The fact that I want some information from the DB about the database items
I want to display all items from $products
but it would only show 5, because the foreach loop from DB will only show 5, since the 6th item isn't from the database
 
@ircmaxell The accepted answer doesn't work, but there are working examples using oAuth ...
This doesn't seem too "difficult"
1- fetch 5 products from the DB and show them
2- loop through $products and show them
 
But then the 5 products from DB will be duplicated
 
foreach ($results as $row){
	if ($row['fv_page'] == 0){
		$link1 .= "test1";
	}else{
		$link1 .= "test";
	}
}
foreach ($products as $product){
	$link1 .= 'test1';
}
@BeatAlex ^ something like that
Or do you have products in your array $products that are also in your DB ?
^lolz
 
12:08 PM
@HamZa It appears the products from the db are also in the $products.
so you'd probably need nested loops
either foreach or for loops
 
@dragon112 Indeed
@ircmaxell lol it seems I'm drunk, there was no accepted answer ...
 
Hi dragon
 
@humphrey hi
 
@dragon112
I need help please
I have files downloaded from gmail
they are php
files
they work nicely local
but online it seems
they have no permition
bt wen I delete em from the folder and I put other files the folda can be acceessed
please help
 
12:17 PM
Anyone ever used PHPQuery?
 
@BeatAlex Try something like this: pastebin.com/zV8gXPWA I don't know if you have something to identify your records/products by (i suppose you do).
@humphrey define "online"..
 
Lke i mean wen i upload the files on a web server
 
Ok what kind of webserver is it
Debian? Windows?
 
Is it a good idea to make a social networking web site based on Zend Framework 2?
 
I really cant even tell
 
12:21 PM
Ok so it's hosted by a 3rd party?
 
yes
but I am sure if I create a new folder and I put new codes it works
but the older files cant
 
I really don't know where the problem lies, sorry
 
@HamZa k I have things in my DB in $products also
 
ok man
 
12:26 PM
 
@humphrey With an ftp program, what permission does it show (your folder) ?
755 ?
strip_tags ? http://php.net/manual/en/function.strip-tags.php
strip_tags($html, '<p>'); ?
 
So I could use strip_tags <font>
?
 
strip_tags removes every tag excepts those you specify
thus <p> will be preserved in this case
 
@HamZa Will it keep the content of the Font tags? I still need that text
 
@JamieH It will strip the tags, try it plz ...
 
12:30 PM
@HamZa Shall do one moment
@HamZa Thank you, That works
 
@JamieH you're welcome
 
You should post it as an answer so I can marked it solved :L
Ah Robert did
 
@JamieH no problem, give robert the creds...
 
Shall do
 
hello everyone i am getting trouble to hide contents ... echo '<td>';
$r = json_decode($rec->checkout);
foreach ($r as $k => $v) {

"<div class="out">"echo $out = $v . "";"</div>"
?>
<input name ="checkout[]" type="textbox" class="TextBox2" value="<?php echo $out; ?>"/>
<?php
}
"</td>";?>
this class doesnt work to hide
 
12:34 PM
@user2206616 ah please enable error reporting ><
you mixed php and html all together ...
 
i am sorry but i new in this field ..so i tried all i could
 
29
A: Close all the typo questions

Pekka 웃 SE Chat room to help coordinate voting Now with live backlog courtesy of Gordon, David X. Random and PeeHaa! Syntax to point out questions that you think should be closed: [tag:cv-pls] (url) It seems difficult to coordinate the voting on this; we seem to be needing a tool. (the Goo...

 
i'm trying to do..$(this).closest('tr').find('.out').hide(); but its not working
in jquery
 
> They even have browser add-ons. Holy crap!
 
@user2206616 I think you should really follow some tutorials or read a book to get the basics otherwise you'll waste time without results ...
 
12:37 PM
can u suggest some links to improve myself..though i hav some
 
@user2206616 nope, I learnt php in three different languages lol
 
ooohh
anyway thank u for the recommendation
:)
 
@user2206616 Do you speak french ?
 
so you are french..
 
@HamZa Then vote them up, and comment!
 
12:41 PM
sorry but i cannot ... i'm Nepali ..
 
@user2206616 No problem, I have a good site in french, well good, it explains the basics ...
 
can you link it for me ??
 
@user2206616 siteduzero.com
 
@PeeHaa埽 How is cv-pls going to change regarding the "required reading" link on the right?
 
I am mailing some user inputs to the an email. Should I be escaping strings? I am curious
<b>Front Length </b>: {$_SESSION['measurements']['size_18']} <br />
would messup if the input is " . will it close the string?
 
12:49 PM
@HamZa thank u very much
 
hello guys :)
 
u r really a helful person to me ...god bless u :)
 
yw ...
This is a bad tutorial, but it may be good for starters http://thenewboston.org/list.php?cat=11
@user2206616 may god bless you too
@Robert Hello and welcome to room 11 :-)
 
@vascowhite explain not working
 
12:51 PM
haha no worries i am just a beginner ..
 
@Robert huh?
 
@vascowhite after while() put { and it will work
 
@Robert cv-pls means "close vote" please
 
very cool tool for website speed testing
 
12:52 PM
We are basically trying to close questions, you need 3K rep
 
blah
 
@ircmaxell woof
 
breakfast time
 
@ircmaxell bon appetit
 
@vascowhite I've checked it and voted to close
 
12:54 PM
@Robert It's a general request, no need to report back :)
 
kk :) dunno "local culture of chatting in stack"
 
@Jimbo We just have to abuse another close reason to close some questions
 
@PeeHaa埽 So what does happen with RTFM Q ? How should we close them ?
 
@PeeHaa埽 Absolute joke. There are far too many "do my code for me because I didn't do any research" questions - yet again "what have you tried?" ...
 
@HamZa Kill it with fire.
 
12:58 PM
@HamZa Pick one tat makes the less sense ;)
 
@dragon112 There will be "new" closing reasons, too localized will be droped if im not mistaken ...
@PeeHaa埽 dat makes sense :p
 
@HamZa I vote for cv-pls plugin to add a new option "RTFM" which automatically uses another close method, and posts "RTFM" as a comment at the same time.
 
The truth is that, basically, if you have done thorough research 1) you have found the answer you are looking for or 2) you don't & you ask on SO and no one could help you
 

« first day (971 days earlier)      last day (3993 days later) »