This query gives you examples of possible datetime convertion formats.
Labels
- linux (21)
- script (15)
- css (12)
- bash (9)
- cli (9)
- customize (8)
- stylish (7)
- windows (6)
- firefox (5)
- userchrome.css (5)
- xbmc (5)
- ahk (3)
- autohotkey (3)
- command line (3)
- tt-rss (3)
- ubuntu (3)
- SQL (2)
- automation (2)
- batch (2)
- config (2)
- google reader (2)
- javascript (2)
- mpd (2)
- photos (2)
- spotify (2)
- virtualbox (2)
- API (1)
- GW2 (1)
- Guild Wars 2 (1)
- SQL Server (1)
- android (1)
- animals (1)
- arch linux (1)
- backup (1)
- bukkit (1)
- c# (1)
- cross browser (1)
- curl (1)
- debian (1)
- deluge (1)
- ext.net (1)
- facebook (1)
- flexget (1)
- flowers (1)
- gentoo (1)
- greasemonkey (1)
- kodi (1)
- openbox (1)
- pidgin (1)
- python (1)
- raspberry (1)
- rpi (1)
- scriptish (1)
- tasker (1)
- tellstick (1)
- tmux (1)
- update (1)
- video (1)
- youtube (1)
Thursday, October 27, 2011
Tuesday, October 25, 2011
Creating tabs from DB-query in ext.net
It's not hard storing all the information you need to create tabs from a database-query in ext.net. You can easily store title, filename and tooltip. To get the icon it's not as straight forward as it expects an enum and, of course, you could get the number and save that but it's a bit of a pain.
Instead do this:
Instead do this:
foreach (DataRow dr in dt.Rows) { pnl = new Ext.Net.Panel(); pnl.Title = dr["pagename"].ToString(); pnl.TabTip = dr["description"].ToString(); // get icon from string icon = (Icon)Enum.Parse(typeof(Icon), dr["icon"].ToString()); pnl.Icon = icon; pnl.Layout = "FitLayout"; pnl.AutoLoad.Url = dr["relative_url"].ToString() + "?d=" + Request.QueryString["d"]; pnl.AutoLoad.Mode = LoadMode.IFrame; pnl.AutoLoad.NoCache = true; pnl.Border = false; // add to tabpanel tpPack.Items.Add(pnl); }where dr["icon"] is the icon name (duh). :)
Monday, October 24, 2011
"Fixing" ebuild using old autotools
MPD (example) added AM_SILENT_RULES (silent build) to its configure.ac not too long ago. This macro is only available in automake 1.11. The ebuild that is in the mpd overlay explicitly state that it wants automake 1.10 and therefore fails. The fix? Install automake >= 1.11 and then change the ebuild like this.
Find the line:
In the meantime you can prefix your emerge command with:
Find the line:
WANT_AUTOMAKE="1.10"and change it to:
WANT_AUTOMAKE="1.11"or
WANT_AUTOMAKE="latest"Mind you, this will make the ebuild mismatch with the manifest and therefore still fail. Report it to the overlay maintainer so they can fix it proper.
In the meantime you can prefix your emerge command with:
FEATURES="-strict"to bypass the manifest check and force an install.
Saturday, October 22, 2011
Bukkit, restart script
The script we use to stop bukkit, tar up the world, render the overviewer map and restart bukkit again. The last part is rather silly as it involves a hacky way of getting a screen going that accepts "-X stuff". Reason is the screen has to have been connected to and detached again for it to work.
Friday, October 21, 2011
Subscribe to:
Posts (Atom)