Today's Question:  What does your personal desk look like?        GIVE A SHOUT

 WEB


  Check if query string variable exists ASP.NET C#/VB

One of the problems I encountered when I started programming ASP.NET websites was to do with the Request.QueryString function. The first projects I was worked on were built with VB.NET and I used the following code to check the existence of a query string variable:VB.NET Codeview plaincopy to clipboardprint?If Request.QueryString("[VARIABLE]") <> Nothing Then        'CODE HERE  End If  This code checked if the variable existed and if it was populated.Moving to C# I automatically assumed that the&nbs...

26,179 0       ASP.NET QUERY STRING REQUEST EMPTY NULL CHECK


  Useful functions to provide secure PHP application

Security is a very important aspect of programming. There are many functions or modules in any kind of real programming language providing security functionalities  In modern websites, we may often get inputs form users all around the world.There is a famous saying which says that never trust user input. So in web programming languages, we will often see functions which will guarantee the security of the data input from users. Today we will cover some of these functions in the most famous open source language  - PHP.In PHP, there are few useful functions which is very handy for preve...

26,029 0       PHP SECURITY SQL INJECTION XSS AJAX


  Sending message to Slack Incoming Webhook using PHP

Slack is a popular work collaboration tool and it provides many features which help teams collaborate. It has one function which allows sending messages to channels from external source such as your own web service -- Incoming Webhook. This is extremely useful when want to monitor something and get notified when some event occurs and it doesn't require complicated setup.To send messages using Incoming Webhook, a service URL has to be generated on Slack and then the message can be posted to this URL and it will be posted on your team channel. After clicking "Add Configuration", the process...

25,820 0       PHP CURL SLACK INCOMING WEBHOOK


  Automatically post to Facebook from PHP script

Facebook is currently on of the most important publishing and traffic generating sources for many websites. Manually Cross publishing content on your own site and Facebook seems like a lot of extra work.This post guides you through the creation of a Facebook application that can automatically post messages and other types of content on your Facebook wall.Getting startedBuilding a php script that automatically posts status updates on your wall requires the following steps:Download Facebook APIRegister a Facebook appGive the app rights to post on your wallBuild the post to Facebook scriptGet the...

25,026 2       PHP FACEBOOK API OAUTH AUTO POST


  HTTP Streaming and Internet Explorer

In early 2006, Alex Russell posted about a neat hack that the Google Talk team in Gmail use to support Comet in Internet Explorer, a trick which works as far back as IE 5.01. What great news! A reliable way to stream Comet messages to Microsoft’s browsers. If only it were that easy.I have not been alone in the following findings: after connecting the htmlfile ActiveX object as a streaming Comet transport to my Comet server, everything works perfectly for a few messages, but then abruptly fails. The connection is closed by the browser with the server-side error “Connection reset by...

24,576 0       JAVASCRIPT IE STREAMING HTMLFILE ACTIVEX


  HTML5 photo taking and uploading app implementation

Underthe support of HTML5 standard, Building Web App to take photos is now possible.I will elaborate on how to take photos using Web App, display them on the pageand upload them to the server.1.     VideostreamHTML5 TheMedia Capture API provides the programmable  access to video camera on phones, users canuse the getUserMedia() method to get the video stream provided by video camera.What we need to do is to add a HTML <video> tag and make the videostream from the video camera as the input to the <video> tag.  (Please note currently only Chrome and...

24,176 1       HTML5 PHOTO TAKING MEDIA CAPTURE API IMPLEMENTATION


  A simple example of drawing bar chart with label using d3.js

D3.js is a very popular graph library to help developers draw various kind of charts using JavaScript in a webpage. It utilizes the SVG format supported by all major modern browsers and can help developers get rid of the old age of Flash or server side graph drawing libraries.In this post, we will introduce some simple examples of drawing bar chart with labels using D3.js. First, let's see what will be the final look of the graph drawn.Below is the complete source code for this example.let data = { "FACEBOOK": 30, "GITHUB" : 44, "GOOGLE" : 64, "TWITTER" : 17, "WEIBO" : ...

22,654 0       TUTORIAL LABEL BAR CHART D3 JAVASCIPT


  how to do online promotion to increase the traffic to your blog.

So many seo trics we can do to increase traffic to our blog, One of them is, by doing an online promotion. This trick is often done by the bloggers to increase traffic on their blogs.a very simple thing to do, but carry a big impact on traffic increases and the popularity of a blog on the internet. If you haven't already to do it for your blog, I think you should do it now, because it is more important than you are installing a lot of meta tags in your blogger.I have written some tips for doing online promotion for your blog, please read it and I suggest, you do it immediately, thereafter.Do, ...

22,096 0       PRACTICE WEBSITE ADVICE PROMOTION SEO