Skip to main content

Posts

Showing posts from 2008

Secure messaging

Process Secure Messaging The sender writes an eMail online and sends it over a secure SSL-connection to the secure messaging server. The recipient is notified through a normal eMail that a secure message is waiting for delivery on the secure server. The recipient is invited to download the message through a link. The sender provides the recipient with a message unlock code . The code is required in order to access the pending message. If the recipient has already been in contact with the sender through secure messaging server and has registered, this step is not required. The secure message and confidential documents such as contracts, business plans, resumes or loan documents can then be accessed with the message unlock code and downloaded. MUC (Message Unlock Code) A MUC is a message password and protects a message sent to a new communication partner from being seen by erroneous recipients and is used to initiate trust. If a message is sent to a new recipient, the system generates...

Disable Allow This Webpage to Access Your Clipboard

Disable Allow This Webpage to Access Your Clipboard Pop-Up Warning Message in IE7 This security feature can be disabled. To disable the pop up warning message about possible harmful or unauthorized Clipboard access, follow the steps below: Go to Tools -> Internet Options. Go to Security tab. Select “Internet” zone, then click on “Custom level…” button. Scroll down to “Scripting” section (at the bottom few). Under “Allow Programmatic clipboard access” option, check or select (tick) Enable. Default action for this option is Prompt, which cause the pop-up message whenever there is any attempt to access the Clipboard. Click Ok twice to exit from Internet Options.

Read Excel Date in C#

Microsoft Excel stores dates as sequential numbers known as serial values. DateTime.FromOADate Method Returns a DateTime equivalent to the specified OLE Automation Date. public static DateTime FromOADate( double d ) double _d = double.Parse(values.GetValue(1, i).ToString()); DateTime.FromOADate(_d).ToShortDateString();

URL Rewriting in ASP.NET

With classic ASP, the only way to utilize URL rewriting was to write an ISAPI filter or to buy a third-party product that offered URL rewriting capabilities. With Microsoft® ASP.NET, however, you can easily create your own URL rewriting software in a number of ways. What Happens When a Request Reaches IIS if a request comes in for a Web page named Info.asp, IIS will route the message to the asp.dll ISAPI extension. This ISAPI extension will then load the requested ASP page, execute it, and return its rendered HTML to IIS, which will then send it back to the requesting client. For ASP.NET pages, IIS routes the message to the aspnet_isapi.dll ISAPI extension. The aspnet_isapi.dll ISAPI extension then hands off processing to the managed ASP.NET worker process, which processes the request, returning the ASP.NET Web page's rendered HTML. “You can customize IIS to specify what extensions are mapped to what ISAPI extensions. the ASP.NET-related extensions—.aspx, .ascx, .config, .asmx, ....

run PHP script with Cron

Minute Minute of the hour, 00 to 59 Hour Hour of the day in 24-hour format, 00 to 23 Day Day of the month, 1 to 31 Month Month of the year, 1 to 12 DayDay of week 3 chars - sun, mon, tue, or numeric (0=sun, 1=mon etc) Command = The command you want to execute The time is in twenty four hour time. So you may have guessed already that the 00 is the minutes and the 18 above is 6:00pm. The asterix character * is a wild card and means every. That is, every minute or every day, or every month. This means the script.php script would be executed every day of every month. For example:  * * * * * would mean every minute  0 0 * * * would mean at midnight every night. e.g. * * * * * php /yourfolder/yourfile.php

Animate background with jQuery

example to Animate background with jQuery 1 currentID = Math.floor(Math.random()*imgs.length) 2 newImage = "url(" + imgs[currentID] + ")"; 3 $("#topdiv").animate({opacity: 'toggle'}, "slow", function () 4 { 5 document.getElementById('topdiv').style.backgroundImage = newImage; 6 $("#topdiv").animate({opacity: 'toggle'}, "slow"); 7 } 8 ); change div background document.getElementById('topdiv').style.backgroundImage = newImage;

SyncML (Synchronization Markup Language)

http://en.wikipedia.org/wiki/SyncML SyncML is most commonly thought of as a method to synchronize contact and calendar information ( Personal Information Manager ) between some type of handheld device and a computer (personal, or network-based service), such as between a  mobile phone  and a  personal computer . The new version of the specification includes support for  push email , providing a standard protocol alternative to proprietary solutions like  BlackBerry .

Field Data Collection Utilizing a Windows Mobile / GPS unit

To find easy way for field projects to collect and enter data. Device Package HP iPAQ Go online with Wi-Fi, Get online easily when Wi-Fi is not available. Connect your PDA to your Internet-enabled mobile phone with Bluetooth and access the Internet through your cellular service. Garmin Mobile 10 Bluetooth Enabled GPS System Add wireless navigation to your Bluetooth-enabled laptop, smartphone, pocket PC or PDA with the Garmin Mobile 10, a GPS and Bluetooth wireless package that includes a portable receiver along with navigation and map software. Software Framework Windows Mobile 5, 6 Sql Server Mobile Sync with RDA/Merge Replication Step by Step Design Study Area in Google Map with Web Application Produce Maps for PDA Synchronize to download data to PDA Collecting Data with Different Methods Synchronize to upload Collecting Data View/Modify Data in Web application View GIS Data in Google Map/Google Earth Please contact costudio for detail about Field Data Collection solution

Response buffer limit exceeded

Error message when a Web browser sends a request for an active server page to a Web server that is running IIS 6.0: "Response buffer limit exceeded" Response object error 'ASP 0251 : 80004005' Response Buffer Limit Exceeded /PageName.asp, line LineNumber CAUSE This issue occurs because of a change in behavior that was introduced in IIS 6.0 and added to IIS 5.0. These versions of IIS enforce a default ASP response buffer limit of 4 MB. This limit prevents large ASP responses from adversely affecting the IIS process that hosts the Web application. If an ASP request generates a response that is larger than the configured buffer limit, you experience the symptoms that are mentioned in the "Symptoms" section. Method 4: Increase the buffer limit You can increase the buffering limit if one of the following conditions is true: • The client is not a Web browser. • You cannot redesign the application to take advantage of a paging technology, such as the GridView class...

Shape file for Water Body and more

http://nationalatlas.gov/atlasftp.html?openChapters=#chpwater Raw Data Download : Nearly all data available in the National Atlas Map Maker can be downloaded at no cost. This raw data and its most up-to-date documentation is accessible from the index below. This index lists all of the map layers currently contained in nationalatlas.gov™, by broad subject categories that correspond to the chapters of the National Atlas.

validate email and phone number with Regular Expressions

Here is sample to validate Phone, Email, URL http://www.costudio.com/contactus.asp emailRe = /^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*\.(\w{2} (comnetorgeduintmilgovarpabizaeronamecoopinfopromuseum))$/ phoneRe = /^((\+\d{1,3}(- )?\(?\d\)?(- )?\d{1,5})(\(?\d{2,6}\)?))(- )?(\d{3,4}) (-)?(\d{4})(( x ext)\d{1,5}){0,1}$/ http://javascript.about.com/library/blre.htm Jquery Validation http://bassistance.de/jquery-plugins/jquery-plugin-validation/

install sql server express 2005 to Vista 64

IIS on a 64 bit system runs by default the 64 bit version of the framework and SQL Server express is a 32 bit application so that is what is causing your problem since it needs the 32 bit framework to operate correctly. There are 2 solutions: 1. Install SQL Server 2005 x64 developer edition instead of the express edition. This version however is not free so you will need to purchase a license witch luckily for us is not as expensive as a standard or enterprise license. Or: 2. Click start > run and type: (maybe need make start.bat, and right click to run as administrator) cscript %SYSTEMDRIVE%\inetpub\adminscripts\adsutil.vbs SET W3SVC/AppPools/Enable32bitAppOnWin64 1 That will force your IIS to run in 32 bit emulated mode. then again at run or a command prompt type: %SYSTEMROOT%\Microsoft.NET\Framework\v2.0.50727\aspnet_regiis.exe -i To register the 32 bit framework with IIS. After that you should be able to install the larger version (x64) capable of SQL Server Express 2005 without...

Error message when you restore or attach an msdb database or when you change the syssubsystems table in SQL Server 2005

Error message when you restore or attach an msdb database or when you change the syssubsystems table in SQL Server 2005: "Subsystem % could not be loaded" "The Snapshot subsystem failed to load" SYMPTOMS loadTOCNode(1, 'symptoms'); Consider the following scenario. You perform one of the following actions in Microsoft SQL Server 2005: • You restore an msdb backup. • You attach an msdb database. • You change the information in the syssubsystems table in the msdb database. Solution: 1. In SQL Server Management Studio, run the following script.use msdb go delete from msdb.dbo.syssubsystems exec msdb.dbo.sp_verify_subsystems 1 go 2. Stop and then restart the SQL Server Agent service.

How to: Replicate Schema Changes - Alter Replicated tables

By default, the following schema changes made at a Publisher running SQL Server are replicated to all SQL Server Subscribers: ALTER TABLE ALTER VIEW ALTER PROCEDURE ALTER FUNCTION ALTER TRIGGER If you do not want to replicate schema changes for a publication, disable the replication of schema changes in the Publication Properties - dialog box. For more information about accessing this dialog box, see How to: View and Modify Publication and Article Properties (SQL Server Management Studio) . To disable replication of schema changes On the Subscription Options page of the Publication Properties - dialog box, set the value of the Replicate schema changes property to False. Click OK. To propagate only specific schema changes, set the property to True before a schema change, and then set it to False after the change is made. Conversely, to propagate most schema changes, but not a given change, set the property to False before the schema change, and then set it to True after the change is ...

change Login to a user in sql server

Add the new login. USE master go EXEC sp_addlogin 'NewMary' go --Change the user account to link with the 'NewMary' login. USE pubs go EXEC sp_change_users_login 'Update_One', 'Mary', 'NewMary' EXEC sp_change_users_login 'Update_One', 'ESPDAUser', 'ESPDAUser'

js not working in firefox

in IE, document.all is working but not in firefox, in firefox have to use document.getElementById instead IE: document.all.tab1Div.style.display='none'; document.all.tab2Div.style.display=''; document.all.tab3Div.style.display='none'; document.all.li1Div.className = ''; document.all.li2Div.className = "selected"; document.all.li3Div.className = ''; Firefox: document.getElementById('tab1Div').style.display='none'; document.getElementById('tab2Div').style.display=''; document.getElementById('tab3Div').style.display='none'; document.getElementById('li1Div').className = ""; document.getElementById('li2Div').className = 'selected'; document.getElementById('li3Div').className = '';

MERGE PROCESS WAS UNABLE TO CREATE A NEW GENERATION

error message: THE MERGE PROCESS WAS UNABLE TO CREATE A NEW GENERATION AT THE “SUBSCRIBER”. TROUBLESHOOT BY RESTARTING THE SYNCHRONIZATION WITH VERBOSE HISTORY LOGGING AND SPECIFY AN OUT PUT FILE TO WHICH TO WRITE. I tried "update sysmergepublications set [generation_leveling_threshold] = 0" on both Subscriber and Publisher, still it didn't work. Then I tried "select count (*) from dbo.MSmerge_contents" and "select count (*) from dbo.MSmerge_genhistory" on the Subscriber The both query was running indefinely with no results, instanly I realised there is some Locking problem. In desperation I restarted the Subscriber Database Engine and started the Agent. Magic! Replication was successfull.

pda can't get internet connection with vista

PDA can't get internet connection with vista, can't sync to sql server, here is the solution: to download Windows Mobile Device Center 6.1 for Windows Vista. Combines an efficient business-data synchronization platform with a compelling user experience. Enables you to set up new partnerships, synchronize content and manage music, pictures and video with Windows Mobile powered devices (Windows Mobile 2003 or later). Helps you to synchronize business-critical information such as e-mail, contacts and calendar appointments, easily manage your synchronization settings, and transfer business documents between your device and PC.

Filters and Transitions in css

Introduction to Filters and Transitions With Microsoft Internet Explorer 4.0 and above, you can apply various multimedia-style visual effects to your Web page. You can implement these effects in Web pages using Cascading Style Sheets (CSS) properties. By combining filters and transitions with basic scripting, you have a powerful tool for creating visually engaging and interactive documents. Internet Explorer 5.5 and above supports the richest variety of optimized filters. Most examples in this article require that you have Internet Explorer 5.5 installed. This article includes the following sections, which explain how to use filters and transitions to add visual effects to your Web page. Creating Multimedia Effects with Visual Filters and Transitions Defining Visual Filters Scripting Filters Filter Design Considerations Visual Filter Scenarios Transitions Interpage Transitions Transition Design Considerations Transition Scenarios Filter and Transition User Interface Scenarios Downlevel...

make Flv work in IIS

Adding .flv MIME type in IIS 1) Select the site to configure in IIS, right click and select "Properties" 2) Under HTTP Headers Tab, select "File Types" under the MIME Map section and select "New Type" 3) Type ".flv" as the associated extension and "video/x-flv" as the content type. 4) Select "OK" and you're ready to fly!

Paging in sql server

select * from ( select t1.*, t2.* ,ROW_NUMBER() OVER (order by t1.siteID ) AS RowNo from t1 inner join t2 on (t1.f1 = t2.f1) ) as A where A.RowNo between @beginRowNo and @endRowNum

Javascript with ajax, non-ajax

non - ajax: http_request.open('GET', url, false); http_request.send(null); return processSites(http_request.responseText); function showSites() { if (http_request) { num = getSites(iCounter+1,100,1) iCounter +=num; if (num==100) tmout = setTimeout(showSites,1000); else { document.getElementById("debugload").innerHTML = objectIx; iCounter = 0 } } } ajax: http_request.open('GET', url, true); http_request.send(null);

DirectShow

The Microsoft® DirectShow® application programming interface (API) is a media-streaming architecture for the Microsoft Windows® platform. Using DirectShow, your applications can perform high-quality video and audio playback or capture. Note Previous versions of the DirectShow SDK shipped as part of the DirectX SDK. The last version of the DirectX SDK that included DirectShow was "DirectX 9.0 SDK Update - (February 2005) Extras." The DirectShow SDK was moved to the Windows SDK starting with the Microsoft® Windows Server 2003 SP1 Platform SDK. To get the latest DirectShow SDK, download the latest version of the Windows SDK.

AJAX and RIA Tools - Flex

2008 is going to be an important year for Rich Internet Applications. Most organizations are delivering or planning to deliver Rich Internet Applications; however, at the same time, most IT managers are facing a dilemma: which Rich Internet Application technology and platform to use? The number of different frameworks and libraries is too vast to even consider evaluating a fraction of them. To make this task manageable, to narrow things down to three different technologies for delivering enterprise-level Rich Internet Applications. While the first two (JSF and Flex) are proven technologies that have been used for a numbers of years, JavaFX is a new declarative language for building rich user interfaces using Java. Flex: The one for delivering Rich Internet Applications is the high-performance Flash player from Adobe. Flash player (version 9) is a ubiquitous lightweight virtual machine that's installed as a plug-in inside a browser and runs Flex applications. Flex provides a declara...

javascript limitation on array (Max Javascript Array)

The problem is not the number of array elements but the number of statements within a function. If a javascript function in IE7contains more than 32768 statements it generates this 'syntax error'. Now a javascript function contains rarely more than 250 statements unless you are filling a big array with assigment statements of course . A workaround for this is using multiple functions. Also it seems if you make multiple blocks (using { } ) within a function where each block contains less than 32768 statements the error also disappears. So the real cause of the problem in IE7 seems to be that they are using a short integer to count the number of statements within a block.

Parse web page in ASP

URL = "your url here" Set webconn= CreateObject("Microsoft.XMLHTTP") webconn.Open "get", URL , False webconn.Send ResponseText = webconn.ResponseText set webconn = nothing

ASP Error ‘ASP 0104: 80004005'

Solution: Open IIS Manager Right click on your local computer In the Internet Information Service windows the very first checkbox is “Enable Direct Metabase Edit”. Open your metabase.XML which is located in c:\Windows\System32\Inetsrv find the line “AspMaxRequestEntityAllowed” and change it to “1073741824″. (1GB) (may need stop IIS first before modify) or will be much better to modify with this: Internet Information Services (IIS) 6.0 Resource Kit Tools: http://www.microsoft.com/downloads/details.aspx?FamilyID=56fc92ee-a71a-4c73-b628-ade629c89499&DisplayLang=en

PaaS contender: Facebook | Google's App Engine

many individuals and some organizations do use Facebook for business purposes. Whether App Engine will permanently challenge Facebook, though, will depend on one burning question: will developers be able to make money from their Google App Engine creations? Make no mistake about it, developers build on Facebook not only for the kudos but also because a successful widget can make them a lot of money. Facebook Platform Google App Engine enables you to build web applications on the same scalable systems that power Google applications.

Tips to save on gas

Only buy or fill up your car or truck in the early morning when the ground temperature is still cold. Remember that all service stations have their storage tanks buried below ground. The colder the ground the more dense the gasoline, when it gets warmer gasoline expands, so buying in the afternoon or in the evening....your gallon is not exactly a gallon. In the petroleum business, the specific gravity and the temperature of the gasoline, diesel and jet fuel, ethanol and other petroleum products plays an important role. A 1-degree rise in temperature is a big deal for this business. But the service stations do not have temperature compensation at the pumps. When you're filling up do not squeeze the trigger of the nozzle to a fast mode. If you look you will see that the trigger has three (3) stages: low, middle, and high. In slow mode you should be pumping on low speed, thereby minimizing the vapors that are created while you are pumping. All hoses at the pump have a vapor return. If...

Geocoder to get Township, Section, USGS Quad by Lat/Long

GIS Geocoder allows for the conversion of Latitude and Longitude (Lat/Long) values into State, County, Township, Range, Section and USGS Quad (Texas: Abstract, Block, Grantee). For detail, please contact costudio .

Sketch

Data Warehouse Client

Cut consolidation and reporting cycles to spend more time on in-depth analysis and enable more flexible, dynamic planning. features: Integrate Current System offer metadata tool, support Oracle, MS SQL Server, Sybase, DB2, Paradox... Customized Reports offer unprecedented control and flexibility, so users can customize reports to suit their individual needs. Reports in a Business Context make it easy and intuitive for users to locate and execute the reports they need. Users are insulated from database complexities and need not understand SQL or the underlying database to execute and view reports. High-Quality, Print-Ready Reports can deliver information in a variety of formats, including standard HTML reports, or print-ready, export to MS Excel.

Cartoon

Using the enter key to submit a form

<input name="LoginPass" type="password" id="LoginPass" onkeydown="if ((event.which && event.which == 13) (event.keyCode && event.keyCode == 13)) { DoSubmit(1); return false; } else return true;" />

OpenSocial continues to grow

Yahoo!, MySpace, and Google are joining with the broader community to create a non-profit foundation to foster the continued open development of OpenSocial. To that end, we've also launched OpenSocial.org , designed to become the main documentation hub and primary source of information about OpenSocial. To learn more, and to get involved, please review the foundation proposal .

GBrowserIsCompatible javascript error

Delete cookies...

Add a page break to a HTML page

<STYLE type="text/css"> .newpage { page-break-after: always; } </STYLE> <p class="newpage" />

Google Gadget

Google Gadget Ventures Grants of $5,000 to those who’ve built gadgets we’d like to see developed further. You’re eligible to apply for a grant if you’ve developed a gadget that’s in our Google gadgets directory and gets at least 250,000 weekly page views. To apply, you must submit a one-page proposal detailing how you’d use the grant to improve your gadget. Seed investments of $100,000 to developers who’d like to build a business around the Google gadgets platform. Only Google Gadget Venture grant recipients are eligible for this type of funding. Submitting a business plan detailing how you plan to build a viable business around the gadgets platform is a required part of the seed investment application process. -- http://code.google.com/apis/gadgets/

Screen scraping

Screen scraping is a technique in which a computer program extracts data from the display output of another program. The program doing the scraping is called a screen scraper. The key element that distinguishes screen scraping from regular parsing is that the output being scraped was intended for final display to a human user, rather than as input to another program, and is therefore usually neither documented nor structured for convenient parsing. Screen scraping often involves ignoring binary data (usually images or multimedia data) and formatting elements that obscure the essential, desired text data. Optical character recognition software is a kind of visual scraper. There are a number of synonyms for screen scraping, including: Data scraping, data extraction, web scraping, page scraping, web page wrapping and HTML scraping (the last four being specific to scraping web pages). Screen scraping generally requires intensive text parsing algorithms . Computer languages that have...

Trigger for insert, update in sql server

deleted and inserted are logical (conceptual) tables. They are structurally similar to the table on which the trigger is defined, that is, the table on which the user action is attempted, and hold the old values or new values of the rows that may be changed by the user action. For example, to retrieve all values in the deleted table, use: SELECT * FROM deleted Create TRIGGER [dbo].[test1_insupd] ON [dbo].[test1] FOR INSERT, UPDATE AS BEGIN declare @f1 int declare @f2 varchar(10) declare @vishg char(1) select @f1 = f1, @f2 = f2, @vishg = vishg from inserted if UPDATE ( visHG ) and @vishg = '1' begin IF EXISTS(select * from test2 where f1 = @f1) update test2 set f2 = 'true in t1' where f1 = @f1 else insert into test2(f2) values( 'true in t1') end else begin IF EXISTS(select * from test2 where f1 = @f1) update test2 set f2 = 'not true' where f1 = @f1 else insert into test2(f2) values('not true') end END

Display your own logo on address bar

Display your own logo (icon 16x16) on address bar and in the favorites list <head> <LINK REL="SHORTCUT ICON" HREF="http://hoojo.com/appimages/hoojo.ico" /> </head>

3 column layout css

here is demo css code for 3 columns layout. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>3 columns css demo</title> <style type="text/css"> <!-- #block_1 { float: left; width: 50%; margin-left: 20%; } * html #block_1 { display: inline; } #block_2 { float: left; width: 20%; margin-left: -70%; } #block_3 { float: left; width: 30%; } #block_1, #block_2, #block_3 { padding-bottom: 32767px !important; margin-bottom: -32767px !important; } #wrapper { overflow: hidden; } /* easy clearing */ #wrapper:after { content: '[DO NOT LEAVE IT IS NOT REAL]'; display: block; height: 0; clear: both; visibility: hidden; } #wrapper { display: inline-block; } #wrapper { display: block; } #footer { clear: both; } .all{ background-color:#006666;} .blue{ background-color:#0066FF;} .red{ backg...

free topo, satellite map from Terraserver

terraserver web service updated lately on TerraService WSDL : http://terraserver-usa.com/TerraService2.asmx need this free map online application please contact me at costudio . The following operations are supported. ConvertUtmPtToLonLatPt ConvertLonLatPtToUtmPt GetTileMetaFromLonLatPt GetLatLonMetrics GetPlaceList CountPlacesInRect GetAreaFromTileId GetPlaceFacts GetAreaFromRect GetAreaFromPt GetPlaceListInRect ConvertPlaceToLonLatPt ConvertLonLatPtToNearestPlace GetTile GetTileMetaFromTileId GetTheme infor from: http://terraserver-usa.com/webservices.aspx

SQL Server 2005 Express Limitation

Functionally, SQL Server Express is in many ways the same as the full edition of SQL Server. Many databases created in other editions of SQL Server can work transparently. The limitations to Express, however, need to be spelled out in detail: No built-in management tools. Microsoft has a query tool called Express Manager that is available as a separate download, but as of this writing, it is an unsupported pre-release package. Support for only 1 CPU. In systems with multiple CPUs, Express will only bind to one CPU at a time, and it cannot run queries in parallel. 1 GB RAM. Express cannot use more than 1 GB of RAM at a time for queries and data pages. The program's own memory footprint is not counted. 4 GB maximum database size. No one database in Express can be larger than 4 GB, but there is no limit on the number of databases you can use in Express. No analysis or reporting services. Data mining, Data Transformation Services (DTS) and reporting functions are not available for Exp...

KML MIME Types

When responding to a request from Google Earth (or any Earth browser), a KML server must follow a certain set of rules so that Google Earth can correctly interpret its responses. Upon success, the server must return a response code of HTTP 200 and set the response's content-type to a suitable MIME type, as described here. Google Earth reads KML and KMZ files. The MIME type for KML files is application/vnd.google-earth.kml+xml The MIME type for KMZ files is application/vnd.google-earth.kmz For Apache, add these lines to the httpd.conf file: AddType application/vnd.google-earth.kml+xml .kml AddType application/vnd.google-earth.kmz .kmz See the Microsoft documentation for details on setting up MIME types on Microsoft's IIS. The body of the response must contain valid KML data, including the XML declaration (<?xml version="1.0" encoding="UTF-8"?>). If the server returns invalid KML, the Network Link will stop, deactivate, and output an error message.

Auto Scrolling DIV tags

<div id="demoID" style="overflow: auto; height: 200px; width:300px;"> your content here. </div> Dow falls below 12,000 after jobs report Stocks slid again today after a worse-than-expected jobs report added to worries about the health of the economy. At 2:15 p.m. ET, the Dow Jones Industrial Average was down 171 points to 11,869, falling below the key 12,000 level. The Dow had been trading around that level for most of the morning. The Dow plunged 215 points on Thursday. The Nasdaq Composite Index was down 21 points to 2,198, and the Standard & Poor's 500 Index had lost 16 points to 1,288. The S&P lost 29 points Thursday to close at 1,304, the lowest closing level since Sept. 22, 2006.

Google Gears mobile

Google Gears mobile is for jet-setters who need on-the-go access to Web applications but who also need the ability to work within those applications if their wireless signal gets interrupted or they are not in an area where wireless service is available . Initially, Google Gears for mobile will work on devices running Microsoft Windows Mobile 5 and 6. Google Gears for mobile enables developers to deploy applications directly to mobile browsers rather than develop native applications . He wrote that deploying directly to the browsers simplifies the process by allowing developers to use the same coding skills to create mobile apps. Additionally, the mobile Web applications can work offline , meaning users can leverage them when they are disconnected from the network. "Google Gears Beta is an open source browser extension that enables web applications to provide offline functionality using the following JavaScript APIs: Store and serve application resources locally Store data locally...

FTP listener to get latest files to local

this is FTP client tool in C#. Basic function please check my post make FTP client with FtpWebRequest in C Sharp , need this tools please contact me at costudio .

make FTP client with FtpWebRequest in C sharp

Get Remote File List private ArrayList GetRemoteFiles() { ArrayList al = new ArrayList(); FtpWebRequest fwr = (FtpWebRequest)FtpWebRequest.Create(new Uri("ftp://" + ftpIP)); fwr.Credentials = new NetworkCredential(ftpUser, ftpPass); fwr.Method = WebRequestMethods.Ftp.ListDirectory; fwr.UsePassive = false; StreamReader sr = new StreamReader(fwr.GetResponse().GetResponseStream()); string str = sr.ReadLine(); while (str != null) { al.Add(str); str = sr.ReadLine(); } sr.Close(); sr = null; fwr = null; return al; } Download File to Local private void DownloadFile(string remoteFile, string localFile) { try { string uri = @"ftp://" + ftpIP + @"/" + remoteFile; FtpWebRequest request = (FtpWebRequest)WebRequest.Create(uri); request.Method = WebRequestMethods.Ftp.DownloadFile; request.UsePassive = false; request.Credentials = new NetworkCredential(ftpUser, ftpPass); request.UseBinary = true; FtpWebResponse response = (FtpWebResponse)request.GetResponse(); Stream res...

XML: invalid Character Was Found in Text Content

SYMPTOMS When parsing XML that contains "special characters" using the Microsoft XML parser (MSXML), the parser may report the following error message at the line and position of the first special character: An Invalid character was found in text content. Back to the top CAUSE The XML document is not marked with the proper character encoding scheme. Back to the top RESOLUTION Specify the proper encoding scheme in the XML processing instruction. - or - Re-encode the XML data as proper UTF-8. for sample: <?xml version="1.0" encoding="iso-8859-1" ?> <rootelement> ...XML data... </rootelement>

Promote your blog

give people what they want and do it consistently. commenting on other blogs. join Mybloglog.com, bloggingfusion.com, bloggerforum.com , blogcatalog.com, spicypage.com, technorati.com, blogoozle.com link exchange. Submit Blog Feed to Feed Directories: 2RSS more comming soon...

Yahoo map image api

Yahoo! Maps Web Services - Map Image API http://developer.yahoo.com/maps/rest/V1/mapImage.html here is sample http://local.yahooapis.com/MapsService/V1/mapImage?appid=L_D7A5XV34FEk1zgAt.tfXOfRgUpqt5kv6R4mA6tUX3tMXW0IwhhNkm8z__D&zip=92694&image_width=1000&image_height=1000&zoom=1 here is image result http://gws.maps.yahoo.com/mapimage?MAPDATA=C9potud6wXVzQEw_r1Mjq5iDQ_eh75FHySHFPf_9Ef0Yghz.OYd.YmJyspFS6gIX7E3ytyoVGsAjOKG9oFIyN1Cms_fxrp3I0UZPaehZDqUuTZSXG91SoVFcP_xIaEpKqb3WsygEVZDav3V3ENsYYO6uqb2g&mvt=m?cltype=onnetwork&.intl=us

restore database with backup and transection logs

USE master GO -- First determine the number and names of the files in the backup. RESTORE FILELISTONLY FROM disk = 'C:\yourfolder\yourdbbackupfile.BAK' RESTORE DATABASE yourdatabasename FROM disk = 'C:\yourfolder\yourdbbackupfile.BAK' WITH NORECOVERY, -- change location MOVE 'xxx_Data' TO 'C:\newfolder\newfile.MDF', MOVE 'xxx_Log' TO 'C:\newfolder\newfile.LDF' GO RESTORE LOG yourdatabasename FROM disk = 'C:\yourfolder\logfile1.TRN' FROM disk = 'C:\yourfolder\logfile2.TRN' WITH NORECOVERY GO -- WITH NORECOVERY need attach database, or WITH RECOVERY then dont need attach.

Public Land Survey System

The Public Land Survey System (PLSS) is a method used in the United States to survey and identify land parcels, particularly for titles and deeds of rural, wild or undeveloped land. Its basic units of area are the township and section . It is sometimes referred to as the rectangular survey system, although non rectangular methods such as meandering can also be used. The survey was "the first mathematically designed system and nationally conducted cadastrial survey in any modern country" and is "an object of study by public officials of foreign countries as a basis for land reform." [1] The detailed survey methods to be applied for the PLLS are described in a series of Instructions and Manuals issued by the General Land Office , the latest edition being the "The Manual of Instructions for the Survey of the Public Lands Of The United States, 1973" available from the U.S. Government Printing Office . The BLM announced in 2000 an updated Manual is curren...

web application frameworks

1 Client-side 1.1 ActionScript 1.2 JavaScript 2 Server-side 2.1 ASP.NET 2.2 ColdFusion 2.3 Java 2.4 JavaScript (server-side) 2.5 Perl 2.6 PHP 2.7 Python 2.8 Ruby Comparison of features Ajax MVC MVC push/pull i18n ORM Testing framework DB migration framework Security Framework Template Framework Caching Framework Form Validation Framework links: ASP Xtreme Evolution Comparison of Ajax IDE: http://ajaxpatterns.org/Ajax_Tools GWT Designer Visual AJAX IDE - AJAX WebShop XI-Community and XI-Factory Ajax Toolkit Framework for Eclipse IntelliJ Idea Morfik JSEclipse Aptana jMaki plugin for NetBeans jMaki plugin for Eclipse MX AJAX Toolbox for Dreamweaver MyEclipse Zero Kode ZK-Bench

Mobile GIS (GIS on PDA)

mobile GIS and field mapping application running on Windows Mobile/Pocket PC/Smart Phone Sql Server CE GPS: Bluetooth enabled Sync with RDA/Replication Features: Google Map supported Custom Map Processing to fit on PDA Auto GPS reading as walk Drawing polygon, polyline and point on map support shape view, map view and data view UTM grid on map data format with Geographic/UTM Geographic and UTM data converter Export to KML, CSV GPS signal indicator information from EnvironmentalStudio.net

hollow box(small box) issue in word app with Delphi

Instead of Chr(13) & Chr(10), use Chr(11) or the constant wdVerticalTab: activedocument.FormFields(1).Result = "a" & chr(11) & "b" Hope this helps, while (pos(#13#10, value) > 0) do begin value :=ReplaceString(value,#13#10, #11); end; WrdDoc.FormFields.Item(FieldName).Result := value; function ReplaceString(Dest, SubStr, Str: string): string; var Position: Integer; begin Position:=Pos(SubStr, Dest); Delete(Dest, Position, Length(SubStr)); Insert(Str, Dest, Position); Result:=Dest; end;

Regular expressions in JavaScript

JavaScript includes full support for Perl-style regular expressions, and it's extremely useful for string matching processes. Coding a script to check sensitive user data is sometimes pretty straightforward. But most of the time this process is not so easy. With current websites, we'll need to check the proper standardized format of an email address or a URL. That would be a nightmare for programmers, not to mention a confusing and inefficient error-prone process for checking data validity. A regular expression is a way of describing a pattern in a piece of text. In fact, it's an easy way of matching a string to a pattern. We could write a simple regular expression and use it to check, quickly, whether or not any given string is a properly formatted user input. Here are a few special characters that can be used for matching characters in regular expressions: \n // a newline character . // any character except a newline \r // a carriage return character \t // a tab character...

Geographic to UTM Coordinate Converter

There is a concept of a navigable "Scene". The expance of a Scene is dependent on the source of the imagery and the imagery's projection system. For data in the Geographic projection system, the expanse is the entire globe. Effectively there is one Scene. For UTM data, there are sixty Scenes, each covering approximately six longitude degrees. Projection Methods You are dealing with "Projection Systems" anytime you are dealing with a map or a globe. For our purposes within the TerraService, the earth is a sphere. Points on it are referenced by Longitude and Latitude "lines". They are not lines really, but complex curves. Maps are flat drawing of earth. Satellite or aerial imagery, in its raw state, is more-flat-than-its round. It is mathematically impossible to present a sphere on a flat surface without distorting something. Cartographers have dealt with this issue for centuries by developing different methods, known as map projections, for representing...

Unexpected call to method or property in google map

We recommend that you use standards-compliant XHTML on pages that contain maps. When browsers see the XHTML DOCTYPE at the top of the page, they render the page in "standards compliance mode," which makes layout and behaviors much more predictable across browsers. If you want to show polylines on your map (like the lines used by Google Maps to show driving directions), you need to include the VML namespace and some CSS code in your XHTML document to make everything work properly in IE.

Parse text field in sql server

Parsing TEXT field with Long String ALTER PROCEDURE [dbo].[DrawMap_KMLImport] @ProcedureID int, @ProjectID int, @Shape varchar(30) = null, @ObjName varchar(100) = null, @Notes varchar(1000) = null, @Allcoords text = null, @Fillcolor int = null, @ForeColor int = null AS declare @selectByte int declare @coords varchar(7600) declare @startI int set @selectByte = 7600 if @ProcedureID =0 begin if right(@coords,1) ' ' set @coords = @coords + ' ' declare @libID integer declare @objID varchar(40) if @shape = 'point' set @libID = 58 else if @shape = 'polyline' set @libID = 32 else set @libID = 30 set @objID = NEWID() insert into drawmap_objects (ObjID, objName, ProjectID, libID, visible, fillcolor, forecolor) values(@objID, @objName, @projectID, @libID, 1, @fillcolor, @forecolor) declare @latlong varchar(30) declare @long varchar(30) declare @lat varchar(30) declare @index int declare @pointID varchar(40) declare @i int set @i = 0 set @startI = 1 while @startI +...

merge process was unable to create a new generation at the subscriber

the merge process was unable to create a new generation at the subscriber Spent the day with MS trying to fix a similar problem. Found that they have a bug with no fix yet it is caused by generation leveling throwing sp_MSmakegeneration into a loop. The work around that I was given is to turn off generation leveling.update sysmergepublications set [generation_leveling_threshold] = 0

Check if Point in Polygon with javascript

function inPoly(poly,px,py) { var npoints = poly.length; // number of points in polygon var xnew,ynew,xold,yold,x1,y1,x2,y2,i; var inside=false; if (npoints/2 < 3) { // points don't describe a polygon return false; } xold=poly[npoints-2]; yold=poly[npoints-1]; for (i=0 ; i < npoints ; i=i+2) { xnew=poly[i]; ynew=poly[i+1]; if (xnew > xold) { x1=xold; x2=xnew; y1=yold; y2=ynew; } else { x1=xnew; x2=xold; y1=ynew; y2=yold; } if ((xnew < px) == (px <= xold) && ((py-y1)*(x2-x1) < (y2-y1)*(px-x1))) { inside=!inside; } xold=xnew; yold=ynew; } return inside; }

NLST, LIST parameter

http://www.serv-u.com/Help/serv_u_help/additional_ftp_commands_supported_by_serv_u.htm NLST, LIST These are the two FTP commands that deal with directory listings, NLST stands for "Name LiST", LIST is "LIST directory". LIST by default returns a long format directory listing with all files and directories, NLST returns a list of file names only (no directories) unless the option "NLST also lists directories" is enabled. Normally they do not have options, or rather, the only option according to RFC959 is a directory path or file, which should be listed. Serv-U抯 version of the dir listing commands supports most of the UNIX 憀s?options, just like UNIX FTP servers do. These can be convenient for retrieving custom tailored directory listings. Supported options are: -a = list all entries including those starting with '.' -b = force printing of non-printable characters in octal -c = use modification time for listing sorting -d = if argument is a dir list o...