News for hackers. Stuff that matters.

RichWalton

Re:Ask HN: What are you working on? on Thursday January 14, 2021 @08:11PM (#25785610)
My next project will be a "Cat poo detector" - this will live in the cat's litter tray and detect whatever gasses are released when it is used. This will be used so I can know if I can have a lazy weekend morning in bed or if I need to go downstairs and clean up.
Re:Ask HN: What are you working on? on Thursday January 14, 2021 @08:09PM (#25785593)
I just finished hacking some "smart" behaviour into my old doorbell chime.

The sound of the chime ringing is picked up by a microphone connected to an arduino-like device. A small script is executed which results in my Alexa devices announcing that someone is at the door.

All the modifications / additional hardware fit inside the existing chime housing. It's been quite fun learning about electronics (For example, the chime is powered by 16v AC, but the microprocessor requires 5V DC) and writing the software for it (while admittedly is very simple) was challenging as I'm not familiar with C++.

Re:Google outage – resolved on Monday December 14, 2020 @07:01AM (#25416222)
I'd expect that status page to be automated based on a number of metrics / health checks. Our equivalent is.
Re:NASA’s Sofia Discovers Water on Sunlit Surface of Moon on Monday October 26, 2020 @12:24PM (#24897845)
Some parts of some craters are in permanent shadow.
Re:Minimal Responsive Grid System on Wednesday May 02, 2018 @07:50AM (#16976011)
Indeed they are. CSS even has a `grid` layout style: https://css-tricks.com/snippets/css/complete-guide-grid/
Re:Goldman Sachs Is Setting Up a Cryptocurrency Trading Desk on Friday December 22, 2017 @04:08AM (#15986198)
Merry Christmas!
Re:Goldman Sachs Is Setting Up a Cryptocurrency Trading Desk on Thursday December 21, 2017 @09:49PM (#15984886)
Interesting. I'll take you up on that offer :)

xrb_1mf1quypikgen383zos45696gatdtj8kq9d3henygnr7ncx9gqkr84rp1u5g

Re:Did Nintendo download a Mario ROM and sell it back to us? on Friday January 20, 2017 @06:31PM (#13447810)
The very next sentence in that paragraph goes on to say: " I have cut the ROM content out of the Wii file you sent me and it indeed matches the .NES file found online"
I added my project and the service claims it has 0 dependencies (Listed in the build.gradle file).

Bug?

https://dependencyci.com/github/RichTeaLang/RichTea

Re:Managing dotfiles with GNU Stow on Sunday April 17, 2016 @05:40PM (#11516445)
I think that's a bit of a generalisation :)
Re:Go 1.7 toolchain improvements on Saturday April 02, 2016 @08:12AM (#11411246)
What happened between Go 1.4.3 and 1.5 which introduced such a slow down in compile times?
A quick test shows this to be _much_ faster than NPM 2 (Browserify ~8s vs ~27s using NPM 2). I've been on the look out for a faster NPM given it takes 30m to install dependencies for an application I work on :(

Unfortunately IED (Soon to be renamed "NOM") doesn't support Git dependencies :(

Agreed. Fortunately the dev(s) look to be in the process of renaming to "Nom" (https://github.com/alexanderGugel/ied/issues/29)
Re:Windows 2000 CSS Theme on Tuesday November 10, 2015 @05:55AM (#10538641)
Similar idea, but focused much more on comedy.

Introducing Windows RG (Really Good Edition) [1] Warning for some: This requires the Adobe Flash plugin.

[1] http://windowsreallygoodedition.com/

Re:Smartcrop.js – content-aware image cropping in JavaScript on Wednesday October 14, 2015 @06:14PM (#10389914)
Awesome work.

As it happens I'm working on an image cropping front end (using CropperJS [1]) - I'm going to integrate this so that the initial crop selection is set using the results from SmartCrop.

Thanks again.

[1] https://github.com/fengyuanchen/cropperjs

Re:Little Man Computer on Monday June 22, 2015 @07:44AM (#9757585)
Yes, correct :).

In the "Post Room Computer" analogy, the little man works in a post (mail) room.

The mailboxes are memory, in/out trays are IO, etc etc.

Re:Little Man Computer on Monday June 22, 2015 @06:35AM (#9757361)
This is a nice implementation.

I made something similar [1], based on the Post Room Computer [2].

Basically it is a two address (operand) modification of the LMC. It was used to as a teaching tool for undergrad students at my local university.

It's a bit more fully featured - It supports absolute and register based address modes, macros, programs spanning multiple files. The computer is accessible via command line or using the in-built Java Swing UI.

If anyone is bored and wanted to run it, heres a sample program:

  ;; A simple multiplication program

  INP :x:		; Input value and store at location :x:
  INP :y:		; Input value and store at location :y:
  MOV :result: :x:	; Copy the value at :x: into :result:

  ; Multiplication loop
  :loop:		
	  SUB :y: :one:	; Substract 1 from the the value at :y:
	  JMP EQZ :end:	; If result of subtraction was 0, stop looping
	  ADD :result: :x:	; Add the value at :x: to the result
	
  ; If the program reaches this stage multiplication is not complete
  ; So jump back to start of loop
  JMP LWY :loop:

  :end:		; Label to exit the loop
  OUT :result:	; Output the result
  HLT		; Stop execution

  ; Data Stores
  :x: (0)
  :y: (0)
  :result: (0)
  :one: (1)
[1] https://github.com/Richard-Walton/The-Post-Room-Computer

[2] http://eprints.hud.ac.uk/2518/