I like to play games and luckily there are a lot of games for Linux now; I have 51 games in Steam which run on Linux. But not all of these games do a good job when running at fullscreen (diustorted resolutions, hidden cursors, ect). So I like to run games in a borderless window and not all of these games offer that.
This is a simple fix. Open cssm, navigate to Effects > Window Decoration, and change the Decoration windows property to (any) & !(class=Awesomenauts.bin.x86). In this case, the game I want in a borderless window is Awesomenauts (really great game).
Problem: Window borders overlap when using the grid plugin in Compiz
This one has been bothering me for awhile. Turns out it isn’t a Compiz bug at all (well maybe it is), it’s an Emerald bug! Are you also using Emerald as your window decorator?
Open emerald-theme-manager. Emerald Settings > uncheck Use Decoration Cropping
Problem solved! For me at least. Here’s a related bug report (https://bugs.launchpad.net/compiz/+bug/1197811) that unfortunately I didn’t find until after I fixed this by using the age old technique of randomly changing settings. But hopefully this post appears in someone’s Google results and I save them from the months of pixel overlapping agony that I had to endure.
I’m mostly posting this to copy/paste when I forget, but it’s useful information nonetheless so lets have at it.
- Delete the database
- Create a new database
- Import SQL file into the new database
Assume the mysql user/pass combo is colin/mypassword and the database is called db123.
mysqladmin -u colin -pmypassword drop db123; mysqladmin -u colin -pmypassword create db123; mysql -u colin -pmypassword db123 < db123_backup.sql
If you’re working on something and you need to reload your database a lot, you can put all the commands on one line (still with semicolons of course) and add -f to the first command to skip the delete check.
Very very basic stuff here, but I’m sure the 3min it took me to write this saved someone else more time than that.
Suppose you live in Europe where they separate numbers with commas instead of periods.
Six thousand eight hundred and forty three and two tenths
Suppose you also have a European keyboard and use a European keyboard layout but the stupid comma in the numpad drives you mad.
Open (or create) ~/.Xmodmap
Add the line “keycode 91 = KP_Delete KP_Decimal” and save
Run the command “xmodmap ~/.Xmodmap”
Test that it worked
Add the line “xmodmap ~/.Xmodmap” and save to make the change permanent.
We have alt tags for screen readers, well let’s be honest, people only do it for SEO and no screen reader is perfect . But what if your “alt tag” had perfect IPA phonetic transcription…
Tell me more
Here is the current w3 draft:
go to this page
and copy/paste this element:
<phoneme alphabet=”ipa” ph=”kæt”>dog</phoneme>
The body of the phoneme element can be left empty, but in this case I wrote “dog” just for fun.
Can’t we just make computers better at speaking English?
Sure, and it would be trivial to make a build jQuery plugin that converts ALT attributes to IPA ones. But what about regional dialects and made up words like Flickr or Imgur. What about ambiguous acronyms? Should the company AAA be pronounced “ay ay ay” or “Triple A”? Is it “My S-Q-L” or “My sequel”?
Sounds good, when’s it coming out?
Fair enough, maybe you sacrifice a goat we could get it in IE11. Honestly, I don’t know. Maybe never. The spec hasn’t been touched since 2004 but I hope people start taking it seriously.
I first wrote a post in March 2012 about code review with SVN. Since then, we’ve switched to Github and it’s awesome.
Github isn’t free, buts its very inexpensive and amazing. Inline comments, automatic issue tracking, and you can backup your code to their servers without needing commit access to the main repo. Continue reading “Github and code review” »
I wrote a tool to organize subnet addressing for IPv6
A little about IPv6
An IPv6 address is 128-bits and commonly represented as eight colon separated groups with each group consisting of four hexadecimal digits. For the general unicast address format, the first 64-bits are used for routing and the second 64-bits are the interface identifier (RFC 4291). Of the first 64-bits, the first 48 are used for regional routing and the next 16 are used for subnetting. Thus for practical subnet planning, you can assign blocks from /49 to /64. My calculator only lets you select a prefix up to /63 because if you can’t subnet a /64 block, you can only assign it.
How to use this calculator
You can enter the network IP to be subnetted as a full address or in the shortened form with leading zeros removed and consecutive groups of zeros removed.
Either 2001:09fe:000a:0000:0000:0000:0000:0000 or 2001:9fe:a:: is fine.
Enter the number of subnets you want created at each level and press “Add Level.” Example: your university has 10 colleges, each college has 3 buildings, and each building has 8 departments. Add 10, then 3, then 8.
Build it! Then use the + button to show / hide subnets. The position string on the left hand side should help you identify who the network is subnetted to (eg. the subnet in position 4.2.3 is the 3rd department in the second building of the 4th college).
Post questions in the comments and bugs on GitHub.
Sep 2014 update: This was written for Fedora 17 and may not work on new versions.
The three things you need to know:
1) Unlike Firefox, Chrome uses xdg-open to choose the default program to open a file.
2) You can set the default application for each type by using xdg-mime.
3) The Fedora desktop file for Deluge is fedora-deluge.desktop and not deluge.desktop.
xdg-mime default fedora-deluge.desktop x-scheme-handler/magnet
Let’s just be clear, this is not for the faint of heart.
Why isn’t Compiz in the Fedora 17 repos?
Compiz is a replacement window manager for the GNOME window manager called Metacity. When GNOME 3 came out last year, they replaced Metacity with Mutter. Apparently there are library incompatibilities that prevent Compiz from replacing Mutter. I didn’t look into the details because we don’t care about GNOME issues, we’re XFCE users!
I’ll also note that Red Hat is currently reviewing the situation and might bring Compiz back. Who knows. I for one think it’s silly to drop a package just because it doesn’t work with one desktop environment out of many.
This is the gold standard of iPad web frameworks. It’s amazing (and free!), check out the kitchen sink demo.