User:Markvandenheuvel/prototyping: Difference between revisions

From XPUB & Lens-Based wiki
 
(14 intermediate revisions by the same user not shown)
Line 1: Line 1:




=Prototyping Session 01 (with Andre Castro) =
=Prototyping Session 01 (with Andre) =
date: 16-09-2019 <br>
date: 16-09-2019 <br>
pad: https://pad.xpub.nl/p/prototyping-20190916
pad: https://pad.xpub.nl/p/prototyping-20190916
Line 33: Line 33:
* [https://files.fosswire.com/2007/08/fwunixref.pdf Unix cheatsheet for basic commands] <br>
* [https://files.fosswire.com/2007/08/fwunixref.pdf Unix cheatsheet for basic commands] <br>
* [http://pzwiki.wdka.nl/mediadesign/Unix_Sandbox#Manipulating_text Manipulating text in Unix] <br>
* [http://pzwiki.wdka.nl/mediadesign/Unix_Sandbox#Manipulating_text Manipulating text in Unix] <br>
<br>


 
=Prototyping Session 02 (with Andre)=
=Prototyping Session 02 (with Andre Castro)=
date: 30-09-2019 <br>
date: 30-09-2019 <br>
pad: https://pad.xpub.nl/p/prototyping-20190930
pad: https://pad.xpub.nl/p/prototyping-20190930


*Basic tasks & experiments:
*Basic tasks & experiments:
:* Creating and configuring personal Keys (passphrase) for R-Pi  
:* Creating and configuring Secure Shell keys (SSH) for R-Pi  
:* Introduction to GIT and working with repositories
:* Introduction to GIT and working with repositories


Line 46: Line 46:


A git project will have a parent folder on your local machine or remote (R-Pi) <BR>
A git project will have a parent folder on your local machine or remote (R-Pi) <BR>
View Pad for step-by-step Q&A for troubleshooting.
View Pad and text notes for step-by-step Q&A for troubleshooting.
 
'''Command to initiate GIT:'''
<br>
*'''git init''' stating the GIT program in your folder (makes a git. Folder)
 
'''Command to make GIT track your project:'''
*'''git status''' shows in red what isn’t tracked and in green what is tracked
*'''git add <file name>-''' starts tracking that file or files
*'''git commit -m <“a comment about what change has been made”>-''' saves the version in the .git folder
 
> HEAD / MASTER: https://stackoverflow.com/questions/4386959/difference-between-head-and-master
<br>
 
*'''git diff <file name>-''' shows the what have change since previous commit
*'''git checkout -- <file name>-''' deletes the changes that where made and comes back to the last commit
*'''git add -u -''' will add all the tracked ones
*'''git reset HEAD <name of file> -''' Undo a commit
'''git log-''' shows the commits
 
<h3>Publishing on XPUB GIT</h3>
Create a new repository
<br>
When you create it gives instructions (choose SSH in the toggle)
<br>
'''Git push''' is pushing (publishing) to git website
 
<h3>Pushing from git to raspberry pi </h3>
- For now raspberry pi will just host our website
<br>
- On the git website we see the published file in dashboard
<br>
''*** sudo let’s you install thing on pi- sudo apt install <software name> ***
<br>''
''*** sudo su- you can be someone else ***''
<br>
use HTTPS link (top right)
<br>
Command to clone to pi:
<br>
'''git clone <HTTPS link> name the new folder'''
 
<h3>Work flow</h3>
* Clone to your computer the folder from GIT (with the ssh url)
* Then pull changes from the GIT
* Or push changes back to the GIT
 
== Git with others==
 
'''How do I clone a repository from git.xpub.nl?'''
git clone (link)
 
'''Make your changes and commit'''
git commit -m 'added new quote'
git commit -a -m 'edited links'
 
'''How publish my commit back to the "remote"?'''
git push
 
'''How do I avoid conflicts?'''
git pull origin master
 
Before you go back to working on projects, where you are not the only collaborators.
 
'''How do I deal with conflicts?'''
<br> Merge conflicts can happen when you are about to push your commit, however git is not able to merge you commit into the remote, probably because another collaborator was also working on the same file.


==Specials issues website==
==Specials issues website==
* location spcial issue #10: https://git.xpub.nl/XPUB/special-issue-x/
* location Special Issue #10: https://git.xpub.nl/XPUB/special-issue-x/
* repository: https://git.xpub.nl/XPUB/issue.xpub.nl
* repository: https://git.xpub.nl/XPUB/issue.xpub.nl
* publishing url: https://issue.xpub.nl/ https://issue.xpub.nl/10
* publishing url: https://issue.xpub.nl/ https://issue.xpub.nl/10
* recepy for working w/ git.xpub.nl: http://pzwiki.wdka.nl/mediadesign/Git#Cloning_from_git.xpub.nl
* recipe for working w/ git.xpub.nl: http://pzwiki.wdka.nl/mediadesign/Git#Cloning_from_git.xpub.nl
<br>
<br>


Line 128: Line 63:
* Evolution of binary code (Boolean algebra, A Mathematical Theory of Communication)
* Evolution of binary code (Boolean algebra, A Mathematical Theory of Communication)
* Human calculator experiment (binary computation reconstructed by students)
* Human calculator experiment (binary computation reconstructed by students)
* AND gates, OR gates, NAND gates
* [https://en.wikipedia.org/wiki/AND_gate AND gates], [https://en.wikipedia.org/wiki/OR_gate OR gates],[https://en.wikipedia.org/wiki/NAND_gate NAND gates]
* Generating low oscillating frequencies and adding them to the Meergranen in Audacity to modulate other modules
* Generating [https://en.wikipedia.org/wiki/Low-frequency_oscillation low oscillating frequencies] and adding them to the Meergranen in Audacity to modulate other modules
* Clapping music: approaching programming this piece of music with Arduino
* Clapping music: approaching programming this piece of music with Arduino
[[File:Hexa-bin-num.jpg]]


===links===
===links===
* https://www.arduino.cc/reference/en/
* Binairy basics: https://youtu.be/LpuPe81bc2w <br>
* Binairy basics: https://youtu.be/LpuPe81bc2w <br>
* Adder Electronics: https://en.wikipedia.org/wiki/Adder_(electronics)
* Adder Electronics: https://en.wikipedia.org/wiki/Adder_(electronics)
<br>
=Pads=
Session 1: https://pad.xpub.nl/p/prototyping-20190916 <br>
Session 2: https://pad.xpub.nl/p/prototyping-20190930 <br>
Session 3: https://pad.xpub.nl/p/prototypingm01 <br>

Latest revision as of 23:40, 4 October 2019


Prototyping Session 01 (with Andre)

date: 16-09-2019
pad: https://pad.xpub.nl/p/prototyping-20190916

UNIX

UNIX is a family of multitasking, multiuser computer operating systems that derive from the original AT&T Unix, development starting in the 1970s at the Bell Labs research center. The OS made it possible for a lot of users to interact with a single machine at the same time. Before, this was done by a batch process via an operator/administrator.

Rasperry Pi

Raspberry Pi is a small single board computer used for learning basic computer science.

Rasperry Pi

Basic tasks & experiments:

  • Logging into the Raspberry Pi
  • printing with Matrix printer, ascii word-art generator (more), text-to-speech
  • creating public_html directory and index.html on the Sandbox (note: remote login not possible)
  • modifying texts (bio) through Terminal using Dadadodo and SED (changing and replacing certain characters)
  • working with Unix HTML - editor: ne nice editor
  • chaining programs a.k.a PIPING (command: |) / concatonate files (command: CAT)


IP adres of the Pi:

145.24.139.127

Copying files from personal machine to Sandbox:

scp file.txt username@145.24.139.127:/home/username

other useful & interesting links


Prototyping Session 02 (with Andre)

date: 30-09-2019
pad: https://pad.xpub.nl/p/prototyping-20190930

  • Basic tasks & experiments:
  • Creating and configuring Secure Shell keys (SSH) for R-Pi
  • Introduction to GIT and working with repositories

How to work with GIT & repositories in UNIX

A git project will have a parent folder on your local machine or remote (R-Pi)
View Pad and text notes for step-by-step Q&A for troubleshooting.

Specials issues website


Prototyping Session 01 (with Michael)

date: 02-10-2019
pad: https://pad.xpub.nl/p/prototypingm01


Topics & experiments:

  • Evolution of binary code (Boolean algebra, A Mathematical Theory of Communication)
  • Human calculator experiment (binary computation reconstructed by students)
  • AND gates, OR gates,NAND gates
  • Generating low oscillating frequencies and adding them to the Meergranen in Audacity to modulate other modules
  • Clapping music: approaching programming this piece of music with Arduino

Hexa-bin-num.jpg

links


Pads

Session 1: https://pad.xpub.nl/p/prototyping-20190916
Session 2: https://pad.xpub.nl/p/prototyping-20190930
Session 3: https://pad.xpub.nl/p/prototypingm01