HNHacker News
TopNewBestAskShowJobs

daGrevis

1,234 karma · joined November 15, 2011

[ my public key: https://keybase.io/dagrevis; my proof: https://keybase.io/dagrevis/sigs/l6JRPbRKhru31TNZAVIXJwrFCDHOZ98uQ98l7DlN2hU ]
submissionscomments
daGrevis··on Show HN: HN Special – A visual theme and Chrome extension for Hacker News
I really like it. To be honest, I prefer it more than Georgify [1].

[1] https://chrome.google.com/webstore/detail/georgify/ofjfdfale...

The only problem I have with it is that after opening comment section, the design pops-out and overwrites the original design.

daGrevis··on Learn Lua in 15 Minutes
Lua is weird mix between JavaScript and Python. I kind of like it.
daGrevis··on Evolved artificial intelligence can play video games better than humans
The built-in DotA 2 AI is no near being good.
daGrevis··on Three Useful Monads
This makes me want to learn Haskell once again and maybe, if I'm super lucky, understand something! :)
daGrevis··on Setting The Default Encoding In Python
You change the global state — it's bad.
daGrevis··on Todo. - The To-Do web-app for overworked hackers
I don't see why it's necessary.
daGrevis··on Evolved artificial intelligence can play video games better than humans
I would love to see how _that kind of AI_ plays against person in DotA 2 or Starcraft 2.
daGrevis··on DDoS sends EVE Online offline
The irony. EVE Offline.
daGrevis··on Show HN: Laravel 4 - This framework is revolutionizing PHP.
The way I see it is that the problem with Laravel is it's core — PHP. If you want to use Rails-like framework — use Rails and you get Ruby for free!
daGrevis··on Building a Hacker News clone in Django - Part 1 (Screencast)
This is pretty interesting. Looking for 2nd part!
daGrevis··on Haskell Platform 2013.2.0.0
Link to Arch Linux package is broken.

Here is out-dated version from AUR though. https://aur.archlinux.org/packages/haskell-platform/

daGrevis··on The true power of regular expression
https://news.ycombinator.com/item?id=5109549
daGrevis··on Show HN: WideArea – an expandable textarea
I suggest to add key-bindings: <Control-Space> for going to wide-mode and <Escape> for getting back.
daGrevis··on Poll: "Giff" or "Jif"?
Like "gift" w/o "t".
daGrevis··on My Biggest Vim Productivity Boost
This is what I have for controlling tabs:

    " Mappings for controlling tabs.
    noremap <M-a> :tabprevious<CR>
    noremap <M-s> :tabnext<CR>
    noremap <M-1> :tabnext 1<CR>
    noremap <M-2> :tabnext 2<CR>
    noremap <M-3> :tabnext 3<CR>
    noremap <M-4> :tabnext 4<CR>
    noremap <M-5> :tabnext 5<CR>
    noremap <M-6> :tabnext 6<CR>
    noremap <M-7> :tabnext 7<CR>
    noremap <M-8> :tabnext 8<CR>
    noremap <M-9> :tabnext 9<CR>
More here: https://github.com/daGrevis/Dotfiles/blob/master/.vimrc .
daGrevis··on Repository redirects are here
Why this wasn't implemented at the first time. Doesn't seem hard to do...
daGrevis··on Social login buttons aren't worth it
What happened with people who logged in with Facebook and Twitter?
daGrevis··on Django: The Easy Form Views Pattern Controversy
This is more explicit, hence better.
daGrevis··on Javascript library for building SQL query strings
One may create alternative for Adminer (SQL admin in browser) that constructs queries somehow graphically on client side. If that is the case, any SQL from client is trusted.

People should NOT try to stop others from doing stupid things, only warn. After all, we all are responsible adults and we are not idiots.

daGrevis··on Ask HN: How many hours of sleep are you getting?
I tried to live w/o any caffeine a whole week. Expect a hardcore headache!
daGrevis··on How to Use the vi Editor
This is how you should start to learn Vim.

P.S. I didn't know about <C-j>, <C-f> and <C-b>.

daGrevis··on The JavaScript Guy
In my team, I'm the one that knows JavaScript the best. Everyone is asking for a help and I'm happy to answer.

Anyway, I somehow have this feeling that JavaScript is 2nd-level language and I'm not so proud that I'm the only one that knows it good enough. I would be much prouder if I would be "The Python guy" or, hell, let it be "The PHP guy" even...

daGrevis··on Django-inplaceedit: Edit on the fly
We gone even further.

By pressing <C-q>, click events are disabled (all except for clicking on translatable string) and all places, that are editable, are highlighted. By clicking on them, a popup opens. Then you can edit and press save. It's saved in the database. You can edit anything that uses `inline_trans` template tag. If text is translated, the newest version is shown instead from database. Sadly, it doesn't support variables yet. There is a page that shows all translations that can't be translated like that. For example, string that contain variables or strings that aren't in templates. It get those strings by using `polib`. Then there is a script that parses templates and gets all strings that are marked as "inline translatable". The same way `maketrans` does it. Then there is a script that merges results from database with existing PO file. It's done because taking strings from database is kinda slow and it's done using GNU's `gettext`. Yes, you need Linux server to use it. :)

After having to maintain it for a few months, I can surely say that it was a terrible idea. We aren't a CMS too and it wasn't a must-have feature! It was done only for making life of business a little easier. Saying that, it would be a lot easier to teach business to use something like Django Rosetta.

daGrevis··on Ruby is too slow for programming competitions
I would put Python in the same category as Ruby, if we are talking about performance. Sure, there is PyPy, but for Ruby there is Topaz.
daGrevis··on A Social Coding Experiment
https://github.com/daGrevis/socode/commit/03b9332aa997331e72...
daGrevis··on Vim Splits – Move Faster and More Naturally
I'm interested to increase "the speed" of resizing splits. It's annoying to press `<C-w> <` a few times just to move split a few pixels...
daGrevis··on Pony ORM - Use Pure Python to Speak to Your Data
Not anything super specific. Kohana, for example, has ORM that uses that-alike way to built queries. And, as far as I know, it's ORM is built on top of that. I think that ORMs should have something like that in them instead of SQL queries as strings.
daGrevis··on Pony ORM - Use Pure Python to Speak to Your Data
This seems very close to what PHP does. The difference is that PHP doesn't have so many ways to express itself so it's all done with method-chaining.

In my opinion, this is the way to write the core of an ORM and it should allow to use this abstraction layer too! It's somewhat between SQL queries as strings and ORM-level, I think.

daGrevis··on The Node.js Community is Quietly Changing the Face of Open Source
> you have to re-invent-from-scratch all the tools

If they are in standard library, they must be invented before too! The difference is that there isn't standard solution (hence the name) and anyone can offer his/her own solution to the problem.

daGrevis··on Show HN: "Keep Calm and Python" t-shirts to support PSF
Reserved.
← PreviousPage 5 of 8Next →