In OSx, you can rely on the libxml package, which includes xmllint. You will call this on a command line, it's fast and reliable.
Wednesday, July 17, 2013
Thursday, May 02, 2013
If you, like me, have a lot of "personal documents" in your Amazon library, you know how difficult it can be to remove items from that list.
You have to remove titles one by one, or - if you are fast enough - two or three of them for each try.
Now, this is really annoying.
Before you can use the bookmarklet, you'll have to create it. In Chrome this is quite easy:
- right click on the bookmarks bar
- click on "Add Page"
- enter a title for the page name
That's all: be careful to select only the items you really want to delete, click the bookmarklet you created, and all those documents will go... forever!!!
Saturday, March 16, 2013
Noticed today, while trying to play Wordament on my brand new Nokia 920 (a white one, if you wonder) that I could not connect to my Xbox Live account.
Tried every obvious hint, no way. Then I noticed that in a FAQ page on the wordament site they refer to the correct date and time setting as a needed requirement.
So... I went to the settings page, disabled the "automatic date and time setting", choose the correct date, time zone, and time, and went back to Wordament.
Now it works without a problem!
Hope this helps, maybe the same issue exists with other Xbox live games...
Wednesday, October 03, 2012
Just a quick note: if you need to perform any task that requires elevated privileges, you can throw the following command in PS and gain it: PS> Start-Process powershell -Verb runAs It's the same as "Run as Administrator" bye
Sunday, July 22, 2012
I started a hunt to find the “right” setup for my needs: link the thing to my LCD tv, and use the PI both as a media center and a linux box to surf internet, read mail, download torrents, and to give my sons an idea of a “different” approach to computers :-).
I tried some distribution, Debian, Raspbian, RaspBMC, OpenELEC… and every single setup had its pros and cons. Actually I decided to stick with Debian “Wheezy” and OpenELEC 4 Debian on it (http://www.raspberrypi.org/phpBB3/viewtopic.php?t=9210); when I launch OpenELEC I can also use my Windows Phone to control remotely the media center, and it’s quite fun (also the geekness factor in doing that is very high). The WP app I use is “XBMC Remote”, from 7illusions - http://www.windowsphone.com/it-it/apps/7eb3b1d3-0183-46c0-8c55-5f1cf652eb30 – they also build a Squeezebox remote control for WinPhones, “SqueezeRemote”.
Right now I’m installing on Debian X session a torrent client (Transmission) and at the same time verifying disk space and network configuration thru ssh with another Windows Phone client (the name is “The SSH Client”, it’s free and it works http://www.windowsphone.com/it-it/apps/e8aa1299-e011-486c-9f61-3232c892b17b )
Another approach I’m interested into: Squeezeplug - http://www.squeezeplug.eu/?p=201 – I have another empty SD Card… eheh
I’ll tell you how it goes… happyPI :-)
Tuesday, May 08, 2012
Found these commands useful, when dealing with Sql Server 2008 disk space allocation and log shrinking; in sql 2008 as you probably know you cannot use any more the command BACKUP LOG databasename WITH TRUNCATE ONLY as shown for example here: to obtain the same result you can do the following:
alter database [database_name] set recovery simple
goalter database [database_name] set recovery full
gobackup database [database_name] to disk = 'd:\temp\filename.bak' with init
godbcc shrinkfile (N'DATABASE_NAME_log' , 1)
To monitor disk space allocated, check for the usage of
EXEC sp_spaceused @updateusage = N'TRUE';
The following procedure uses the sp_spaceused procedure to list each table’s space:
CREATE PROCEDURE GetAllTableSizes
-- Lists spaced used data for ALL user tables in the database
DECLARE @TableName VARCHAR(100) --For storing values in the cursor
--Cursor to get the name of all user tables from the sysobjects listing
DECLARE tableCursor CURSOR
where OBJECTPROPERTY(id, N'IsUserTable') = 1
FOR READ ONLY
--A procedure level temp table to store the results
CREATE TABLE #TempTable
--Open the cursor
--Get the first table name from the cursor
FETCH NEXT FROM tableCursor INTO @TableName
--Loop until the cursor was not able to fetch
WHILE (@@Fetch_Status >= 0)
--Dump the results of the sp_spaceused query to the temp table
EXEC sp_spaceused @TableName
--Get the next table name
FETCH NEXT FROM tableCursor INTO @TableName
--Get rid of the cursor
--Select all records so we can use the reults
DROP TABLE #TempTable
Friday, March 30, 2012
As you can read on Lifehacker (here), and on a number of other sites, with a simple registry hack you can modify the way windows handles clicks on stacked apps in the taskbar.
Here is the tweak:
- Launch regedit.exe (Win+R, then paste
- Navigate in the left tree control to HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced
- Go to Edit->New->DWORD (32-bit) Value
- Name the value LastActiveClick
- Hit enter to assign the value and change it to 1
- Restart Explorer and you're good to go.
To restart Explorer without rebooting, open the Task Manager (Ctrl+Shift+Esc) and end the Explorer.exe process. Then create a new task (under "File") and paste "explorer.exe".