This is the P2PU Archive. If you want the current site, go to www.p2pu.org!

Scripting 101

My recent threads

You haven't posted any discussions yet.

Recently updated threads

Queries, concerns and suggestions.

Go back to: General discussion

This thread is intented for all your queires, concerns and also if any suggestions.
[As per the plan the course will begin on Web Sep 15 15:00 UTC  2010.]

Pablo Olmos de Aguilera C.'s picture
Pablo Olmos de Ag...
Tue, 2010-09-14 18:03

Sorry, I can't assist at that time, i'm in UTC-4 so it's 11. Work time :/. Are the logs going to be saved?

José Muñiz's picture
José Muñiz
Wed, 2010-09-15 04:11

Ditto for no show (I'm in UTC-4 as well). Hopefully we can vary the meet times (if possible). Thanks for running this course.

Pablo Olmos de Aguilera C.'s picture
Pablo Olmos de Ag...
Wed, 2010-09-15 22:36

Where are you from? Y hablas español supongo o no?

Osledy Bazo's picture
Osledy Bazo
Wed, 2010-09-15 23:30

yo? soy de Venezuela

Marcos Sader's picture
Marcos Sader
Wed, 2010-09-15 23:34

Latinoamérica presente :)

Marcos, de Argentina.

Pablo Olmos de Aguilera C.'s picture
Pablo Olmos de Ag...
Thu, 2010-09-16 00:30

Hahaha así es! Chile Presente :P

Renso Vargas's picture
Renso Vargas
Thu, 2010-09-16 03:19

Saludos, Colombia presente tambien.

Constantine's picture
Constantine
Wed, 2010-09-15 04:29

That's like 9 am for me, so that works!

mark voltz's picture
mark voltz
Wed, 2010-09-15 05:08

I work long hours so I'll be playing catch up at the end of the day. Hoping the days events will be logged...

hemanth hm's picture
hemanth hm
Wed, 2010-09-15 11:41

Too much variation in time zones, its time to make a poll!

Isaiah Gilliland's picture
Isaiah Gilliland
Thu, 2010-09-16 01:53

I think I missed it, was there a log made?

Pablo Olmos de Aguilera C.'s picture
Pablo Olmos de Ag...
Thu, 2010-09-16 07:25

Did you do the reunion?

hemanth hm's picture
hemanth hm
Thu, 2010-09-16 07:52

There was a poll made on the timings, i don't know if it reached all or not, but there was a broadcast made, here is the poll link http://is.gd/fbAG1 Very soon the apt timings and day will be announced. Probability of the course kicking off today is high based on the current status of the poll.

Adnan Khan's picture
Adnan Khan
Thu, 2010-09-16 15:28

Hi, has anything happened so far? I am in UTC +10 so the suggested timings are too late in the night.. I might have to catch up later on too. Looking forward to the first call for action :)

hemanth hm's picture
hemanth hm
Thu, 2010-09-16 15:38

59% of them have voted for weekends, UTC 15:30 seems to the time that most of them have agreed, so that is the best i feel, so we will have an awesome start on Sat Sep 18 15:30:00 UTC 2010. So gear up by then, indeed after all it's P2P we will have loads to learn and teach :0)

K Horne's picture
K Horne
Sat, 2010-09-18 03:42

Hi, what's the URL for the webinar at UTC 15.30 please? If an email went round with the details I din't receive it. Cheers.

hemanth hm's picture
hemanth hm
Sat, 2010-09-18 05:46

Mail was broad-casted to the group, but its not been dispatched to the all, some minor issue with the mail server.

The class URL -> http://p2pu.org/node/5686/chat and the time is *Sat Sep 18 15:30:00 UTC 2010*

Guillermo Movia's picture
Guillermo Movia
Sun, 2010-09-19 20:33

Is there a schedule of next sessions?

hemanth hm's picture
hemanth hm
Sun, 2010-09-19 20:45

Read the logs if you have missed them :

Class 1 -> http://p2pu.org/scripting-101/document/chat-log-class-1
Class 2 -> http://p2pu.org/scripting-101/document/chat-log-class-2

Class 3 scheduled on Sat Sep 25 15:30 UTC 2010

Guillermo Movia's picture
Guillermo Movia
Sun, 2010-09-19 21:07

Thanks, I read them. I will make my git brunch to begin participating. Do you think is better make my presentation here or wait till the next irc meeting?

hemanth hm's picture
hemanth hm
Sun, 2010-09-19 22:30

You can go ahead, need not wait for the next class, do make a new thread about what ever you want to present.

Isaiah Gilliland's picture
Isaiah Gilliland
Mon, 2010-09-20 12:37

I somewhat have a stupid question that I've been holding back... I'm really bad with time, I guess something wrong with the way my brain works. For instance I can hardly remember the order of the months. But anyways i'm not sure how to convert "UTC 15:30" into my time...
By the way I'm not stupid LOL. I just can't work with time very well. Programming I can do, time nope.

Thanks

hemanth hm's picture
hemanth hm
Mon, 2010-09-20 14:15

@Isaiah Gilliland Nice, that is a good trait of a good programmer :D
Now in your GNU/Linux terminal type date -u the output you notice is the UTC time based on it calculate.

Still more, date -u '+%H : %M : %S' is the GMT time now and date '+%H : %M : %S' is your time :)

hemanth hm's picture
hemanth hm
Mon, 2010-09-20 16:49

To get the start time of the class, its always been messy for most of us, so made a simple script to make things easier all you have to do is open your .bashrc, with either 'emacs ~/.bashrc' or 'vim ~/.bashrc' or any editor and paste the code below

function class(){
day1=$(date -d "next saturday" +%Y-%m-%d )
day2=$(date -d "next sunday" +%Y-%m-%d )
time=$(date -d "15:30 UTC" +%H:%M)
echo "See you on $day1 and $day2 at $time on http://p2pu.org/node/5686/chat"
}

After saving and exiting, you need to type bash and hit enter, from now own whenever you open your terminal, you can just type "class" [ without quotes] and hit enter to see when the next class will be.

Isaiah Gilliland's picture
Isaiah Gilliland
Fri, 2010-09-24 10:16

By the way how do we actually turn in our work? Do we use Git? I'm not really knowledgeable about source code management.

hemanth hm's picture
hemanth hm
Fri, 2010-09-24 11:09

Yes, first you need to fork the repo from github and then add your source code and sent me a pull request, ok putting it in easy steps, assuming you are on a Debian based OS, follow the steps as below:

Forking the repo : http://help.github.com/forking/

In your terminal type in each line :

sudo apt-get install git-core

git clone

cd p2pu/variables/bash

touch variables.bash # The file where you will be adding your code

git add variables.bash

git push origin master

Pablo Olmos de Aguilera C.'s picture
Pablo Olmos de Ag...
Fri, 2010-09-24 18:46

You're supposed to fork the repo and then clone your own forked-repo? Because I did clone the original (I don't mind doing it again, just asking).

hemanth hm's picture
hemanth hm
Fri, 2010-09-24 18:55

Yes fork the repo, clone the repo you forked, commit and push and sent a pull request :)

Isaiah Gilliland's picture
Isaiah Gilliland
Sun, 2010-09-26 18:07

o.o See I'm not even sure what forking and cloning is. Never learned about these in college either, I feel really cheated lol. I found a git book, I'll try to catch up on my own. I need to learn this if I want to be serious about it.
Now do you have to add every single new thing before pushing? Or is there an easier way to add anything new? This is for future reference :D

hemanth hm's picture
hemanth hm
Sun, 2010-09-26 20:05

Though a bad practice, one can do :
git add *
git push
git commit -m "Added everything"

Cheat sheet => http://is.gd/fumLw

Adam Collado's picture
Adam Collado
Sun, 2010-09-26 20:56

Shouldn't the commit command come prior to push?

git commit -m "Added everything"
git push

?

hemanth hm's picture
hemanth hm
Mon, 2010-09-27 03:53

Yes even better to do "git push origin master", in case you are having different branches. Commit before push. because we need to commit comment on every push, only those which have been added with git add, gets pushed. So its always better to add each file individually, cause some editors will have tmp buffer with filename~, so saying git add *, will add them also to the repo!