« first day (760 days earlier)      last day (4178 days later) » 

1:01 PM
@webarto aah.. its Hindi, india's national lang.
http://en.wikipedia.org/wiki/Hindi
in india almost all states have their own language, and malayalam one of them(Hindi too)
@webarto दिवाली की शुभकामनाएं it means Happy Diwali (One local festiva)
@webarto its equivalent in malayalam is ദീപാവലി ആശംസകൾ..
 
@LoverOfEvening It looks like a bit of cotton stuck to my screen
 
1:19 PM
Hello guys, is there any way to generate composer.json using composer.lock file .. some one in our team deleted it..
 
@Vamsi Revert it back from svn / git
 
Right, Hindi, I forgot that Thanks for the explanation ;)
@PeeHaa guess what? :P
 
@PeeHaa : the one that we need was NOT committed..but vendors were installed
thats the reason, I am looking for a way to generate it from .lock file
 
@Vamsi Get it from his Recycle Bin ;D
 
@Leigh : not an option :|
there must be a way .. lol
I am checking docs..but didnt find any
may be I should file a request in github .. not sure if its a good feature ( or worth the time to code it )
 
1:31 PM
@Vamsi First thing you have to do is shoot the person who didn't commit his work. After that try to fix it :)
 
lol
 
@PeeHaa He professes mysqli but his example code lacks "i"
 
@Leigh OP flagged my comment about the fact that just adding an i does nothing
 
@PeeHaa I hate answers that basically start with the word "try". Either you have an answer or you don't :/
 
1:46 PM
@Leigh Most answers started with "try" should have been a comment
 
It is hinting.
 
user1125394
@tereško you have a Router->route method, do you use it internally in the controllers for a redirect, or you would rather do a header('Location:APP_ROOT.'/'.$newurl); ?
 
Absolute URL, you must should use.
 
user1125394
corrected
 
HTTP_HOST
 
user1125394
2:00 PM
recorrected header('Location:$_SERVER['HTTP_HOST'].'/'.$newurl);
 
Just saying.
 
user1125394
imagine you fetch a data, you see something is incomplete, and want to redirect to another controller (not to a view), you'd rather do header('Location:$_SERVER['HTTP_HOST'].'/'.$newurl); or $router->route('Foo', $params); ($router instance passed to the controller)
 
29
Stack Overflow (in Hindi)

Proposed Q&A site for proposed Q&A site for a Stack Overflow for hindi-speaking programmers.

Currently in definition.

Amazingly low uptake, considering (apparently) it's the national language of outsource-topia
 
even I studied , Hindi in School..but I really cannot get that flow
 
user1125394
what the purpose to do Hindi, turkish, ... SO
 
user1125394
2:06 PM
can't they use thanslators
 
Hello guys one question. Will NULL value in 'date' mysql field affect the search result? I would like to use null for lifetime members without expiration date which is stored in that field. Thanks
 
2:18 PM
Any easier way? if(empty($spam)){print"0";}else{print $spam;}
 
What about delete? If i want to delete all records older that today's date. What happens to null records? I DONT want them to be deleted.
 
> If length is given and is 0, FALSE or NULL an empty string will be returned.
^^ I've only just noticed this. This is a massive inconsistency, pretty much everything else in PHP allows you pass NULL to skip a parameter, the above means that you cannot simply pass two variables, you have to handle "extract to the end" as a special case in your code. Am I missing something or should that be changed?
 
l
 
Is there a proper way for getting the innerHTML of a DOMElement? Best solution so far: $html = ''; foreach($ele->childNodes as $n)$html .= $n->saveHTML(); return $html;
 
2:31 PM
@Leigh English is national language too.
 
@webarto International...
 
@webarto We already have an English SO
 
@Leigh Are you talking about localization, or actually SO for Hindi??
 
Thus we don't need l10n ones. Why Hindi, why not Chinese, etc.
@Christian If you translate interface, that is worthless, questions and answers are what is worth.
@Christian National language in India.
 
@webarto What's worth a question/answer in a language other than English?
Let's say we do an SO in German (I've got nothing against Germany), ok? So to fix an error message, I have to translate a question and answer in german?
 
2:36 PM
@Christian I'm just saying if you can't learn English, and you call yourself IT something, then you should definitely change profession. (Not talking about you of course).
 
@webarto I completely concur with that.
 
English is easy language to learn really, and it has been adopted worldwide, there are no excuses.
 
Actually, seems I was ping the wrong person. It's @Leigh I wanted to direct my answers to.
@webarto All language manuals eventually end up translated to English.
 
@Christian SO in Hindi
 
Go home @Christian, you are drunk.
:P
 
2:38 PM
@webarto Huh? No, I meant that even esoteric Russian programming languages end up translated to English.
 
1 min ago, by Christian
Actually, seems I was ping the wrong person. It's @Leigh I wanted to direct my answers to.
I thought I replied to this :)
 
All (non-English) language manuals eventually end up translated to English.
^ This is what I meant. :)
@webarto No, just bloody tired. Trying to fix 6 different problems at the same time, 4 of which not even related to computer/programming (gasp!)
 
Let us take PHP manual for example. People wasting time translating English to other languages, while the English one is not perfect, so it's Sisyphus work, and rather pointless one, there are exceptions, not.
@Christian You go, gurl.
 
@webarto I'm ok with it though. I enjoy getting manual URLs in German from @Gordon :D Always reminds me how much linguistically stupid I am.
 
@webarto Smells of VB... but that's not really fair, because that would indeed be useful.
 
2:49 PM
@Christian Deustchland is an exception :)
@DaveRandom It sure would, although I don't think that is possible in PHP at the moment.
 
@webarto Why? It equally sucks as other languages. It's just some languages suck more. The only language exception to suckiness is English. :)
 
> ...how much linguistically stupid I am.
@Christian ^^ evidently
 
@Christian Silence or your country will be invaded and in debt.
 
@webarto Not a possibility. We don't invest in America banks. :D
 
You are drunk :D I was talking about ze Germans :P
 
I was under the impression that the feature of writing assembler inside Delphi/C/C++ code was called "inferred assembler". But I can't find anything to backup my claims.
Well, there's this article, but it doesn't say anything about "inferred"
 
@Christian Enjoy...
 
Uhm....what's that again?
 
@Christian HTML-aware substr()
 
wow, just found out when selecting a specific item on an online-shop, the website goes down.
 
3:20 PM
Easter eggs? :D
 
@DaveRandom :-(
 
@Christian Screw you then :-P What, you no likey?
 
@DaveRandom I was writing mah own.
And it nearly works.
Actually, I just have to fill in a couple more lines.
OK, finished it. Don't say I copied it from the code you gave me because it's true and I don't feel like lying, so just imagine I wrote it myself. :D
 
lol
 
Jokes aside, you wrote this? Can I credit you?
 
3:28 PM
@Christian Yeh it seemed like an interesting challenge. Only thing I aware of is that it considers empty text nodes as consuming length, which might not be great for real-world HTML. Really an empty text node need to be considered as one character (zero characters?), and each block of leading/trailing whitespace in any given textnode should be 1 character. I will fix shortly, have to do some real work
 
Dave is on drugs...
 
@webarto always
@Christian also output is UTF-8, so you get e.g. a literal © and not © - not sure what to do about that one, it's very difficult to detect the right input character set for a fragment of HTML. I would probably just make sure the document where it is displayed is UTF-8 (I do anyway)
 
Actually, on that note, the substr() operations probably need to be mb_substr()
 
@DaveRandom As I mentioned earlier, I would have tried to operate on the source HTML textnode string directly.
So that if a website sends © or ©, I see it as one token.
And the output is whatever token it was.
Hence no need of messing with charsets.
What I need to figure out though is multibyte support.
 
4:01 PM
hi everyone :)
i want to change the style sheets when user selects an option from dropdown and press update in php
<select name="theme" value="<?php echo $theme; ?>">
<option value="Default">Default</option>
<option value="Dark">Dark</option>
<option value="White">White</option>
</select>
 
4:20 PM
I found a bug in the movie... in bottom left corner, it says HENTY instead of HENRY
R and T are adjecent on keyboard...
 
@cyril neither
 
How can I use php to get an international date
 
posted on November 14, 2012 by Anthony Ferrara

There's nothing as universally controversial in this world as change. Change can be (in aggregate) for the better or for the worse, yet people will always be split down the middle. Some will believe that the change is a good thing, and others will see it as a bad thing. Often your view points will be dictated by your perspective and how the change will directly effect you. When it comes to soft

 
Can someone get @ircmaxell back here please?
 
user1125394
@tereško ........ there shouldn't be any redirection in the app?
 
user1125394
4:32 PM
you just end up by choosing a view template?
 
Hi everyone can someone throw some light on solving this issue? stackoverflow.com/questions/13372796/
 
@webarto Not on dvorak. :D
 
is it possible to get an international date even if your settings are not for that place
 
International date would be what..?
 
for example this: Wednesday, November 14, 2012 / 29th of Cheshvan, 5773 (< this last part after the "/" would be the international date)
 
4:40 PM
@benlevywebdesign You mean change the timezone...?
 
Well I want to display the US date and then the Hebrew/Israeli date just like above but the way they did it on the site uses javascript and I was hoping it was possible with php
 
Read the manual.
 
Everything (almost) is possible with PHP.
In computability theory, a system of data-manipulation rules (such as a computer's instruction set, a programming language, or a cellular automaton) is said to be Turing complete or computationally universal if it can be used to simulate any single-taped Turing machine. A classic example is the lambda calculus. The concept is named after Alan Turing. Computability theory includes the closely related concept of Turing equivalence. Two computers P and Q are called Turing equivalent if P can simulate Q and Q can simulate P. Thus, a Turing-complete system is one that can simulate a Turing ...
 
pce
Hi!
 
4:43 PM
HELO
 
Is it possible to get the local time stamp. Suppose I posted an article into my blog @ IST, I wish the users should view the article's timestamp according to their local time? Is this possible ?
 
pce
Webkit got a funky method to parse invalid CSS Colors: parseColorStringWithCrazyLegacyRules ( stackoverflow.com/questions/13381226/… ) @hakre
 
user1125394
@tereško how do you perform Post-redirect-Get without inner redirections, (that's mainly my issue, when user log in, I want to refresh url )?
 
I'm confused or lost on this
 
4:47 PM
@pce wow.
 
@webarto should I use this kosherjava.com/hebrew-date-plugin that I just found
 
I don't know, my world runs on UTC.
 
Evening all. I'm implementing a payment gateway (not Paypal) and I have both SOAP webservice (where the costumer sensitive data pass through our server/application) and the HTTP/POST method, where the costumer is redirected to the gateway's environment instead of typing the data on our app. The second option seem to be more secure, but in the first we avoid all that crap redirects.
What you guys recommend? Chose the first option and outsource the server/application security audition or the second option?
I'm taking this question as a basis too: security.stackexchange.com/questions/1215/…
 
Have you ever heard of encryption?
 
Sure...
 
4:54 PM
> where the costumer sensitive data pass through our server/application
so I don't see what is the problem, encrypt everything and it's good...
 
@KeyneON Sounds like a common decision where you need to decide between "more secure" and "It's me who dislikes redirects, they suck". Base your decision on what is more important for your cusomters, not yourself.
 
Then talk back to the stakeholders, what they want.
 
I'm not a server admin, so there's the server security. I'm also not a security expert, so I will take care of the basics that everyone else does (sql, xss, SSL/TSL, and so on). I'm sure that they will prefer the more transparent way (webservice), but depending on the side effects, we will be able to chose for the second option.
 
What is your role in the project? I mean why do you need to ask yourself that question?
 
4:59 PM
I'm the company owner (small agency) also a programmer.
We are selling LMS system with credit card payments. We have a buget, so I need to make sure what's the best way to go, mainly for security reasons.
 
You shouldn't really discuss security issues with strangers in chat room, it is not that we are not l33t, h4x0rz, etc. It is just that you need to figure this out on your own.
 
@KeyneON Make yourself comfortable with the legal requirements to process card payments.
I think then you can do a better decision as company owner.
 
Okay. That makes sense. In case of outsourcing security audition, can you guys point me out a good company? (server and software audition)
Also, for example, services like this one: cloudflare.com/features-security
 
Oh my...
 
@pce: The HTML5 draft says "return an error". Why is the error converted into green which is generally a sign for OK?
 
pce
5:08 PM
i think that is because it is a HTML Attribute, with CSS that won't work.
 
@webarto Just hoping for hints, not consulting... Anyway, thank you. =) Will get back to work now.
 
@KeyneON I don't think you should depend on CloudFlare or anyone else... if something happens, it should be your fault...
 
@pce Even HTML5 says for body: "The bgcolor attribute on the body element is obsolete. Use CSS instead."
I can only imagine this is a HTML4 fallback.
 
pce
@hakre yes, that's for legacy code (markup)
 
@Christian Now multibyte aware and more intelligent regarding whitespace: codepad.org/aLeJGe0r - I'm still not happy with the whitespace handling logic, but properly predicting how a browser will render it turns out to be pretty much impossible without maintaining internal lists of how certain tags behave, which is obviously not very practical. Can't show a working demo because codepad.org doesn't have mbstring installed :-(
 
5:12 PM
 
@webarto Reasonable
 
I cannot find any way of preventing libxml converting entities that have a unicode representation into their actual characters. Seems to be a problem many others have had, and there is no solution that I can find.
 
@pce: So I really wonder - considering back-compat - why such a wrong result is given in the browser. I mean obviously the coder must have been looked into the wrong HTML specs.
 
pce
@hakre Jasper said it is from back in the days, when the specs weren't adhered to by browsers be rendered correctly. CSS came later with a Specification.
 
@pce Which could only be for the non-standard color names that were used in the past. Does not explain anything in my eyes how to turn into green here.
Also that saying is not specific at all. Like legacy, all legacy, too lazy to explain. I have no clue, but sounds cooler.
 
pce
5:20 PM
@hakre mmhh...legacy sounds not cooler, only they were not strict ... they (webkit) call it if it's a invalid Color at Line 1150 code.metager.de/source/xref/WebKit/Source/WebCore/html/…
@hakre true, because legacy sounds cooler than invalid :)
@hakre i think legacy because of this : <body bgcolor=ff0000></body> (Mozilla Test: code.metager.de/source/xref/mozilla/B2G/gecko/browser/… )
 
5:41 PM
@cyril only necessary redirects are ones that come from POST requests (and happen in views, because location header is a form of response)
the routing process itself shouldn't cause redirect
 
@pce well the code given is not about that.
which is even partially valid HTML.
 
user1125394
@tereško in LoginView: <?php if (isset($_SESSION['user'])){/*I have nothing to do here*/ header('Location:/main')} ?> Login... you mean this? with header or with $router->forward('main')
 
in my humble opinion , you should not be checking rights to access when you are already in the MVC triad
wat ?
 
user1125394
hm I see, this will be in the decorator pattern of controllers in the router, doing access-control
 
pce
@hakre The HTML Parser takes the attribute as it is, and if it doesn't match a valid Color, they skip the leading # and support declarations like that, i think there. because in CSS you can't skip the leading #
 
5:48 PM
@pce The HTML 5 specs says you should error in that case (HTML, not CSS)
 
@cyril it is no in the router , and it is not tied to controllers
 
@Christian Minor bugfix codepad.org/C1iAINWA
 
pce
@hakre we should open a ticket in Webkit and Mozilla's Gecko :D
 
user1125394
@tereško so it is in the view you say? a decorator for the view layer then?
 
@webarto I found a plugin that does the trick
check it (I'm just creating the site so its not styled yet) benlevywebdesign.com/templeisrael
 
user1607528
5:51 PM
I have a really interesting css problem , too long, I can't ask questions on SO .
 
@cyril stop guessing
 
user1607528
Do I ever will get unbanned?
 
user1125394
that's all I can do..
 
@pce Function does bullshit. Please blame and explain. :)
I think they will then tell why ;)
 
user1125394
I have something working, but wanted to make it more organized, but can't grasp your way to do it
 
5:53 PM
I need to administrate the kitchen now.
 
pce
Smaklig måltid!
 
user1125394
hm k I'll put this small Php framework on github soon
 
user1125394
there is more intelligence in the webservice/ db
 
6:06 PM
Hmm I'm trying to configure the plug-in using the settings control panel like it tells me and some of the options are not working
 
@hakre You ready for the war? ;)
 
6:30 PM
in JavaScript, 2 mins ago, by rad
$query_string = "UPDATE user_activity224
SET emc_booth_visit = '" . $_REQUEST['emc_booth_visit'] . "',
emc_rep_discussion = '" . $_REQUEST['emc_rep_discussion'] . "',
car_race_participation1 = '" . $_REQUEST['car_race_participation1'] . "',
Come! Join us!
Javascript Room: Where people go for PHP help!
 
http://hasin.me/2012/11/15/running-zend-framework-applications-in-appfog/
Planet PHP
Running Zend Framework Applications in AppFog
Hasin Hayder
1352917080
 
6:56 PM
@rlemon he does not need help .. he needs a different hobby
 
Feeds, what are you doing, Feeds, STAHP.
 
@webarto , ya know .. you can put feeds in the ignore list
 
Oh wonderful.
Who decides what Feeds post?
hasin.me/2012/11/15/… who needs this, really?
 
it's the incoming stream from PanetPHP site
i think there ar few other source too , but they are all equally bad
 
Yes, man, where is the real s*...
 
I had a bat bot crawl ~150 (!) of my pages last night, so I'm making a bot trap.
It needs testing...
 
You mean, bad bot?
 
7:37 PM
Ha ha :D
 
Because you've said this.
 
It crawled three pages within one second at one point.
Does anyone volunteer to get their IP temporarily blacklisted on my site??
Mozilla/4.0 (compatible; MSIE 7.0b; Windows NT 6.0)
That's the bot's user agent. It's pretending to be IE7 beta on Windows Vista.
 
Where is it from?
 
It has 2 or 3 IPs, but one is 38.99.82.215.
 
7:44 PM
38.99.82.215
38.99.82.196
 
user1125394
1.3.3.7
 
if(strpos($_SERVER["REMOTE_ADDR"], '38.99.82.') !== false)
  die;
:P
 
user1125394
or like Stack Overflow if ($_SERVER["REMOTE_ADDR"] === '127.0.0.1') { //admin}
 
Ha ha :P
Deny from 38.99.82.0/32
Is that valid?
I've already made a script to blacklist bots, can someone um, test it? :D
 
8:03 PM
There we go
 
You posted that before ^
 
But only now I see the onboxing
 
".. i have 12 years of development experience .. "
 
He has twelve years of development experience. Don't talk down to him!
 
I have 4 years of internet.
 
8:16 PM
Tell me more about your four years of internet.
 
I first started with dial-up, it was good, but I felt like I wanted more, and then moved to wireless, then cable came, I never looked back.
 
Hey guys, I have a problem here: http://eehun.zxq.net/?a=PWNiYhquDubEI
The index.php has a line of script: <script>var ee_roomname = '<?php $_GET[a] ?>'; console.log(ee_roomname);</script>
But when I open the url, it doesn't set the value to "PWNiYhquDubEI" like it should.
I thought about asking here because I may have made a stupid mistake, and Idon't feel like embarassing myself
 
<?php echo $_GET['a'] ?>
 
oh yeah, missing echo
 
8:23 PM
<?=$_GET['a']?>
 
thx
 
user1125394
Do you know how to put more left margin for the text in a <input value"foobar" type="search">
 
user1125394
ok: padding-left
 
margin is "margin-left"
oh the text
nvm
 
@31.47.26.218, did the bot trap work?
 
8:27 PM
It is me.
Your IP has been blacklisted.
 
So it does work :)
 
Of course it does.
 
@webarto you fell into the trap -- he now has your ip address
 
Oh noes, I'm funked.
 
The .htaccess rule has been removed.
 
8:28 PM
Damn, I clicked it, now what?
 
It says you are blacklisted?
 
Welcome to The Trap.
 
God dammit
Yeah it says that @ShaquinTrifonoff
 
54 secs ago, by Shaquin Trifonoff
The .htaccess rule has been removed.
 
@ShaquinTrifonoff What does that link supposed to do?
Trap crawlers?
 
8:30 PM
i think it stops bots that index pages
 
@MadaraUchiha Yes, ones that disobey the robots.txt file.
 
but damn i keep getting blocked...
 
Well, it worked :D
95.35.63.240, unblock me please
 
1 min ago, by Shaquin Trifonoff
54 secs ago, by Shaquin Trifonoff
The .htaccess rule has been removed.
 
Mine's 80.99.188.81
 
8:31 PM
I know.
 
D:
 
Anyone here reads Naruto and has yet to read the latest chapter (I fear of spoilers)
 
nope
what the
shaquin.tk/.htacess block me?! xD lol
 
Oh, it just says that for all 403's.
I should make it better than that :)
 
:D
its interesting to know how you can give random errors to whoever you know the ip of :D
 
8:35 PM
I could change it from 403 to 402: Payment Required.
Bad bots would have to pay to get un-blacklisted :D
 
who has iPage ?
is there sombdy here ?
 
I don't have iPage.
 
do you know how to use it ?
 
user1125394
53 secs ago, by Shaquin Trifonoff
I don't have iPage.
 
@user1301411 Nope.
 
8:41 PM
ok
 
@user1301411 is that something new from apple ?
 
hi guys , i have read this post but i didnt understand how he have fixed it with html
if i want use background-size: 832px 578px , then how it will be ?
 
@tereško no a hosting service
 
<div style="filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='img.gif',sizingMethod='s‌​cale'); -ms-filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src="img.gif",sizingMethod="s‌​cale");"></div> this is his code in html
so if i want use background-size: 832px 578px , how it will be implemented in it ?
 
@ShaquinTrifonoff What does that supposed to do?
 
@MadaraUchiha The first button makes you leave all chat rooms, and the second logs you out of Stack Overflow.
 
Hey guys, does anyone know the datamapper ORM for code igniter?
 
@MadaraUchiha I don't think that Jeff will be pleased that I worked around the frame-buster ;)
 
user1125394
9:23 PM
please how do you extract function names with namespaces lib\Request::read --want-> read, just exploding '::' ?
 
user1125394
this is from __METHOD__
 
Anyone ever written a DNS client? Just need to query A records but need to do it in a non-blocking way.
:6224905 For these purposes yes. It's alright, should be fairly trivial to write, just wondering if someone could give me a leg up if I'm reinventing the wheel
 
is that normal that my new site works on my computer but not on my father's ipad ?
 
9:39 PM
@DaveRandom I thought Lerdorf came in here :D
 
@user1301411 What browser are you using on your computer?
 
@webarto He'd never come here, he hates programming, remember?
 
@DaveRandom Yeah, he loves solving problems only.
I need to download PHP 5.2.17 ... still a better love story than @DaveRandom PHP 4.
 
@webarto What do you need 5.2 for?
 
hi.. any magento expert here?
 
9:43 PM
@DaveRandom It's currently on one server on production, I want to push code, but I have tested it with 5.4 only. Better safe than sorry, but I'm sure it will work. There are some other apps on server that might break if it's 5.4. I hope they will.
/me hates database versioning
 
The click-jacking demo seems to be functioning perfectly. shaquin.tk/experiments/test3.html
 
im expecting to see everyone get logged out soon lol
 
any magento expert here?
 
@user1301411 yes
 
@webarto I know what host you are using :D
 
9:59 PM
@ShaquinTrifonoff It is hidden in caves, in @PeeHaa country :P
 

« first day (760 days earlier)      last day (4178 days later) »