Webmaster

Rozrywka

Zwierz?ta

Motoryzacja

Transport, ci???arowe

O ci???ar??wkach i transporcie

Sport

Koszyk??wka

Basketball - newsy

Fotografia

Komputery

O serwisie

Serwis ten jest agregatorem RSS, który magazynuje zebrane informacje tak, aby można było do nich swobodnie później wrócić. Wszystkie treści pochodzą z kanałów RSS i są własnością twórców serwisów, które je udostępniają.
Tytuł każdego artykułu jest odnośnikiem do strony, z której dana treść pochodzi.
Baza zawiera 143487 akrtykułów.

Polecamy

Odbiorniki GPS
Kredyty
Doradztwo inwestycyjne
Pożyczki pod zastaw
Bilety lotnicze
Fotografia Sklep
Oferty Wakacje
Programista Gdynia
Opisy do GG
Wiadomości

 

 

knol-logo

 

We guys Blog, and now Google tells us to go beyond it. In words of Google, a knol is an authoritative article about a specific topic.

In first look, it seems like a combination of Blogs and Wikipedia. Here you create articles as you do in Blogs, but they are consolidated as in Wiki. There can be contributors, communities and collaborations. Moreover, you can have revisions. You can review Knols, post comments and reply to comments. So this makes it more like forums.


I found some really nice topics in there like Blood Transfusion, Muscle Cramps and the best part is, that these topics are by authentic people from respective fields. Google verifies experts so their content is genuine.

 

So go on....

Add your piece of knowledge to KNOL

 

http://knol.google.com/k/knol#

 

Oh by the way, I loved the way it uses AJAX. Really SUPERFAST

[143486]

Hi friends,

Here I present an updated way of using AJAX. In my previous post, I explained the use of AJAX through 3 functions. First one will create object, second will send request, and third will receive the response.

Now I have combined these three functions to one. Here it is...

function getPage(CallPage, DivToPopulate)
{
// Declare Object
var httpObject=false;
if(window.XMLHttpRequest) {
// Opera 8.0+, Firefox, Safari
httpObject=new XMLHttpRequest();
}
else if(window.ActiveXObject) {
//Internet Explorer
httpObject=new ActiveXObject("Microsoft.XMLHTTP");
if(!httpObject){
httpObject=new ActiveXObject("Msxml2.XMLHTTP");
}
}
else{
alert("Your Browser is not compatible to use this application");
}
// Show some default message in the Div, that will contain the Content
document.getElementById(DivToPopulate).innerHTML = 'Loding Content...';

//Cache work around
var datevar = new Date();
var timevar = datevar.getTime();
var timestamp= 'TEMP=' + timevar + Math.random();
if (CallPage.indexOf("?") > 0)
{
CallPage = CallPage + '&' + timestamp;
}
else
{
CallPage = CallPage + '?' + timestamp;
}

httpObject.open("GET", CallPage, true);
httpObject.onreadystatechange = function(){
if (httpObject.readyState == 4) {
var txt = httpObject.responseText;
// Show content
document.getElementById(DivToPopulate).innerHTML = txt;
}
};
httpObject.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
httpObject.send(null);
// Function by Vikramjit R.Rai http://www.vikramjits.com
// For any help, feel free to contact vikramjit.rooprai@gmail.com
}

USAGE:

Simply call the getPage function with two arguments. First is the page to be called and second is the DIV to be populated with the contents of the Page called.

that's it...

Happy Coding :)

[133527]

Finally I found a solution to a major problem that almost every developer face at least once in his programming career. This problem is of remote deployment, where you have to send data through a script. It is a real headache to write hundreds of insert queries. Well, the life saver is here...

The solution is "DATABASE PUBLISHING WIZARD"

You can download it from http://www.codeplex.com/sqlhost/Wiki/View.aspx?title=Database%20Publishing%20Wizard

 

Simply install this file and it will appear in your start menu. Click it, run the GUI wizard, and follow the steps.

 

If you want to do this by command line, or want to know more about this tool, its readme file can help. I am pasting it here for your reference.

----

README FILE OF DATABASE PUBLISHING WIZARD

SQL Server Database Publishing Wizard
(c) Copyright Microsoft Corporation, 2006. All rights reserved.
Website:
http://www.codeplex.com/sqlhost

=======================================
What is the Database Publishing Wizard?
=======================================

The Database Publishing Wizard enables the deployment of SQL Server databases
(both schema and data) into a shared hosting environment.  The tool supports
both SQL Server 2005 and 2000 and does not require that source and target
servers are the same version.

The tool provides two modes of deployment:

  1) It generates a single SQL script file which can be used to recreate
  a database when the only connectivity to a server is through a
  web-based control panel with a script execution window.

  2) It connects to a web service provided by your hoster and directly
  creates objects on a specified hosted database

The tool may also be used by hosters to script out databases for backup or
transfer purposes.

=====
Usage
=====

The Database Publishing Wizard provide both a graphical and a command-line
interface.  To use the graphical interface, simply execute "sqlpubwiz.exe"
without any arguments.

To retrieve details on the arguments supported by the command-line
interface, execute the following command:

  sqlpubwiz help

The tool also integrates directly into Visual Web Developer 2005 Express
Edition and all non-Express SKUs of Visual Studio.  Right click on any
SQL Server database connecton and select "Publish to provider..." to launch
the wizard.

For further details on usage please see:

http://www.codeplex.com/Wiki/View.aspx?ProjectName=sqlhost&title=Database%20Publishing%20Wizard

======================================
Simple Command Line Scripting Examples
======================================

The following command will script the FooDB database existing on the local
machine and default instance using the Windows credentials of the executing
user to C:\FooDB.sql:

  sqlpubwiz script -d FooDB C:\FooDB.sql

The following command will script the FooDB database from the default
instance on a machine named MYSERVER using SQL Server authentication with
the username "Alice" and the password "7h92-v6k3" to the file C:\FooDB.sql:

  sqlpubwiz script -d FooDB -S MYSERVER -U Alice -P 7h92-v6k3 C:\FooDB.sql

============
Known Issues
============

For a list of known issues, please see:
http://www.codeplex.com/Wiki/View.aspx?ProjectName=sqlhost&title=DPW%20Known%20Issues

================================================
Support, Feedback, Bug Reports, Feature Requests
================================================

For support and any feedback on the tool, please use the following forum:
  http://www.codeplex.com/Project/ListThreads.aspx?ProjectName=sqlhost&ForumId=1807

 

----

[125511]

If you want to detect all accessible instances of SQL Server, simply create a .NET project and add a COM reference to Microsoft SQLDMO

 

Now Open your code file and paste this code in a function...

 

Dim sqlServers As SQLDMO.NameList

Dim sqlServer As String

' Get a list of servers

sqlServers = New SQLDMO.Application().ListAvailableSQLServers

For Each sqlServer In sqlServers

Response.Write(sqlServer,"<br>")

Next

 

 

When you will call this function, list of all accessible SQL Server instances will be printed on screen.

:)

[94915]

Wanna have fun with Binary and ASCII stuff...

 

open command prompt. Press ALT key and while key is kept pressed, type the Binary code for 'A', which is 1000001. Now, when you will release the ALT key, you will get 'A' printed on prompt. But if you try typing Binary of 'B' (1000010), you will get 'J'.

WHY???

The answer is simple...

Console does not understand Binaries. Instead, it works with ASCII codes. If you press ALT key and type some ASCII code, it will print the character equivalent of that ASCII. In case the number is larger than 256, it will be divided by 256 and remainder will be treated as the new number to be evaluated. As a matter of fact, when we mod binary code or 'A', we get ASCII code for 'A' itself. But in binaries of 'A' and 'B', there is a difference of 10 decimal numbers. So J is printed.

 

So, just hv fun with other binary stuff.     

[94914]

Hi guys,

I am back with a new trick. This time we will obfuscate URL and IP Address. But before that, a warning...

 

This hack will not work on browsers behind Proxy/Firewall. Also, only IP Addresses can be obfuscated by this technique. So any complete URL, rendering to an IP Address can be used. No Sub-domains

 

So Here we go.

This technique will convert URL looking like http://www.google.com to something like http://0xD1559968

 

How to do...

 

Step 1: Get IP Address for URL you want to obfuscate. Easiest way to do so is go to command shell by typing "cmd" at run (Win Key + R)

Step 2: Now perform calculation on this IP Address using the following example...

firstoctet * 256 + secondoctet = * 256 + thirdoctet = * 256 + fourthoctet = your new address!

 

Let's do this with an example...

URL: http://www.google.com

IP Address: 209.85.153.104

Calculation:

     209 * 256 + 85 = 53589

     53589 * 256 + 153 = 13718937

     13718937 * 256 + 104 = 3512047976

Now you can check site http://3512047976

To make things even smarter, convert this number to HEX. You can use the normal calculator (Start » All Programs » Accessories » Calculator) for this. It has a scientific mode in which it will convert any number from DEC to HEX. From there you will get http://0xD1559968

 

So here you go....

 

Obfuscate IPs and URLs, and have fun.

Just remember to get away from any PROXY or Firewall.

And no sub-domains.

[88050]

Lot of people complain that they have tough time with the Refresh Key of browser when using (JavaScript) AJAX. Well, there is a very easy workaround to get rid of same.

 

This is a two step process...

 

Let's take a scenario where you have a page (say default.html) and you call the AJAX function (say getPage()) to load the first default page into container. Now in first step, you need to modify your default call to getPage() from default.html...

 

<script language="javascript" type="text/javascript">

var Crawl = window.location.hash;

if (Crawl.length > 1)
{
    Crawl = Crawl.replace('#','');
    Crawl = Crawl + window.location.search;       
     getPage(Crawl);
}
else
{
    getPage(default.asp');
}

 

</script>

 

But this is only one part. Another important part in inside the getPage() function.

 

When you call getPage() function, simply set a global variable (say Hash) to the page being called.

 

i.e. if you the function prototype is function getPage(PageName) {}, write command...

function getPage(CallPage) {

     Hash = CallPage;

}

 

Now within this function, you must be calling another function (say handleHttpResponse) on onreadystatechange event. Inside this function, set the HASH value of page by writing command...

window.location.hash = Hash;

 

And bingo!!!! You are done. Now your F5/Refresh problem is solved. If you need any more details on this, feel free to contact me at vikramjit.rooprai@gmail.com

[80026]

 

Are you looking forward to encrypt URL through JavaScript and retrieve it. Well this is particularly helpful for people using AJAX's Refresh functionality as I mentioned in my post at  http://vikramjits.blogspot.com/2008/05/ajax-refresh-problem.html

 

All you have to do is download this JavaScript file and call function encrypt/decrypt when calling a page.

 

e.g.

 

Step 1 (as mentioned in other Post) will now become...

var Crawl = window.location.hash;
    if (Crawl.length > 1)
     {
        Crawl = unescape(Crawl.replace('#',''));
        Crawl = 'AjaxPages/' + decrypt(Crawl) // + window.location.search;       
         getPage(Crawl);
     }
    else
     {
        getPage('AjaxPages/default.asp');
     }

 

Similarly, when adding to has, write

window.location.hash = escape(encrypt(Hash));

 

Download JavaScript File

[80025]

Hi Moraji,

This is for you brother :)

 

 

KEY ASCII SHIFT+KEY
DEC HEX DEC HEX
         
F1 59 0X03B 84 0X054
F2 60 0X03C 85 0X055
F3 61 0X03D 86 0X056
F4 62 0X03E 87 0X057
F5 63 0X03F 88 0X058
F6 64 0X040 89 0X059
F7 65 0X041 90 0X05A
F8 66 0X042 91 0X05B
F9 67 0X043 92 0X05C
F10 68 0X044 93 0X05D
F11 -123 0XFF85 -121 0XFF87
F12 -122 0XFF86 -120 0XFF88
ENTER 13 0X00D 13 0X00D
ESCAPE 27 0X01B 27 0X01B
SPACEBAR 32 0X020 32 0X020
TAB 9 0X009 15 0X00F
BACKSPACE 8 0X008 8 0X008
INSERT 82 0X052 82 0X052
HOME 71 0X047 71 0X047
DELETE 83 0X053 83 0X053
END 79 0X04F 79 0X04F
PAGE UP 73 0X049 73 0X049
PAGE DOWN 81 0X051 81 0X051
UP ARROW 72 0X048 72 0X048
DOWN ARROW 80 0X050 80 0X050
LEFT ARROW 75 0X04B 75 0X04B
RIGHT ARROW 77 0X04D 77 0X04D
PRINT SCREEN - - - -
0 48 0X030 41 0X029
1 49 0X031 33 0X021
2 50 0X032 64 0X040
3 51 0X033 35 0X023
4 52 0X034 36 0X024
5 53 0X035 37 0X025
6 54 0X036 94 0X05E
7 55 0X037 38 0X026
8 56 0X038 42 0X02A
9 57 0X039 40 0X028
A 97 0X061 65 0X041
B 98 0X062 66 0X042
C 99 0X063 67 0X043
D 100 0X064 68 0X044
E 101 0X065 69 0X045
F 102 0X066 70 0X046
G 103 0X067 71 0X047
H 104 0X068 72 0X048
I 105 0X069 73 0X049
J 106 0X06A 74 0X04A
K 107 0X06B 75 0X04B
L 108 0X06C 76 0X04C
M 109 0X06D 77 0X04D
N 110 0X06E 78 0X04E
O 111 0X06F 79 0X04F
P 112 0X070 80 0X050
Q 113 0X071 81 0X051
R 114 0X072 82 0X052
S 115 0X073 83 0X053
T 116 0X074 84 0X054
U 117 0X075 85 0X055
V 118 0X076 86 0X056
W 119 0X077 87 0X057
X 120 0X078 88 0X058
Y 121 0X079 89 0X059
Z 122 0X07A 90 0X05A
` 96 0X060 126 0X07E
- 45 0X02D 95 0X05F
= 61 0X03D 43 0X02B
\ 92 0X05C 124 0X07C
[ 91 0X05B 123 0X07B
] 93 0X05D 125 0X07D
; 59 0X03B 58 0X03A
' 39 0X027 34 0X022
, 44 0X02C 60 0X03C
. 46 0X02E 62 0X03E
/ 47 0X02F 63 0X03F
         
KEY ALT+KEY CTRL+KEY
DEC HEX DEC HEX
         
F1 104 0X068 94 0X05E
F2 105 0X069 95 0X05F
F3 106 0X06A 96 0X060
F4 107 0X06B 97 0X061
F5 108 0X06C 98 0X062
F6 109 0X06D 99 0X063
F7 110 0X06E 100 0X064
F8 111 0X06F 101 0X065
F9 112 0X070 102 0X066
F10 113 0X071 103 0X067
F11 -117 0XFF8B -119 0XFF89
F12 -116 0XFF8C -118 0XFF8A
ENTER - - 10 0X00A
ESCAPE - - - -
SPACEBAR - - 32 0X020
TAB - - -108 0XFF94
BACKSPACE 14 0X00F 127 0X07F
INSERT -94 0XFFA2 -110 0XFF92
HOME -105 0XFF97 119 0X077
DELETE -93 0XFFA3 -109 0XFF93
END -97 0XFF9F 117 0X075
PAGE UP -103 0XFF99 -124 0XFF84
PAGE DOWN -95 0XFFA1 118 0X076
UP ARROW -104 0XFF98 -115 0XFF8D
DOWN ARROW -96 0XFFA0 -111 0XFF91
LEFT ARROW -101 0XFF9B 115 0X073
RIGHT ARROW -99 0XFF9D 116 0X074
PRINT SCREEN - - 114 0X072
0 120 0X078 - -
1 121 0X079 - -
2 122 0X07A 3 0X003
3 123 0X07B - -
4 124 0X07C - -
5 125 0X07D - -
6 126 0X07E 30 0X01E
7 127 0X07F - -
8 128 0X080 - -
9 129 0X081 - -
A 30 0X018 1 0X001
B 48 0X030 2 0X002
C 46 0X02E 3 0X003
D 32 0X020 4 0X004
E 18 0X012 5 0X005
F 33 0X021 6 0X006
G 34 0X022 7 0X007
H 35 0X023 8 0X008
I 23 0X017 9 0X009
J 36 0X024 10 0X00A
K 37 0X025 11 0X00B
L 38 0X026 12 0X00C
M 50 0X032 13 0X00D
N 49 0X031 14 0X00E
O 24 0X018 15 0X00F
P 25 0X019 16 0X010
Q 16 0X010 17 0X011
R 19 0X013 18 0X012
S 31 0X01F 19 0X013
T 20 0X014 20 0X014
U 22 0X016 21 0X015
V 47 0X02F 22 0X016
W 17 0X011 23 0X017
X 45 0X02D 24 0X018
Y 21 0X015 25 0X019
Z 44 0X02C 26 0X01A
` 41 0X029 - -
- 130 0X082 31 0X01F
= 131 0X083 - -
\ 43 0X02B 28 0X01C
[ - - 27 0X01B
] 27 0X01B 29 0X01D
; 39 0X027 - -
.' 40 0X028 - -
, 51 0X033 -  
. 52 0X034 - -
/ 53 0X035 - -
[56676]

 

Recently I was facing this problem. I used AJAX in .NET and posting was very smooth without any flicker. But the page transitions were painful. So I found this small piece of code over net.

 

This is two line implementation that will reduce page flicker during transition to minimum possible time. The only flicker that will remain intact will be if you are using heavy images on page. For textual stuff, you can never judge the difference.

 

Put following lines in the <HEAD> element of HTML page.

<meta http-equiv="Page-Enter" content="blendTrans(Duration=0)">
<meta http-equiv="Page-Exit" content="blendTrans(Duration=0)">

 

Now I am trying to display a loader during page load. I know that this is very easy as we are just calling a javascript function during Page-Enter and Page-Exit. I can call my own javascript function during these events who will start loader and then call blendTrans function.

I'll do it soon and will post that code over this blog as well.

 

By the way, this technique is called:

FAJAX

or

Fake-Ajax

 

Happy Coding

[55250]
Strony: [01] [02] [03] [04]