« first day (1273 days earlier)      last day (3674 days later) » 

12:00 AM
Please don't tell it's GEMA'd :)
 
ThW
it isn't
 
ThW
@alisamii i am from the other side of the wall :-)
 
@ThW I prefer your side, more hard working, less entitled :)
 
I don't :D
 
ThW
12:04 AM
depends
 
Americans (I am one, so I don't feel any hesitation in saying this) feel that they deserve everything in the world and it is for them to take, no questions asked.
 
Almost everything is more expensive in EU and US has better salaries.
I'm not, however, relevant.
 
close to 40% of Americans are officially below the poverty line, and you cannot average the american salaries as being higher, many states in the US, such as Arkansas, West Virginia, Mississippi, Loisiana, and so on have lower average salaries than some 3rd world countries
Cities like NY and Houston skew the averages way out
 
I don't really know, but I don't know how come e.g. a BMW that's produced in Germany is much cheaper in USA.
 
and I don't know how you can say things are more expensive in the EU (I live in France, on the border of Switzerland)
 
12:08 AM
I paid $1000 for a gun that's produced in my country, in USA it's about $300.
 
A 2 bedroom, 3 room apartment in New York averages around $4,000 a month rent.
 
And $1000 is 2 average salaries in my country.
 
Even in Geneva, one of the most expensive cities in Europe (and not part of the EU), a 2 bedroom, 3 room apartment does not average $4,000
 
@alisamii I'm guessing that's strict downtown.
 
That is anywhere in Manhattan, Brooklyn, Staten Island or Queens
 
12:10 AM
Yeah, but Geneva is not NYC (in many aspects).
I don't know, I've looked at prices and they weren't so horrible. In outter parts.
 
I lived in Darien Connecticut, dome 40 Kms from downtown NY
 
ThW
the German word for that is "Gentrifizierung"
 
and a 2 bedroom, 3 room apartment there, in 2007, was about $2500
 
ThW
if a quarter is trendy it will get updated. people will move to it and it will loose its character
 
@ThW Gentrification in English
 
ThW
12:12 AM
I live in central Cologne
 
the word originates from "gentiles" moving into trendy Ghettos (formerly associated with Jewish people) and pushing them out by pushing the prices up.
 
@ThW There's a joke, gypsy and a doctor had the same exact houses, next to each other, doctor was selling house for 200k and gypsy for 250k, when doctor asked why is his more expensive when they're identical, he replied, is it better to have a doctor as neighbor or a gypsy? :)
I don't like cities, see no point living in them unless I have to. I'm saving money for a house in Kranjska Gora, Slovenia ^^
 
ThW
And the answer is again "it depends" if you still have an doctor on the other side it is all good, only gypsies around - you usually got a problem. - Meaning people should mix.
 
@TOOTSKI you have to also know that many areas of the outer boroughs of New York City are places where you wouldn't want to live. Many of them are only council (low income housing) and are neighbourhoods filled with gangs, guns and drugs. If you aren't Latino and are in a Latino neighbourhood, you are probably asking for a lot of trouble) and the same goes for a lot of other neighbourhoods
 
Yeah, probably that's where the prices are lower (where I looked). Anyways, I gave up from USA, maybe in another life :P Do like Europe because of diversity.
 
12:17 AM
In places like Louisiana or Arkansas, black people live in black areas, white people in white areas, even today
 
@ThW Yeah, that's how it's like in Wien, except in 1st or 2nd bezirk, "pure" Austrians live there.
 
and if a white person goes into a black area, or a black person into a white area, at the very least, they will feel extremely self-conscious, and may even get a beating or two, if not worse
yeah, but in Wien, I doubt that if someone is not a "pure Austrian" and moves into an area, he won't feel his life is at risk
He might feel out of place, but still safe
 
ThW
pure austrian is a joke
 
I know how's that, only it's not racism but nationalism, I'm from Bosnia.
@ThW Yeah, that too :D
 
@ThW That's why I put "pure Austrian" in quotes
 
ThW
12:21 AM
that was a large mutli cultural monarchy
 
@alisamii Not really, they're a bit afraid of auslanders, because people from Bosnia, Serbia, Romania, Bulgaria, Turkey are much more aggressive etc.
 
@TOOTSKI yes, I get the "ausländer" mentality, but believe me, the difference between the tension between austrians and auslanders is nothing compared to the tension when a white guy is walking in a black neighbourhood in Arkansas or a white guy is walking in a black neighnourhood in Mississippi
I am I just talking about walking in the neighbourhood
 
ThW
the "UNKNOWN"
 
Austria is wonderful IMO, BUT for auslander like me, I would have to live and work for at least 10 years to be able to apply for citizenship, when I say work, I say much lower salaries than in DE, if you're lucky to find a tech job. On top of that, one square meter of good apartment is 3000€ and salary would be about 2000€.
 
the white guy would never be able to live in the black neighbourhood and the black guy would never be able to live in the white neighbourhood
 
12:24 AM
@alisamii I don't think there's such radical thing in Europe, guns are prohibited and people are different.
Except in these savage countries I live in.
 
@TOOTSKI yes, and that makes a huge difference
after two world wars, Europe is much more tempered
and racism, which exists in every culture and every society in one form or another, is much lower and less aggressive in Europe
 
I can't get a gun legally, I mean, I waited for 2 years, and I can only leave it at home and use it in case someone uses gun on me (which would be late). Not nearly as in USA.
So, people are not loose on trigger, because they don't have one.
 
ThW
Except for the job
police or hunter
 
@ThW not in the UK
 
Yes, or private security guard. Hunter can get rifle but not pistol I think.
 
12:26 AM
only very few police are even licensed to carry a gun
and even then under very limited and strict rules
 
And they still have lower crime rates than some with guns.
 
ThW
the gun is a tool for the job, and i think that is a good thing
 
@TOOTSKI yes, because there is generally less fear and hate
 
No my friend, AK is tool for the job :P
 
@TOOTSKI the best tool for the job is the ability to use your mind to prevent crime, rather than to shoot once crime is committed
guns are for after the crime is committed, not to stop it from being committed in the first place
anyway, I have to go sleep
 
12:29 AM
:)
 
ThW
true
 
and again, thank you @TOOTSKI
 
I said to myself, if I have to think about having a gun, I live in a wrong country.
And then I bought Zastava Arms M92 :D
@alisamii good luck
 
the only other reason for a gun (other than hunting) is to kill yourself
LOL
and on that happy note, goodnight
 
'night
 
ThW
12:31 AM
My holiday starts by picking a point on the map, get on my bike an travel there, hope i don`t get shot along the way
 
HAHA.
 
ThW
:-)
 
Nah, you shouldn't worry about that, if I don't in Bosnia, then you shouldn't in DE :)
Stepping on a land mine here, is a another problem :D
 
I'm going to Romania in June hopefully, Transilvania, Transfagarasan, Bucharest and back.
@ThW Awesome, have you done the "golden" parts, or you got it like that?
(or I'm blind)
 
ThW
12:35 AM
it is like that, the bike got only a clear coating the main frame still shows the result of the manufactoring
 
I'm guessing it's titanium nitride, it can wear off easily.
 
ThW
the frame is steel
 
Do these bikes have a weight limit for rider?
 
ThW
front fork and back triange are titanium
about 100kg
 
Sorry, I meant the "gold" parts.
Yeah, that's what I thought.
/me sheds a tear
 
ThW
12:39 AM
yeah your discussion yesterday was quite amusing :-)
I am 72 kg and 184 cm
I am struggeling to GET some weight
 
You mean muscle or fat ?
 
ThW
you're joking, I need to do sport just to get some weight if I eat it just has no effect at all
and yes that sound fun and good, but it isn't.
like with overweight, I get some similar problems - I can not do much without fatigue. I don't have the stored energy
2 sides of the coin :-)
 
12:55 AM
It's past bedtime
cyaa
 
Jay
hey
 
1:26 AM
Hey can anyone assist me on setting up this effect on my site? I am trying to apply it this red rectangular area.
 
I think I'm going nuts... anyone aware of how these ugly flash/js proprietary addons that some websites install clear the console?
 
1:49 AM
My personal favourite would still be the magic cookie ;-)
 
2:01 AM
hi room
hey group, im working for a customer that still has php v 5.1.3 installed on the server. The reason he never updated is because it's a closed network. What are the main reasons I can convince him to upgrade?
 
I think you might be better off installing two versions side by side.
The breakage between 5.1 and 5.5 may be quite severe taken all together.
 
it seems a lot of jquery plugins require at least php 5.2
 
Surely the plugins will work fine with any version of php.
 
I may be thinking of the jquery validation plugins
that also happened to do a bit of server side validation
let me try to find an example
 
That's because filter_xxx() was introduced in 5.2
Before that you'd have used filter extension.
 
2:15 AM
oooooooh ok
thanks for that info
gonna head to another room, thanks for the chat
 
Heya, quick question: I can use this to return
$array["truefalse"] ? 'Yes' : 'No';
for a boolean value; can I use something similar for eight separate values?
And what is that called anyways?
I could use a bulky switch case, but I'd rather have a cleaner solution.
I'm going to bed now, feel free to reply
 
2:39 AM
What would be a "cool" way to say "Learn with your friends"?
 
Collaborative learning? ;-)
 
 
1 hour later…
4:00 AM
It's weird, but i can't find syntax of mysql delimiter command...
examples only.
 
 
2 hours later…
6:22 AM
Just because it's Friday and jQuery :)
 
oh,... it's friday, friday...
 
6:45 AM
I need to display the varchar coloum values where the value has + sign, for example +100, this display 100 when echo.
0
Q: can we store negative (-) and plus (+) sign numbers in mysql varchar column

MuhammadI need to store numbers with plus or minus signs in a varchar column in mysql. I am using php. +100 saves 100 100+ the insert fails -100 its ok shows -100 100- the insert fails

 
^ do you want it to be implemented with mysql?
 
@hakre this is EXACTLY what I needed today, thanks! :-) Too bad that now I have a really bad opinion of all this API ;-) — Ocramius 2 mins ago
Use XML, they said. It will be fun, they said.
 
yes in mysql and php
 
if with php - then why don't just check your data before insert?
 
@Muhammad , you could use printf instead of echo 3v4l.org/UpFa8
and store numbers within numeric fields.
 
6:49 AM
@AlmaDo let me check the data in db.
@AlmaDo thanks, its ok, the file was not updated on live server.
@AlmaDo @sectus thank you both.
 
jay
hello @Muhammad
@Muhammad can u help me in wordpress ?
 
7:17 AM
@crypticツ I had you as the result
 
7:28 AM
Good friday morning everyone!
 
7:43 AM
@Muhammad you're confusing data with its representation
 
Morning
 
morning, @zerkms @Fabien
 
hmm, right now i can do 84 wpm with qwerty .. i can't think of how much that will drop when i start learning dvorak lol =/
 
words per minute?
 
yeah
 
7:48 AM
what is "word"
 
how to measure that?
 
not big words obviously ;-)
 
@Jack how many in Finnish volcano names? :-D
 
10 fast fingers has a simple test for it .. more for comparison sake though
@zerkms hehe ... -1?
 
in russian we measure in keystrokes per minute
 
7:50 AM
426 in that case
 
Eyjafjallajökull (pronounced ; Icelandic for "Island mountain glacier") is one of the smaller ice caps of Iceland, situated to the north of Skógar and to the west of Mýrdalsjökull. The ice cap covers the caldera of a volcano with a summit elevation of . The volcano has erupted relatively frequently since the last glacial period, most recently in 2010. Geography Eyjafjallajökull consists of a volcano completely covered by an ice cap. The ice cap covers an area of about , feeding many outlet glaciers. The main outlet glaciers are to the north; Gígjökull, flowing into Lónið, and Steinholt...
@Jack ^ ^ ^ ^
 
by gawd!
I can type "island mountain glacier" faster than the actual name lol
 
@Jack , Russian traditional measure of speed is symbols per minute.
 
symbols?
 
7:52 AM
you mean you type multiple keys to get one char?
 
keystrokes
 
as for me, measure symbols is more fair because "it", "is" are two words. And "circumstances" is one word, but ..
 
@zerkms : )
 
on the other hand, I can type dsf;lkjadadsgflkjsdfkl aldsflkadsf asd;lf whole day (: and it will be very fast :p
 
mornin'
 
7:52 AM
@sectus do I know you from somewhere?
 
hi, @tereško
 
you mean syllables I think not symbols ...
 
Let's leave pants and show your speed.
 
morning all ...
 
@zerkms probably from the zoo? malayan tapir? haa
Syllables makes sense
 
7:53 AM
@Jack :-S
 
@zerkms , from habr only...
 
haha.. they didn't give me account there so I screwed them
 
@CarrieKendall @rdlowrey Thanks guys, I'm tearing up here :-)
3
 
@JoeWatkins Have very untempting.
and morning
 
8:02 AM
http://stackoverflow.com/questions/23006815/notice-undefined-offset-‌​2-form-registration
 
well .. I managed to cut my finger on keys
 
Best way to get a subdomain of a given url?
Sample URLS:

usa.en.example.com
usa.example.com
usa-en.example.com

Plus any others you might think of.
 
result will be example.com?
 
No, we want to return only the subdomain
usa.en
usa
usa-en
 
morning everyone ! Someone can give me a clue to this issue i'm really stuck :stackoverflow.com/questions/22990852/…
 
8:10 AM
@Fabien well what's the "best" - I'm not sure. One way is:
$path   = 'some.x-y.example.com';
$result = preg_replace('/\.([^.]*)\.([^.]*)$/', '', $path);
 
@Fabien use dig (or drill if on BSD)
or do you want to generate the subdomains instead of scraping them ?
 
Nah, just retrieving them from a given url.
 
then i stand by my original recommendation
 
Morning
 
What's dig sorry?
 
8:12 AM
dig -x domain
it's linux command
 
@AlmaDo Works nicely. There's a few SO questions that could use that answer.
Ah fair enough, I should've specified in PHP sorry.
 
exec() :P
 
^ Windows will be surprised by that request, I'm afraid :p
 
Friday monrings
 
@Fabien , it's not URLs
 
8:15 AM
morning, @DaveRandom
 
@AlmaDo the regex won't work for co.uk domains
 
@Fabien and sample is .. ?
 
$path = 'test.x-y.example.co.uk';
 
@Fabien do you just want the first level or everything except the SLD?
 
technically it will work
 
8:16 AM
dig would only yield decent results if axfr is enabled for your address, which is likely not ... almost definitely not ...
 
@DaveRandom Everything except SLD (assuming SLD is the example.co.uk in the above).
sorry one sec, morning meeting back in 5
 
would it be too obvious, if I told you that bruteforcing domain entries is the wrong way to do this ...
 
The repwhoring to 10k begins
 
@Fabien var_dump(implode('.', array_slice(explode('.', $path), 0, -2))); :^ )
 
@Fabien Right you do have a problem then. People would tend to thing that example is the SLD in a .co.uk but it is .co, it's nominet that enforce that. If you were to discount a 2-letter SLD plus the common 3-letter SLDs (com, org, net) you'd get a pretty decent hit rate but it wouldn't be perfect. The only real way to do it would be to get a set of tables of country TLDs and their registered SLDs and strip stuff out like this
 
8:19 AM
@sectus fail because result depends of SLD
 
Of all of this has been made a lot more complex by the new gTLDs...
 
@DaveRandom the naive approach may be treat 1-3 letters as "SLD"
 
Good morning folks... as far as good mornings go.
/me was in a bicycle accident on the way to work :(
 
co .co.uk will be SLD, but .foobar.uk not (i.e. only .uk)
 
Specifically in the UK that should never happen because nominet don't issue private SLDs
There are some problems with the "short chunk" approach as well (one prominent example: ee.co.uk)
 
8:23 AM
yes, I'm aware. That's why that approach is naive
 
Actually, I have a way to do it that would be reliable (assuming you are only interested in things that actually exist)
 
So, it looks like XY-problem...
 
^ why?
@DaveRandom which way?
 
Just writing it, one sec
 
dig? :p
 
8:27 AM
$parts = explode('.', $domain);
$test = [];
while ($parts) {
    array_unshift($test, array_pop($parts));
    $part = implode('.', $test);
    if ($part !== gethostbyname($part)) {
        break;
    }
}
$result = implode('.', $parts);
(untested)
 
arghhhh
 
@NiekBergman :( You okay? Hopefully not a motor-bicycle one
 
lets assume there is a list of a million domains since you can extract the subdomain from three with your eyes
 
basically TLDs and controlled SLDs don't have A records, so keep looping until you find something that resolves, and whatever's left is the subdomains
 
you dont really want to do all those lookups ...
cache em, or do something better ...
 
8:28 AM
^ this is true
 
Oh, i got it... :^ )
 
@DaveRandom you're an evil, evil man (:
 
you might also get somewhere digging for in-addr.arpa
 
tbh I've been round this particular issue before with @Fabien and said "ffs, stop trying to do this"
 
well you should be able to verify the root address of the tld, the domain is -1 and if it exists the subdomain is -2, it shouldn't be that hard ...
 
8:30 AM
Also it's worth noting on the caching point, that the gethostbyname() will usually take advantage of the OS DNS resolver cache
 
still cost a globally locking syscall
 
^ precisely
 
Hi,
 
also if cache will fail .. ooops, that would be painful
 
i have a large question, i will ask you to advice how to do that in the best way
 
8:31 AM
@JoeWatkins Yeh you could skip the TLD, but if you want a fully international solution then it will cost you at least one lookup
 
yeah but if you're looking up root servers only and deducing the rest ...
 
so.. dig ?
 
they will never slow down
 
@AlmaDo ...won't be any quicker, does basically the same thing
 
I have a question for a mail application where you need to filter.

I now have a database with all its customers with general information. / And non-customers

I must be able to filter lab / dentist (send to one person, to send multiple or customers that I have visited but not yet a customer)

Also I need to filter by name, customer, or they have a scanner or not, municipality, province, land, registered or non-registered customers (because there is also function where the admin can import still not using excel email addresses customer that I import from excel to db)
 
8:33 AM
@Jimbo: I'm okay, took an Aspirin though, as I have a bit of a headache.
 
@DaveRandom yeah. I mean for one lookup
 
@Jimbo: My bicycle wheel is wrecked though.
So we had to drop it off at a bicycle repair shop.
 
Whose fault was it?
 
@JoeWatkins That is indeed a viable solution but not in the PHP standard library (it has no sane mechanism to look up the root servers)
 
surely we can do that with fsockopen ?
dns is simple
 
8:34 AM
@Jimbo: As far as I can tell, his.
He ended up giving me money to get my bicycle repaired, but it's probably not enough.
His bicycle was okay.
 
@DaveRandom Ah fair enough. So by no means is it a simple process in terms of how it sounds.
 
awww I would spend some time on it because I want to know the answer but I've not time now ... I might have a go later on ...
 
^ many of the building blocks are right there
Unfortunately it's in no way finished, but I think all the bits you would need for that are there
Neither is it in any way documented and its so long since I did anything on it that I can't remember how it works either so... yeh
 
there you go, the proper solution is in there fab, I don't see any other real way of doing it that won't get you kicked from the interwebz .... what you want to do is verify the tld and deduce the subdomain given the valid domain part ... and you want to cache these tld verification results, only do it once for each possible domain ...
 
Is there a name for just the middle part of a domain name. www. ->this<- .co.uk?
 
8:40 AM
@Fabien No, because there's no real structure to where that part actually is within the FQDN
 
anyone know how to pretty ident some minified html in sublimetext?
or anything else available on linux if not sublime
 
For one thing, www. is a human affectation, it has no meaning to DNS
 
morling
 
dig domain @a.root-servers.net will yield the tld servers and verify the last part is a tld, you want to rotate requests to root servers, a through m
 
@CSᵠ Why not online?
 
8:42 AM
@DaveRandom or that
 
Then dirtymarkup.com (first result on Google :-P)
 
but i'd rather in my fav editor since it's so powerful
damn
it's actually xml, i just noticed
 
Is this potentially something that might go in to a future PHP version? Subdomain retrieval that is...
 
ty @DaveRandom (bow)
 
oh oooh
 
8:43 AM
Or it's just not needed.
 
dig domain @a.gtld-servers.net
will yield the domain, so then you can just subtract fqdn from your input
 
morning. can anyone explain to me what a PHP process means on my server? does it correlate to active users? or should there only be one? or something else?
 
@Fabien It's not needed, and it's not really actually a thing anyway. You are trying to apply human concepts to a purely automated system
 
@AndrewBrown - can you paste the output of ps aux | grep php so we can see what it says exactly?
 
Humans 1 - Computers 0
 
8:47 AM
currently I'm looking on my cpanel under php processes. it shows about 10 different process ids
 
It could be PHP-FPM
 
For my purposes I can just define the domain somewhere and get the subdomain by removing it from the http_host
 
It could be a PHP-CLI running 10 processes. It could be Apache (no clue if you run Apache) running a PHP process
 
i don't believe it's running FPM
 
It's difficult to say with so little information :)
 
8:49 AM
But it's not the first time I have had the 'get subdomain' issue.
 
yes, it's apache
 
It might just be Apache using PHP inside one of its workers
 
thought it might be my cron, but than ran earlier tongiht
 
It might be that :)
That's why it's difficult to say exactly what it is without more info
 
generally speaking does Apache only consume one php process when multiple people are accessing from a web browser? or is it not that straightforward?
 
8:51 AM
It depends on how Apache is configured, but no - it doesn't use one php process, it will spawn more
 
but not a 1 for 1 with number of users, correct?
 
apache will create separate process for each connection
that's why it is weird for front-end
 
hmm.. ok. appreciate the info guys. thanks
 
If you can, you should ssh to your server and check what's happening with ps axf
If you want to see what's apache doing, ps axf | grep apache
If you want to check if it's your cron that booted those php processes, ps axf | grep php
 
I really need to start playing around with nginx considering how much apache uses
 
8:54 AM
*cron
 
@Fabien Are you only interested in things that actually exist?
 
@DaveRandom I can choose the red or blue pill?
 
@Fabien Domains :-P
 
ping city
 
ok, i'll give that a try
 
8:56 AM
@DaveRandom lol. I guess I do yeah.
 
@Jimbo - give Mongrel2 a spin, it's the least resource intensive server. Also faster than Apache/Nginx
 
@Fabien OK I'll take a look at this again at lunch
I can see what needs to be done here but it's not trivial...
 
monihnik
 

« first day (1273 days earlier)      last day (3674 days later) »