Profile

Cover photo
Noel Cower (Nilium)
40,600 views
AboutPostsPhotos

Stream

Noel Cower

Shared publicly  - 
 
Spent most of last night working on a Lisp lexer/parser/interpreter in Ruby. For the most part, the parser is the first-smallest part because it's literally two functions: quote and expr, at 27-ish lines. The lexer's the largest part at around 370 lines. The rest is interpreting, which is around 220 lines, and most of that is just for handling specific expressions and managing the environment for certain things (that is, global scope is one environment, a let expression gets an environment on top of it, functions get an environment with their arguments on top of whatever environment they were created in, etc.).

So far, it can call into arbitrary Ruby code, though it has no way of passing functions as the block argument of a method right now. It probably won't even be able to do that, though, since it was just a one-off thing that I did because I was thinking that because I'd written the lexer and parser, I might as well have fun and see how long it takes to write a little Lisp that sits on top of Ruby. Turns out the answer is about 3-5 hours, if you count the time taken to write the lexer and parser and then try to account for time spent taking breaks to read about other stuff (or to occasionally check the R5RS for ideas).
1
Add a comment...

Noel Cower

Shared publicly  - 
 
Semi-real-world test: I created a new color scheme, saved it, set it in Sublime, then edited it with Schemer (the worst project name ever, but whatever). Worked pretty well. I saved, Sublime did its thing and updated the theme, and I got to see the changes each time I saved it.

Also, the project is now open source on https://github.com/nilium/schemer/

There's one weird glitch with the name textfield, but I can't figure out what's causing it. It seems like there's just a ton of overdraw on the field borders and that it's not clearing it, so I haven't figured out what's up yet. This happens regardless of whether the field is hooked up or doing anything. It clearly doesn't happen in other apps, so it's got to be something I'm doing, but I don't know what that is yet.

#SublimeText  
4
Vito Cassisi's profile photo
Add a comment...

Noel Cower

Shared publicly  - 
 
Started working on a color scheme editor for #SublimeText  that basically just copies the original TextMate theme editor. At this point, saving and loading color schemes now works more or less as expected. The only things not wired up entirely are the add/remove rule buttons, the scope list, and the font style buttons that I had working and then broke somehow and have ignored since then because I honestly don't use font styles in code.
1
Add a comment...
 
Alright, version 2.1 of the Ascension 2 #LiveWallpaper  is out. Includes the new gradient editor and a few other things, including a lot of internal code changes / improvements. Probably half cool stuff and half stuff that's only cool to me because I got to spend time on cleaning up the code.

#Android   #androidapps  
The Ascension 2 Live Wallpaper displays bars that shimmer and glow across y...
5
1
Robert Headley's profile photo
Add a comment...

Noel Cower

Shared publicly  - 
 
Made a quick collage of Ascension 2 configs. A few ship with the app, a few are modified defaults, etc.

The recording was easy, but putting the video together was unnecessarily painful. The new iMovie is not stable.

As usual, this is from a pre-release build and things might change by the time I've released it. Probably won't change, but I make no promises.
2
Add a comment...

Noel Cower

Shared publicly  - 
 
First off, the color scheme editor app is, for most purposes, done. I can't really think of much else to do with it other than add drag/drop support to the selectors table, which is more annoying than it is interesting to do. Currently just going through the code and slowly cleaning it up, file by file, to get a little closer to consistent code style (since it started out one way and switched half-way through because it was too out of place with Obj-C).

Second is that I added a light theme, called Higuchi, to the Freesia package. It's orange and blue and grey. Sort of standard fare for light themes — there's not a whole lot of interesting things you can do with light grey, it seems like, or at least I haven't found anything good to do with them yet.

The picture conveniently has both things in it.

#SublimeText  
3
Wiebo de Wit's profile photoNoel Cower's profile photo
3 comments
 
TY :)
Add a comment...

Noel Cower

Shared publicly  - 
 
Selectors are now hooked up. The UI layout changed a bit because the old one wasn't very pleasant to use. Selectors are now a list, so you can add/remove specific ones more easily. Font style still isn't working and I'm actually not sure why since the code looks right, but it wouldn't be the first time I thought something looked right when it wasn't. Might have to subclass the control and tweak some things.
1
Add a comment...
 
I made a new Sublime Text 3 theme called Freesia. You can get it on GitHub. It's very purple. Have fun.

#sublimetext   #sublimetext3  

(Note: reposted because I realized I made the original post private. Oops.)
5
1
John Creasy's profile photoWiebo de Wit's profile photoNoel Cower's profile photo
8 comments
 
Oh ok, I thought it was part of your theme. nm then.
Add a comment...
 
Spent a few hours today working on making Ascension RTL layout compatible. I unfortunately don't have any translations for RTL languages (or translations, period), but the layouts at least work. The hardest part was just getting the ViewPager working in reverse, and the entire problem there wasn't even to do with anything difficult.

The way I get the layout direction for a view is to use the ViewCompat class. This works most of the time and makes it pretty easy to do all this, but during onCreate, the layout direction for the views isn't actually set based on the resource configuration. So, for the longest time I was banging my head against my desk wondering why the code wasn't working based on the assumption that the layout direction was set. So, in the end, I swapped out grabbing the view's layout direction for just grabbing it out of the resource config.

All of it is guarded to make sure the APIs aren't touched for < API 17, so it all works out.

Oh yeah, the gradient editor's done. Just have to wire up the Save Gradient stuff and hand some other things off to AsyncTask (namely file IO, because why bother doing IO on the UI thread when it's non-critical?) and it's pretty much ready to go.

Also slightly visible: a new texture map.

#Android   #androiddev   #livewallpaper  
1
Evon Franklin's profile photo
 
pweeeeetttyyyy colours !
Add a comment...

Noel Cower

Shared publicly  - 
 
Another video of the gradient editor now that it's hooked up in the settings app. Only one small issue with a hiccup during recording where the device stalled for about 2 seconds, hard to say if that was because I was recording or because of the implementation, but either way, still a bunch of work to do.
1
Add a comment...
Story
Tagline
Hi.