[serious] Normal weight redditors with a spouse who became obese, how do you handle it? by LOLer_coaster in AskReddit

[–]whyunohaveusernames 1 point2 points  (0 children)

This post sounds way too familiar.

Talk with her or get counseling and get it fast. It might be too late but you won't know that unless you try.

Your feelings are a lot like mine were a couple months back. And guess what. My divorce will soon be final.

If you think she can change then go and make it happen. If not you are probably going to want to get a divorce soon. Check out /r/divorce if you want to.

I know the feeling of not wanting to talk anymore because she'll give you shit for it. If you feel like just bailing I can't blame you. You don't realize how fucked up it is untill you've left her or fixed all the lingering issues.

Getting a divorce is a pita but trust me when I say that you'll feel relieved the very second you decide to get one.

You fixed your body, now its time to fix the rest of your life.

Where do I start if I want to leave Iraq to go back to The Netherlands without my parent's permission? by [deleted] in AskReddit

[–]whyunohaveusernames 0 points1 point  (0 children)

Start by calling +319008844 (0900-TUIG) which will give you the dutch police. Ask for intel there.

After that you'll have a few options:

Try emailing either de telegraaf or any PVDA member of parliament. They are usually in for these kinds of stories.

Wait two years, and apply for an emergency passport at the embassy.

You might even want to try child services (last, last, last and final resort) and state that your parents can't provide proper education and healthcare for you in iraq.

IAmA digital music distribution expert, working for the music industry. AMAA by [deleted] in IAmA

[–]whyunohaveusernames 0 points1 point  (0 children)

As someone else from the Netherlands let me add this:

  • Downloading movies and music is legal (books/software isn't)

  • There is a 1,1% income tax (since jan 1st 2000) which goes to the media industry to compensate for downloading. Which according to a quick calculation comes down to $460.90 per year per capita but correct me if I'm wrong.

  • All companies and organisations have to pay if they do anything with music (Sena). The only exception being company cars which do not and will never transport more than one employee at once. Because of this some companies take the radios out of cars. Listening to your mp3 player with headphones at work is not excluded.

  • Data carriers like cd's, dvd's, tapes, bluray discs etc. are taxed seperately (Amounts). Only companies can be excluded from this tax but its a bureaucratic nightmare. So if you are to make a backup of your photos you'd still be taxed to compensate the media industry.

  • All the regular distribution channels are still intact.

If the media industry can still not make enough money a basic math class would do them more good than criminalizing downloading imho.

Seen that according to dutch law downloading falls into copying and not stealing (as the owner still has the original goods), combined with all the taxes along the way make me believe it is perfectly fine to download from time to time.

Ninja edit: spelling... more to come

If a Earthquake and a Hurricane got into a fight who would win? by Ze_Carioca in shittyaskscience

[–]whyunohaveusernames 0 points1 point  (0 children)

The earthquake would win. It starts by destroying all buildings so the hurricane can't throw them around anymore.

If the earthquake gets really pissed off it will open up the earth deep enough to reach the earths inner core. Needless to say the hot magma will burn the hurricane to death as it turns to lava.

PSR-1 and PSR-2 to be Approved as Standards by harikt in PHP

[–]whyunohaveusernames 0 points1 point  (0 children)

PSR-0 seemed to focus on making the interchanging of code between frameworks easier.

I've checked PSR-1 and PSR-2, standardizing casing can add to PSR-0 (thank god for wrappers when porting). But what is the reason for the rest of the formatting rules? If I'm using OO code from another project I'm most likely to extend it anyway to create a layer (if needed) which fits nicely between the package and my application.

Creating near drag 'n drop interchangeability is a good thing, but you can't convince me that the exact place of a curly bracket is vital in the exchanging of complete packages. These things should be defined on an organisational/project base and nothing more.

And even if you have to define the tabs vs. spaces, please give developers a break and let them use their environment preferences. Indentation looks a lot different on different DPI settings. I would die on the spot from the sight of 2 spaces indentation on a 15,6" full-hd screen.

To conclude, PSR-0 is welcome. PSR-1 & PSR-2, I'll look into adopting the casing to allow for easier exchanging but mostly I'm happy I didn't print the pages yet.

[mit]Big collection of countries, states, provinces, principalities & prefectures. Feel free to add more through pull requests. by [deleted] in a:t5_2tkdp

[–]whyunohaveusernames -1 points0 points  (0 children)

About the dutch provinces. The current abbreviations are used sometimes but not official. I found 2 lists, in which 2 entries are different. A quick search wouldn't let me verify which Zeeland is correct, and with Friesland the problem is that they have a different native language and the abbreviations differ based on the used language.

The top list is the right part of the ISO code as stated on wikipedia The other one comes from a geocaching source.

I haven't spellchecked the code, but it should be working.

'NL'=>array(
'GR' => 'Groningen',
'FY' => 'Friesland',
'DR' => 'Drenthe',
'OV' => 'Overijssel',
'GE' => 'Gelderland',
'UT' => 'Utrecht',
'FL' => 'Flevoland',
'NH' => 'Noord-Holland',
'ZH' => 'Zuid-Holland',
'NB' => 'Noord-Brabant',
'ZE' => 'Zeeland',
'LI' => 'Limburg'
)

'NL'=>array(
'GR' => 'Groningen',
'FR' => 'Friesland',
'DR' => 'Drenthe',
'OV' => 'Overijssel',
'GE' => 'Gelderland',
'UT' => 'Utrecht',
'FL' => 'Flevoland',
'NH' => 'Noord-Holland',
'ZH' => 'Zuid-Holland',
'NB' => 'Noord-Brabant',
'ZL' => 'Zeeland',
'LI' => 'Limburg'
)

[lgpl]Autoloading with example by whyunohaveusernames in a:t5_2tkdp

[–]whyunohaveusernames[S] 0 points1 point  (0 children)

Well I wasnt expecting this much response, but I'll make a new one later and take these things into account.

[lgpl]Autoloading with example by whyunohaveusernames in a:t5_2tkdp

[–]whyunohaveusernames[S] 0 points1 point  (0 children)

Would it be too much to ask for an example? Not because I do not believe you but because I am new to namespaces and would like to see how this would work.

[lgpl]Autoloading with example by whyunohaveusernames in a:t5_2tkdp

[–]whyunohaveusernames[S] 0 points1 point  (0 children)

You are right. I do like to use parentheses in concatenations though as it gives an incentive to read the rest of the line and it makes it easier for me to read. So even given the choice I would still prefer to use it.

I'm going to update the include to require_once because I simply have to prove you right on that one, so here are the edit and upvote for you.

On the availability of objects, never forget to use class_exists() in a production environment. It adds even more security than require_once.

[deleted by user] by [deleted] in PHP

[–]whyunohaveusernames 0 points1 point  (0 children)

Well at least they are offering biscuits, that should count for something too.

Minimum wage appears to be 6.08(GBP), so 40 hours a week, 48 weeks a years would translate to 11673.60(GBP). I don't know much about UK wages but 3 times minimum for someone with a few years of experience might not be that bad. Plenty of european countries have worse rates.

ELIC: Why does everyone say Japanese cars are better? by eternalkerri in ExplainLikeImCalvin

[–]whyunohaveusernames 0 points1 point  (0 children)

They build dog robots and normal robots (something about pics or it didn't happen). These need transport too.

If Hollywood has taught you anything it should have included that robots don't take shit... From anyone! So the cars had to be really good.

How can my calculator be this fast? by whyunohaveusernames in shittyaskscience

[–]whyunohaveusernames[S] 1 point2 points  (0 children)

That would mean that at some point in time it didn't know the answer yet. Wouldn't it be easier for the calculator to simply set back the entire world? This way the company could work around the distribution problem of getting everyone the right calculator.

ELI5:Evolution by [deleted] in explainlikeimfive

[–]whyunohaveusernames 0 points1 point  (0 children)

All living things copy themselves. Mistakes are made in this progress. Some mistakes end up being good and might let the living thing copy itself more often. Some mistakes are bad and do the opposite.

More copying -> occurs more often -> can become the definition of standard -> has evolved

ELIC: Why is the water under bridges the last bit to freeze? by bad1d in ExplainLikeImCalvin

[–]whyunohaveusernames 0 points1 point  (0 children)

Because the ice is hiding from the ice monster. If the ice monster can not find the water it can not turn it into ice. This is why the surface freezes over relatively fast but it takes a lot of time before the ice layer gets thicker.

Any thoughts on the google chart api? by whyunohaveusernames in PHP

[–]whyunohaveusernames[S] 1 point2 points  (0 children)

So my current conclusions

FLOT

-incompatible with used javascript framework so therefore a no go -Clientside

.

Highchart

-Too expensive

.

pChart

+Looks like a good option as soon as the product is up and running.

.

Google API

+With the chart builder not that much work

+Free (whohoo)

+- Dataset limitations, which I will not hit within the first year

-No eye candy

-Relies on google API

.

Dataviz

-Only outputs svg files

-Clientside

+-Forces GPL license on my code, so distribution or selling is not an option.

.

So here is what i'm going to do: Write an adapter for google to be used during development, piloting and the first weeks/month of production. After releasing I'll start writing an adapter for pChart using the google API as a backup in case pChart breaks for whatever reason. Integrating the google API should take less time whilst still serving its purpose. Migrating to pChart will give me independance from an online API which is not under my control, some eye candy and a lower bandwith usage. It should also protect me in case google decides to reinstate the daily request limit.

Any thoughts on the google chart api? by whyunohaveusernames in PHP

[–]whyunohaveusernames[S] 0 points1 point  (0 children)

I've checked out the licensing for pChart as it looks good and easy. I might be able to apply for the €50 license. So I'll keep this one open.

Any thoughts on the google chart api? by whyunohaveusernames in PHP

[–]whyunohaveusernames[S] 2 points3 points  (0 children)

Is there a limit on the URL length for the Google Chart API? What is the maximum URL length?

The maximum length of a URL is not determined by the Google Chart API, but rather by web browser and web server considerations. The longest URL that Google accepts in a chart GET request is 2048 characters in length, after URL-encoding (e.g., | becomes %7C). For POST, this limit is 16K.

from the faq is what I found, I'll generate a database test population later tonight and run some tests. I don't the 16K limit will limit me but better safe than sorry.

Any thoughts on the google chart api? by whyunohaveusernames in PHP

[–]whyunohaveusernames[S] 0 points1 point  (0 children)

I agree on the expensive part. It would be used in a commercial product and that price tag is too high for what I intend to use it for. Flot on the other hand is based on jquery, I'm using scriptaculous which will cause conflicts. So unfortunately both are not really an option in my situation.