aboutruby
- open requirements
- open recommendations
- open requisites
- open offers
I'm not really expecting an answer so I asked on stackexchange: https://english.stackexchange.com/questions/490404/what-does...
This can be done with Rails's number_to_currency helper: https://apidock.com/rails/ActionView/Helpers/NumberHelper/nu...
# Paisa.words
There is number_to_human which is close: https://api.rubyonrails.org/classes/ActionView/Helpers/Numbe..., otherwise number_to_words's gem https://github.com/kslazarev/numbers_and_words
I would actually recommend using the money gem to handle money objects: https://github.com/RubyMoney/money
Just a few things:
- It does filter out all the spam (I get maybe a random call once a year and a random text once every 6 months)
- There is no SIM card, so it has to go through the internet, which is much less reliable
- You can call anywhere in the world very cheaply (US is free)
- The phone apps are barely usable (Hangouts on iOS for instance) (Google Voice one is blocking non-US users)
- It's a life saver in emergency situations and just when being abroad in general, and for that only it's the best provider out there.
That's probably the countries where they can hire remotely. It would seems in my experience with other companies that even if they don't advertise non-US remote roles (probably to prevent a large influx of applications from all over the world, most of which invalid due to no-offices there) they will accept candidates that are better than the US counterparts (but still US-based workers have an advantage).
Would love an answer from Stripe/patio11 though.
Also in the case of Stripe, it seems like they are making an engineering hub in Singapore: https://stripe.com/blog/singapore-eng-office
It's refreshing to see people thinking like this. Maximizing impact is undervalued. For instance a lot of companies restrict themselves to one country thus dramatically reducing the maximum impact.
(And then have them disclose it to every user...)
- bitcoinfees.earn.com for the fees
- bitpay.com (then blockchain.info if bitpay fails) for the rates
- bitpay / smartbit.com / blockchain for balance and transactions
- And then a lot of functions mainly used to create transactions it seems (I'm not a bitcoin expert)
(utils might the common denominator of all software projects :) ) (also the repetition of methods made me think of "define_method" in ruby)
Pretty solid project! And great name IMHO, people will just google "bit github" (pretty hard to find a unique meaningful name these days), you even got the name in pypi: https://pypi.org/project/bit.
Anyway, I just wanted to see if others thought Hacker News was being astroturfed, I never said those are sure case of astroturfing.
For example this one: https://news.ycombinator.com/item?id=19419362
Ok looks like it might be, but then I have to check the comment history to make sure this user is legitimate, which look like he is legitimate. So I guess I have to check the comment history of every user that makes a link to a paid product... sounds like a pain that could be automated.
Also, like for the commenters weirdly supporting China, I think the comment history is made in such a way to disguise the nature of the account (otherwise it would be too easy to figure it out, basic spam gets killed very quickly on HN thankfully)
(edit: Looking at your history, your account is 4 years old with two comments in this thread and one comment 4 years ago, may be a highjacked account)
My top comment being highjacked: https://news.ycombinator.com/item?id=19410185
While you are here, this comment is just linking to a paid tutorial for no apparent reason other than self-promotion: https://news.ycombinator.com/item?id=19416821
I can only recall those because they are linked to my history, I don't remember which thread the others were on.
I didn't look at their history and saw many more, it's just that yesterday I saw a new one on a front page post and though it got out of hand.
Ask HN: Is Hacker News Being Astroturfed?
I saw a comment on Reddit that said recently astroturfers have started using a pattern that you can pretty much see everywhere.> [top comment]> > [generic question about what to use/buy?]> > > [link to a paid product that is very loosely related to the original subject](Sometimes even the [top comment] is left out if the astroturfers have figured how to make that second...
So changing a pretty much worldwide convention for a pretty specific edge-case on a rarely used command in vim.
Why not just update the command to detect the special cases like Mr. Mrs., seems like a much simpler solution.
The thing is I switch all the time between vim and my terminal (it's complicated by let's say I mainly use one terminal tab for everything I'm currently writing) so using the home row I would have to switch all the time between home row and arrows when using the terminal (and other programs) (I guess I could add vim bindings to every single thing I use: web browser, terminal emulator, pry, irb, tmux, etc etc. but doesn't seem appealing to me).
The escape key isn't an issue either because I don't use the home row, so no need to remap that too.
I think this misconception comes from the manual pushing people to use the home row.
I don't claim I'm the fastest writer ever, but there are a lot of compromises I'm not willing to make (I could use vim tabs/windows, I could use Ctrl-D to switch files, I could use GVim, have the main files always open, etc.). I'm pretty sure everyone works differently and this workflow works very well for me.
What I don't like is this constant shaming of arrow vim users and people that keep saying it's only for beginners (and the manual pushing people to use the home row).
I write extremely fast and use arrow keys (and all kinds of vim shortcuts).
> it's also the likely visual/mental cost of looking away from your screen to aid in positioning the hand
I never look at my keyboard when using vim.
I either go down with arrows (I know it's controversial), beginning of file with :1, end of file with G, line number with :[line number] or search with /. I usually don't have large files so this works very well (and I almost exclusively go by line number on large files).
> Moving one character at a time
I use ^ for beginning of line, $ for end of line, e to move quickly in a line
> Searching for the word under the cursor
Nice, didn't know about */#, I just type what I'm searching, gonna use that.
> Deleting, then inserting
Insert mode is fine.
> Using the arrow keys
I use the arrow keys, and I don't care about all the arrow-key shamers out there.
> Moving in insert mode
I use insert mode only while editing (makes sense). I don't get the point of this paragraph.
> Moving to Escape
I'm fine with escape key.
> Moving to the start or end of the line, then inserting
I much prefer just going into insert mode.
> Entering insert mode, then opening a new line
I also use o quite often (as it just goes into insert mode).
> Entering insert mode to delete text
Yes, I delete with dd, de, etc. (. is also useful for that), deleting in insert mode is painful for more than one character.
> Repeating commands or searches
Didn't know about q: and q/, pretty useful, nice.
> Repeating substitutions
I use %s/for/far/g or %s/for/far/, or for a few lines, I select them (shift-v) (visual mode) then : (which auto-sets it to :'<,'>) then :'<,'>s/for/far/ for instance.
Anyway, been using vim for ~5 years with a pretty light .vimrc and one thing I would recommend is bogado/file-line plugin which lets you open a file at a line, e.g. vim app/models/user.rb:48
My vimrc if anyone is curious: https://gist.github.com/localhostdotdev/aa25d1c81f3f3b67ac35...
Also seems a bit over-engineered, I would just ssh into a server and do everything from there as a normal user.