« first day (612 days earlier)      last day (281 days later) » 

1:46 PM
@rightfold I wonder if Java has built-in facilities to create GIFs? I mean, it has built-in support for ZIPs, so it's not too far-fetched I guess...
 
user1804599
@FredOverflow Maybe AWT does.
 
@rightfold Then I could create endless animated GIFs of Karel walking through the labyrinth and advertise it as a soothing screen-saver :)
10
Q: Creating animated GIF with ImageIO?

Neil CoffeyHas anybody managed to convince ImageIO to write an animated GIF, and in particular setting the correct metadata? My first attempt is roughly as follows (where b1 and b2 are BufferedImages): ImageTypeSpecifier spec = new ImageTypeSpecifier(b1); ImageWriter wr = ImageIO.getImageWriters(spec, "GIF...

 
user1804599
> IIOMetadata
 
user1804599
Input/input/output metadata?
 
@rightfold Maybe the first I stands for interface? :=)
 
user1804599
1:51 PM
Beh I prefix for interfaces.
 
Also unusual in Java land...
 
user1804599
Good.
 
@rightfold I implemented ctrl+mousewheel today. Guess what it does :)
 
user1804599
@FredOverflow it zooms.
 
@rightfold Yeah, changes font size.
Too bad Eclipse doesn't do it.
Changing font size in Eclipse is a pain.
 
user1804599
1:53 PM
I dislike it.
 
What do you prefer?
 
user1804599
Changing the font size in the preferences window.
 
user1804599
I rarely do it.
 
That takes way too much time and requires experimentation.
 
user1804599
Not if the settings apply immediately.
 
user1804599
1:55 PM
(Which is the case with any sane preferences window.)
 
22 messages moved from Lounge<C++>
 
user1804599
I should give Slick a try.
 
user1804599
Because JDBC Sucks!
 
user1804599
// So instead of:
val query = sql"select ID, NAME, AGE from PERSON".as[(Int,String,Int)]
val people = db.withSession{ implicit session =>
  query.list
}

// you can write:
val query = people.map(p => (p.id, p.name, p.age))
val result = db.withSession{ implicit session =>
  query.run
}
 
user1804599
Which makes it way easier to compose queries. String concatenation sucks.
 
2:01 PM
@rightfold Yeah, string concat is terrible.
 
user1804599
And I love how groupBy goes before map rather than after it as is the case in SQL.
 
user1804599
The order should be FROM, GROUP BY, WHERE, SELECT, ORDER BY.
 
I hate SQL.
Probably because I had to teach it once without fully understanding every detail of it.
 
user1804599
Try writing queries where the user can select which column to sort by. :)
 
user1804599
Query builder monads ftw!
 
2:05 PM
I haven't used Monads in quite a while. I almost forgot what they are :-(
 
user1804599
@FredOverflow I love Scalaz' hierarchy.
 
@rightfold Is it less fucked up than Haskell's?
 
user1804599
Yes.
 
user1804599
 
@rightfold What's that voting discussion in the Lounge all about?
 
user1804599
2:19 PM
Some hipster game where you can change the rules while playing.
 
@rightfold A computer game? Or some gay RPG shit?
 
user1804599
The latter.
 

« first day (612 days earlier)      last day (281 days later) »