« first day (967 days earlier)      last day (4206 days later) » 

18:01
@MadaraUchiha are you aware that you are asking to ask?
@tereško Nevermind, managed myself :P
by using php.net/manual/en/function.geoip-record-by-name.php function if someone access a site at india do i get India if in America i get ameria or i just get the place from where the site is being hosted
hey
is anyone good in ajax?
@EliteGamer Where is ajax?
where?
18:09
yes
is it a place? I suppose it could be a box if somebody is in it.
the language...
Or maybe you mean to ask "Is anybody familiar with AJAX" :)
yes
is anyone good with ajax?
ajAxE
i need this code simplified, and that is as good as i can get
var http = createRequestObject();


function sndReq(action){
nocache=Math.random();
http.open('get', '/cgi-bin/cgi_test.exe?&nocache = '+nocache);
http.onreadystatechange=handleResponse;
http.send(null);
}

function handleResponse(){
if(http.readyState==4){
var response=http.responseText;
document.getElementById('foo').innerHTML=response;
}
}
18:13
how about jquery and ajax.. codes become much shorter.. although some people believes jquery is the worst thing that happened to javascript
@EliteGamer AJAX isn't a language, its an acronym. In this room it is best to just go ahead and ask your question, preliminary questions just get facetious answers like mine :)
:D i think there is a AJAX room
with no one in it :P
@EliteGamer There is also a javascript room.
Anonymous
18:14
chat.stackoverflow.com/rooms/30213/ajax
@HamZa and all day I've been thinking its Sunday!
@vascowhite I wish it was friday ...
@EliteGamer Simplified in what sense?
@HamZa sudo Rewind 2 days :)
Throw enough jQuery at it and you're done
Flees from @PeeHaa
Hi! I'm "having fun" with a chicken and egg problem. Does it make sense to create an IOC that instatiates a logger and uses it for its own needs?
18:17
say me nah php.net/manual/en/function.geoip-record-by-name.php this gives the location of the visitor or the location of the server
yesterday, by vascowhite
sudo jquery fixes everything.
@vascowhite hahahaa
i hate being sick .. and tomorrow i have to go to work .. FML
@MadaraUchiha This doesn't sound good. I really prefer innerHTML += "<some>HTML</some>"; I don't like things like createElement etc. :-/
@tereško Get well soon.
18:21
@bwoebi Do try to learn, because they are much better than doing it with strings.
59 mins ago, by HamZa
http://code.google.com/p/phpquery/
this sounds interesting
Don't, seriously.
I think I'll prefer this...
@MadaraUchiha why not?
Not for something that trivial
18:23
Just... learn your proper DOM
Trust me that it isn't that complicated and once you learn it you'll start seeing the potential everywhere
at least, I don't see any querySelectorAll in the DOMDocument class...?
@MadaraUchiha really? I rarely read html/xml data...
@bwoebi You do it more than you think.
How many times have you used jQuery for stupid things like "Hide this element"?
Or using strings to manipulate HTML?
@MadaraUchiha I meant with PHP
@bwoebi And yet, here you are, in need of a DOM parser
18:27
@MadaraUchiha $(...).addClass("hidden"); this?
@bwoebi Yeah, this
Why not document.getElementById("something").className = className + " hidden";?
Much much faster.
@MadaraUchiha The few times in a year I need to parse HTML in a year, are they really worth to try to use DOMDocument...? (with PHP)
@MadaraUchiha Much much longer.
@bwoebi Yes, without a doubt.
18:29
:D
Because you learn it once, and you know it for lifetime.
make a library for urself
Not only for PHP, this is a DOM standard, any language parsing DOM will probably have some sort of implementation of the same thing
@blackbee no; I let people who know better the DOM writing such libs :o
This means that all the methods are similar across languages, the handling is similar, and the conceptual model is similar.
18:31
But somehow the dom needs to be parsed with raw string accesses...
Bump. I'm "having fun" with a chicken and egg problem. Does it make sense to create an IOC that instatiates a logger and uses it for its own needs?
The DOM represents the structure of a web page, useful knowledge for anybody developing for the web.
or how do you think libxml parses a DOM?
@bwoebi A perser, or a lexer.
u can have a library where u can have a fuction like function hidden(var id){
document.getElementById(id).className=className+"hidden" }
what has an expert to do with this..
18:33
One of the best articles you'll find: html5rocks.com/en/tutorials/internals/howbrowserswork/…
^ @bwoebi
@MadaraUchiha exactly; but I think it costs more time to lex a whole DOM instead of doing a little regex?
@bwoebi Depends for what purpose
Is your HTML 100% predictable? Same format, spacing? charset?
If so, regex is an option.
If not, your regex will break. Horribly. Trivially.
@MadaraUchiha \s* helps for spacing...
@bwoebi It doesn't help with line breaks.
@MadaraUchiha [ \t\v\n]* so? xD
18:35
@bwoebi You see where this is going, don't you?
@Nile long time no see
yes, I do. But sometimes even the classic XML parsers break when there's invalid HTML which is rendered correctly by browsers for example...
Line breaks ?
(?:[\t\v\n]|<br\s*\/?>)*
well ... my coworkers are using substring() && strpos() fo that
@tereško lolz
18:39
@HamZa stop it; we all know that regex is no good idea; I just didn't understand why...
@tereško are they working on libxml? :p
@bwoebi I'm the type who uses regex to prove it's possible !
@bwoebi i doubt they know what it is
@tereško löl
What did I write "\v" (facepalm)
@HamZa what's the problem with the vertical tab?
18:43
Regex is possible
It's usually not a good idea because HTML is so flexible.
@bwoebi I forgot the "\r" !!!
@HamZa and the normal space xDDD
@bwoebi please define "know" then :) and good morning!
18:44
lolz
@hakre Is it monday there ?
@hakre information you know = information which is in your brain, but not accessible ;-)
@HamZa somewhere in the universe is monday, always.
@hakre I'm talking about our dimension: earth
@HamZa did you want to say that we have 5 dimensions: time, x, y, z, planet?
18:46
@hakre It's called "Hell"
@bwoebi there are way more dimensions !
@HamZa what about the unified dimension where dimensions only exist in our brain? :p
@HamZa perhaps somewhere is already monday on earth, yes.
@bwoebi I almost read that as "undefined", it seems I'm still in a dimension called PHP ...
@HamZa go away with the string != "undefined" the only true undefined check is in JS with !== undefined !
how to get the ip address of the visitor
@blackbee Looks good, thanks
i mean, can this be used to get the visitors ip address?
18:58
@bwoebi nay, !== void 0 =D
in js?!
Evening
@bwoebi Actually it is !== 'undefined' ;)
with a nice typeof
@PeeHaa埽 ah, yeah
for typeof you wouldn't need the !== though :)
@Jack What do you mean?
19:01
sometimes I hate the non-strict operators^^
typeof bla != 'undefined' suffices.
I always hate them when I really expect a type
though, in the case where you're testing properties you can just have a.b !== undefined.
assuming a is defined of course.
@Jack -1 terrible naming
:)
lol
foo.bar !== void 0 ... better? :)
19:09
lol
ok people I'm going to get a beer. Talk to you later tonight
hey anyone can give me marquee code with recent post title for wordpress..
@PeeHaa埽 i know marquee code but i want automatically recent post show in marquee code
19:29
@PeeHaa埽 That's AWESOME!!!
It is isn't it :D
Now I'm really gone drinking beer
@SmartShovon PS aren't you that spammer
One of the most beautiful things I've seen today.
lol @PeeHaa埽
> Oh POINTY Birds subliminal message: evan is a nice guy, buy him a G5
Ubuntu experts: how can I set up double and triple finger taps on my touchpad for middle and right-click respectively?
@PeeHaa埽 i am not spammer... i want a suggest just it... i don't provide any link..
Good afternoon!
@SmartShovon Yeah well, you do that by learning to program in PHP and WordPRess themes.
If you can do that simple thing, perhaps you should consider hiring a developer to do it for you.
19:34
what have I missed in the past week?
@ircmaxell The crypto vs hash question getting locked.
On its way to getting unlocked now though
(See first pinned message)
@PeeHaa埽 too little <blink>
@ircmaxell Also this!
I don't disagree with the locking. And it's not an issue on my side, so no skin off my back ;-D
@MadaraUchiha
19:38
@NikiC blink doesn't work anymore in gecko...
@bwoebi aww
I pick up my google-point-of-view-data-collector on Thursday
@NikiC …esome?
doesn't work in chrome either
setInterval(function () { $(..).toggle(); }, 500); shall we emulate <blink> now? :-P
19:41
@bwoebi setInterval($('blink').toggle, 500)?
@ircmaxell Would you say that the question is not a good, on-topic question for this site?
@NikiC yes.
@bwoebi $(selector).blink()
Also, you lose rep (not sure how much you care)
@MadaraUchiha I think it's really blury
@MadaraUchiha not for lock...? I thought it was only on deletion
19:42
@ircmaxell wtf, this works? jQuery people have done sth wrong!
@ircmaxell I actually think it fits perfectly for the site
@ircmaxell I mean you lose potential rep, all those who would upvote you in the future.
@ircmaxell so how was the conf?
when i write
$record = geoip_record_by_name('www.google.com');
if ($record) {
    print_r($record);
}
in php codepad it doesnot return anything
19:43
@MadaraUchiha Oh? I think it would be better suited for security. or crypto. or even programmers
because it's more of a "generic" question. Aka it can't be answered by code or by talking about code. it's another meta level up
@ircmaxell ah okay, thought it would be in the actual core lib ^^
but I can see it as well. So I'll leave it to you
@NikiC really good. Was an absolute blast. You should have come :-D
@ircmaxell I know ^^
Would the UK be doable? PHPNW?
that one is also awesome
@ircmaxell I can't wait for the day I can actually go to such conferences :(
19:45
@MadaraUchiha Why can't you today?
@ircmaxell I'm a soldier in the IDF
Ah ok
While I can take vacations to outside the country, it's quite impractical for me
Need to finish your time before you can travel?
Both financially, and the sheer weight of paperwork waiting for me once I get back :D
19:46
why isn't geoip_record_by_name() not retruning anything?
@MadaraUchiha yeah, makes sense
@ircmaxell Soldiers in Israel don't get paid much
around 100$ a month
Well, is it mandatory? (country compelled service, aka everyone from 18 - 20 or something like that must serve)
@ircmaxell still waiting for your plane?
@igorw 3 hours to go
was pushed back twice
19:48
@ircmaxell Yeah, 3y for guys, 2 for girls
Ah, interesting. How much more time do you have?
@ircmaxell I'm actually past my 3 mandatory years
Ah cool. Making a career out of it?
I've started my voluntary service about 3 months ago :)
Late to the party but <blink> can also be 'achieved' with CSS animations - intahwebz.com
19:55
Nah, saving up some moneyz before I go
@Danack bad web dev, no donut. You don't make clean implementations of . It has to be dirty by shear premise...
I don't hate the military, but I feel as if it's a place for the medium people.
@ircmaxell I tried to make up for it with mispeeelings on the page.
@MadaraUchiha feel like elaborating there? You have peaked my interest...
The army kicks the lows out, the highs leave on their own for a better paying career, which leaves the medium.
19:56
@MadaraUchiha and which sort of person are you? better than medium?^^
@Danack :-P
@bwoebi I'd like to think that, actually
@MadaraUchiha Yeha, that's understandable
By "medium" I mean by aspiration, not by skill
A friend of mine is in year 10 in the US Army. He's half going to go for 25 years (career here), and half thinking of walking now...
19:57
People who aspire to be mediocrity usually remain the in army.
@ircmaxell The US Army is different.
very much so, not disagreeing there
In the US army, not to mention it's voluntary by nature, the pay is higher, the treatment is different, everything's different
I need to be told how great I am at least once a week by everybody because while I am perfect I am also very emotionally needy.
We made a joint drill with the Mericans a few months back, and they mean business.
@MadaraUchiha True, but the treatment isn't necessarally that different for everyone. Pay and structures are definitely different
19:59
@ircmaxell I mean the treatment by the general population
My buddy was in afganastan and iraq, and from what he was saying, the Dutch are the craziest (in the "you don't want to f#$# with them" way)
When everyone serve, it's a given. When someone volunteers for it, he's protecting his homeland while risking his life.
@MadaraUchiha hmm, in what way? Your army is looked down upon?
@MadaraUchiha if only people looked at it that way
@ircmaxell I'll give you the best example I know
In Israel, soldier hitchhiking is forbidden.
Because of danger of kidnapping
To help with that, soldiers have free and unlimited public transport, on all lines and the train.
Hello. I have a class with methods. How can I load only 1 method? I use $this->output[] to pass variables to view, can I load only $this->output variables from "loaded" method?
20:02
That is basically the same here... Or similar (except it's only free when on duty). And everyone hitchhiking is forbidden...
Due to that fact, I've seen many bus drivers behave... less that professionally towards soldiers since "they don't pay anyway"
@UchihaObito What?
@MadaraUchiha ahhh, that's FUBAR
@UchihaObito You go to $Juubi->spawnJuublings(9001); and hope that's enough to beat the Shinobi[] $alliance.
@MadaraUchiha ofc its enough, it's over 9000.
@Jimbo for example i enter /homepage/index/ - i want to load class "homepage" and load the "$this->output" ONLY from method called "index", not from all the methods
@ircmaxell You see, I'm not saying there isn't respect for the soldiers in this country, because there is, and I do see it.
But sometimes, It's become somewhat of a routine, and it's annoying.
How often do you see a soldier, uniform and everything walk down the street? Or take the bus with you?
I'll bet you my paycheck that not as often as here.
it's not as often
@UchihaObito So only call $this->output in your index method then
@Jimbo nvm im stupid
I'm not saying that soldiers are saints, yeah? We are talking about 18-21 year olds
20:08
@UchihaObito Lol, go on.. what've you done
@MadaraUchiha No, I totally get what you're saying
@MadaraUchiha Have you ever killed a person ? You don't need to answer if you don't want to. I just want to know how does it feel ? Does one keep thinking of it ?
@Jimbo i'll just return $this->output as array with method name
But still, that 18.5 year old is guarding your ass while you sleep, to prevent the next familiy getting attacked, or the next train getting bombed.
@HamZa The people I know who haven't, wouldn't answer that question on principle. Those I know who have, wouldn't answer that out of respect...
20:09
@HamZa Heh, no I haven't killed anyone, I'm in the IAF.
@ircmaxell I see, not familiar with this kind of situations ...
@MadaraUchiha International Accredation Forum?
/me is expert googler
@HamZa completely fair
@Jimbo Israeli Air Force
@MadaraUchiha Awesome, your rank?
ixnay on the personal information-ay
Ranks are quite different than what you may think, I'm a Staff Sargent though.
In Israel, ranks go from: Private > Corporal > Sargent > Staff Sargent (for the mandatory period)
Oh, wait was that a personal question? Sorry, didn't realise... :
My Grandad was in the British RAF, he was a Flight Lieutenant, worked in ATC during WWII
@Jimbo It's fine, I walk around with those ranks on my arms every day, it isn't private :)
@Jimbo What kinds of planes did he flew?
20:14
@MadaraUchiha I'm not sure tbh, although he always told me that he taught others to fly
When I showed him combat flight simulator on windows for the first time, he was like WHOAH
@MadaraUchiha Best comment ever ... Thanks 10000000000000000
@Baba Sure thing, really beautiful and extensive.
@MadaraUchiha i guess i was not drunk that day ..... :)
@MadaraUchiha How is the country now ?
Good, thanks
Syria's stirring to the north, but nothing here for now :)
@MadaraUchiha good good ... I hope it can stay that way
20:19
2.5 hours til my flight
@ircmaxell I'm finishing my 6 hour guard duty in about 40 minutes
You'll live :P
You are guarding PHP chat room? ;)
@MadaraUchiha I've been traveling for 15 hours now... And won't get home for at least 5 more hours... But yeah, I'll live (hopefully)
@Danack Nope, I'm guarding this God forsaken place in the middle of nowhere in the western bank, with a long M16 rifle and 5 magazines, stuck in this tiny position 3'x3'. I'm lucky to have my laptop here too :)
@ircmaxell Well, I'm guarding 10 hours a day, for 3 days now, and 4 more days to come :)
I know, I'm not comparing ;-)
20:23
:D
@ircmaxell sucks, let me entertain you. I'll draw something on my pen tablet. what is your request?
lol
Actually, I am going to go try flying into a different airport, just to go...
later!
good luck
Cya @ircmaxell
Ubuntu experts! Please help!
@MadaraUchiha rmrf usually solves the problem
20:31
Trying to configure my touchpad 2 finger tap and 3 finger tap to have middle click and right click respectively
Currently I only have left click for single finger, and right click for 2.
@igorw Shouldn't that be sudo?
@MadaraUchiha I assume you've looked at Multitouch and TouchpadSupport?
and I would assume that if you're dumb enough to run rmrf, you're also root.
@MadaraUchiha Totally unrelated question. Do you go to any coding meetups you could recommend?
Looking at it now, thanks
@BenjaminGruenbaum I don't (but I really would like), you can try asking @ircmaxell or @NikiC if any of the still here
@m59 it broke, came back and broke again
@igorw I prefer dd...
20:38
I managed to get the HD to be recognized enough to use my windows recovery disc now. Just going to restore it
if you're going to sudo rmrf at least make sure your path is / first.
@MadaraUchiha @ircmaxell is from New Jersey and @NikiC is from Berlin, how would that help me :P?
@BenjaminGruenbaum Why? Where are you from?
If you set values in $_SESSION vars, and later you want to store them in a db, is it necessary to clean those values?
@MadaraUchiha Israel, I forget from time to time this is not the JS room :P
20:47
@BenjaminGruenbaum Huh
נחמד לפגוש אותך
@MadaraUchiha hahaha
@MadaraUchiha גם אותך :)
But no, I don't know any such coding meetings If you do manage to find any, please do tell me
Hah, we're doing what the Inidian guys in the creepy rooms keep always do :P
@MadaraUchiha @BenjaminGruenbaum too much unicode chars :o
20:48
@BenjaminGruenbaum That's why we have translate.google.com/#iw/frגם%20אותך
יותר מידי נדיר לצערי מתכנתים מישראל באתר הזה
@HamZa the link doesn't work; please properly urlencode it!
האמת שיש בכלל לא מעט, הצ'ט קטן, והרבה אנשים שכבר כן משתמשים בצ'ט מעדיפים אנונימיות אז אי אפשר לדעת.
@bwoebi lol, just copy paste their sentences in translate.google.com !
and choose your favorite language
@BenjaminGruenbaum תיארתי לעצמי...
20:50
@HamZa there's no Luxembourgish in the list...
Well, let's not bore them with more unicode oddities
@bwoebi French, english !
@HamZa "Wahrheit, dass nicht einmal ein wenig, ein wenig chatten, und eine Menge Leute, die Verwendung Chat tun Anonymität bevorzugen Also man kann nie wissen." in German… doesn't make a lot of sense
@bwoebi Well you got what they meant :p
I didn't.
20:51
Anyway, we're freaking the rest of the room :) There is this, and there are some guys from Zend there so it's good networking for PHP (also fun) and there is a similar one in Jerusalem, but sadly that doesn't work out for my schedule
@bwoebi "Actually, there are quite a few. Chat is small, and most people already using it prefere anonymity, so you can't really tell".
this makes more sense in English...
I think the google translator first translates to English and then to German?
It's pretty fun, I hear the AngularJS meetups are pretty good too.
@BenjaminGruenbaum I don't see PHP on that list
Worse, I see jQuery on that list :X
@MadaraUchiha How much people would quit this chatroom when it'd be named now "PHP & jQuery"?
20:55
@MadaraUchiha They don't do PHP there, but there are some PHP guys there that work at Zend . Also, it's a great chance to learn Python if you don't know it yet. Also, that seems pretty outdated (the technology list), you pretty much use what you want. The development section just refers to OpenKnesset but there are a lot of other open projects they work on
There aren't nearly enough OS projects in Israel, and that saddens me.
Everything is so commercial here.
There are open source projects, mainly linux-related, developers just don't usually emphasize nationality a lot, would you say for example Australia or Sweden has a lot of open source projects coming from it?
@BenjaminGruenbaum Well, I know for sure the the absolute majority (as in 99.98%) of all computers in the military do not use linux.
All WIndows
And that includes the servers
I'd love to work on a fun OS project. I work at a company called TipRanks by the way.
In fact, it's not that there isn't awareness, it's actual forbidden to use open-source programs on their computers.
20:59
@MadaraUchiha C# is an extremely potent language, ASP.NET MVC is a powerful framework and the army gets both for pretty much free.

« first day (967 days earlier)      last day (4206 days later) »