Showing posts with label computers. Show all posts
Showing posts with label computers. Show all posts

16.11.23

What Learning to Program in the 1990s Taught Me About How Computers Work and Why Generative Artificial Intelligence Makes Sense to Me

It's circa 1991 — during my middle school years — I attended a small Catholic school where I enrolled in a computer science class. The computers ran on a slow-running operating system called MS-DOS that included a cool feature — a way to code in a basic programming language called QBasic, featuring a simple lime green blinking cursor on the screen. It ran Nibbles, a fun game to boot, but to play more advanced games, we used floppy disks, slightly larger than a postcard but smaller than a standard piece of paper, containing a metallic tape where data was stored.

Illustration of a classroom filled with old Commodore computers running on QBasic
I requested Dalle-3 to create an illustration depicting
my computer science classroom, vividly filled with
Commodore computers operating on QBasic.

The fun aspect of these classes involved playing games on these floppy disks. However, equally engaging was experimenting with QBasic. It's a simple, beginner-friendly programming language developed by Microsoft. It was quite popular in the late 1980s and early 1990s for teaching programming basics in an easy-to-understand way. QBasic is known for its simplicity, making it a good starting point for beginners in programming. We could create command lines and basic math problems. Our teacher introduced us to subroutines, enabling us to develop more complex programs like a quiz show. For instance, I programmed a game where the user would answer questions like "What is the capital of Washington State?". Correct answers led to more challenging questions, while wrong ones could end the game or reduce progress. By the way — the answer is Olympia.

Over time, I developed an advanced quiz bowl game with fifty unique questions embedded in different subroutine categories, enhancing my programming skills. My fascination with QBasic grew, prompting me to research more about it in the public library. I learned to replicate other programs, such as the classic snake game.

For illustrative purposes — here's a snippet of QBasic code.

SUB AskWashingtonCapital
    DIM answer AS STRING
    PRINT "What is the capital of Washington State? The answer is Olympia."
    INPUT answer
    IF LCASE$(answer) = "olympia" THEN
        PRINT "Correct! Now for a more difficult question."
        AskUSTerritory
    ELSE
        PRINT "That's not correct. Let's try an easier question."
        AskUSCapital
    END IF
END SUB
 


Fast forward to 2023, the world of generative AI is an evolution of my early programming experiences. When using a tool like ChatGPT, asking a question like the capital of Washington State, it processes the query using its neural network and provides an answer, similar to the if-then statements in my quiz game. However, the complexity and scale of these large language models (LLMs) are far beyond what we had back then.

These models, like ChatGPT, are based on vast amounts of data fed into them, enabling predictive text generation. Yet, unlike human cognition, these computers don't 'understand' in the same way we do. They process information based on input from human-made sources, creating an artificial neural network.

Looking ahead, these neural networks could eventually update themselves, especially if they gain access to the internet or large databases. This self-improvement capability in computer programs could lead to significant advancements in AI, potentially paving the way to what some refer to as 'the singularity.' The future of this technology is uncertain, but its potential is undoubtedly intriguing.

27.9.12

Book Review: What is Intelligence? — Douglas Hofstader's Book Godêl, Escher, Bach: An Eternal Golden Braid


   
The Constellation Orion
In Douglas Hofstader's book about music, mathematics and artificial intelligence, Godêl, Escher, Bach: An Eternal Golden Braid, he mentions briefly some requirements for intelligence: learning, creativity, emotional response, sense of beauty and sense of self. Hofstader argues that if indeed this is intelligence then a computer would have to be able to do more than play chess or compute π x many times after the decimal point in order to be considered intelligent.

Are Intelligent Machines A Possible Reality  
    I must say, I am intrigued that one day intelligent machines will be a reality, whether or not my hopes are my own idealistic flights of fancy, or the influence of too many Phillip K. Dick novels and Ridley Scott movies has had on my adolescent mind is hard to tell. I am still fascinated sometimes by the prospect of artificial intelligence: a sentient duplicate of a human being that can indeed be intelligent  it is a long way in coming, but my sci-fi mind is nevertheless intrigued by it, even though the massive work that will have to be done to even get to that stage is immense. Some even doubt it is even possible. On one side there is the argument that it is possible, the ability to reproduce human natural intelligence, whereas on the other side of the argument is the contention that machine learning is not the same as how human beings learn. While I wait for the day we can unlock the minute, complicated structures of the brain and apply them to artificial structures, I am more intrigued by the requirements themselves  for humans.  Each one poses a unique set of questions in of itself, not only in its reference to artificial intelligence but the question of human potential itself, how we possess and reflect the myriad facets of what it means to be human.  It seems we have not exhausted the possibilities of human intelligence, let alone an intelligent machine.
How Can You Measure Intelligence?
    Take learning, for example, the first on Hofstader's list.  Learning seems to be an obvious component of intelligence.  Usually, it is learning that we use to gauge human intelligence.  We measure people up by the scores they make on their GED's and SAT's.  Our schools are super-charged with advanced placement courses and gifted classes; schools have quiz bowls and Jeopardy! is a popular show, not to mention Trivial Pursuit and Scrabble.  In fact, a machine beat humans in a recent bout of the minds in Jeopardy! last year.
     The human lost at that game. The computer had been able to mimic natural intelligence to such an extent it beat out the human brain. The human mind is incredible. It can know so much / and in many ways is superior. The machine beats us in sheer computational power. But the human brain knows short cuts. But sometimes we short circuit (excuse the pun). My godmother marveled to me on the phone how she has been hooked on Jeopardy!, canceling dinner plans to watch the "Human Encyclopedia" respond to every answer correctly.  She lauded the "Human Encyclopedia" who swept Jeopardy! for six months straight with his correct answers, only to lose to a Final Jeopardy! question about H & R Block.  Although we marvel at this man's learning achievements, secretly we are convinced that it is merely a ploy to bolster ratings and that perhaps Mr. Jeopardy! winner was happy with his taxable 2.5 million dollars and decided to go home, content.
    A computer can store Jeopardy! data too  easily spit it out when appropriate.  Have you ever tried to beat the computer on an electronic quiz game?  It's not easy.  I still haven't been able to beat the computer at checkers, let alone chess.  But, computer learning is different than a human's capacity to learn.  A computer can only store a string of data as a series of 0's and 1's.  It cannot learn anything that has not deliberately been stored into its hardware.  This was the limitation of the Jeopardy! computer. It was only able to cull from date stored in its database and it was not connected to the internet. A computer dictionary cannot come up with an adjectival form of the word moon, for example, if it isn't already stored there.  A human can.  We can surmise that the word lunar means "similar to the moon" or "referring to the moon." The ability to take what she knows to form new ideas and concepts.  Lunar.  A human can stumble upon lunar and possibly derive its meaning just from the word itself, based on what she has already learned.  A human possesses creativity.  It may be silly to think we thought the moon was made of green cheese but it is this erroneous thinking that built our imaginations to know for sure. Galileo was wrong  the moon is not made up of larges seas as he had thought the dark spots on the moon were, but that insistence to know is the catalyst that eventually spurred scientists to build more and more powerful telescopes.
    A computer can mimic learning.  For example, Amazon.com seems to learn what kind of books you like, the music you listen to, the magazines you buy.  How does it do that?  I can tell my word processing program to learn a new word, or to even forget a word. But, this is all mimicry.  There is something different about a person learning a new word and a computer's storage of an electronic lexicon. The human capacity to know words, for example, to know a vocabulary is not based on a repository of knowledge stored in the brain. We are both open to the world and at the same time have the ability to process what we learn through our involvement with others through language that does not correspond to the way a search engine query works. It is not like I hear the word "lunar" and then my brain searches for the keywords and then finds it and links it to its definition stored in my brain. How we actually have the ability to think through language is still somewhat of a mystery. To think it is done the same was as a computer is facile thinking.

14.1.11

How to Create Dock Icons For Web Apps in Mac OS X


Do you use web apps often? Do you want to access these apps the same way you would access a normal Mac app in your dock? Well, you can. I create dock icons for Web Apps using a few simple steps on Mac OS X.
Creating Dock Icons for Web Apps is Easy with Fluid
I sometimes want to use Web Apps just like any other App on my Mac.
  1. Download and launch Fluid, free software that creates a “site specific browser” for Web Apps you use all the time. 
  2. Download an icon or .png file for the Web App you want to install. Using a web browser and search engine simply search for “Facebook icon” or “Google Docs icon” to find .icns files or .png files. Download the file you want to use to your computer. There are tons of styles available and most are for free. *For Mac users, .ico files will not work.*
  3. Launch Fluid. Type the URL of your web app. I want to install Facebook so I insert “www.facebook.com” and give it a name, “Facebook." Select “Application Folder” for the location of the app. 
  4. Upload your icon or PNG file. Select other from the menu. Choose your icon or PNG file you downloaded in step 2. You can use the “select website favicon option” but I prefer to upload my own. 
  5. Fluid places your Web App in your Applications folder. When you launch the application it starts up and appears in the Dock just like any other application. 
  6. Simply use the Web App like any other app. Click it in the dock and it launches as a stand-alone application.
Cool Features: You can work in your Web App environment in full-screen mode. It allows you to focus on a project without the distraction of your web browser. Gives your Web Apps like Google Calendar, Google Docs, Facebook, etc., pride of place on your dock with your other Apps.


Be aware: Only use for apps you use often to increase your productivity. Also, it can be a pain finding a decent resolution on .icns and .png files. Choose your files with care.

18.4.10

How to open multiple webpages in tabs on startup in Firefox (3.6.3) on a Mac

If you want more than one homepage to load when you start Firefox, say your favorite news sites, for example, then this little tip may be useful so you don't have to manually load the pages every single time.
  1. Go to Preferences on Mozilla Firefox

2. Select the “General” pane in the taskbar.  In the location (s) field you probably already have your default home page.


 3.  In the homepage field type in your desired web pages separated by the | key.
4. Voila. You're done. Now when you open Firefox all your favorite web pages will open in tabs.

* Caveat: If you are not sure you want tabs to open with the same web pages EVERY time you start up Firefox, and you want more control over your morning routine, then click here to learn how to create a bookmark to open in tabs.

How to set up a bookmark folder in Firefox (3.6.3) to open your favorite sites in tabs on a Mac

In a previous post, I demonstrated how to open multiple web pages in Firefox in tabs on startup, but if you're like me, sometimes it is just annoying to have your new sites pop up every time you open up an application, so this trick may serve people better who may only want pages to open in the morning and a certain set of pages to open in the evening. Or set up pages to open for a specific task, like research a paper, for example.

16.4.10

Lesson Plan: Using the Apple 1984 Superbowl Commercial in the Classroom

The commercial is a fun clip to use in the classroom.
10 Iconic Super Bowl Commercial Stars: Where Are They Now?
Time allowance: 45 minutes
Objectives:
Teach students how to articulate abstract ideas.
Demonstrate brainstorming techniques
Analyzing multimedia using literary terms
Incorporating quotations into student writing

Note: this is a useful lesson as an introduction or a wrap-up to classes devoted to dystopian literature, like 1984, Brave New World, or The Giver or for teaching Thoreau's Walden, or any film or text focused on the tension between individual will versus societal hegemony.

Warm-up
Start the class off with a quick free write. Have the students write about the following prompt:

What is the difference between being in a group versus being alone?

After the students have had a few minutes to write, ask the class to brainstorm what is the difference between an individual and a group. Whip around the room and share ideas on interactive whiteboard or on class chart board. You can use the example I use to start a class discussion. If I walk into a classroom with a classroom of students dressed in uniform, how do I tell each student apart? What gives us away as individuals when we are in a crowd.

Beware. The discussion will begin to take a life of its own and you as the teacher will have to allow every student to talk. Community expression and individuality is an important topic among teenagers so be ready for some interesting comments from your students.
An Astronaut Frequents an Apple Store

Activity
After you have allowed the students to express their thoughts out loud, use the board to generate a chart of the advantages and disadvantages of community living and do the same for individuality. You might want to include a definition of both terms, which you can add to the board. Or, you can have the class come up with a working definition of both concepts.

After you have compiled the list, explain to the class, that many novels and films deal with the tension between community and individual and as a class explain to them that they will begin to analyze some important scenes from literature and film.

At this point, if you want, you can have the students quickly popcorn a list of films and books that possibly illustrate the theme a tension between the two.

Ask the students if they know what apocalyptic literature is or if they know what dystopian literature is. Read a definition from a literary dictionary or other reliable source and explain to the class that there is a genre of literature that deals with the fall of society, the community, and how this affects individuals.

1984 Apple Commercial
Use 1984 as an example. If you want, you can briefly explain the plot, which can be found here. Make sure the students know it is a novel by George Orwell and it is famous for introducing the phrase, "Big Brother is watching." Ask the students if they have ever seen the television show and ask them why they think the show is called by this name.

Background
Explain the background of the 1984 commercial which can be found here. Have the students watch the clip several times, telling them to jot in their notebooks in list form everything they notice about the film: color, sound, tone, mood, dialogue, etc.

Apple Computer, INC produced an ad spot for the 1984 Superbowl to sell its new product, the Macintosh desktop computer. The computer would eventually inspire a long line of desktop computers boasting an easy-to-use GUI (graphic user interface) and the first computer to introduce friendly smiling icons and folders.

The commercial is a visual allusion to George Orwell's classic dystopic novel 1984. The short clip features a Big Brother figure imploring dull, grayed-out workers (played by skinheads) to stick to the status quo. It is hard to follow what he says, but he says something about a "garden of pure ideology" and something about being safe from the pests. It is obvious the drones are like IBM computers. The running gag line is PCs are conformists and Macs are individualists. Midway through the commercial, the Mac pest shows up, though, amidst the sound of an alarm, and a team of SWAT men chases her down really cool sci-fi corridors. She wields a hammer which she swings into the screen. The screen explodes and the commercial ends with the words: "On January 24th Apple Computer will introduce Macintosh. And you'll see why 1984 won't be like 1984."
More on Wikipedia

Writing
Pass out a handout of at least twenty quotes

You can use the following quotes if you wish, or you can research your own quotes about community.

Students in a group of three or four discuss each quote and relate its meaning to the concept of individual and community.
For each quote, students discuss, "Who wrote the quote? How does the thought express individuality or community? What quote(s) resonates with your generation?

Extension Activity: 
Have students write a creative piece on an advertisement that can be used to demonstrate the similarities and differences between abstract ideas. Or, they can write an essay on the 1984 commercial incorporating the quotations.

26.1.10

Apple's New Creation (and I hope it's not called an iPad)

A company known for its draconian tactics to protect internal secrets, Apple is expected to announce its new creation tomorrow (which was sent out to "friends" last week but cannot be found on Apple's site).
Everyone is abuzz. Since Christmas, I have been reading blog forecasts about the secret Apple device. What's it going to be? Apple remains mute. The consensus among the technorati seems to be some kind of multi-touch super-sized iPod on steroids running a version of the Mac OS X operating system.

As David Pogue wrote in his blog, quoting Robert Burns, “There is no such uncertainty as a sure thing.” The certainty is so certain all of us are in some kind of suspended state of uncertainty: "What's it going to be?!" I have never experienced such a paradox: an emphatic declaration of a device's existence that may or may not exist. When journalists write about the iPad (I hope they don't name it this, as Mad TV humorously demonstrated), iSlate, iTablet, Mac Tablet, MacBook Touch - or whatever the damn thing's going to be called - it is usually prefaced with the epithet "the probable" or "expected" Apple miracle device. Are we talking about an unidentified flying object or a real thing? I dunno.

The device (which may or may not exist) has been deemed to have any number of features:

  • a Kindle killer
  • vendors will allow consumers to download lush, color graphic books, magazines, and newspapers. I must say if I can read National Geographic in full color and swipe the pages with my finger I want an iThingy too. 
  • a Nexus One killer
  •  If the new device signs on with Verizon who's going to want a Nexus One? I really doubt though that people who will have bought a Nexus One anyway are going to drop it for Apple.
  • Video Game Console Killer  
  • Adolescents and twenty-somethings will supposedly be wowed by the device which will undoubtedly beat anything the Playstation can do (Grand Theft Auto anyone?)
  • and even a laptop killer
 Well, if all you do is search the net and check email, then yes a multi-touch device would be an adequate replacement. But, anything more than that, in my humble opinion, is going to need a laptop or a desktop.    
I have read it may have the following features:
Whatever "the creation" is, I have the same sinking suspicion as David Pogue, that "there are some aspects, some angles, that nobody’s guessed." Apple has been notorious in the past for concealing its hidden angles. Throughout the company's history, Apple has revealed products that wow the masses and changed the status quo. Here are some notable game-changing features Apple has wowed us with in the past:
With the company's successes, however, there have been some notable guffaws, 
  • the Newton (which seems to be the closest product matching tomorrow's rumored gadget) 
  • or the Cube. Now, even though the Cube was a failure, Apple persisted and came up with the Mini. So, if tomorrow's device is some kind of tablet PC, hopefully, it will forgive the tarnish of the Newton.
Amidst the mass of speculation, I think I can offer one piece of clear, objective fact. Whatever is unveiled at tomorrow's press conference in San Francisco will inevitably face the trial of the hoi polloi. If the announcement does not live up to its hype, then Cupertino will surely suffer. People will be quick to say, "Apple has lost its ability to produce cutting-edge products." If the product dazzles, then Apple shares will exponentially rise. But: here is the rub. How quickly can Apple's Research and Development team concoct the next WOW device before the public gets bored of this one (which is not even out yet!)? Apple has always been able to foresee a market niche even before the market realizes such a niche exists. Case in point is the iPhone. Apple realized creating content for the mobile web was the way go even though many phones on the market only had measly WAP access to the net.

Apple's greatest strength is its weakness. Can it continue to foresee market trends? With Google now in on the hardware market, I think Apple will have a tough time in the future staying above the rest. I personally do not think they have lost their edge.

My own prognostication is that tomorrow's device will surely wow us. We will be impressed. I have a hunch though, that by Christmas 2010, the technorati will be buzzing again about another fabled Apple device. The question is, can Apple keep up with this game? What will the rumors be in six months? The flexible Apple device that fits in the palm of your hand, feels like a book, but miraculously is made up of tiny nanomites that feed its internal architecture (thanks GI Joe)!

2.11.09

Software Review: Google Voice

Google has entered the telecommunications realm with its introduction of Google Voice, a service created by Google's addition last year of Grand Central, a nifty feature that transcribes voicemail messages and cloaks all your phones and telecommunication devices under the umbrella of one number: a Google number. 
     In effect, you can give out one number to all your buddies, colleagues, friends or whoever and all your phones can be connected seamlessly. Also, you can send free SMS and have voicemails transcribed for you (also, available by other services, such as Callwave).
     I had read about the service at least a year ago when Google first acquired Grand Central but was only giving the service to customers by invitation only. Alas, I was not one of the chosen few. Ugh.
    So, I was happy to discover one day, a message in my Gmail inbox that Google Voice was now available for me to sign-up.
    I would love to use the full functionality of Google Voice but, because of a move by Apple to pull the plug on Google Voice on the iPhone, I can only use the service through my computer. I am a loyal Apple fan, but here, Apple has sold itself to AT&T. Google had created a Google Voice app for the iPhone, but Apple deleted it from the Apple store.
    Personally, I think Apple's move was a bit draconian. It would be like if Microsoft did not allow you to download Firefox onto your computer and forced you to use Internet Explorer.
    But don't worry, in a recent blog post, David Pogue assures us that Google will eventually develop a web app to counteract Apple's icks-nay of its newest FREE gadget. Now, you can only use Google Voice on its android phone or on a blackberry, on your home computer, or on a web app compatible device. But the web app does not work yet on the iPhone. Just a matter of time.
    But, why is Google Voice so cool?
    Well, it is like having CallWave, Skype and Gmail all rolled up into one. I hate listening to voicemails and would just rather read them. Also, I am an addict when it comes to new digital features. Also, I am a proponent for Open Source. Apple should not decide how I access information and what platform I use to do so.
    In the meantime, you can call me through your computer until I get Google Voice, fully.*

*This functionality has been disabled.


15.10.09

News Repost: David Pogue on NPR

David Pogue was recently interviewed on NPR.

I never laughed so hard in a long time.
He was testing a new camera that has a projector with a video of a clown intended to entertain children while you take their pictures.

Pogue tests the camera on a beach in Connecticut and suspicious mom's ask him what he is doing (he's wearing a leather jacket and pressing buttons on his camera and he tells the ladies, "I am a reporter from the New York Times," and as if this is enough to assuage their wandering minds, they laugh and say okay and ask if the camera is any good!

OMG

LOL

I was on the floor in my apartment laughing REALLY hard.

4.9.09

Software Review: Reasons Why I Like Snow Leopard (and three things I am still waiting for)

In this blog post learn lots of reasons I really like the new Mac OS X operating system, Snow Leopard.
  • The colors on OS X have always been clean but Snow Leopard’s color scheme is purer. Or is it just me?
  • The new preview rocks! I can now copy from a PDF document that has two columns without copying both sides! Wow. Thank God for small favors.
  • I love being able to browse through files easily to find what I want; now I can even flip through a PDF or watch a movie within the icon. Now, that is just freakinglicious.
  • More room! I just regained seven gigabytes of hard drive space. More room for True Blood and Fraggle Rock!
  • The best new addition to Snow Leopard is ummmmm ... I love new editions! Does that count?
  • Price! $29.99 if you already own Leopard
:-( Third party apps really suffer. I am afraid to use Onyx or Typinator since I read online that many developers have not yet souped up their programs for Snow Leopard.

:-( I wish they would have made Leopard like this the first time around.

:-( And come on: Snow Leopard? How lame. Although it is better sounding than Windows 7.

:-( I know there is a new tweak to services but I am not sure what it is. Urggghhh. And I am not a big fan of stacks. I thought there would be more manipulability (if that is a word).

7.8.09

Conference Notes: On My Way to Siggraph 2009 in New Orleans

I went to SIGGRAPH 2009 today, an international exhibition of technology and interactive graphics. The question that pervaded my mind was, "What is graphics?" Graphics is not only animation nor is it always easy to define. Graphics can be both analog or digital, or a mixture of both. I brought to the conference questions about the nature of graphics. Bonnie Wood had told me about SIGGRAPH years ago and I was waiting for their return to the Crescent City. The last time the conference was in New Orleans was ten years ago. Because animation studios work out of Los Angeles, and Asia is so close, usually the conference is out west, so I was thrilled when they decided to come South every decade or so. I heard the last conference was bigger than this one, but I must say I was still impressed. Nearly the entire convention center was filled. I seldom come to this next of the woods. I call it the big building built beneath the expressway.

This morning I was running late, took the streetcar downtown and walked five or so blocks to meet Bonnie. I registered but I did not see her so I waited for a half-hour and people watched. My phone was out of commission. I am going to save my iPhone story for another blog:

But, Max did an autopsy on my phone and it is dead. I am stuck with my old cingular phone (which I also left), which is fine, but I realized how dependent on my iPhone I have become: no Google maps on the fly, no email on the go, no random checking of random checking. I absolutely hate it. A person dies without water in the desert; in a digital desert I would die without my phone. I have become so used to having it as an information companion that without it I feel similar withdrawal symptoms associated with people quitting tobacco or alcohol. I am grateful to Max though for agreeing to fix my screen although I was not much help as I stood in his living room, suppressing panic mode, as he took apart my phone with an Exacto knife.
Sitting in the convention lobby. Watching the stream of people.
I will write tomorrow more about the exhibitions, but I am tired right now.
:-)