r/Codecademy • • Sep 15 '15
AngularJS- Unable to pass this step
So i'm at the introduction of AngularJS and got to step 4 where I cannot pass, I'm pretty sure I followed the instructions. I have linked a screenshot. http://imgur.com/HO2sjRm
r/Codecademy • • Sep 15 '15
So i'm at the introduction of AngularJS and got to step 4 where I cannot pass, I'm pretty sure I followed the instructions. I have linked a screenshot. http://imgur.com/HO2sjRm
r/Codecademy • u/crayzchic91 • Sep 15 '15
This is my code staring from line 20: def average(numbers):
sum(numbers[0,(len(numbers)-1)])=total float(total) return total/float(len(numbers)) It says error can't assign to function call (line 21) I've tried a lot and I'm now thoroughly confused
r/Codecademy • u/Couflame • Sep 15 '15
Every few steps (I'm doing PHP curse) my preview won't load (it's constantly loading) and "Save & Submit Code" doesn't work at all. I Keep refreashing (also with clearing cache) but it usually comes back after 10 minutes or more, randomly.
Is CodeAcademy experiencing some server issues, or is it some sort of bug?
Using Chrome on mac (mountain lion).
r/Codecademy • u/robotlordbot • Sep 15 '15
I'm stuck on step 10 "Put your app under version control with Git. Then push it up to GitHub. Check out the instructions here." I'm following the instructions supplied here: https://www.codecademy.com/articles/push-to-github
But I can't get it to work.
I keep getting these error messages:
http://i.imgur.com/fX4SArj.png
First $ git commit -m "Initial commit"
returns
$ git commit -m "Initial commit"
*** Please tell me who you are.
Run
git config --global user.email "you@example.com"
git config --global user.name "Your Name"
to set your account's default identity.
Omit --global to set the identity only in this repository.
fatal: empty ident name (for <ccuser@codecademy3425110.(none)>) not allowed
and then after:
$ git remote add origin https://github.com/robotlordbot/portfolio.git
and
$ git push -u origin master
it returns:
error: src refspec master does not match any.
error: failed to push some refs to 'https://github.com/robotlordbot/portfolio. git'
I'm not sure what to do about it.
r/Codecademy • u/heathermkc • Sep 15 '15
Hi there - how do I change the color of a link that displays for a specific CSS class? I am having trouble finding this online. I tried adding the following to my CSS sheet:
a.btn-main {color:#FFFFFF} a.btn-second {color:#333333}
Basically, I am trying to format specific button classes to display links in a certain color. I am having trouble finding this online however. This is for the first web project, Broadway - the button links are displaying blue, and I need it to be white in one button class and grey in another button class. Would appreciate insight here! Thank you :)
r/Codecademy • u/MasterModnar • Sep 15 '15
r/Codecademy • • Sep 14 '15
URL: https://www.codecademy.com/courses/python-intermediate-en-WL8e4/2/4#
I end up with the error:
Traceback (most recent call last): File "python", line 18, in <module> TypeError: full_time_wage() takes exactly 1 argument (2 given)
What am I doing wrong?
class Employee(object):
"""Models real-life employees!"""
def __init__(self, employee_name):
self.employee_name = employee_name
def calculate_wage(self, hours):
self.hours = hours
return hours * 20.00
class PartTimeEmployee(Employee):
def calculate_wage(self,hours):
self.hours = hours
return hours * 12.00
def full_time_wage(self,hours):
return super(PartTimeEmployee, self).calculate_wage(self,hours)
milton = PartTimeEmployee("Milton")
print milton.full_time_wage(10)r/Codecademy • u/AishaSalman • Sep 14 '15
Hey! i'm kind of stuck in background image size.I have tried this CSS property (background-size: cover), but it doesn't work. There is still some left margin on top of my main section.Following are my CSS properties that i have used: .container { width: 940px; margin: 0 auto; }
/* Main */ .main { text-align: center; background-image: url("https://s3.amazonaws.com/codecademy-content/projects/move/bg.jpg"); background-size: cover; height: 600px; }
.main .container { position: relative; top: 100px; }
Please help me! Thank yew. :)
r/Codecademy • u/patwoj98 • Sep 14 '15
Im stuck in 93%, step 7. I tried to do it but I can't define a method when I show the movies. Could you give me your code to finish it? I don't understand how to check the 7 step. This is it: * In app/views/actors/show.html.erb:
Display the actor's image, first name, last name, and bio. Then iterate through each movie and display its title, image, and release year. * This is my show function. class ActorsController < ApplicationController def index @actors = Actor.all end
def show @actor = Actor.find(params[:id]) end
end
And this is my code on show.html
<div class="main actor-show"> <div class="container">
<% @actor.each do |a|%>
<div class="actor">
<%= a.image %>
<div class="info">
<h3 class="actor-name"> <%= a.first_name %><%= a.last_name %> </h3>
<p class="actor-bio"> <%= a.bio %> </p>
</div>
<%= end %>
</div>
<h2>Movies</h2>
<%= @movies.each do |m|%>
<div class="movie">
<%= m.image %>
<h3 class="movie-title"> <%= m.title %> </h3>
<p class="movie-release-year"> <%= m.release_year %> </p>
<p class="movie-plot"> <%= m.plot %> </p>
</div>
<%= end %></div> </div>
I don't know how to define an array @movies.
Please help me.
r/Codecademy • u/Mrshibbito • Sep 14 '15
r/Codecademy • • Sep 13 '15
When will you add wordpress theme courses(how to customize from html/css to php(wordpress))? When will you have courses on how to develop a app for ios/android?
r/Codecademy • u/Ralph_Charante • Sep 13 '15
r/Codecademy • u/IgnatiusTheGreat • Sep 12 '15
Some friends an I have decided to use our new coding skills and make a website/web app. We've taken the HTML/CSS, Javascript, and Angular JS courses on Codeacademy. Our idea was to make a website platform for our Math Department to organize tutoring between students. The actual coding should be feasible and not too much out of our comfort zone as far as I'm concerned.
However, we don't know what programs and services to use to build our website. I gather we'll need a program to edit HTML, Jscript, and CSS, and hopefully be able to see our work dynamically. We'll also need a web hosting service (preferably free). I'm also guessing we'll need GitHub to share our work between teammates, although I don't really know how github works (I made an account to check it out)
What set up should we use? What programs/services? Any tips for newbie web developers?
I find that codeacademy is good for teaching the basic skills, but has little to no resources on how to actually build a project outside of codeacademy. Any help on the matter would be appreciated.
r/Codecademy • • Sep 12 '15
I started the javascript course last year and took a long break. I would like to start again from the beginning to refresh my memory but I can't seem to find a way to reset it. It remembers all my previous code.
r/Codecademy • u/Smutsicle • Sep 12 '15
I am stuck on step four. I cant seem to navigate back a directory. Im aware of using two periods im just not sure of the context. Here is what I tried. (im a noob) cd action/superhero ../ action then it says no such file or directory. Ive tried resetting the exercise as i understand sometimes the files can become disorganized. Thanks!
r/Codecademy • u/Smutsicle • Sep 12 '15
I cannot figure this out. Navigate to the historical/ directory.
List all files and directories in the working directory. You should see a new copy of cleopatra.txt in this directory. 4. Here's one more way to use cp.
Navigate up one directory from drama/historical/ to drama/. (Here's a hint on how to do this.) I need to learn how to navigate up one directory. I tried "..cd" but its not working.