background preloader

Programming

Facebook Twitter

How to stream your music library anywhere. Music streaming services have been around for some time. With the arrival of Spotify and Google Play Music in the US, the average user is able to listen to a huge amount of music on the go. There is an overlooked segment of users that these services do not cater to however, those with vast music collections stored on their hard drives. True, Google Play Music allows you to upload your tunes to their servers for streaming purposes, but that is not the best option when you're dealing with 100GB+ of music.

Enter Subsonic Subsonic is a free media streamer that makes your music collection available from anywhere you can get an internet connection. Once you set up the Subsonic server on the computer where all your music lives, you get immediate access to your entire library on the go. Not only can you listen to all of your music from anywhere, so can your friends and family. Installing the Server Next, follow the installation instructions for your operating system to get up and running. Kali Linux NetHunter - Kali NetHunter. Tutorial: Let’s Build a Lightweight Blog System (part 1) Martin Angelov In this tutorial, we will be making a lightweight blog system with PHP and CSS3. The blog posts will be stored in a folder as files (in the markdown format). The system will not use a database and will not have an admin panel, which makes it perfect for small blogs with only one author. It will have an RSS feed and a JSON read-only API, and will feature a completely responsive design that adapts to the screen size of the device.

In this first part, we are going to write the PHP backend, and in part 2, we will code the HTML and CSS. The posts Posts will be named in the following pattern: 2013-03-14_url-of-the-post.md and they will be stored in the posts/ folder. Each post will be in the markdown format (hence the extension) . # The title of the blog post Body of the blog post. This will make the first line a H1 heading. What is markdown Markdown is a lightweight format for writing text. We can’t simply display the raw markdown directly, first we have to transform it into HTML.

Application Fundamentals. Android apps are written in the Java programming language. The Android SDK tools compile your code—along with any data and resource files—into an APK: an Android package, which is an archive file with an .apk suffix. One APK file contains all the contents of an Android app and is the file that Android-powered devices use to install the app. Once installed on a device, each Android app lives in its own security sandbox: The Android operating system is a multi-user Linux system in which each app is a different user. In this way, the Android system implements the principle of least privilege. However, there are ways for an app to share data with other apps and for an app to access system services: It's possible to arrange for two apps to share the same Linux user ID, in which case they are able to access each other's files. That covers the basics regarding how an Android app exists within the system. The core framework components that define your app.

App Components Activities Services <? Building Your First App. Engineering an Android App: How to Design, Build, and Test – XDA Developer TV. Cookies. Page last changed today See section 6G of the book. This script was originally written by Scott Andrew. Copied and edited by permission. This article has been translated into French On this page I give three functions to save, read and erase cookies.

First an introduction to cookies, and a summary of document.cookie, followed by an example. Cookies Cookies were originally invented by Netscape to give 'memory' to web servers and browsers. This can be annoying in a number of ways. Cookies were invented to solve this problem. A cookie is nothing but a small text file that's stored in your browser. A name-value pair containing the actual dataAn expiry date after which it is no longer validThe domain and path of the server it should be sent to As soon as you request a page from a server to which a cookie should be sent, the cookie is added to the HTTP header. So every time you visit the site the cookie comes from, information about you is available. Cookies can be read by JavaScript too. Example. The Upside-Down-Ternet. Upside-Down-TernetHowTo.

Note: This guide was tested using Ubuntu 8.10. Previous versions may not work. This is a HowTo for setting up Upside-Down-Ternet on Ubuntu. Basically, when a user browses the web, all the images are flipped upside-down. While it's not useful, it's quite a good April Fool's prank. The process uses a transparent proxy, web server, and script to flip the images.

The proxy used in this guide is Squid v2.7. Installation There are two versions of Squid in the repositories, Squid 2.7 (package name squid) and Squid 3 (package name squid3), the former will be installed. sudo apt-get install squid Configuration Squid's configuration file is located at /etc/squid/squid.conf. On the line starting with #http_access allow localnet, change it to read: acl localnet src [your network range, e.g. 192.168.0.1/24] http_access allow localnet On the line starting with http_port 3128, append transparent so it reads: http_port 3128 transparent Find the section TAG: url_rewrite_program. Reload the configuration file: Upside-Down-Ternet. My neighbours are stealing my wireless internet access. I could encrypt it or alternately I could have fun. I'm starting here by splitting the network into two parts, the trusted half and the untrusted half.

The trusted half has one netblock, the untrusted a different netblock. We use the DHCP server to identify mac addresses to give out the relevant addresses. /etc/dhcpd.conf IPtables is Fun! Suddenly everything is kittens! /sbin/iptables -A PREROUTING -s 192.168.0.0/255.255.255.0 -p tcp -j DNAT --to-destination 64.111.96.38 For the uninitiated, this redirects all traffic to kittenwar. For more fun, we set iptables to forward everything to a transparent squid proxy running on port 80 on the machine.

/sbin/iptables -A PREROUTING -s 192.168.0.0/255.255.255.0 -p tcp -m tcp --dport 80 -j DNAT --to-destination 192.168.0.1 That machine runs squid with a trivial redirector that downloads images, uses mogrify to turn them upside down and serves them out of its local webserver. The redirection script. 10 Windows 7 commands every administrator should know. The command line is often the best place to resolve Windows 7 desktop problems. These basic commands will help speed your troubleshooting tasks. Holiday rerun: An oldie-but-a-goodie, these command-line basics topped the list of popular troubleshooter posts last year.

PC troubleshooting is becoming less common in larger organizations, but consultants and techs in smaller shops still have to get their hands dirty identifying and fixing desktop problems. Oftentimes, troubleshooting Windows 7 means delving into the command line. Here are 10 fundamental Windows 7 commands you might find helpful. Before I begin... This article is intended solely as an introduction to some useful troubleshooting commands. 1: System File Checker Malicious software will often attempt to replace core system files with modified versions in an effort to take control of the system. Sfc /scannow 2: File Signature Verification sigverif 3: Driverquery Incorrect device drivers can lead to any number of system problems. 5: Ping. 64 Things Every Geek Should Know - laptoplogic.com.

The term ‘geek’, once used to label a circus freak, has morphed in meaning over the years. What was once an unusual profession transferred into a word indicating social awkwardness. As time has gone on, the word has yet again morphed to indicate a new type of individual: someone who is obsessive over one (or more) particular subjects, whether it be science, photography, electronics, computers, media, or any other field. A geek is one who isn’t satisfied knowing only the surface facts, but instead has a visceral desire to learn everything possible about a particular subject.

A techie geek is usually one who knows a little about everything, and is thus the person family and friends turn to whenever they have a question. If you’re that type of person and are looking for a few extra skills to pick up, or if you’re a newbie aiming to get a handhold on the honor that is geekhood, read on to find out what skills you need to know. 1. USB – Universal Serial Bus GPU – Graphics Processing Unit 2. 3.

Inserting Data Into MySQL From Excel Using VBA - HTNet. Seun asked in an old post of mine, Interfacing with MySQL via Excel; whether it’s possible to submit data from Excel into MySQL. Yes, it is very much possible to do this. In fact, I’ve written a tutorial on how to do this with the help of VBA. First, we create the table that we will use to store the data. The SQL statement below will create our sample table called tutorial. Just copy and paste it into your favourite MySQL IDE or phpMyAdmin. CREATE TABLE IF NOT EXISTS `tutorial` ( `id` int(11) NOT NULL auto_increment, `title` varchar(255) NOT NULL, `author` varchar(255) NOT NULL, `price` float(4,2) NOT NULL, PRIMARY KEY (`id`)) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ; Now that we’ve created the table, it’s time to store some data in it.

Now rename that sheet as Books. I prefer to place the toolbars at the top panel area so they’re out of the way of my Excel spreadsheet. Now it’s on to some programming. Connecting to the Database Server and Selecting the Correct Database. Auto-redirecting methods and examples. By Phil Craven What is Auto-Redirecting Auto-redirecting is the technique of automatically sending a site visitor to another page once s/he has landed on a page. The other page is often on the same website, but it can be on a different site altogether. In fact, auto-redirecting is used when a website has been set up for the sole purpose of ranking highly in the search engines. When visitors arrive at a page on the site, from a listing in the search engine results, they are automatically redirected to the main site.

On-site auto-redirecting is common when a page, within the site, has been created specifically to rank highly in the search engines, but has been so highly optimized that it is no good for people to actually see. Both of those uses are not wanted by the search engines, and they sometimes penalise a page or site for doing it. The engines are not against auto-redirecting when it is done for they what consider to be a valid reason. Auto-Redirecting Methods The "Javascript" method. Ten Common Database Design Mistakes. No list of mistakes is ever going to be exhaustive. People (myself included) do a lot of really stupid things, at times, in the name of “getting it done.” This list simply reflects the database design mistakes that are currently on my mind, or in some cases, constantly on my mind. I have done this topic two times before.

If you’re interested in hearing the podcast version, visit Greg Low’s super-excellent SQL Down Under. I also presented a boiled down, ten-minute version at PASS for the Simple-Talk booth. Originally there were ten, then six, and today back to ten. And these aren’t exactly the same ten that I started with; these are ten that stand out to me as of today. Before I start with the list, let me be honest for a minute. So, the list: Poor design/planning “If you don’t know where you are going, any road will take you there” – George Harrison Prophetic words for all parts of life and a description of the type of issues that plague many projects these days.

Ignoring Normalization. What Makes a Design Seem 'Intuitive'? By Jared M. Spool Originally published: Jan 10, 2005 In a recent usability test, I once again witnessed something I've seen a hundred times before: a frustrated user claiming he knows exactly what is wrong with the interface he was fighting with. What was his suggestion?

"These guys need to make this thing a lot more intuitive. The problem is that this program isn't intuitive enough. It needs to be more intuitive! " I think he used the I-Word no less than 25 times during the session. People Intuit, not Interfaces To those who police the English language, interfaces can't be intuitive, since they are the behavior side of programs and programs can't intuit anything. But, I believe that English is an adaptable medium, so it's ok with me if we call a design intuitive. To answer that question, we first have to look at how people understand the design in the first place. Current and Target Knowledge Points Imagine a long wall where you'll line up all the users who will use your design.

Form Validation | validate form input before submitting the data. Path // → → FORM VALIDATION One of the primary reasons JavaScript was assembled was to check whether the values entered into forms by readers were correct, thereby bypassing the lengthy trip to a CGI program to do the check. Here we'll learn the methods used to validate form input, using the onSubmit event handler. This page was last updated on 2012-08-21 Validating Form Input When you submit a form to a CGI program that resides on the server, it is usually programmed to do its own check for errors.

The CGI script is still more reliable, as it always works regardless of whether JavaScript is enabled on the client-side or not; but having this extra safety barrier is a nice thing to have in place. Implementing the Check We're going to be checking the form using a function, which will be activated by the form's submit event — therefore, using the onSubmit handler.

Where checkForm is the name of the function we're about to create. A general script looks like this: Accessing Values Select Boxes. How To Get Your Very Own Free SSL Certificate. Transmission of your login information over an unsecured connection can be intercepted and hacked. Internet security is a topic of interest for MUO authors and our readers alike. SSL certificates encrypt the login data before transmitting them to your ISP/server making it harder for eavesdroppers to break in. That’s exactly why banks, financial institutions, ecommerce sites etc. use SSL for securing login information, user identity information and credit card data. SSL certificates cost a lot if bought from providers like Verisign, GoDaddy etc. For those us who don’t run mission critical portals, that is not an option. Let us see how to get free SSL certificates from StartSSL. Obtaining The Free SSL Certificate A simple signup form kickstarts the process of getting the free SSL certificate.

However, I got a confirmation mail in less than 5 minutes with a link to the account. Installing The SSL Certificate We have the option to choose between a high grade or medium grade private key. Certificates & Public Key Infrastructure. Unobtrusive Date-Picker Widget V4. Advanced Manual. Untitled. Once you've built several MySQL databases, you'll learn some shortcuts to database design. Many databases are very similar. When creating new databases, developers often build the same basic tables with only slightly different names and some adjustments to columns. Rather than starting from scratch when putting together a new database, developers will sometimes copy tables from an existing database, give them new names, and then make modifications. This can be a big timesaver. Why stop there? Take this trick a step further and put together a generic database with a set of empty, standard tables. In this article I will work through the process of creating a MySQL template and then apply the template to a scenario.

Databases for businesses that sell products typically consist of a core table with product descriptions and other product information. Regardless of the kinds of products our clients stock, we can probably use all of these columns. How Do We Begin?

HTML/CSS

PHP. Javascript. Computer Programming Algorithms Directory.