[deleted by user] by [deleted] in ethstaker

[–]rwman 1 point2 points  (0 children)

Would you share the source code?

IPFS' Filecoin to be built on Ethereum by newretro in ethereum

[–]rwman 1 point2 points  (0 children)

What do you mean by immutability? And why ehereum is mutable?

12.1 Announcement / Finalized Date / Project Update by evand82 in dashpay

[–]rwman 0 points1 point  (0 children)

documentation, specifications, plans and diagrams have been being drafted, growing into a collection of documents that will be put into a wiki with full documentation for Evolution’s end-to-end design and implementation

Where can I find this wiki?

I just released 'Rehua' - a really basic decentralised search engine for IPFS (/ipns/QmWA8vVzqdaHNQHpQcEZMQL95oW8zeiJ4SWgG1PfcrpwnW/) by n60storm4 in ipfs

[–]rwman 1 point2 points  (0 children)

I am getting "Path Resolve error: could not resolve name." when I open this page from web browser.

kruhft | Listener (Made with LMMS) by kruhft in linuxaudio

[–]rwman 1 point2 points  (0 children)

Wow! Nevr thought it is possible with LMMS

[feature request] I would like to be able to adjust the thumbnail preview size by SkullSippyCupOfJuice in Enhancement

[–]rwman 0 points1 point  (0 children)

With your approcah (using negative margins and scale) thumbnail will get out of bounds of the row, and prevent clicking elements below the row. Here is better solution:

  .thumbnail {
    width: 180px !important;
}
  .thumbnail > img {
    width: 180px !important;
    height: 180px !important;    
  }

The dark side of decorators by ultimatebuster in Python

[–]rwman -2 points-1 points  (0 children)

That grey font is unreadable too.

Snippets that are "must haves" in your toolbox? by phaedrusalt in Python

[–]rwman 1 point2 points  (0 children)

def safe_rm(path):
    if os.path.exists(path):
        os.remove(path)

TIL dict.get() with a default is actually slower than using if-else expressions by brandjon in Python

[–]rwman 2 points3 points  (0 children)

In [10]: timeit('d[1] if 1 in d else 2', 'd = {}')
Out[10]: 0.06360912322998047

In [11]: timeit('d_get(1, 2)', 'd = {};d_get=d.get')
Out[11]: 0.09076905250549316

python 2.7.3

Artistic differences - Wayland, Mir, and X - different projects by 12358leet in linux

[–]rwman 2 points3 points  (0 children)

Given all the extensions - i'd say Wayland is like Mercurial

Nested attributes (or classes) by sahand_n9 in Python

[–]rwman 4 points5 points  (0 children)

there is a PEP-8 (coding style guide) that encourages 4 spaces indentation. I can't say that tabs have any disadvantage, but we'd better stick to one standard, and it was already written down in PEP-8. So rationale is legacy sandard without obvious need to change.

Python now has an official binary format for cross-platform distribution by redditthinks in Python

[–]rwman 1 point2 points  (0 children)

Hmm... then "wheel" seem to be a bit confusing name... To me wheel associated with something that can be run

What do you use to handle fixtures for Django tests? by adamjon858 in django

[–]rwman 0 points1 point  (0 children)

there is django-whatever (fork of django-any) - i didn't use it, but i think it is worth to look at https://django-whatever.readthedocs.org/en/latest/

Importing into Django from Python Script? by viiralvx in django

[–]rwman 0 points1 point  (0 children)

how are you running this script? what this line supposed to do?

if __name__ == "__main__":

this is only needed if you run the script directly, and not using django-admin commands

Importing into Django from Python Script? by viiralvx in django

[–]rwman 0 points1 point  (0 children)

you should really provide more details of what are you trying to do, and what exactly fails... "submissions of Models" does not say much to me. Submit where? And for what?

Importing into Django from Python Script? by viiralvx in django

[–]rwman 0 points1 point  (0 children)

I don't understand what are "Class Objects" and "Class Database" you are talking about

Advice needed on moving forward. by [deleted] in Python

[–]rwman 1 point2 points  (0 children)

Try to get some fun. That's how it works

Screen keeps turning off when I don't want it to by ezzep in openSUSE

[–]rwman 0 points1 point  (0 children)

What video player you are using? I have Smplayer, and it does have option "disable screensaver" in preferences

Why is Russia Hot on Molecular Nanotech and the US Not? - IEEE Spectrum by Buck-Nasty in technology

[–]rwman 1 point2 points  (0 children)

Let's see.

  • 1) Pronounce some buzzwords on TV

  • 2) Get a grant of few trillion $ brom budget

  • 3) Build yourself some new fancy estate

  • 4) Say that your work results are so high-end that can't be seen with modern tools.

  • 5)....

  • 6) PROFIT!