Quantcast
Channel: JavaScript – delog
Browsing all 21 articles
Browse latest View live

Image may be NSFW.
Clik here to view.

Microsoft Visual Studio Express 2012 for Web

Visual Studio Express 2012 for Web, or VS Express for Web as its shortcut is called, is a fairly competent free IDE for developing Browser apps. It has some nice entry-level features, that compete...

View Article



Image may be NSFW.
Clik here to view.

JSON and associative arrays

JSON does not support serialization of associative (key-value pair) arrays of the kind: var a = new Array(); a['a'] = 'a'; a['b'] = 'b'; This means that Socket.IO and other code that relies on JSON...

View Article

Image may be NSFW.
Clik here to view.

Node.js and Sqlite3

Node.js and Sqlite3 can be used as a foundation for apps that are cross-platform, browser-based (leverage HTML5), and network-intensive. In this post I comment about some of the work required in...

View Article

Image may be NSFW.
Clik here to view.

Learning Node by Shelley Powers; O’Reilly Media

Learning Node by Shelley Powers is timely, and should be on the reading list of every JavaScript and server-side developer. I have used Node on Linux for x86 and ARM, and Windows. Its performance,...

View Article

Image may be NSFW.
Clik here to view.

Reset selected option in a dynamically created select tag

I have noted a strange issue in Chrome with the select tag. I use code like the following to dynamically create options for a select tag (with jQuery): var s = $('#selectid'); s.append('<option...

View Article


Image may be NSFW.
Clik here to view.

jQuery html() does not retain form field values input by user

A call to JQuery html() results in HTML that does not retain form field values input by user. Here’s a snippet of code that sets the right attributes of the input and select form fields so that html()...

View Article

Image may be NSFW.
Clik here to view.

Prepare HTML document for printing

Print style sheets should work with most modern browsers, unless they don’t. I’ve had problems with IE 7 and 8 in particular. The following code snippet demonstrates how I massage my document before...

View Article

Image may be NSFW.
Clik here to view.

GStreamer SDK for Windows

Fluendo and Collabora announced GStreamer SDK for several platforms in November last year. I have written in the past about live streaming of WebM over HTTP using GStreamer and Node.js. I decided to...

View Article


Image may be NSFW.
Clik here to view.

Getting started with Apache Cordova

Apache Cordova, or PhoneGap, is a cross-platform HTML5 app development framework. It allows creation of offline HTML5 and hybrid applications. This post recounts my brief experience getting started...

View Article


Image may be NSFW.
Clik here to view.

Packaging source code using Grunt

I have this very specific need to package source code of an Atmel Studio 6.2 project. For those not in the know, Atmel Studio 6.2 is based on Visual Studio Isolated Shell, and retains many of the...

View Article

Image may be NSFW.
Clik here to view.

IP multicasting

IP multicasting is used to target a group of hosts by sending a single datagram. IP addresses in the range 224.0.0.0 through 239.255.255.255 are reserved for multicasting. To find out which hosts on...

View Article

Image may be NSFW.
Clik here to view.

Listening to FM radio using RTL-SDR

I am tinkering with an RTL-SDR dongle to listen to FM radio, on a MacBook Pro with OS X Yosemite, and a Windows 8.1 VM running on Parallels Desktop 10. There are several software options available....

View Article

Image may be NSFW.
Clik here to view.

WebSockets with WCF

This post demonstrates an elementary chat service constructed using WCF and WebSockets. A custom binding that leverages WebSocket support in httpTransport is used. JSON is serialized and deserialized...

View Article


Image may be NSFW.
Clik here to view.

Doing away with labels for text fields

The following code example does away with labels for text fields. A custom attribute called data-default-value contains the default value to which a text field gets initialized. That value represents...

View Article

Image may be NSFW.
Clik here to view.

JSON-RPC

If your HTML5 application requires RPC (remote procedure call) semantics, JSON-RPC is an easy specification to implement. The code below allows sending requests and receiving responses, and leverages...

View Article


Image may be NSFW.
Clik here to view.

Manipulating JSON using Json.NET

Json.NET makes it convenient to manipulate JSON in C# using dynamic programming. Let’s start with a JSON representation we want to create { "menu": { "id": "file", "value": "File", "popup": {...

View Article

Image may be NSFW.
Clik here to view.

Make things smart with HomeKit and Raspberry Pi

As an avid iOS user I have been keen on using HomeKit. That’s when I read about a new – and currently free – HomeKit app in the iOS App Store called Hesperus. I don’t have a HomeKit compatible thing at...

View Article


Image may be NSFW.
Clik here to view.

Prepare HTML document for printing

Print style sheets should work with most modern browsers, unless they don’t. I’ve had problems with IE 7 and 8 in particular. The following code snippet demonstrates how I massage my document before...

View Article

Image may be NSFW.
Clik here to view.

Run Node.js in a Docker container

In this post, I explore how to run a Node.js web application in a Docker container based on the StrongLoop Process Manager image. I also have a requirement to export and deploy the Docker container to...

View Article

Image may be NSFW.
Clik here to view.

Join multi-user chat with node-xmpp-client

XEP-0045 defines the XMPP protocol extensions required to join multi-user chat rooms, and receive and post messages. In this post, I use the node-xmpp-client library to join a multi-user chat room....

View Article
Browsing all 21 articles
Browse latest View live




Latest Images