Revision [20492]

This is an old revision of PuppySchoolProgramming made by CrustyLobster on 2012-02-06 11:14:15.

 

HomePage > ComponentHowTo Components and HowTos > HowToProgramming Programming
Puppy School

Welcome to Puppy Hacker School. Crackersgo here




New Computer Science at Khan Academy

My First Bash
Change the permissions of a script to run. Right click and change permissions

My First Variable
Introduces input (the read command)
and variables
The read command changes the variables each program run

	#!/bin/sh
	echo "enter two numbers"
	read a b
	c=$(($a+$b))
	echo "$a + $b = $c"
	# or
	let c="$a+$b"
	echo "$a + $b is $c"


Instant Bash

3 lessons starting with a Puppy style 'Hello world'
	#! /bin/bash
	# 16 Dec 2011 Lobster
	# Example 1 hello world example
	
	xpupsay "hello world"
	xpupsay "puppy power"

Speak Puppy a first programming effort
Example usage video Buddhist cyber shrine

More Bash Script

Bash Script GUI
GTK with Bash script may require forum registration

Bacon with Barry Kauler
Bacon is a BASIC language to C converter written in Bash Script
another slice may need forum registration

Smalltalk
Pharo is an implementation of Squeak, which is a unique version of the programming language 'Smalltalk'
run the shellscript Pharo-1.3-13315-OneClick.app you find in the folder/directory
Pharo is now running

Pascal

Python
Python is available in the Puppy programmers devx In Puppy 5.3.1 click on Slickpet icon and go to SFSget in Slickpet. Then click on the Gcc button to download and install. To run Pythn from terminal type python
What is Programming?
NewTeam Python blog

C and C++

Ruby with code academy
Learn to code in Python. Ruby and Javascript from your browser . . .

Maths and more
Project Euler programming to solve maths problems

Getting involved with Puppy
Saluki in Alpha testing. Testing and offering feedback. Fast learning curve.

Compiling
The Devx programming developer SFS is required for Puppy compiling programming for anything beyond Bash script
Go to Slickpet / SFS tab and click on the GNU compiler button
compiling in C and other languages is available
Compiling (forum registration required)

New Run
Process for a new run from DVD booting

First Preparing
1. backup html bookmarks (onto HD)
2. move any essential files to hard disk
3. download and burn ISO

Now first run
1. use 'puppy pfix=ram' as the boot command (start typing when boot: appears on screen) I do this on first boot but is not required for new users
2. Turn on firewall from icon bar bottom right, left clicking runs wizard
3. Do a save after initial set up, I now do max 4GB saves
4. Click on 'Setup' top row of icons for tweaking
5. Use the 'connect' icon. Ethernet is auto connected.
6. In Rox options/thumbnails/show images - I prefer to see images in folders
7. Add my own backgrounds from Hard Drive (usr/share/backgrounds)
8. Change icons. Adjust the style of the clock with Menu -> General Utilities -> PupClockset manager.
9. Put on pup ad blocker, import bookmarks

Hardware

Create your own Linux Distribution coming soon . . .
video tutorial with Sneaky Linux

Remastering
Before you remaster, you need to

1. rename /usr/sbin/xorgwizard to /usr/sbin/xorg-setup
2. copy the attached xorgwizard into /usr/sbin. ( right-click -> Save As) http://diddywahdiddy.net/Puppy500/xorgwizard

What is happening is that on first boot, the attached xorgwizard runs and Lucid boots to the desktop, then it renames xorg-setup to xorgwizard so that users can run xorgwizard. Sneaky, huh?

You also need to change the permissions on /root/Startup/fullstart. You could do that during the remastering process when it gives you a chance to adjust files in /root. The way I do it is to right-click and choose Permissions. So if the name fullstart turns green that means the permissions are correct for it to run on first boot.

creating a md5sum
# md5sum Lucid_Tmxxine-v1.iso > md5sumtxt

Woof2 beyond remastering Advanced


We are The Dorg. Resistance is Futile.


If you don't know how to code, then you can learn even if you think you can't. Thousands of people have learned programming from these fine books:

Learn Python The Hard Way

Learn Ruby The Hard Way

Learn Code The Hard Way

I'm also working on a whole series of programming education books at learncodethehardway.org. These are works in progress, and feedback is welcome.

Learn C The Hard Way

Learn SQL The Hard Way

Learn Regex The Hard Way

A Huge List of Free Books

Programming Languages
Assembly Language Bash C / C++
C# Clojure ColdFusion
Delphi / Pascal Erlang F#
Forth Haskell HTML / CSS
Java JavaScript Latex
Lisp Lua Nemerle
Oberon Objective-C OCaml
Oracle PL/SQL Parrot / Perl 6 Perl
PHP PowerShell Prolog
Python R Ruby
Scala Scheme Smalltalk
SQL
Frameworks
ASP.NET MVC Django Flex
Grails .NET Ruby on Rails
Tools
DB2 Git Linux
Maven Mercurial NoSQL
Oracle Server PostgreSQL Subversion
Vim Emacs
General Topics
Graphics Programming Language Agnostic

Graphics Programming

Language Agnostic

ASP.NET MVC

Assembly Language

Bash

C / C++

C#

Clojure

ColdFusion

DB2

Delphi / Pascal

Django

Erlang

Flex

F#

Forth

Git

Grails

Haskell

HTML / CSS

Java

JavaScript

JavaScript (Node.js specific)

Latex

Linux

Lisp

Lua

Maven

Mercurial

Nemerle

.NET

NoSQL

Oberon

Objective-C

OCaml

Oracle Server

Oracle PL/SQL

Parrot / Perl 6

Perl

PHP

PowerShell

Prolog

PostgreSQL

Python

R

Ruby

Ruby on Rails

Scala

Scheme

Smalltalk

Subversion

SQL

Vim

Emacs

There are 3 comments on this page. [Show comments]
Valid XHTML :: Valid CSS: :: Powered by WikkaWiki