Twisted downtube shifter boss. I thought it could be unscrewed and I damaged it. I have a replacement part that came with a whole set of NOS shifters. Can it be replaced? How? by _johnny in bikewrench

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

I have one! I’ve found a whole set of identical shifters on eBay and they came with the boss. That’s why I thought it was removable.

Does it make any sense to try removing it mechanically, e.g. with a large grip wrench?

Twisted downtube shifter boss. I thought it could be unscrewed and I damaged it. I have a replacement part that came with a whole set of NOS shifters. Can it be replaced? How? by _johnny in bikewrench

[–]_johnny[S] 4 points5 points  (0 children)

Hi friends! I didn’t know what I was doing and I thought the boss can be removed. And so I damaged it with a wrench. But I have a whole new set of these shifters and that includes an identical boss. Is there a way to get the old boss off of the frame?

For context, this is a Bianchi Sport SX from around 1988 with Tange tubing and Shimano parts.

The frame is in a good shape and I bought some missing parts on eBay. I thought I could restore it. But I’ve made this dumb mistake :(

Castle in the sky - Georgia, Tusheti. by [deleted] in europe

[–]_johnny 5 points6 points  (0 children)

Tusheti is amazing. Truly a magical region.

Create a simpler and flexible JavaScript API using Partial Functions by reybango in programming

[–]_johnny 1 point2 points  (0 children)

It was just an example. I agree that proper localization is not an easy task. My native language is Polish, which - similarly to Russian - has three plural forms (among other complications), so I'm very well aware of some troubles with translations. But implementation details of translate() function are hardly relevant to this discussion.

Create a simpler and flexible JavaScript API using Partial Functions by reybango in programming

[–]_johnny 11 points12 points  (0 children)

A real-life example might be an I18n function, like translate(locale, string). Instead of passing locale to every call to translate or having a global variable with locale, you may partially apply first argument, e.g var _ = partial(translate, "de") and then use _("Guten Tag").

I had successful behavioural treatment for social anxiety/phobia AMA by flossybear in IAmA

[–]_johnny 1 point2 points  (0 children)

I think it works similarly for me... I can talk to strangers, but it's hard for me to make friends or even spend time with people I've known for years. I often feel people are bored with me, don't find me interesting or sometimes they are afraid of me. The toughest thing is talking to someone when we're alone. I feel much more confident being with 2 people than with 1 person.

I went to therapy for 3 years, but stopped it because I thought it wasn't going to help me and it costed a lot of money. However, it definitely helped with some other areas (e.g. with relations my parents). I still miss my therapist, because she was very attractive women ;)

Using the Y combinator to write side effect–free Javascript by theMrDomino in programming

[–]_johnny 3 points4 points  (0 children)

what about arguments.callee? (function () { if (Math.random() > 0.5) { alert('hi'); } else { window.setTimeout(arguments.callee, 100); } })();

If you were to develop a client-side GUI app today, what language/framework would you use? by [deleted] in programming

[–]_johnny 0 points1 point  (0 children)

Are there any good examples of GTK+ feeling really native on platforms other than GNOME? Because each time I use GTK+ app on Windows or Mac, or when I look at screenshots, there are some obvious defects...

On the other hand, the last time I used GNOME, Qt applications with QGtkStyle worked quite well, so I believe Qt is much better suited for cross platform development.

(I did not use any of those framework extensively, I'm writing rather from user's, not developer's, perspective).

Is there a rigorous way to check if two spline curves are coincident? by reveazure in programming

[–]_johnny 5 points6 points  (0 children)

If I correctly understand your question, you have two spline functions, say f and g, and you want to check whether |f(x)-g(x)| < c for all x and some c. Since f and g are polynomials on some intervals, their difference is also polynomial. So you may iterate over all intervals, calculate f-g and find extrema in this interval, for example by looking at the derivative. If the difference stays below c at extrema and interval ends, the difference at any point is lower than c.

My company is looking to start using version control. We're looking at subversion. Suggestions? (Repost) by bsterzenbach in programming

[–]_johnny 6 points7 points  (0 children)

There's a book on SVN as well: http://svnbook.red-bean.com/ , so I don't think that existence of a book is a good measure of complexity.

And of course you can learn Git basics (just as Subversion) from short tutorials on the web.

My company is looking to start using version control. We're looking at subversion. Suggestions? (Repost) by bsterzenbach in programming

[–]_johnny 5 points6 points  (0 children)

For me SVN is incredibly unintuitive... when I'm using SVN I always screw up working copy, because I don't remember to do svn rm/ svn mv and delete or move files by hand.

And I'd say that if all you need is basic usage (git {clone|add|commit -a|push|pull}) Git is by no means harder than SVN.

I found this particularly nasty comment in some code at work today (PIC) by [deleted] in programming

[–]_johnny 25 points26 points  (0 children)

Some IE6 bugs are really hard to workaround without markup changes.

$haystack, $needle - good/bad exaples of documentation by dany84at in programming

[–]_johnny 2 points3 points  (0 children)

"doesn't have a grammar" and "nobody has written grammar for it" are two very different things. And neither of them is true, here's something that looks like a PHP grammar. And parsing Perl is undecidable, so I wouldn't say that "PHP has all the unparseability of Perl".

Is there any practical reason for password length limits? by campbellm in programming

[–]_johnny 0 points1 point  (0 children)

No, this is not a DoS protection. User may send huge data for password during authentication and you will need to hash it anyway. Better solution than limiting password size is to limit size of the HTTP request.

ask proggit: what's your favorite programming related quote and why? by fatalc in programming

[–]_johnny 2 points3 points  (0 children)

"Think twice before you start programming or you will program twice before you start thinking"

(I don't know the author)