Photos uploaded (or rather downloaded?) from space station

Posted by Max | Posted in Uncategorized | Posted on 06-02-2010

0

These days you can send a picture from almost any place on earth using your computer or mobile phone. But how about sending photos directly from space? That exactly what one of the residents of International Space Station is doing. Have a look at some magnoficient photos taken by him and placed on Twitpic

  • Share/Bookmark

UK government plan to spy on Internet users

Posted by clipmarks | Posted in Uncategorized | Posted on 23-11-2009

0

Have you read Orwell’s “1984″? The british plan to fight piracy sounds very similar to the total survelliance idea described in his novel
clipped from www.boingboing.net

Leaked UK government plan to create “Pirate Finder General” with power to appoint militias, create laws
The Secretary of State would get the power to create new remedies for online infringements (for example, he could create jail terms for file-sharing, or create a “three-strikes” plan that costs entire families their internet access if any member stands accused of infringement)
The Secretary of State would get the power to create procedures to “confer rights” for the purposes of protecting rightsholders from online infringement. (for example, record labels and movie studios can be given investigative and enforcement powers that allow them to compel ISPs, libraries, companies and schools to turn over personal information about Internet users, and to order those companies to disconnect users, remove websites, block URLs, etc)
blog it
  • Share/Bookmark

I’m sad, someone broke me!!!

Posted by Max | Posted in Uncategorized | Posted on 28-09-2009

0

I'm sad, someone broke me!!!

  • Share/Bookmark

Impressive 3D animation

Posted by Max | Posted in Uncategorized | Posted on 20-09-2009

0

A 3D projection of a four-dimensional hypercube performing a simple rotation about a plane which bisects the figure from front-left to back-right and top to bottom.


http://commons.wikimedia.org/wiki/File:8-cell-simple.gif

  • Share/Bookmark

links for 2009-08-29

Posted by delicious | Posted in Uncategorized | Posted on 29-08-2009

0

  • Share/Bookmark

Getting paged data from SQL Server stored procedure

Posted by Max | Posted in Uncategorized, programming | Posted on 07-08-2009

0

A simple solution if you need to return a paged data from SQL Server stored procedure


CREATE PROCEDURE [dbo].[XXX]
(
	@PageSize int = NULL,
	@PageNumber int = NULL
)
AS
BEGIN

	-- Calculate row number offsets for query.
	DECLARE @FirstRow INT, @LastRow INT
	SELECT @FirstRow = (@PageNumber - 1) * @PageSize + 1;
	SELECT @LastRow = (@PageNumber - 1) * @PageSize + @PageSize;

	-- COMMON TABLE EXPRESSION TO PERFORM PAGING LOGIC
	WITH QueryResults AS
	(
		SELECT *,
			"RowNumber" = ROW_NUMBER() OVER (ORDER BY UserID ASC)
		FROM   Users C
	)
	SELECT	*
	FROM QueryResults
	WHERE RowNumber BETWEEN @FirstRow AND @LastRow
	ORDER BY RowNumber ASC
END
GO
  • Share/Bookmark

links for 2009-07-14

Posted by delicious | Posted in Uncategorized | Posted on 14-07-2009

0

  • Share/Bookmark

Exploits of a Mom

Posted by Max | Posted in Uncategorized | Posted on 04-07-2009

0

Need a good example of SQL injection? This comic from xkcd.com is a really good :-)

  • Share/Bookmark

ASP.NET Error: The Controls collection cannot be modified because the control contains code blocks

Posted by Max | Posted in Uncategorized | Posted on 28-10-2008

0


I’ve noticed that if you try to add control to the page using Page.Controls.Add() method the following error may occur :

The Controls collection cannot be modified because the control
contains code blocks (i.e. <% ... %>).

Just check if following is true on the page causing this error:

  • Your page doesn’t have <head> elements with runat="server" attribute
  • Your page content is wrapped into form tag with runat="server" attribute
  • Share/Bookmark