Better HN
topnewbestaskshowjobs
Log inSign up

scottyelich

10 karma · joined Jan 24, 2014 (12y ago) · 27 submissions

Submissions

comment 6y ago · link · parent

https://www.lexaloffle.com/bbs/?tid=28402

comment 6y ago · link · parent

Now all we need is a networking layer and we'll be all set. evil grin

comment 6y ago · link · parent

Unlikely to survive an Alice 101 challenge.

comment 7y ago · link · parent

Doing what? The parent is gone. Just so you know, I'll also try not to do "this" … whatever "this" might be.

comment 8y ago · link · parent

Bingo.

comment 8y ago · link · parent

native video player has... issues.

comment 8y ago · link · parent

Hell, I've coded in languages that I didn't even know (didn't really even know what the language was -- I think it was like VB or something) by copying terms from some sample, reference or other part of the code and putting in the term or idea I was looking for.

Additionally, just try to look up items on a language that is in (constant?) flux like Swift. Swift 1.x? 2.x? 3.x? 4.x? What's the API today -- naming convention changed, parameters changed, etc. All I can say is that thank goodness Google allows for date ranges with searches. :-)

comment 8y ago · link · parent

I did an interview problem like this a while back (was about combining CIDR blocks) and I found an answer on the Internet. I coded up a similar solution (I used a slightly different data structure with a slight optimization just to show I didn't copy the algorithm exactly). The place actually complemented me on my Google foo as they claimed they asked the question because they knew (thought?) people couldn't look up the answer. Of course, they dinged me by saying my code had too many comments (nevermind I was detailing WHY and HOW my algorithm was different from the Google results). I didn't get any love for the man(1) page I made either. Oh well, can't please everyone. :-)

comment 8y ago · link · parent

I wanted to play around with LUA so I used pico-8 as an excuse to dabble. I made this after a few days: https://www.lexaloffle.com/bbs/?tid=28402

At launch screen, use arrow keys for level up/down, lives up/down (q to enable "rapid fire" cheat) ... start game with either "z" or "x" key.

Pico-8 uses 2 buttons primarily -- keys are mapped to "z" and "x" ... when playing, z will do fastest-sampling fire and x will do regular firing (this is most noticeable after using the q cheat.)

If you use the q cheat -- the score will not count toward the high score.

I stopped developing for pico-8 as I get it that some of the constraints are artificial, but I feel some are just too restrictive (like volume level on sounds). It's a fun little system with everything you need to use it built in. Some people have done some incredible things within the limitations of the system.

comment 8y ago · link · parent

On Topic: I own a late '16 MBP 15" w/ touchbar. My machine has been serviced once to replace some issue with a failure of some motherboard component (not touchbar or keyboard). I'm am early adopter (hardware, software, gadgets, etc.) -- and I have the luxury now to wait many years before I need to upgrade again. YMMV.

Off Topic: (sorry)

I think there's a much larger debate around what it means that a company owns "everything" you do on (not via?) their laptop (and worse, the whole concept of owning all thoughts, etc.).

But, what really IS a computer anymore?

I boot off external SSD (for my OSX use). I do this while at work, home, friends, etc. I carry around an SSD drive that's small and light -- no more hauling laptops.

This usage style seems to break a lot of assumptions of what a computer with things such as licensing (Apple, Microsoft, etc.). Although it can be painful at times (if something requires GUI and the network bandwidth is low or latency is inconsistent), using a machine as a client (ie: GUI or GUI-less) terminal to access a remote (dev) machine is possible -- such as any client (windows, linux, OSX on MacBook Air) and iMac (or whatever) on the LAN. Prior to iOS dev (which requires OSX), I was using (windows) PCs and full screen VMWare to run FreeBSD, etc.

If I use a machine and ssh to a remote server and change something, does the owner of the machine that I used to do the ssh now own the thing I changed on the remote server?

I currently share my desktop via iCloud sync (and I used rsync to do this as far back as '03 or so), and split data between local and cloud -- so for the most part I can access the data I need from anywhere.

Many SaaS (cloud or not) can be accessed and used from anywhere. It's extremely frustrating to have to maintain so many different accounts to separate work from personal.

For me, at least, the "computer" is getting abstracted away and devices are just ways to access tools for doing whatever it is that I want or need to do at the moment.

comment 8y ago · link · parent

3D0DEAD anyone?

comment 8y ago · link · parent

http://www.thewebsiteisdown.com/

comment 8y ago · link · parent

http://www.oxide.org/unix/

comment 8y ago · link · parent

9,984,535

comment 8y ago · link · parent

He wasn't like that? Says who? Him? And you believe this? The Internet in the late 80s to the mid 90s was like the wild west -- there were a few bad actors as Mitnick was one of them. Sorry.

comment 8y ago · link · parent

Thomas --

These people weren't there and only know what they have read or what has been glamorized. Mitnick had (has?) an evil streak and is in no way some poor little kid who got in over his head. He know what he was doing (in terms of his desire to cause harm) and he got off it. Lots of people had "fun" -- but very few seemed to be truly nasty human beings.

It's far better to create and help than it is to destroy and harm.

Hell, even u4ea popped up recently and doesn't seem like he's held a grudge for 20+ years -- think others can do or say the same?

comment 8y ago · link · parent

Don't get me wrong... I love kdb+/q ... I want kOS. I love forth (bare metal forth + tcp? win!). I just don't really do much with them, though, other than play.

> Some languages are worth learning to expand your horizons. Lisp is one of them, even if you never use it, and the APL family (of which K/Q are members) is another.

Exactly.

I have more than one hammer.

comment 8y ago · link · parent

... and can you use the 32bit version in commercial use? (Last I checked, no...)

The license already changed once (for the worse, IMnsHO), so what's to say that won't happen again. Too risky to touch.

No, can't use it (32bit version) for commercial, so this is a non-starter. Sorry.

kOS? really? https://news.ycombinator.com/item?id=8475809

comment 9y ago · link · parent

Thank you.

comment 9y ago · link · parent

I ended up changing the "cc" line for darwin to this: cc -o $@ $@.o -lSDL2 -lSDL2_ttf now it compiles (and runs) just fine (for me). YMMV

comment 9y ago · link · parent

I'm looking for a bare metal boot OS that has internet capabilities -- lisp or forth based (ONLY). Any pointers would be greatly appreciated.

comment 9y ago · link · parent

correct. I figured out where the frameworks wanted to go -- and it even seems to match the path for -I, but that doesn't seem to be enough.

--

Yes, I have both frameworks installed. I even did the brew commands just for S&G ... same result after make command.

comment 9y ago · link · parent

  make
  cc -o obj/Darwin/x86_64/main obj/Darwin/x86_64/main.o -Wl,-framework,SDL2 -Wl,-framework,SDL2_ttf
  ld: framework not found SDL2
  clang: error: linker command failed with exit code 1 (use -v to see invocation)
  make: *** [obj/Darwin/x86_64/main] Error 1
---

Yes, I have both frameworks installed. I even did the brew commands just for S&G ... same result after make command.

comment 9y ago · link · parent

and for OSX?