background preloader

Techniques for authentication in AngularJS applications — Opinionated AngularJS

Techniques for authentication in AngularJS applications — Opinionated AngularJS

Learn Breeze My vi/vim cheatsheet Cursor movement h - move leftj - move downk - move upl - move rightw - jump by start of words (punctuation considered words)W - jump by words (spaces separate words)e - jump to end of words (punctuation considered words)E - jump to end of words (no punctuation)b - jump backward by words (punctuation considered words)B - jump backward by words (no punctuation)0 - (zero) start of line^ - first non-blank character of line$ - end of lineG - Go To command (prefix with number - 5G goes to line 5) Note: Prefix a cursor movement command with a number to repeat it. For example, 4j moves down 4 lines. Insert Mode - Inserting/Appending text i - start insert mode at cursorI - insert at the beginning of the linea - append after the cursorA - append at the end of the lineo - open (append) blank line below current line (no need to press return)O - open blank line above current lineea - append at end of wordEsc - exit insert mode Editing Marking text (visual mode) Visual commands Cut and Paste Exiting

Using FreeTDS to connect to SQL Server from Debian Apache/PHP This post describes how to set up a web site which uses PHP to connect to a backend SQL Server database using FreeTDS. I wrote it because I found the documentation currently available a bit confusing until I had completed the task, when it turned out to be really simple. I am setting up a development environment for a project I will be undertaking which ports a Microsoft Access application connected to a SQL Server database to become a web application. To avoid a complete tie in with Microsoft technologies I decided to use an Apache Web server running PHP as the main platform for this application. Although the final system will probably run on a Windows server, it is much more convenient for me to develop in a Linux environment where I have all my tools setup. I started reading the documentation to figure how to do it but I found it quite confusing. The first puzzle is which Debian packages do you actually need to install. And that is all there is to it.

How to Turn Your Raspberry Pi into a Fully Functional Web Server Posted by dconroy on Mar 28, 2013 in How To's, Raspberry Pi | 12 comments | 4,080 views First we will start with the shopping list. You will need one of each of the required items. This list is assuming you already have a USB keyboard and USB mouse. *Prices are subject to change After you’ve collected your hardware, you need to flash your operating system onto your SD Card. To flash your SD Card, you will need to unzip the image and write it your SD card using Win32DiskImager. After the image is flashed, you can boot your device. host:raspberrypi Username: pi Password: raspberry For this tutorial, I will be using putty. sudo raspi-config The settings I recommend you update are update expand_rootfs change_pass change_timezone memory_split The usual distribution images are 2 GB. After you finish your changes to the raspi-config, you should reboot your pi using the following command: sudo shutdown -r now First, run the following commands from the shell to install Apache and PHP. And that’s it!

tocpj/articles/V002/7TOCPJ.pdf Printing to a zebra printer from VB.Net Printing to a zebra printer from VB.Net by Christiaan Baes (chrissie1) on June 16, 2008 in category Microsoft Technologies VB.NET. Article views: 27,389 Instapaper This code is based on code I found from Rick Chronister, but I can’t find the article anymore. Imports System.IO Imports System.Runtime.InteropServices Namespace ZebraLabels ''' <summary> ''' This class can print zebra labels to either a network share, LPT, or COM port. ''' ''' Programmer: Rick Chronister ''' </summary> ''' <remarks>Only tested for network share, but in theory works for LPT and COM. You use it like so. Dim _print as new ZebraPrint _print.StartWrite("//printserver//zebra001") _print.Write("Print test.") You can also write barcodes with it. like this Dim _print as new ZebraPrint _print.StartWrite("//printserver//zebra001") dim _Text as String = "Print test" _print.Write("A30,120,0,4,2,1,N,""" & _Text & """") _print.EndWrite() You can find all the code characters in your zebra manual. About the Author Chris is awesome.

Sql Server return the value of identity column after insert statement Writing WebSocket client applications - WebSockets WebSockets is a technology, based on the ws protocol, that makes it possible to establish a continuous full-duplex connection stream between a client and a server. A typical websocket client would be a user's browser, but the protocol is platform independent. Note: We have a working example of the chat/server system used for code snippets that will be made available once our infrastructure is in place for hosting WebSocket examples properly. Availability of WebSockets The WebSocket API is available to JavaScript code whose scope is either a DOM Window object or any object implementing WorkerUtils; that is, you can use it from Web Workers. Note: The WebSockets API (and the underlying protocol) are still in active development, and there are many compatibility issues across browsers at this time (and even among different releases of the same browser). Creating a WebSocket object The WebSocket constructor accepts one required and one optional parameter: url protocols Optional Connection errors

fig-standards/PSR-1-basic-coding-standard.md at master · php-fig/fig-standards How to close Bootstrap modal only when user clicks on close image? 3D Hover Effect for Thumbnails and Images View codePlay Walkthrough Description A simple CSS3 3D experiment showing the conversion of an image into a realistic 3D cuboid on hover with a cool shadow effect. The bottom surface of the cuboid is made using a pseudo element which inherits the background image of the thumbnail and is positioned perpendicularly to create the 3D box effect. The second pseudo element uses a translucent background and box-shadow to create a blurred dark shadow for the cuboid. Illustration by Mikael Gustafsson

Related: