Showing posts with label my2cents. Show all posts
Showing posts with label my2cents. Show all posts

Wednesday, November 2, 2011

Compact theme for Google Reader via GreaseMonkey script - More clear, more readable, hidden header, hidden top navigation bar, less unused white space - Perfect for small screen

Not everybody like the new (1/11/2011) Google Reader user interface.
I don't like it, especially because I use Google Reader on a netbook with a 10" screen of 1024x600 pixel.
The new theme have too much white, unused, space. Too much header. and few space for actual contents.
Just some hour after the release of the new interface there have been a big proliferation of "fix" for the new interface, especially on userscript.org (Greasemonkey script archive).
After testing them all, I've come up with my own version of these script.
My script is based on "Google Reader Back", I've just added some code to hide some more element (feed title, top navigation bar, top header with search button).

This layout fit perfectly the way I use Google Reader on my netbook.
Here is my script

Google Reader Compact For Small Screen  (http://userscripts.org/scripts/show/116957)

Here are the result, before:

Grcbefore

and after, with my script installed

Grcafter
Fell free to use it or modify it.
A big thanks to Hoong Ern, the developer of Google Reader Back (http://userscripts.org/users/416220) upon which is based my script.
Comments and suggestion are welcome.

Tuesday, August 2, 2011

50$ discount code for DNA analysis at www.23andme.com

Here is a 50$ discount code for www.23andMe.com personal genetic service (DNA analysis).
This discount code expires in 7 days (August 9, 2011)

Discount code: 4DPGQP

Feel free to share the code :)

Wednesday, July 6, 2011

Set ComboBox dropdown height in Visual Basic 6 (VB6) ComboBox control

Here is a useful piece of code to set the ComboBox dropdown height for VB6 ComboBox control.


Private Declare Function MoveWindow Lib "user32" (ByVal hwnd As Long, ByVal x As Long, ByVal y As Long, ByVal nWidth As Long, ByVal nHeight As Long, ByVal bRepaint As Long) As Long

Public Sub SetComboHeight(oComboBox As ComboBox, lNewHeight As Long)
    Dim oldscalemode As Integer
    ' This procedure does not work with frames: you cannot set the ScaleMode to vbPixels, because
    ' the frame does not have a ScaleMode Property.
    ' To get round this, you could set the parent control to be the form while you run this procedure.
    If TypeOf oComboBox.Parent Is Frame Then Exit Sub
    ' Change the ScaleMode on the parent to Pixels.
    oldscalemode = oComboBox.Parent.ScaleMode
    oComboBox.Parent.ScaleMode = vbPixels
    ' Resize the combo box window.
    MoveWindow oComboBox.hwnd, oComboBox.Left, oComboBox.Top, oComboBox.Width, lNewHeight, 1
    ' Replace the old ScaleMode
    oComboBox.Parent.ScaleMode = oldscalemode
End Sub


I've found this code on the web.
I would like to thanks to the original developer :-)

Friday, July 1, 2011

Patterns for Parallel Programming (free downloadable pdf book by Microsoft) Understanding and Applying Parallel Patterns with the .NET Framework 4 - VB and C#

Here you can find a free downloadable PDF boook (118 pages) from microsoft, that talk about common pattern for parallel programming in .Net 4.0, VB and C#

Download link: http://www.microsoft.com/download/en/details.aspx?displaylang=en&id=19222

 

 

 

 

Wednesday, June 8, 2011

Hey! It's IPv6 Day! Test your IPv6 connectivity!

Today, 8 june, is the IPv6 Day, where many major internet society will enable their service on IPv6 connectivity!
Test your IPv6 connectivity here http://ipv6eyechart.ripe.net/ (simple IPv6 test) and here http://test-ipv6.com/ (detailed IPv6 test).
Are you ready to browse the internet in IPv6 only connectivity?

My computer seem to be ready, but my ISP isn't....

I wish you you all a happy IPv6 Day! :-)

 

Friday, May 27, 2011

Fabrice Bellard's In browser Javascript PC emulator that boot linux!

A PC emulator in Javascript

That's incredible! It's an x86 PC emulator written in javascript that can boot linux in a browser window!

Friday, April 29, 2011

Google Apps Standard Edition max account number limit reduction to 10 Users, starting from 10 May 2011

According to an email received from the Google Apps Team, starting from 10 May 2011, Google is lowering the maximum limit of 50 users to 10 users in it's Free Google Apps Standard Edition.
Media_httpwwwgoogleco_xjgaj

The Google Apps Standard Edition account created before the May 10 2011 will retain the current limits of 50 maximum users.
If you are considering to switch to Google Apps Standard Edition, it could be a nice idea doing the switch before the 10 May 2011.

Thursday, April 21, 2011

Wednesday, April 20, 2011

Inno Setup Extensions Knowledge Base

Inno Setup Extensions Knowledge Base

Inno Setup is an open source script-driven installation system created in Delphi by Jordan Russell.

Inno Setup at Wikipedia

The Inno Setup Extensions Knowledge Base (ISXKB) aims to support users of this installation system by providing a source of information, code snippets, guide lines, and ready-to-use solutions.

There are currently 150 articles in the ISXKB. You can search the ISXKB, browse through a list with all articles, or view them sorted by category. A list sorted by article popularity is also available as well as all special pages.

Thursday, April 14, 2011

How to print only a selected portion of a web page with Google Chrome

Printportion

Here is how to print only a selected portion of a web page with Google Chrome

1) Select the portion of the page that you want to print.
2) press CTRL+P to open the print dialog
3) check "Selection"
4) click Print

Wednesday, April 13, 2011

Flattr: a new interesting way to donate money for things you like

I've just discovered Flattr. It's a revolutionary social micropayment system that you can use to donate/pay money for the things you like.

http://flattr.com/

Here is the "how it works" video :-)

HowTo: Force calendar dropdown in .Net DateTimePicker control using VB.Net

Here is how to force to show-up, and activate, the dropdown calendar of the standard .Net DateTimePicker control, using VB.Net.
The sample code is tested on .Net 4.0, but should work on all .Net framework version.


Code Snippet
  1. Dim dateTimePickerControl As DateTimePicker
  2.  
  3. Private Declare Auto Function SendMessage Lib "user32.dll" (ByVal hWnd As IntPtr, ByVal msg As Integer, ByVal wParam As IntPtr, ByVal lParam As IntPtr) As IntPtr
  4.  
  5. Public Sub DropDownCalendar()
  6.     Const WM_LBUTTONDOWN As Int32 = &H201
  7.     Const WM_LBUTTONUP As Int32 = &H202
  8.  
  9.     Dim x As Integer = Me.dateTimePickerControl.Width - 10
  10.     Dim y As Integer = CInt(Me.dateTimePickerControl.Height / 2)
  11.     Dim lParam As Integer = x + y * &H10000
  12.  
  13.     'click down, adn show the calendar
  14.     SendMessage(Me.dateTimePickerControl.Handle, WM_LBUTTONDOWN, CType(1, IntPtr), CType(lParam, IntPtr))
  15.  
  16.     'click-up, and activate the calendar (without this the calendar is showed, but is not active, and doesen't works as expected)
  17.     SendMessage(Me.dateTimePickerControl.Handle, WM_LBUTTONUP, CType(1, IntPtr), CType(lParam, IntPtr))
  18. End Sub