u/oddlydrawn - 15 Archived Voat Posts in v/programming
u/oddlydrawn
  • home
  • search

u/oddlydrawn

0 posts · 15 comments · 15 total

Active in: v/programming (15)

  • ‹‹‹
  • ‹‹
  • ‹
  • 1
  • ›
  • ››
  • ›››
Comment on: What's is the best text editor to use from command line?

Have you tried visual block (Ctrl-v) + :s? You might also need something like vim-easy-align to align stuff into columns. It seems like that would do column search/replace, although I don't know emacs so I'm not sure if it's similar.

1 18 Mar 2016 05:54 u/oddlydrawn in v/programming
Comment on: Class Inheritance in Java

I get errors when I tried running javac on inherit.java and inherit2.java

Edit: Also, this is false:

Note that a class can extend more than one super class. You need to provide a list of comma separated names of super classes, as such:

public class Gecko extends Reptile, Animal, Quadruped {}
1 01 Mar 2016 19:17 u/oddlydrawn in v/programming
Comment on: A typeface for programmers (helps distinguish between a lower case l, an upper case i, and the number one for example)

They look fine to me. Although I've replaced all of my serif and sans serif fonts in Firefox with Bitter and prevented sites from setting their own.

Terminus does a decent job of it as well. Every other programming font has dealt with the problem without italics.

Using all pipes for the last bit seems like cheating.

1 28 Feb 2016 07:47 u/oddlydrawn in v/programming
Comment on: Alternatives to notepad++

I like vim/gVim. Start with vimtutor. Is this (visual block mode) similar to the block delete you need?

Screenshot of the guioptions not disabled (with tab bar, buttons, menu bar, scroll bar. The tab bar is below the buttons. I'm not sure if it's the default tab bar or airline's enhanced tab bar.

Here's me editing python. Here's :Gdiff (git diff) from tpope's vim-fugitive plugin. Here's a regular non-git vim diff.

Here's my vimrc. You would need to install junegunn's vim-plug and :PlugInstall to set everything up. I also have eclim (mainly for java completion from eclipse in vim) and ag (silver searcher, for faster ctrl+p searching)

3 18 Feb 2016 02:07 u/oddlydrawn in v/programming
Comment on: I' found that i'm learning about C# (and other programming languages/syntaxes) a thousand times faster when i know the grouping/names/functions of the structure. could anyone compile a list of terms?

Looking for online cheat sheets or quick references helps me figure out how to make a basic program in a language at a glance since they usually have information on the language's data structures, control flow, basic syntax, function/method declaration, input, output, primitives, semicolon use, importance of whitespace. C# cheat sheet example

A language/engine/framework/library's documentation/manual/api reference also helps. When all else fails, there's the source code.

5 09 Feb 2016 10:03 u/oddlydrawn in v/programming
Comment on: Apollo 11 source code

Finally, note that the original Apollo AGC assembler (called "YUL") is no longer

available (as far as I can tell). In fact, it was replaced by another assembler

("GAP") even before Apollo 11, but GAP is no more available than is YUL. The

replacement assembler yaYUL accepts a slightly different format for the source

code from what YUL or GAP accepted, so the source code has been targeted for

assembly with yaYUL.

The yaYUL aseembler is the closest you'll get, it seems. Here's a manual for it. Here's a physical implemnation of AGCs and here's information about virtual AGC (which seems really neat but I haven't digested everything yet.)

1 01 Feb 2016 02:49 u/oddlydrawn in v/programming
Comment on: The Ruby Programming Language community is now under siege by SJW entryists and the trojan horse Code of Conduct

No problem. I too was curious about the situation. People should explain a bit about the links they post instead of just dumping them but I guess they'll get upvoted since people aren't posting better content.

I think code of conducts should only be required for legal organizations and only to the extent the law requires.

0 25 Jan 2016 01:21 u/oddlydrawn in v/programming
Comment on: [need help] Python is crashing and stripping charactors

Something like this?

def get_subverse_name(data):
    if data.find('v/') != -1:
        words = data.split(' ')
        w = get_sub_word(words)
        trimmed = w.split('v/')
        # trim non valid characters like punctuation before returning.
        # I'm a python noob
        return trimmed[1]
def get_sub_word(words):
    for i in range(0, len(words)):
        word = words[i]
        if word.find('v/') != -1:
            return word
def main():
    tests = ["test v/sub test2",
             "test v/sub",
             "v/sub test",
             "have you seen v/programming? It's dead sometimes."]
    for test in tests:
        output = get_subverse_name(test)
        print("\n#################################################")
        print("\ninput:\n" + test)
        print("\noutput:\n" + output)
        print
if __name__ == '__main__':
    main()

Edit: It could be improved, though. Instead of get_sub_word() returning a single word, it could return a list of words to find every subname instance. You should probably also check if the sub exists.

0 24 Jan 2016 22:42 u/oddlydrawn in v/programming
Comment on: The Ruby Programming Language community is now under siege by SJW entryists and the trojan horse Code of Conduct

Nothing seems to have happened, in this case at least. Yukihiro Matsumoto seems to be against it for the right reasons:

Hi,

I agree with the spirit of anti harassment. I hope the community being free from any personal attacks nor trolling.

But I have a few concern about the wording in the proposed Code of Conduct, for example:

Project maintainers have the right and responsibility to remove...

or

...permanently removed from the project team

PostgreSQL CoC is far better fit to my intention.

Matz. (#26)

The screenshot with proposed changes

  • If someone's misbehaving and you tell them to chill, both could be removed from the project for misbehaving and for not enforcing the CoC.

  • There's also the harassment-free experience regardless of ... "belief" ...

  • And temporarily or permanently banning someone because they deemed behaviors to be inappropriate or offensive.

I mean, with your downvotes, I'm sure people in this thread deemed your comments inappropriate.

3 24 Jan 2016 08:17 u/oddlydrawn in v/programming
Comment on: Which voat plugin should we contribute to?

AVE. I think the other plugins aren't active anymore.

3 16 Jan 2016 14:12 u/oddlydrawn in v/programming
Comment on: Why Java? Tales from a Python Convert : sookocheff.com

I looked for the vulnerabilities that had more information and it seems they're all exploits through web applets. CVE-2015-4903, CVE-2015-4906, CVE-2015-4916, CVE-2015-4893.

Adobe seems to believe that Flash Pro is still fine since they changed the name to Animate and are pushing html5.

0 01 Jan 2016 22:59 u/oddlydrawn in v/programming
Comment on: Why Java? Tales from a Python Convert : sookocheff.com

The vulnerability is in Apache Commons Collection and not plain java. The problem seems like it's resolved in 3.2.2 and 4.1 since 2015-11-21.

0 31 Dec 2015 22:25 u/oddlydrawn in v/programming
Comment on: Why Java? Tales from a Python Convert : sookocheff.com

Java is fine. The security concerns are all from the browser plugin.

Install openjdk 8, skip icedtea-web (java web browser plugin), avoid oracle, and all is well.

edit: /java web plugin/java web browser plugin/

2 31 Dec 2015 19:42 u/oddlydrawn in v/programming
Comment on: What kinds of problems is /v/programming solving these days?

Completed:

  • collisions
  • level loading
  • enemy generators
  • working health
  • game over screen
  • hurt animations
  • attack animations
  • pause screen
  • some projectiles
  • projectile drops

Todo:

  • content (enemies, levels, bosses, behaviors, tile sets, animations)
  • features (one way platforms, ducking, other stuff)
  • animation mixing for hero (from idle to running, standing to crouch, others)
  • four frames of animation are too few, for hero, especially for melee attacks
  • add simple melee combos for hero (running attack -> lunge, standing still -> slash, down + attack in air - power slam, others)
  • figure out reason for crashing on restart
  • rework layout to fit in on-screen touch controls

A lot of the completed stuff isn't that great and should be considered half completed or needs to be rewritten. There's probably other stuff I'm forgetting and won't realize it until I get to that point.

0 24 Dec 2015 09:37 u/oddlydrawn in v/programming
Comment on: What kinds of problems is /v/programming solving these days?

The problem I'm trying to solve most often is one of motivation =/

More specifically, I want to turn a failed game jam game into an actual game but need to do a bunch of things first (check reasons for crashing, make code look less like poop, content creation takes more time than I thought it would...)

2 24 Dec 2015 07:39 u/oddlydrawn in v/programming
  • ‹‹‹
  • ‹‹
  • ‹
  • 1
  • ›
  • ››
  • ›››

archive has 9,592 posts and 65,719 comments. source code.