Windows Monitoring – Codeplex
This project is meant to provide programmers with a set of reusable classes, gathered into one assembly, to develop custom system monitoring consoles for windows server systems.
The base set provides classes with methods to check:
- Network ping
- HTTP server running
- FTP server running
- Disk space on system hard drive
- Database availability
I took the dust off the Codeplex account, logged in using Visual Studio 2010 together with Team Explorer and migrated the code from .NET 2.0 onto 4.0.
The update projects and source code can be browsed and downloaded. If you don’t have Visual Studio, but some other IDE, you can download the assembly on the recommended release and use the tester source code as a usage example.
Happy coding!
Manually placing pending OneNote updates to SkyDrive
On a careless fashion, I kept taking notes from tasks and e-mails and the pending updates stacked up. Final picture: ended up with a really stuffed set of notes missing from the online service.
No matter how I tried to start the process, the merge between the notes always failed on the Windows Live ID login step.
The web browser view on Skydrive presents the notebook as a single item, but OneNote stores the different sections of a notebook on separate “.one” files. For the whole notebook there is a table of contents “.onetoc2” file. So the potential solution was to replace the Skydrive files with the local backup files that had all the recent updates.
The solution wasn’t feasible on the Web browser Skydrive functionality, as it presents the notebook as a single item. It was a four step process:
- Get Skydrive to open on Windows Explorer.
- Backup your online notebook to a local folder and open it.
- Open the files from the local OneNote backup folder.
- Copy the local files over the old ones.
Backup your online copy to a local folder. Open the notebook on OneNote.
To get the local backup of your skydrive files, it should be on a folder path like “C:\Users\[Your user name]\AppData\Local\Microsoft\OneNote\14.0\Backup”. Replace [your user name] with the real deal. Open the notebook on OneNote.
With both versions of the notebook open, check if there are missing notes and copy/paste them into the copy with the least updates missing.
Finally, copy the whole “.one” files from the updated version, replacing the ones on Skydrive, using Windows Explorer.
HTH.
Dados.gov - transparência e a reutilização da informação do sector público
Citando o próprio site, o Dados.gov é um portal que tem como função publicar e agregar a informação produzida pela Administração Pública em formatos abertos que possam ser lidos e reutilizados por qualquer cidadão. O objectivo fundamental da criação deste portal visa facilitar o acesso à informação pública, promover a transparência da Administração Pública e ajudar na criação de serviços públicos electrónicos pela sociedade civil.
Já existe uma iniciativa global de transparência e reutilização dos dados que podem ser acompanhadas no portal OPEN! Government Data. A par da iniciativa portuguesa, já existem iniciativas relevantes, previamente lançadas por outros países:
O particular interesse da iniciativa portuguesa de dados abertos, é que propõe facilitar imenso a criação de um próprio ecossistema de satélites de informação, utilizando as suas origens de dados. Nesse sentido, disponibiliza:
- Um catálogo de dados: estão disponíveis todos os conjuntos de dados partilhados por instituições da Administração Pública
- Serviços de obtenção de Datasets através de protocolos REST com XML em padrão AtomPub (OData), JSON e outros.
- Tutoriais para programadores em .NET e Java.
Existe inclusivamente um inventário das aplicações já desenvolvidas por terceiros com base nas origens de dados do Dados.gov.
Este portal vai de certeza passar a ser a vítima preferida para alguns ensaios de programação.
Deixo um vídeo elucidativo dos projetos Open Government Data:
#opendata from Open Knowledge Foundation on Vimeo.
A implementação das boas práticas ITIL na Administração Pública: um estudo de caso
Há coisa de cinco anos, o Instituto onde trabalho submeteu-se a um processo de adopção do ITIL. Foi um trabalho estruturante de adopção de metodologias, criação de processos e auto-estudo, com uma prova de certificação para cada colaborador.
Numa pesquisa em nada relacionada com o tema, deparei-me com uma dissertação de mestrado, acerca desta adopção do ITIL por parte de uma entidade da Administração Pública, escrita pelo então diretor do departamento de sistemas.
Por ser um caso interessante onde a racionalização dos processos se traduz numa efetiva melhoria no serviço aos utilizadores e cidadãos, deixo aqui o endereço onde podem descarregar o documento:
A implementação das boas práticas ITIL na Administração Pública: um estudo de caso
Boas leituras!
Android: Restore FTM after clockworkMod
Recovering with a stock ROM from the carrier was not an option because it involved restoring the FTM startup, which should not be necessary because ClockworkMod was working fine. So, in spite of this post’s title, I’'ll explain how to recover your Android back into a custom ROM without the need to overwrite ClockworkMod.
My personal feeling about the scenario is that something got really messed up on the system or boot partitions of the SD card. And turned out in the end I was right.
The first challenge was to how I was going to copy the .ZIP file with the custom ROM to the SD card if I was unable to boot the system. It’s a simple mount/unmount functionality on ClockworkMod:
- Connect the phone to a computer.
- Turn the phone on with volume down and power held.
- In clockworkmod go to “mounts and storage” and select mount USB storage.
- Copy your custom ROM to the SD card.
- Unmount USB Storage
- Go to “mounts and storage”
- Format boot.
- Format system.
- Format data.
- Format cache.
- Finally format sd-ext.
- Go to “install zip from SD card”
- Install the ROM you copied previously.
- Restart your phone when it is finished.
HTH.
ORA-01704: string literal too long
update myTable set lobColumn='Some String Value' where somekey=somecriteria;The following error might occur while performing the direct update on that column:
ORA-01704: string literal too long Cause: The string literal is longer than 4000 characters. Action: Use a string literal of at most 4000 characters. Longer values may only be entered using bind variables.The origin of the error is that the string value passed is indeed over 4000 characters long. A simple workaround script that works like a charm is:
DECLARE vString myTable.lobColumn%type; BEGIN vString := 'Some very long string value' update myTable set lobColumn=vString where somekey=somecriteria; END;Don't forget to replace "myTable" and "lobColumn" with your table and column.
HTH.
Your backup is from a different version of Microsoft SharePointFoundation
Restore-SPSite : Your backup is from a different version of
Microsoft SharePoint Foundation and cannot be restored to a
server running the current version. The backup file should be
restored to a server with version '4.0.145.0' or later.After comparing the patch level on both farms, a missing security update was identified on the live farm. Having multiple applications hosted on the farm, the update roll-out was not an option.
So one of my colleagues found that the old school "stsadm" command allows the backup and restore of Sharepoint sites without checking the build number on the farm.
The solution was to use the following commands:
- On the Q&A server, open a command prompt and enter "cd C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\BIN>"
- Execute the following command:
STSADM.EXE -o backup -url http://server/site -filename backup.dat
- Copy the resulting file to the live farm.
- On the live farm, open a command prompt and enter "cd C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\BIN>"
- Execute the following command:
STSADM.EXE -o restore -url http://server/site -filename backup.dat -overwrite
- Open the desired URL and check for your site's correct update.
Thanks to Nelson!