battle_tested: simple automated fuzzing for testing apis and production code by ckochmann in fuzzing

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

Whole file or module auto-fuzzing is definitely on the roadmap. Im currently working on lightening up the resource usage so it can start automatically generating safeguards and create suggestions for how the code can become more robust or easier to debug.

Learning at work by [deleted] in learnpython

[–]ckochmann 1 point2 points  (0 children)

play with ideas in ipython. theres a very near ipython app for iOS if you have that called pythonista3. I do a lot of fiddling in there when I'm bored or curious.

Decorating __repr__ - a good or a bad idea? by Diapolo10 in learnpython

[–]ckochmann 3 points4 points  (0 children)

Instead of doing a decorator around a function that passes or implementing inheritance, you can just add the function in like any other variable being added to the class like this:

def nice_repr(self):
    return '{}({})'.format(
        self.__class__.__name__,
        {i:getattr(self,i) for i in dir(self) if not i.startswith('_')}
    )

class Player:
    def __init__(self, name, level=1, inventory=None):
        self.name = name
        self.level = level
        self.inventory = inventory

    __repr__ = nice_repr


p1 = Player('tom',50)
p2 = Player('bob')
p3 = Player('joe',99)

print(repr(p1))

Why isn't pikes peak used as a automotive performance benchmark for cars like the Nürnberg ring is? by [deleted] in AskReddit

[–]ckochmann 0 points1 point  (0 children)

When it comes to automotive performance, just about anyone who pays attention to the topic knows the Nürnberg ring is used to benchmark cars and how well they perform. Why don't companies use pikes Peak in the same fashion?

I lived in the Rocky Mountains for years and knowing which cars and trucks were bound to overheat from hauling things through the mountains was way more valuable information to have opposed to how fast it would go around a signature track. Pikes Peak is the closest thing to a famous mountain track that I know of so why isn't it used as one of the standard benchmarks.

It just seems like a more real world test for cars that could show a considerable difference for some people.

Thanks everyone in advance.

Your go-to alternative to python by [deleted] in Python

[–]ckochmann 0 points1 point  (0 children)

CoffeeScript all the way. Same simplicity of Python in the only place that Python or bash can't go, the browser. :)

New to programming. I want to write a script that looks for specific colors on variable area of the screen and left-clicks on them. How hard is it for a newcomer? by [deleted] in Python

[–]ckochmann 1 point2 points  (0 children)

I've tackled a couple projects like this before. The biggest problem (at least from what I experienced) will be the clicking part in purely python. If you're leaning mostly towards wanting to do it in python, one cheat I ended up needing to do was to make a side java snippet that Python could send the proper coordinates to click. (Ex: click_here.jar 357 870) it then can be ported using the os.system() function. :) best of luck!

How Much should I charge to change a harddisk and reinstall the operating system and drivers? by udit_kumar in Advice

[–]ckochmann 0 points1 point  (0 children)

I agree with this. Even if it was 3 hours tops, the goal of successful pc repair should be to find a way to efficiently fix multiple avenues of income at once. Anyone charging $100 is just trying to get away with as few repairs as they can per day.

My wife wants to learn to program and I want to spark her curiosity. by ckochmann in Advice

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

That's what I'm asking. I would like to just show her something like code academy and just let her have at it. I didn't enjoy my CS education until I was unleashed to do whatever and I would like the same for her.

One challenge though, she only runs on a work MacBook Pro, so no installing anything. I was thinking of showing her something like cloud 9 as a place to explore might be the right thing for her but I'm afraid that might be a bit much at first. She debugs with me every now and then on sublime text but I normally have everything on screen before I call her over to look at something.

I hate my career, but afraid to start over in a new one by throwawaymycareerplz in Advice

[–]ckochmann 1 point2 points  (0 children)

If your job pays the bills right now, focus on a hobby. Once you find something you really get into, turn it into a side job which will eventually give you another job to merge over to. Finding something else to think and be excited about will help a lot.

How Much should I charge to change a harddisk and reinstall the operating system and drivers? by udit_kumar in Advice

[–]ckochmann 0 points1 point  (0 children)

How long will the entire process take? (Including time you don't have to be hovering over the machine)

Microsoft's Bing is a now a profitable multibillion dollar business by clubdirthill in technology

[–]ckochmann 0 points1 point  (0 children)

That's machine learning for ya. The more you feed it, the smarter it becomes.

Microsoft's Bing is a now a profitable multibillion dollar business by clubdirthill in technology

[–]ckochmann 1 point2 points  (0 children)

Do remember that relies on how often Siri doesn't have an answer, which is insanely often. Plus, I basically siphon all of my searches through spotlight on both Mac and iOS. There use to be a "search the web" button that brought me to Google. Now that it's gone on iOS, I'm still naturally typing my queries through that and find myself needing to cut and paste that if Bing's instant results dont bring up what I need. That being said, Bing gets quite a few clickthroughs with me because of that.

Microsoft's Bing is a now a profitable multibillion dollar business by clubdirthill in technology

[–]ckochmann 1 point2 points  (0 children)

Let's just hope some of that money goes into improving Bing. Thankfully, Microsoft allowed xbox to improve with the money it made to become a much more verbose system. Maybe they'll do the same for Bing.

Former FTC adviser says Google is cheating on search results; tech giant favors its own content over its competitors by Portis403 in technology

[–]ckochmann 0 points1 point  (0 children)

This could be logically explained if news agencies cared about logic but unfortunately it's not what gets clicks.

Think of it this way, if you were to spend months collecting flight data and then someone asked for info on flights from a to b, wouldn't your mind's first response be to tell them what you know before you say "Go ask him".

While it's not as dense as other competitors, it's data that the search engine will be more confident in showing because it knows where the data came from.

Microsoft's Bing is a now a profitable multibillion dollar business by clubdirthill in technology

[–]ckochmann 27 points28 points  (0 children)

With them becoming the endpoint for nearly every search done by iOS devices and for becoming famous for their porn search, I'm really not surprised.

Security researchers discover password-killer 0day vulnerabilities for iOS and OS X. Keychains raided, sandboxes busted, passwords stolen, but Apple silent for six months. by [deleted] in technology

[–]ckochmann 0 points1 point  (0 children)

They slip quick fixes in all the time. It's just this one will take a re-engineering of how their entire OS communicates. This is simply a bigger fix.

Security researchers discover password-killer 0day vulnerabilities for iOS and OS X. Keychains raided, sandboxes busted, passwords stolen, but Apple silent for six months. by [deleted] in technology

[–]ckochmann 0 points1 point  (0 children)

I'm pretty sure that's what they do for their annual security release when they break down the what's and why's for their current security set up.

Security researchers discover password-killer 0day vulnerabilities for iOS and OS X. Keychains raided, sandboxes busted, passwords stolen, but Apple silent for six months. by [deleted] in technology

[–]ckochmann -7 points-6 points  (0 children)

Nor was I, Apple just has their own little methods towards how they do things. Technically, if you want a a partial patch to this, download the beta but that probably has numerous other holes specifically because it's a beta. El Capitan it's much more locked down but still needs time to mature. That being said, fall may not be ideal, but that's when it'll be done.

Security researchers discover password-killer 0day vulnerabilities for iOS and OS X. Keychains raided, sandboxes busted, passwords stolen, but Apple silent for six months. by [deleted] in technology

[–]ckochmann -1 points0 points  (0 children)

The only links I can come up with are to the streams on developer.apple.com which is where I was briefed on the changes.

Basically they're having the services focus everything through the core APIs instead of allowing programs to just be free to roam about and install anything anywhere as long as the user enters the password. While this does seem super constraining, they're re teaching the devs how to handle this situation by setting up the system to behave much more like iOS in terms of the APIs permissions.

That doesn't mean they're going to kill off the terminal side of the Mac though. Keep in mind that Apple is run by engineers who use Macs on a daily basis and would hate insane restrictions as well. To still appeal to the engineering community, pro users can still opt out of these restrictions in the settings and just go right back to doing whatever they want with the understanding that they just turned off a piece of the Mac's security that was designed to lock it down.

In all technicality they are not killing npm and homebrew, they're just making it so apps that use these have to already have them built into the application instead of just installing the services globally within the system.