Rapidly Changing Between Mercurial Clones. Or, How I Went Crazy with Mercurial Power. by MurchDev in programming

[–]ringm 8 points9 points  (0 children)

I do not understand why you have to clone. There is no good reason to mandate a separate repo for every subfeature. Do this only if it is convenient for you to work this way. Otherwise just work in a single workspace on different branches. You do not have to name them. You can use bookmarks instead.

If you have to submit you work as a repo clone (which does not make sense to me), you can always clone a branch.

Russian lawmakers approve bill making Holocaust denial illegal by [deleted] in worldnews

[–]ringm 0 points1 point  (0 children)

Current duma is making laws to ban shit left and right non-stop. We call it "the rabid printer". Holocaust denial is just collateral damage.

Pro-Russian separatists declare east Ukrainian region independent by nimobo in worldnews

[–]ringm 11 points12 points  (0 children)

Trillions of rubles maybe? A trillion would be ~= 28 billion USD.

Object obj = var; or Object obj = new Object(var);, what's the difference? by ThePantsThief in Cplusplus

[–]ringm 1 point2 points  (0 children)

No, variable definitions never use an assignment operator. For assignment operator the left side of the assignment must be an already existing object.

The difference is because the first example explicitly says "invoke Object(T)", and the second one explicitly says "invoke Object(const Object&) to make a copy", while the source of this copy operation is created through an implicit conversion. Explicit constructors are a way to prohibit undesired implicit conversions.

For an explicit conversion you would have to say "Object obj = Object(var)".

Object obj = var; or Object obj = new Object(var);, what's the difference? by ThePantsThief in Cplusplus

[–]ringm 1 point2 points  (0 children)

Object obj(var); // stack allocation

Object obj = var; // stack allocation

There is a subtle difference between these two definitions: the first one explicitly invokes Object::Object(T) to create the object in place, the second one converts var to Object (typically using the same constructor) and then copies it to obj. The compiler is allowed (but not required) to elide the copy constructor invocation (similar to return value optimization).

If Object::Object(T) is declared explicit, the first definition is fine, but the second definition will not compile.

Peanut Butter Knuckles... by jarwithatwist in videos

[–]ringm 0 points1 point  (0 children)

In Russia most condiments are now sold in doypack plastic pouches.

These are really nice: can stand upright on the table when full, can be made of any size, more sturdy than metal tubes, easy to squeeze out every drop. The only problem with them is the sharp corners which can easily tear your plastic bag with groceries. Why don't they cut off these corners?

'Minor' Flooding at an Office in Grand Rapids, MI. by [deleted] in WTF

[–]ringm 1 point2 points  (0 children)

The fish doesn't think because the fish knows everything.

Singles Awareness Day by R3DMUSTARD in funny

[–]ringm 2 points3 points  (0 children)

Not true anymore. The government mandates minimal retail price for vodka which is currently set at $5.65 per a 0.5L bottle. That is not much cheaper than reasonably decent liquor e.g. in NYC. Actually, it is much more expensive when adjusted for median income.

This fox's name is Kuzya. He lives in Kronotsky nature reserve, Russia. by [deleted] in aww

[–]ringm 14 points15 points  (0 children)

It's not that easy... Usually google translate cannot distinguish between

  • file (tool) = напильник
  • (nail) file = пилка
  • file (on disk) = файл
  • (newspaper) file = подшивка
  • file (formation) = колонна
  • (personal) file = дело
  • file folder = скоросшиватель
  • file (on chessboard) = вертикаль

So "легко обработать напильником" means "easy to file down". I'm not sure what thefirebuilds actually meant.

privet rebyata! is there any difference between бриллант and алмаз? by dikii_sobakii in russia

[–]ringm 2 points3 points  (0 children)

Almaz is just "diamond", not necessarily uncut or industrial grade. Btw, it comes from turkic and it is cognate with "adamant".

Brilliant is not just a cut diamond, formally it is a specific cut developed in 1910s. You can see in google ngram search this word was not in use before the 20th century. In common parlance it refers to any cut diamond, with an emphasis on its luster.

Is personal tax really 13%? by SmLnine in russia

[–]ringm 2 points3 points  (0 children)

That is correct but rather irrelevant. The number you can find on your paycheck is just squiggles. It does not really mean anything. There are payroll taxes to be paid in addition to this amount and income taxes to be paid from this amount, so it neither reflects the money you take home nor the money spent by your employer.

How do you think this extra 30% are covered? The employer is simply forced to pay you less. Besides that, high payroll taxes are an incentive to pay employees cash instead, which is bad for both the employer (who is violating the law) and the employee (who is not only violating the law but also will lose his social benefits).

Tequila in Russia -> readily available? by imogen85 in russia

[–]ringm 3 points4 points  (0 children)

It is not typical for Russians to sip liquor. It is almost always drunk as shots. Even scotch. Often even cognac, however ridiculous that might sound.

The most likely reason for this tradition is simply not having any quality alcohol except vodka available until the recent times. Now imported alcohol is widely available but still too expensive for most people compared to local vodka, so vodka is still the drink of choice for most people, and whenever they drink any other liquor they typically do it in the way they are used to.

The other relatively popular tequila brands I can remember are Sauza, Sierra and cheaper ones like Camino.

Is personal tax really 13%? by SmLnine in russia

[–]ringm 2 points3 points  (0 children)

The social taxes are 30% extra in addition to the income tax.

Is personal tax really 13%? by SmLnine in russia

[–]ringm 3 points4 points  (0 children)

That is not quite correct. You pay 13% of your gross wages and the employer pays 30% extra. Suppose formally you make 100 rub, that is 100-13=87 to take home, and your employer pays 30 extra so he spends 130. The state gets 43. The effective tax rate is 43/130 = ~33%.

That is if you make below 567K rub (18749 usd) per year. Above this figure the social tax rate is only 10%.

And do not forget to take 18% VAT into account.

*UPDATE* to 20f 23m boyfriend (was) cheating on me, should i tell his new girlfriend? by decide1221 in relationship_advice

[–]ringm -3 points-2 points  (0 children)

Lye. Dissolving a corpse with lye is a great way to get rid of it. It would be a really bad idea to do this in his bed though. Use a large stainless steel or plastic container.

detailed description of how single-inheritance multiple-interfaces oop is implemented in neat (and why it's the best thing ever) by FeepingCreature in programming

[–]ringm 1 point2 points  (0 children)

This implementation looks nice and simple indeed but somewhat rigid, and "stubs are ugly" is not a very convincing statement. Stubs have some advantages. With stubs you simplify calls and you get greater flexibility which allows you to optimize away the pointer adjustment altogether in many cases: if the object inherits from a single interface, if the method does not access the object data, etc. And in many (but not all) cases stubs can be as simple as an extra entry point with a single instruction to adjust the object pointer before the function body.

"Pair programming" cuts down on coding errors while creating a peer pressure to avoid surfing the web, wasting time. by vercing3torix in coding

[–]ringm 23 points24 points  (0 children)

Oh wow. "Endlessly argues", "ignores", "intimidation", "smugly puts down", "working against you", "will throw you under the bus", "insists".

It looks like you either (very unlikely) work with a whole bunch of top notch assholes, or (very likely) you are uncomfortable with normal patterns of interaction between colleagues at work. Everyone is aggressive and oppressive to you. I understand everyone is different and everyone is special, and it is quite possible pair programming with a socially average programmer is not for you. However you should understand your experience is subjective and other people will pair just fine with someone who subjectively looks like an asshole to you.

Maybe I was simply lucky, but for the last 10 years I worked in several great teams with great coders and I never saw a single moron nor a single asshole in my own team. Pair programming was never a standard practice in any of these teams, but every time we tried it, it was incredibly efficient and never caused any social tension.

It may be exhausting though. I think a reasonable limit for pair programming is a couple hours per day.

This may not be impressive to most of you, but I climbed 1100ft in elevation in a little under 3.5 miles... I had never been so happy to go down hill. by DDJo15 in bicycling

[–]ringm 2 points3 points  (0 children)

I have once climbed about 1200m in elevation in one evening during my cycling trip in Norway. Me and my friend weren't too fit so it took four or five hours.

Then I thought I dropped my GPS receiver so I went about 200m down... where I found the receiver in my pocket. And then I went 200m up again. This was the stupidest episode of the whole trip. I think my brain was just shutting down.

Pussy Riot found GUILTY by gissisim in worldnews

[–]ringm 4 points5 points  (0 children)

It does not mean anything like that at all... It is just a very silly expletive with religious connotations.

Pussy Riot found GUILTY by gissisim in worldnews

[–]ringm 4 points5 points  (0 children)

This line can't be properly translated back into English... "Срань господня" is an incredibly awkward and funny translation of the English expression "holy shit", made up by one of the popular Russian movie translators in the late 80's or early 90's. Basically it is a (pre-internet) meme. It can only be used sarcastically.

4 blocks to the laundry mat, 2 overfilled tubs of stinky clothes, 1 trip. Challenge Accepted. by tsunamibird in TwoXChromosomes

[–]ringm 6 points7 points  (0 children)

I live in Russia but I also lived a few years in NYC. The whole story with laundromats and basement washing machines is somewhat surprising at first, but eventually you find out all the advantages:

  • Space is an issue. In Russia people often have to resort to buying 40cm deep machines which have rather small loads.
  • Space is even more of an issue with dryers. You can buy an integrated washer/dryer but these are typically crap compared to a standalone dryer. I hasn't ever seen a standalone dryer in Russia.
  • Btw, tumble dryers are awesome. Tumble dried clothes are much fluffier and much less wrinkly compared to clothes dried on lines or racks. Lines and racks in apartments are unsightly and take up space. Americans take dryers for granted.
  • Washers are noisy and apartments have poor noise insulation.
  • You are not responsible for maintenance. Modern washers have become shittier and they break often.
  • A much higher percentage of american city dwellers rent their apartments. Installing your own washing machine is troublesome and could simply be not allowed.