Stream

Join this community to post or comment

Jed Reynolds

Everything Else!  - 
 
Putting scripts on a schedule is exactly what computers are for.
http://freedompenguin.com/articles/how-to/schedule-tasks-cron/
I tell people who are curious about Linux that you really don’t need to open a terminal to run a Desktop. The terminal is a scary thing for noobs. They get the willies when you start talking about it. While it is true that modern desktops provide pretty much all the point-and-click functionality you could+ Read More
1
Add a comment...

Joseph LaBonde

General Coding Questions  - 
 
How long of a wire could I run to an external temperature sensor from an uno. I am going to try and install my own compass and thermometer using grove sensors and the 96x96 display. Any tips would be great.
1
Jeff Brand's profile photomike klaene's profile photo
3 comments
 
If you have a discrete device on the end, I would think an decent copper wire would work.
Add a comment...

Michael Polinske

Episode Discussion  - 
 
Sad to see Coding 101 go away, but I didn't really care for the most recent episodes with hardware involved coding. Anyone else's thoughts on the demise of Coding 101?
3
Ben Tyger's profile photoChris Darrigo's profile photo
8 comments
 
I liked the ardino development episodes
Add a comment...

Derek Souter

Everything Else!  - 
 
currently getting back in to coding (most of the time I just do VBA in Excel, or VBS for quick windows scripts) - and on a binge of Coding 101 - up to episode 10, the interview of Randal Schwartz.    great show - enjoying it a lot.   :)
1
Add a comment...

Kratika Kasliwal

Episode Discussion  - 
 
Vidcode and Girl Scouts of greater NY are pleased to present Hour of code and Tech Jam that will help enrich students more with the knowledge of Comp Science. #Vidcode #CodeYourVideos
We'd be incredibly grateful if you'd spend just 10 minutes today helping share this fun celebration of Comp Science Education Week on your social networks. You know the drill:

Share link: https://app.vidcode.io/hourofcode/gs
Vidcode lets you customize your own videos with code. You can upload videos from Instagram and hack the filters. Start coding your own videos now!
1
Add a comment...

Bilal Randhawa

Everything Else!  - 
 
Smallest Computer Chip Raspberry Pi, comes with good hardware manufacture and for programming purpose. Computer Science students can carry their Raspberry Pi to College/Universities for their Projects. This chip helps in various types of projects! It can be used in Both Ways, Black-Hat way or …
1
Add a comment...

Donald Acrey

Episode Discussion  - 
 
The show this week with PadreSJ, Lou and Sarah was great! And, the other fellow, too! Thanks!
2
Add a comment...

James Bertino

Everything Else!  - 
 
It looks like I will be going to at least one high school this year for the Hour Of Coding https://hourofcode.com/us . What should I expect from high school level coders?
The Hour of Code is a global movement reaching tens of millions of students in 180+ countries and over 40 languages. Ages 4 to 104.
1
Louis Maresca's profile photoJames Bertino's profile photo
2 comments
 
Louis, Thanks for your reply. I have been to a high school two days in a row now and have found it to be most rewarding. The school even has a computer security class. I asked if they knew what a prime number was and they knew. I then asked if they knew what a semi-prime was and they did!.

When I got past my personal history with computers and programming, I started to show some code. What I did was talk about something then ask if they were following. If not I showed something else or discussed a concept and asked they understood or were following.

Afterwards I had a few kids (boys and girls) ask questions. It was too cool. I had a great time. I have had requests from 3 other schools and can't wait to go to them too.
Add a comment...

Jed Reynolds

Everything Else!  - 
 
So many shell scripts use the find command. Let's get to know it! http://freedompenguin.com/articles/how-to/finding-recent-files/
Finding Recent Files Gnarly Backup School Series Before you suggest that it is better to use a backup program like Bacula or Amanda, I shall insist that making backups from the command-line is mighty useful. In scenarios where you are running in an embedded system (Rpi, Beaglebone), or a headless server that you want to+ Read More
2
Add a comment...

Megha Sharma

Everything Else!  - 
 
Display your Skills & Win Attractive Prizes

Flytxt, the leading Big Data Analytics solution provider for enterprises is launching 'D-Code 2015' , a contest for young students to showcase their coding skills in solving real world data driven problems. The contest will give participants a hands on experience in deriving meaningful insights from data sets. Get here detailed information: http://flytxt.com/dcode2015/

#Quiz #Contest #Flytxt #Coding #Programing
2
Add a comment...

About this community

Coding 101 has become part of "Know How" on the TWiT.tv network! Drop by http://twit.tv/kh or watch on Mondays & Thursdays at 2:30pm/11:00am PST for our Maker/DIY segments... NOW WITH CODE!

Jed Reynolds

Everything Else!  - 
 
 
#Linux  
I probably could have done this in perl and it would have been much faster…but I could say that about a lot of things. My problem is that Perl is not my command-line. Perl can be a REPL, but bash always is a REPL. Ever look at a patch file? diff -u -r -N httpd-2.0.48/include/ap_listen.h+ Read More
1
Jov Palma's profile photo
 
Ok

Add a comment...

hydra guild

General Coding Questions  - 
 
I am not a normal coder i am just a kid/teen i only now a little bit of HTML ... I don't know if this is the right thing for me
1
hydra guild's profile photoBen Tyger's profile photo
5 comments
 
Don't let your age limit you. If you want to learn something, give it a try. Even if you fail, you'll have learned something.

I was 9 when I started playing with (IBM / Apple) BASIC in the 80's. All of the stuff I wrote was crap but I still learned a lot doing it. 
Add a comment...

Derek Souter

Share Your Code!  - 
 
so far up to episode 15, and thought I would show a quick and dirty little python script I did this morning - just to create a random character password


# create a random password
#import the required modules
import random
import binascii
import os
#set the variable and list
Characters = ["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F"] # valid characters in a HEX code
password = "" # set the password to blank
desiredpasswordlength = 16 # set the password length to the default
loopcounter = 0 # this is how many times it has processed the loop to create the password
firstmessage = "How many characters do you want in the generated password? (pressing enter will use the default password length of", str(desiredpasswordlength),"characters)" # i had to use this, due to python limitations on the raw_input method
#clear the screen
os.system('cls')
# choose how many characters you want the password to be - uses the firstmessage variable due to limits on the raw_input method
userpasswordlength = raw_input(firstmessage)
if userpasswordlength.isdigit(): # check that the user has entered a number
        if int(userpasswordlength) < 10: # verify that the number is not too small - i don't like small passwords
                #clear the screen
                os.system('cls')
                print "Sorry, but this would generate a weak password of only", str(userpasswordlength),"characters, my programmer does not allow that, I will now use the default length of", str(desiredpasswordlength)
        else:
                if int(userpasswordlength) > 60: # make sure they are not being stupid - i don't want to try and type in this length of password!
                        #clear the screen
                        os.system('cls')
                        print "Sorry, you must be mad to try and create a password of", str(userpasswordlength),"characters, my programmer does not allow that, I will now use the default length of", str(desiredpasswordlength)
                else:
                        desiredpasswordlength = userpasswordlength # set the desiredpasswordlength variable to the userpasswordlength, assuming it is over 10 and less than 60 characters
else:
        # clear screen
        os.system('cls')
        # tell the user that they didn't enter a number
        print "Sorry, but ", str(userpasswordlength), "is not a number, I will now use the default length of", str(desiredpasswordlength)
       
print
print "creating a password of", str(desiredpasswordlength),"characters." # tell the user that i will now create a password of the required number of characters
print # blank line
#my processing loop - run once for each character
while loopcounter < int(desiredpasswordlength):
    random.seed() # initialise the random number
    randomcharacter1 = random.randint(0,(len(Characters)-1)) # choose a first random Octet
    randomcharacter2 = random.randint(0,(len(Characters)-1)) # choose a second random Octet
    AsciiCharacter = Characters[randomcharacter1] + Characters[randomcharacter2] # concatenate both Octets together to make a HEX code
    if AsciiCharacter > "20" and AsciiCharacter < "7F": # ensure that the character is one you can actually type in!
        password = password + binascii.unhexlify(AsciiCharacter) # add the new character to the current password
        # print the character code and the ASCII character to the screen (uncomment the next line to show the process on the screen)
        #print AsciiCharacter, "equates to", binascii.unhexlify(AsciiCharacter),"    current password is:",password
        loopcounter = loopcounter + 1

print
print "the generated password of", str(desiredpasswordlength),"characters is:", password # output the current password to the screen
print
print
raw_input("Press Enter to quit") # stop the terminal from closing - need to add a menu and allow you to create multiple passwords.....
1
Add a comment...

P Karrer

Everything Else!  - 
 
My project using the WS2812B Intelligent control LED's.

more info at https://github.com/n8oer/Christmas-Tie
3
Add a comment...

Frank Coffey

Share Your Code!  - 
 
can I get a copy of squareiguana's code that translates your
text to morsecode
2
Add a comment...

Donald Acrey

Episode Discussion  - 
 
Escalators of oak and ash that have moved shoppers for as long as 95 years have been kept working after a renovation at the Herald Square store, and have inspired fans on the Internet.
1
Add a comment...

Neil Balch

Episode Discussion  - 
 
So...  I was trying Episode 90 today, and I ran into a few problems with loading modules:  I have added the Module path to the "PSModulePath" Variable: C:\Users\neilb\Powershell Modules, where the file lives at C:\Users\neilb\Powershell Modules\coding101\Coding101.psm1.  I have set the ExecutionPolicy to "RemoteSigned" and am not sure what to do.

Thanks in advance!
1
Louis Maresca's profile photo
Add a comment...

Jason Perry

General Coding Questions  - 
 
Long time no see.

I have been presented with the issue of "I have a lot of family photos," so many that I have run out of file names when I start copying them on to my NAS.

I was wondering if anyone had references for completing tasks like, going through metadata to confirm to compare files to make sure I haven't missed anything, and changing the name to a more robust naming format.

My preference is python even though I am open to other languages and I would rather references for libs so I can learn the code rather than cut and paste solutions.

Thanks in advance for any help you are able to provide.
1
Matthew Reardon's profile photo
 
Jason
I don't know the exact solution that would be best for you.  Amazon is always trying to sell me this book in my recommendations.  Might help you out.  Maybe your local library has it.
 https://www.nostarch.com/automatestuff
Add a comment...

Dino Man245

General Coding Questions  - 
 
Hi I am Hans I am learning Python it seems very interesting and I love it.
I am new to programming I would like to know any other useful languages that I can learn from.Thanks :)
1
Scot StClair's profile photoJosh Hendricks's profile photo
6 comments
 
I quite enjoy C# myself, though I made a few python projects in the past. All depends on what you want to accomplish and personal preference
Add a comment...

yasin yusuf

General Coding Questions  - 
 
hi am yasin , how can mark a limit piont of this perl  while loop 

while($max <= 10) {

print $wordlist $words -> randpattern("CCccnCcn"),"\n";

}
1
Craig Shepp's profile photoyasin yusuf's profile photo
4 comments
 
OK thanks 
Add a comment...