Author: ryan

  • The loopback interface is very important

    This is more of a note to remind me how to fix it next time, but it could come
    in handy for others in the same situation.

    I restarted my virtual private server this morning, and after it came back up I
    noticed none of the websites would load. The server runs
    Varnish as a front end to all the websites,
    and all it was doing was throwing up 503 errors and guru meditations. This means
    that varnish can’t connect to any web server. The websites on the host are
    served by nginx and apache. I double checked that they were running and that
    they were on their correct ports with netstat -tulpn:

    tcp        0      0 0.0.0.0:8008            0.0.0.0:*               LISTEN      391/apache2
    tcp        0      0 0.0.0.0:88              0.0.0.0:*               LISTEN      12365/nginx.conf
    

    Ok, everything is running, why won’t it work!! Next is to try to telnet to the
    servers:

    telnet localhost 8008
    

    That’s odd, it never connects. Let me try it from my computer (IP address
    obscured. Why? I don’t know, it seems like a good idea :-).

    telnet 75.255.255.255 8008
    

    It connects right away. So for some reason, the server can’t connect to other
    services on itself, even localhost. After some searching I came across a post
    that mentions that sometimes the loopback interface doesn’t come up. I check:

    root@vps:~# ifconfig
    venet0    Link encap:UNSPEC  HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00
              inet addr:127.0.0.2  P-t-P:127.0.0.2  Bcast:0.0.0.0  Mask:255.255.255.255
              UP BROADCAST POINTOPOINT RUNNING NOARP  MTU:1500  Metric:1
              RX packets:32802 errors:0 dropped:0 overruns:0 frame:0
              TX packets:35269 errors:0 dropped:52 overruns:0 carrier:0
              collisions:0 txqueuelen:0
              RX bytes:10716892 (10.7 MB)  TX bytes:25360227 (25.3 MB)
    
    venet0:0  Link encap:UNSPEC  HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00
              inet addr:75.255.255.255  P-t-P:75.127.3.166  Bcast:0.0.0.0  Mask:255.255.255.255
              UP BROADCAST POINTOPOINT RUNNING NOARP  MTU:1500  Metric:1
    

    I’ll be a monkey’s uncle, the loopback interface isn’t up! A quick sudo
    ifconfig lo up
    and I am back in business!

  • Don’t wait for the New Year

    It’s the last day of the year, when a lot of people contemplate the previous year. This is also the time when many start planning on new beginnings in the new year. I say, why do we wait? Shouldn’t we be planning on new beginnings throughout the year?

    So many times when starting new initiatives at school we have this urge to wait until natural breaks, such as the start of a new school year. It feels totally natural in a school setting since we have such distinct starts and stops, unlike a lot of occupations. After college I worked a couple of years at a computer store and bank. It was weird not have such breaks. To start something new, you set the date as soon as possible.

    Unfortunately, this doesn’t happen nearly enough in a school setting.

    I came here tonight because when you realize you want to spend the rest of your life with somebody, you want the rest of your life to start as soon as possible. –Harry (When Harry Met Sally)

    When I want to incorporate something new, I want it to start as soon as possible. Don’t make me wait for some arbitrary date just because we’ve always done it that way. I want the rest of my life start as soon as possible.

    Happy New Year everybody!!!

  • What a disappointing article, tablets vs. laptops

    Scholastic has posted a versus article, Laptop Vs
    Tablet
    , where Gary
    Stager and Dan Brenner duel over what is the best. Both arguments are very weak.
    Mr. Stager takes the old arugment that the iPad is a consumption
    device
    :

    The iPad is a consumption device. Sure, you can use it for Web browsing, video-watching, or note-taking, but the laptop affords a much greater range of expressive possibilities. Apple’s embrace of digital textbooks reinforces a quaint view of education that transfers agency from learners to publishers. The tools for creating e-books, such as iBooks Author, require Macs, but the laptop cannot read the books it creates, forcing schools to choose between textbooks and computing. Apple has made it clear that education is about content delivery and testing, no longer about the power to be your best.

    The argument is no long valid. Creation apps that I have used on my iPad include
    Codea, Pythonista, iMovie, Garageband, Elements, iA Writer, Google Drive, and
    QuickOffice. Instead of telling us why an iPad isn’t the right tool, tell us why
    a laptop is.

    On the other hand, Mr. Brenner tells us what they do on the
    iPad
    . Paperless
    workflows, email, textbooks, these are some of the things they do on the
    tablets. I didn’t see anything in the list that you can’t also do on laptops. In
    fact, he ends the column with “P.S. I wrote this article on my laptop computer
    at work. It seemed like the right tool for the job!”.

    The final decision in these discussions usually boil down to:

    1. What can we afford?
    2. What can we support?
    3. What supports our teaching?

    How did your district decide?

  • Gadgets and coding core to schools

    Geeking out young: gadgets and coding need to be core in US schools

    Though many feel that there are already too many gadgets and too much internet in kids’ lives, Arboleda and One Laptop per Child have the opposite viewpoint. He said that a laptop could become a precious, transformational object for a child, taking them to new places in their personal development — especially if coupled with internet access. As for the sorry state of computer science in schools stateside, Yongpradit emphasized the need for teacher certification programs in computing, building a curriculum the same way math and sciences were: one block at a time. Arboleda took it a step further, saying that access to digital tools and internet has become “a basic human right” — severely disadvantaging those who lack them.

  • Ten ways to be average

    10 Common Characteristics of Average People writes:

    There are plenty of resources online if you want to learn how to be successful, but what about those who are only looking to achieve adequacy? If you’re shooting for the big dog pile at the bottom, here are 10 common characteristics of average people to aim for:

    Ugh, I’m very guilty for a couple of these.

  • Why public schools outperform private schools

    Why Public Schools Outperform Private Schools writes:

    Would it surprise you to learn that students attending traditional, district-run public schools outperform their peers in charter schools and private schools?

    Via:@jorech via @colonelb

  • Stack Exchange has an English Language Site!

    Do you have a question about the usage of English, such as Should I put a
    comma before the last item in a
    list?
    ,What
    is the correct way to pluralize an
    acronym?
    ,
    or “My friends and I” vs. “My friends and me” vs. “Me and my
    friends”

    look no further than the Stack Exchange site English Language &
    Usage
    .

    Stack Exchange is a collection of
    question and answer sites, with topics that range from Server
    Fault
    (server administration) to Movies &
    TV
    to Gardening &
    Landscaping
    .

  • Bruce Baker wants to analyze educational reforms correctly

    Meet The @FiveThirtyEight Of Education. Bruce Baker Will Bring Sanity To Reform Hype

    Stop Cheerleading Education Miracles, i.e. Education Effects Are Small

    “We really have failed in the teaching of mathematics and probability,” decries Baker, who regularly debunks myths about unicorn policy changes that radically improve student outcomes. At scale, experiments rarely move the needle more than a few percentage points. Statisticians measure outcomes in “standard deviations”, or how students move relative to their peers.

    I’ve added his blog to my RSS reader. Unfortunately, it seems that for policy
    makers the only data that is good is data that confirms their own beliefs.