Archives

Showing posts with label Twitter. Show all posts
Showing posts with label Twitter. Show all posts

Thursday, June 30, 2011

NASA Invites 150 Lucky Twitter Followers To Final Space Shuttle Launch

Stephanie L. Schierholz
Headquarters, Washington     
 
Alicia Durand
Sesame Street

WASHINGTON -- The final launch of the space shuttle program is scheduled for 11:26 a.m. EDT on July 8, and NASA has invited 150 followers of the agency's Twitter account to be there. People selected will have a behind-the-scenes perspective from the press site at the agency's Kennedy Space Center in Florida.

NASA randomly selected the participants from more than 5,500 online registrants during a 24-hour opportunity on June 1-2. Attendees represent 44 U.S. states, the District of Columbia, Australia, Canada, France, Germany, Ireland, Japan, Mexico, Netherlands, Spain, Switzerland and the U.K.

Tweetup participants are coming from Alaska, Arizona, Arkansas, California, Colorado, Connecticut, Florida, Georgia, Hawaii, Idaho, Illinois, Indiana, Iowa, Kansas, Kentucky, Louisiana, Maine, Maryland, Massachusetts, Michigan, Minnesota, Mississippi, Missouri, Montana, Nebraska, Nevada, New Hampshire, New Jersey, New Mexico, New York, North Carolina, Ohio, Oklahoma, Oregon, Pennsylvania, Rhode Island, South Dakota, Tennessee, Texas, Utah, Virginia, Washington, West Virginia and Wisconsin.

They will share their experiences with their more than 1.5 million combined followers through the social networking site Twitter. Beginning at 10:30 a.m. on July 7, NASA will broadcast a portion of the Tweetup when participants get to talk with Bill Gerstenmaier, associate administrator for Space Operations, astronaut Mike Massimino and Angie Brewer, space shuttle Atlantis' flow director at Kennedy.

Joining them will be a special celebrity guest, Sesame Street's Elmo. Sesame Street will be at Kennedy to film Elmo, as he learns about space exploration at NASA.

To watch the broadcast, visit http://www.ustream.tv/channel/nasatelevision.

Participants also will tour Kennedy; make an up close visit to the launch pad, and wave at Atlantis' crew members on their drive to the launch pad. The Tweetup culminates with the shuttle's lift off.

Reporters credentialed to cover the launch also may cover the NASA Tweetup at Kennedy's press site. Reporters interested in interviewing Tweetup attendees in advance should contact Stephanie Schierholz at 202-358-1100 or stephanie.schierholz@nasa.gov.

This is the fifth time NASA has invited Twitter followers to experience a space shuttle launch. Previously, groups attended lift offs of Atlantis' STS-129 and STS-132 missions, Discovery's STS-133 mission, and Endeavour's STS-134 mission.

To follow the Tweetup participants on Twitter, as they experience the prelaunch events and shuttle liftoff, follow the #NASATweetup hashtag and the list of attendees at http://twitter.com/nasatweetup/sts-135-launch.

All four of Atlantis' crew members are posting updates to Twitter. You can follow Commander Chris Ferguson, Pilot Doug Hurley, and Mission Specialists Sandy Magnus and Rex Walheim at http://www.twitter.com/Astro_Ferg , http://www.twitter.com/Astro_Doug , http://www.twitter.com/Astro_Sandy , and http://www.twitter.com/Astro_Rex.

To connect with NASA on Twitter and other social networking sites, visit http://www.nasa.gov/connect.

For more information about space shuttle Atlantis' STS-135 mission, visit http://www.nasa.gov/shuttle.

- end -
Read More >>

Tuesday, June 28, 2011

NASA Twitter Followers Will Fly Shuttle Simulator During Tweetup At Johnson Space Center

Stephanie L. Schierholz
Headquarters, Washington
 
Amiko Kauderer
Johnson Space Center, Houston
 
HOUSTON -- So you think you can pilot the space shuttle? NASA will give 30 of its Twitter followers a chance to test their skills at space shuttle ascent, rendezvous or landing aboard the same simulator astronauts use to train for their missions.

NASA's Johnson Space Center is hosting a daylong Tweetup on July 19, during space shuttle Atlantis' STS-135 mission to the International Space Station. Participants will get a behind-the-scenes tour at Johnson and a hands-on opportunity aboard the shuttle simulator to take control in a training scenario. The tour includes a look at the Mission Control Center and astronauts' training facilities. Visitors also will have the opportunity to speak with flight directors, trainers, astronauts and managers.

Atlantis is targeted to launch from NASA's Kennedy Space Center in Florida at 10:26 a.m. CDT on July 8. If it launches as planned, the Tweetup will take place one day before the last orbiter of the shuttle fleet makes its final landing.

Tweetup registration opens at 11 a.m. on Tuesday, June 28, and closes 24 hours later at 11 a.m. on Wednesday, June 29. NASA will select 30 individuals randomly from the online registrants.

Reporters are invited to cover the Tweetup from 8 a.m. to 5 p.m. Media representatives planning to attend should contact Tammie Letroise-Brown at 281-483-4942.

For more information about the Tweetup and to register, visit http://www.nasa.gov/tweetup.

To follow NASA programs and astronauts on Twitter, visit http://www.nasa.gov/connect.

For more information about space shuttle Atlantis' STS-135 mission, visit http://www.nasa.gov/shuttle.

- end -
Read More >>

Saturday, June 25, 2011

NASA Will Host 150 People For Tweetup At Launch Of Jupiter-Bound Mission

Stephanie L. Schierholz
Headquarters, Washington                               
 
Veronica McGregor
Jet Propulsion Laboratory, Pasadena, Calif.

WASHINGTON -- NASA will host a two-day launch Tweetup for 150 of its Twitter followers on Aug. 4 - 5 at the agency's Kennedy Space Center in Florida. The Tweetup is expected to culminate in the launch of the Jupiter-bound Juno spacecraft aboard an Atlas V rocket.

The launch window opens at 11:39 a.m. EDT on Aug. 5. The spacecraft is expected to arrive at Jupiter in 2016. The mission will investigate the gas giant's origins, structure, atmosphere and magnetosphere. Juno's color camera will provide close-up images of Jupiter, including the first detailed glimpse of the planet's poles.

The Tweetup will provide @NASA Twitter followers with the opportunity to tour the Kennedy Space Center Visitor Complex; speak with scientists and engineers from the Juno and other upcoming missions; and, if all goes as scheduled, view the spacecraft launch. The event also will provide participants the opportunity to meet fellow tweeps and members of NASA's social media team.

Juno is the second of four space missions launching this year, making 2011 one of the busiest ever in planetary exploration. Aquarius was launched June 10 to study ocean salinity; Grail will launch Sept. 8 to study the moon's gravity field; and the Mars Science Laboratory/Curiosity rover heads to the Red Planet no earlier than Nov. 25.

Tweetup registration opens at 3 p.m. on Friday, June 24, and closes at 3 p.m. on Monday, June 27. NASA will randomly select 150 participants from online registrations. For more information about the Tweetup and registration, visit http://www.nasa.gov/tweetup.

For information about connecting and collaborating with NASA, visit http://www.nasa.gov/connect.

Juno's principal investigator is Scott Bolton of the Southwest Research Institute in San Antonio. NASA's Jet Propulsion Laboratory in Pasadena, Calif., manages the mission.

For more information, visit http://www.nasa.gov/juno and http://missionjuno.swri.edu.

- end -
Read More >>

Wednesday, June 22, 2011

Astronaut Mark Kelly Announces Plans To Retire From NASA

Joshua Buck
Headquarters, Washington
 
Nicole Cloutier-Lemasters
Johnson Space Center, Houston

HOUSTON -- NASA astronaut and U.S. Navy Capt. Mark Kelly has announced his plans to retire from the agency on Oct. 1. He is a veteran of four space shuttle missions.

"We salute Commander Mark Kelly and his contributions to NASA as an extremely accomplished member of the astronaut corps and the final commander of the space shuttle Endeavour," said NASA Administrator Charles Bolden. "We deeply respect his achievements and his decision to focus on his family. We continue to send out our thoughts and prayers to Mark and his wife, Rep. Gabrielle Giffords, as she makes a remarkable recovery. We know that Mark will continue to do great things for his country no matter what he chooses to do next. He has helped us build a space program poised to take advantage of the many opportunities in our bright future."

Kelly announced his retirement Tuesday on Facebook and via his Twitter account. On Facebook, he wrote, "This was not an easy decision. Public service has been more than a job for me and for my family." He added, "I know that as our space program evolves, there are those who will question NASA's future. I am not among them. There isn't a group more dedicated to its mission or more capable than the outstanding men and women of NASA."

Kelly commanded the STS-134 flight in May and STS-124 in 2008. He served as the pilot on STS-121 in 2006 and STS-108 in 2001. He joined NASA as an astronaut candidate in 1996.

For Kelly's complete biography, visit http://www.jsc.nasa.gov/Bios/htmlbios/kellyme.html.

To follow Kelly on Twitter and Facebook, visit http://www.twitter.com/ShuttleCDRKelly and http://www.facebook.com/Capt.MarkKelly.

- end -
Read More >>

Study: Difficult to keep with on Twitter, Facebook friends

It is easy to find all these friends on your social networks, but follow with them can be very difficult.

A study conducted by researchers at Indiana University exchange rate the maximum number of friends, a user can really keep contact with on sites such as Twitter and Facebook to approximately 150 people.

Bruno Gonclaves and his colleagues studied the web of 380 million tweets sent by users of Twitter of 3 million over four years and concluded that early people tweeting most and increasing their number of friends Twitter until they become overwhelmed and walk back, focusing on the contacts they have stronger to connections. The point of saturation, researchers refer to it, is located approximately 150 friends.

British anthropologist Robin Dunbar predicted that same number than the maximum count of friends a person should be able to manage based on his study of other primates, and he did in the 1990s, long before that Twitter was never designed.

Social networking has allowed us to greatly expand our collection of casual contacts and knowledge, but when it comes to real friendships and regular social contacts, we are limited in how much we can follow.

Read More >>

Wednesday, June 1, 2011

Tweetup At NASA's Jet Propulsion Laboratory Previews 2011 Missions

Stephanie L. Schierholz
Headquarters, Washington                               
 
Veronica McGregor
Jet Propulsion Laboratory, Pasadena, Calif.

PASADENA, Calif. -- News media representatives are invited to cover a Tweetup hosted by NASA's Jet Propulsion Laboratory in Pasadena, Calif., on Monday, June 6. More than 100 NASA Twitter followers, who registered in April, will attend the event.

With four NASA/JPL space missions launching in 2011 and an asteroid belt encounter nearly under way, this year will be one of the busiest ever in planetary exploration. Tweetup participants will interact with JPL scientists and engineers about these upcoming missions: Aquarius, to study ocean salinity; Grail, to study the moon's gravity field; Juno to Jupiter; and the Mars Science Laboratory/Curiosity rover. Tweetup participants also will learn about the Dawn mission and its planned encounter with the asteroid Vesta.

The Tweetup will take place from approximately 8 a.m. to 5:30 p.m. PDT. It will include a tour of JPL, hands-on demonstrations and a last chance to see the Curiosity rover before it ships to Florida for its launch in the fall. Tour stops will include the Spacecraft Assembly Facility, where Curiosity is undergoing assembly and testing, the mission control center of NASA's Deep Space Network, and JPL's new Earth Science Center.

NASA Television will broadcast portions of the Tweetup from 8:15 - 10:30 a.m. PDT and again from 1:30 - 3:30 p.m. PDT on June 6 at http://www.nasa.gov/ntv and http://www.ustream.tv/nasajpl2.

Tweetup participants will mingle with fellow attendees and the staff behind @NASA, @NASAJPL, @MarsRovers, @AsteroidWatch and other NASA social media accounts.

NASA's first Tweetup was held at JPL on Jan. 21, 2009, and NASA Headquarters held its first on July 21, 2009. The most recent event was at NASA's Kennedy Space Center for the space shuttle Endeavour's final launch. Following JPL's June event, the next NASA Tweetup will be July 7-8 at Kennedy for the Space Shuttle Program's final launch. Registration for that Tweetup is open from noon EDT Wednesday, June 1, through noon Thursday, June 2, at
http://www.nasa.gov/tweetup.

ACCREDITATION
News media representatives who would like to cover the June 6 Tweetup must RSVP in advance to JPL Media Relations at 818-354-5011. Non-U.S. citizens also must bring valid passports.

WEB COVERAGE
Follow the conversation before and during the June 6 event on Twitter by using the hashtag #NASATweetup and following the @NASAJPL, @JPLTweetup, and @NASATweetup accounts.

Find all the ways to connect and collaborate with NASA at http://www.nasa.gov/connect.

For more information about Aquarius, Grail, Juno, the Curiosity rover, Dawn and NASA’s other science missions, visit http://science.nasa.gov.

- end -
Read More >>

Tuesday, April 26, 2011

NASA Invites 150 Lucky Twitter Followers To Endeavour Launch

Stephanie L. Schierholz
Headquarters, Washington

WASHINGTON -- NASA invited 150 lucky people to a behind-the-scenes perspective from the press site at the agency's Kennedy Space Center in Florida for the final launch of space shuttle Endeavour on Friday, April 29. The launch is scheduled for 3:47 p.m. EDT.

The participants were selected randomly from more than 4,100 online registrants during a 24-hour opportunity in mid-March. Attendees represent 43 U.S. states, the District of Columbia, Australia, Brazil, Canada, Germany, New Zealand, Puerto Rico, Switzerland, Venezuela, and the U.K. Participants will share their experiences with their more than 3.7 million combined followers through the social networking site Twitter. On Sunday, the agency surpassed one million followers on its flagship Twitter account, @NASA.

Beginning at noon on April 28, NASA will broadcast a portion of the Tweetup when participants get to talk with NASA's Chief Scientist Waleed Abdalati; Endeavour's Flow Director Dana M. Hutcherson; International Space Station Associate Program Scientist Tara Ruttley; astronaut Clay Anderson; and Principal Investigator of the Alpha Magnetic Spectrometer-2, Sam Ting. To watch the broadcast, visit
http://www.ustream.tv/channel/nasatelevision.

Participants also will tour Kennedy and get a spacesuit demonstration. The Tweetup culminates with the launch.

Reporters who are credentialed to cover the launch also may cover the NASA Tweetup at Kennedy's press site. Reporters interested in interviewing Tweetup attendees in advance should contact Stephanie Schierholz at 202-358-1100 or stephanie.schierholz@nasa.gov.

This is the fourth time NASA has invited its Twitter followers to experience a space shuttle launch. Previously, groups attended Atlantis' STS-129 and STS-132 missions and Discovery's STS-133 launch. NASA also hosts Tweetup events at other NASA centers.

Registration for an event June 6 at NASA's Jet Propulsion Laboratory in Pasadena, Calif., will open at 3 p.m. on Tuesday, April 26, for 24 hours at http://www.nasa.gov/tweetup.

To follow the Tweetup participants on Twitter as they experience the prelaunch events and shuttle liftoff, follow the #NASATweetup hashtag and the list of attendees at http://twitter.com/nasatweetup/sts-134-launch.

To connect with NASA on Twitter and other social networking sites, visit http://www.nasa.gov/connect.

For more information about space shuttle Endeavour's STS-134 mission, visit  http://www.nasa.gov/shuttle.

- end -
Read More >>

Tuesday, April 19, 2011

STS-134 Flight Readiness Review Today

NASA managers are meeting at NASA's Kennedy Space Center in Florida today to discuss all aspects of the STS-134 mission and will officially set the date for space shuttle Endeavour's final scheduled launch.

The day-long Flight Readiness Review will conclude with a news conference on NASA TV (www.nasa.gov/ntv). Tweets from the meeting are available at www.twitter.com/NASA.

At NASA's Johnson Space Center in Houston, the STS-134 crew will have a health review today.

Endeavour's launch to the International Space Station is targeted for April 29 at 3:47 p.m. EDT.
Read More >>

Tuesday, November 23, 2010

Drupal 7 and SQL Server Spatial Data

In a previous post, I explored integration between Drupal 7 and SQL Server Reporting Services. In this post, I’ll examine how you can take advantage of the fact that Drupal 7 can be installed on SQL Server to store geographic data using SQL Server 2008’s spatial data support, and also how you can integrate Bing Maps and Twitter geographic data into your Drupal site.

Drupal and SQL Server Spatial Data Demo

Microsoft introduced support for spatial data in SQL Server 2008 (see some of my past posts for details), and given that you can now install Drupal on Windows with a SQL Server content database, it makes sense to use this support to extend your Drupal site to include content with a geographical element. The scenario we decided to use when exploring this idea was a site for a local arts festival that includes the ability to publish details of events, including their location. However, you could easily adapt the idea for any content that has a location-based element. The video shows the solution we created (you can also view the video on YouTube).

Our solution not only incorporates spatial data that is stored in SQL Server, but also uses the Bing Maps control to visualize the spatial data, and retrieves tweets that include a geographic location from Twitter. This sort of “mash-up” approach where data and services from multiple sources on the Web are combined to create a rich user experience is the very essence of today’s most cutting edge Web applications, and when combined with the social/community-based publishing capabilities of Drupal it can be used to create some pretty compelling compelling solutions.

The diagram below shows the high-level architecture of the solution. Note that the SQL Server database forms the “data hub” of the application, storing the geographical data from both the Drupal content and the related tweets (which are retrieved and cached in the database periodically using the Cron scheduler in Drupal).

SpatialArchitecture

At the heart of the solution is a set of custom Drupal modules that we implemented in PHP. These are packages and installed in the Drupal site to add the required spatial data functionality. The first module we created, and the one on which the others all depend, is a module named GeoField that defines a Location field type that can be included in Drupal content types. The Location field type stores a geographical Longitude-latitude point in well-known text (WKT) format, which can easily be instantiated as a SQL Server geography data type instance. The module also defines a widget for setting Location values, which consists of a textbox and a Bing Maps control. Users can enter an address in the text box and geocode it using the Bing Maps API, or they can right-click a point on the map and reverse-geocode the address. The code to do the geocoding is implemented in JavaScript as described in a previous blog post. The following PHP functions define the field info and schema within Drupal:

function geo_field_field_info() {
  return array(
    'geo_field_Location' => array(
      'label' => t('Location Data'),
      'description' => t('A field for storing geographic data.'),
      'default_widget' => 'geo_field_bingmap',
      'default_formatter' => 'geo_field_simple_text',
    ),
  );
}

function geo_field_field_schema($field) {
  $columns = array(
    'location' => array('type' => 'varchar', 'length' => 255, 'not null' => FALSE),
  );
  $indexes = array(
    'location' => array('location'),
  );
  return array(
    'columns' => $columns,
    'indexes' => $indexes,
  );
}

The Bing Maps widget, and an alternative simple textbox-based widget, is defined with the following PHP code:

function geo_field_field_widget_form(&$form, &$form_state, $field, $instance, $langcode, $items, $delta, $element) {
   $value = isset($items[$delta]['location']) ? $items[$delta]['location'] : '';
  $element += array(
    '#delta' => $delta,
  );
  $element['location'] = array();

  switch ($instance['widget']['type']) {

    case 'geo_field_bingmap':
    drupal_add_js('
http://dev.virtualearth.net/mapcontrol/mapcontrol.ashx?v=6.3', 'external');
      $element['location'] += array(
        '#prefix' => '',
        '#attributes' => array('class' => array('edit-field-geomap')),
        '#attached' => array(
       
         'js' => array(drupal_get_path('module', 'geo_field') . '/BingMaps.js'),       
        ),
        '#suffix' => '<div class="bing-map-control form-item form-type-textfield"><label for="txtAddress">Address</label><input type="text" id="txtAddress" class="form-text bing-map-address" size="60"/><input type="button" value="Find" class="location-search-button form-submit" class="form-submit" /><br/><div id="mapDiv" class="bing-map-edit bing-map" style="position:relative; width:400px; height:300px;"></div></div>',
      );
     

    case 'geo_field_geotext':
      $element['location'] += array(
       '#prefix' => '<div class="geo_field_geotext" style=" margin-top:20px; border: thin solid #808080;"><p>Enter a location:</p>',
        '#type' => 'textfield',
        '#default_value' => $value,
        '#size' => 50,
        '#maxlength' => 255,
        '#suffix' => '</div>',
      );
      break;

     }
  return $element;
}

Note the reference to the Bing Maps API and to the BingMaps.js JavaScript file, which includes the code used to handle the user interaction with the Bing Maps control.

The next task was to create a GeoEvent module that defines a content type for a festival event. This content type includes a Location field as well as more standard Drupal fields, such as a title, image, description, tags, and a simple text field to specify the date and time of the event.

The final module to be created was the GeoMap module, which defines the Event Map page on which events and tweets are plotted. The code in this module includes the following function, which retrieves the events from the Drupal database and returns them as a GeoRSS feed that can be imported into the Bing Maps control by client-side JavaScript code.

function geo_map_events() {
    global $base_url, $language_content;
  
    $results = db_query(
        'SELECT r.title, b.body_value what, r.nid, w.[event_location_location] loc, geography::STPointFromText(w.[event_location_location], 4326).AsGml() [where] '.
        'FROM node_revision r '.
        'LEFT JOIN field_revision_body b ON r.nid = b.revision_id '.
        'JOIN field_revision_event_location w ON w.revision_id = r.nid '.
        'JOIN node n ON r.nid = n.nid '.
        'WHERE n.type = \'event\'');
   
    $items = '';
    $addedItems = 0;
    foreach ($results as $result) {
        // We have to add in the namespaces here else the Bing control
        // can't parse the content.
        $xml = str_replace('<', '<gml:', $result->where);
        $xml = str_replace('gml:/', '/gml:', $xml);
       
        $description = $result->what != '' ? $result->what . '&lt;br /&gt;' : '';
        $description .= '&lt;a href=\'index.php?q=node/' . $result->nid . '\'&gt;More info&lt;/a&gt; &lt;br /&gt;';
        $description .= '&lt;a href="#' . $result->loc . '" class="twitter-button" &gt; &lt;img src="modules/geo_field/images/twitter.png" alt="Show nearby tweets" /&gt; &lt;/a&gt;';
       
        $item_text = '<entry>'.
                    '<title>' . $result->title . '</title>'.
                    '<description>' . $description .'</description>'.
                    '<georss:where>' . $xml .
                    '</georss:where>'.
                  '</entry>';

        $items .= $item_text;
        $addedItems++;
    }

  if ($addedItems == 0) {
    $placeholder_text  ='<entry>' .
      '<title>Placeholder</title>'.
      '<description></description>'.
      '<georss:where><gml:Point xmlns="http://www.opengis.net/gml"><gml:pos>-90 0</gml:pos></gml:Point>'.
            '</georss:where>'.
            '</entry>';
    $items .= $placeholder_text;
  }
 
  $output  = "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n";
  $output .= "<feed xmlns='http://www.w3.org/2005/Atom' xmlns:georss='http://www.georss.org/georss' xmlns:gml='http://www.opengis.net/gml'>\n";
  $output .=
        "<title>Festival Events</title>\n".
              "<subtitle>Events for the 2010 festival</subtitle>\n".
              "<author>\n".
                "<name>Drupal Administrator</name>\n".
              "</author>";
  $output .= $items;
  $output .= "</feed>\n";

  drupal_add_http_header('Content-Type', 'text/xml; charset=utf-8');
  print $output;
}

Note that the query used to retrieve the data uses the SQL Server geography type’s STPointFromText function to instantiate a geography instance from the WKT representation of each location, and the AsGml method to then convert that geography instance to Geographic Markup Language (GML) format. This enables the code to simply embed the GML representation of the location into the GeoRSS feed (since a GeoRSS feed is in effect an XML representation of a collection of GML entities). If no locations are found, a placeholder location is created to avoid returning an empty feed.

The client-side JavaScript to request this feed and display the results as a layer on the Bing Maps control is in a  script file named EventMaps.js, which is referenced by the Drupal page:

function showEvents() {
  eventLayer.DeleteAllShapes();
  var url = "index.php?q=geo_field/items_georss";
  var veLayerSpec = new VEShapeSourceSpecification(VEDataType.GeoRSS, url, eventLayer);
  map.ImportShapeLayerData(veLayerSpec, function(feed) {
        var numShapes = feed.GetShapeCount();
        for (c = 0; c < numShapes; c++) {
            var shape = feed.GetShapeByIndex(c);
     
      if (shape.GetDescription() == 'Placeholder' &&
          shape.GetTitle() == 'Placeholder') {
        eventLayer.DeleteAllShapes();
      }
     
            shape.SetCustomIcon("modules/geo_field/images/pin.png");
        }

    }, false);
   
    map.SetCenterAndZoom(new VELatLong(55.67630968987942, 12.569355145096778), 10);
}

Note that if the layer contains only a placeholder location (because there were no events), the location is deleted to produce an empty map.

The GeoMap module also includes a function that queries Twitter to return any tweets containing a specified hash-tag (which the administrator can set in the settings for the module). These tweets are then inserted into a table in the SQL Server database. The table includes a geography column in which the location of the tweet is stored.

function tweets_download() {
    $tweetsfeed = "http://search.twitter.com/search.json?q=%23" . variable_get('geomap_hashtag', 'drupalcon');
   
    $results = json_decode(file_get_contents($tweetsfeed), TRUE);
   
  // Insert items into the table if they're not already there.
    $insertquery =
        "IF NOT EXISTS ".
        "(SELECT * FROM dbo.tweets WHERE TwitterID = :tweetid1) ".
        "INSERT INTO dbo.Tweets VALUES " .
        "(:datetime, :tweeter, :content, geography::GeomFromGml(:location, 4326), :tweetid2)";
   
    foreach ($results['results'] as $tweet) {
        if ($tweet['geo'] != null) {
            $pointdetails =
                "<Point xmlns='http://www.opengis.net/gml'><pos>" .
                $tweet['geo']['coordinates'][0] . ' ' . $tweet['geo']['coordinates'][1] .
                "</pos></Point>";
               
            $timestamp = strtotime($tweet['created_at']);
            $sqldate = date('c', $timestamp);
           
            $sqldate = substr($sqldate, 0, strlen($sqldate) - 6);
       
            $params = array(
                    'tweetid1' => $tweet['id'],
                    'tweetid2' => $tweet['id'],
                    'datetime' => $sqldate,
                    'tweeter' => $tweet['from_user'],
                    'content' => $tweet['text'],
                    'location' => $pointdetails);
                           
            db_query(
                $insertquery,
                $params);
        }
    }
}

Note that the Transact-SQL query executed by the code uses the SQL Server geography data type’s GeomFromGml function to convert the value retrieved from Twitter into a geography instance before storing it in the table. This function is called by the Drupal Cron scheduler, so the table of tweets is updated periodically.

When the user clicks the Twitter icon for an individual event, the following PHP function is used to retrieve the tweets within 500m of the event and return them as a GeoRSS feed to be displayed on the map.

function geo_map_tweets_feed($location) {
  // Use the location functionality in MSSql to query all tweets near a given
  // location.
    $results = db_query(
        'SELECT    Tweeter + \' (\' + cast(TweetDateTime as nvarchar(50)) + \')\' as tweeter, '.
        'Tweet as tweet, '.
        'TweetLocation.AsGml() as [where] '.
        'FROM tweets '.
        'WHERE TweetLocation.STIntersects(geography::STPointFromText(\'POINT(' . $location . ')\', 4326).STBuffer(500)) = 1');
   
    $items = '';
    $found = false;
   
    foreach ($results as $result) {
        $found = true;
        $xml = str_replace('<', '<gml:', $result->where);
        $xml = str_replace('gml:/', '/gml:', $xml);

        $item_text = '<entry>'.
                    '<title>' . $result->tweeter . '</title>'.
                    '<description>' . $result->tweet .'</description>'.
                    '<georss:where>' . $xml .
                    '</georss:where>'.
                  '</entry>';

        $items .= $item_text;
    }
       
    if (!$found) {   
        $items = '<entry>'.
                    '<title>Placeholder</title>'.
                    '<description>Placeholder</description>'.
                    '<georss:where><gml:Point xmlns="http://www.opengis.net/gml"><gml:pos>-90 0</gml:pos></gml:Point>'.
                    '</georss:where>'.
                  '</entry>';
    }

  $output  = "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n";
  $output .= "<feed xmlns='http://www.w3.org/2005/Atom' xmlns:georss='http://www.georss.org/georss' xmlns:gml='http://www.opengis.net/gml'>\n";
  $output .= "<title>Festival Events</title>\n".
             "<subtitle>Events for the 2010 festival</subtitle>\n".
              "<author>\n".
                "<name>Drupal Administrator</name>\n".
              "</author>";
  $output .= $items;
  $output .= "</feed>\n";

  drupal_add_http_header('Content-Type', 'text/xml; charset=utf-8');
  print $output;   
}

Note that the WHERE clause of the Transact-SQL query executed by the code uses the STIntersects and STBuffer methods of the geography data type to find tweets within a 500m buffer of the event (which is instantiated as a geography instance by using the STPointFromText method as before).

As with the Reporting Services demo I blogged about previously, this solution we built was based on pre-beta releases of Drupal 7 and the related SQL Server driver for PDO and SQL Server module. To avoid the inevitable versioning issues that tend to arise with pre-release code dependencies, I haven’t includes the full source code. The plan is to publish it on CodePlex when the final release of Drupal 7 and the associated SQL Server components is available. Until then, hopefully you’ll find this article useful as an insight into the kinds of spatial data solutions you can build with Drupal and SQL Server.

Read More >>

Monday, January 18, 2010

McAfee's Predicted Security Threats for 2010

McAfee's Predicted Security Threats for 2010

McAfee recently released a report that predicts potential online security threats for 2010. To summarize, the anti-virus and computer security company, which is based out of Santa Clara, California, sees an increase in threats from social networking sites, banking security, and bot nets. In addition, they see increases in attacks targeting users, businesses, and applications. However, the findings weren't all negative. McAfee says they expect an increase in law enforcement and its effectiveness in fighting cybercrime.

As social networking sites, such as Facebook and Twitter, become increasingly popular, they'll most likely become a breeding ground for cyber attacks. On top of the increased number, the attacks will be more sophisticated. Facebook users are particularly vulnerable due to the number of third party applications used. Games and other applications are popular and most people will trust an invitation from their friends without using caution. But that invitation could easily be malware or something else designed to harm your computer. There's really no way to protect yourself other than avoiding the third party apps such as quizzes and games.

URL shorteners such as bit.ly and tinyurl.com are also expected to become a target of cybercrime. These tie-in to social networking because most people use them to post links to their profiles. The websites shorten a normal URL into a smaller one that will fit in almost any space and is especially popular on Twitter, where you only have 140 characters to gets your message across. One major problem with these smaller URLs is that they can't be previewed, so clicking on one at random could lead you to somewhere you don't want to be. This makes it a very easy target for crooks.

Due to the popularity of Microsoft products, cyber criminals have been taking advantage of them for years. However, as programs such as Adobe Reader and Flash become more popular, McAfee expects they will become a bigger target, taking over the top "honor" from Microsoft. In 2009, Adobe Reader saw an increase of problems due to security holes, leading the company to take a more proactive approach to patching up problems.

Email attachments have always been a problem when it comes to spreading malware and that threat is expected to continue and even get bigger. The company expects an increase in specific targets when it comes to email, and those include journalists, corporations, and individual users who could easily be convinced to download an attachment that is hiding a Trojan or other bit of malware.

Other projected problems include banking Trojans. Normally used to get your financial information, McAfee expects them to become so advanced that they will start interrupting transactions and even withdrawing money from your accounts. 2009 already saw an increase in banking cybercrime, with many Trojans making their way past strong bank security. Botnets are also expected to be a threat. McAfee calls them a "leading infrastructure for cybercriminals" and says they are "used for actions from spamming to identity theft." While they are harder to track down due to their ability to move from computer to computer without a central base of operation, there has been some recent success in shutting them down.

Despite all the many threats, McAfee does project an increase in law enforcement's ability to track down cybercriminals. Even so, there are steps you should take to protect yourself. Purchasing security software and keeping it updated is very important and something everyone should do. Keeping your PC up-to-date with Microsoft patches that protect your operating system, office suite, and browser is also important. You should also be sure that you are aware of all the latest threats and realize what's at risk. Exercise caution when opening files or downloading applications.



Looking for Computer / PC Rental information? Visit the www.rentacomputer.com PC Rental page for your short term business PC needs. Or see this link for a complete line of Personal Computer Rentals.

Read More >>

Friday, October 9, 2009

PyTwitterS60 is the simplest Twitter client on S60 phones

PyTwitterS60 is the simplest Twitter client on S60 phonesPyTwitterS60 is the simplest Twitter client. You can only tweet: it's literally the simplest, isn't it? All you need to do is just ...
  1. Launching PyTwitterS60,
  2. Tweeting,
  3. and Pressing "OK" twice.

System Requirement
  • OS: Symbian OS 9.1 / S60 3rd Edition or later (Nokia N73, N82, N95, and so on...)
  • Python: Python for S60 (PyS60) 1.4.4 or later
Free Download: PyTwitterS60_0_0_8.zip
Read More >>

Monday, October 5, 2009

Twitter - It's All About Me?

Twitter - It's All About Me?

Two Rutgers University Professors, Mor Naaman and Jeffrey Boase, set out to examines user behavior on social media websites such as Twitter and what they found is, well, probably not all that shocking. After looking at over 3,000 tweets from more than 350 Twitter users, it turns out, about 80 percent are what the professors now call "meformers," or people use who post updates on their everyday activities, feelings, thoughts, emotions and social lives. The other 20 percent, the "informers," are more about sharing information such as news articles and interacting with their followers. As a matter of fact, informers usually had more friends and followers than meformers. The median number for informers was 131 friends and 112 followers whereas meformers had a median of 61 friends and 43 followers.

While carefully documenting the details of their research, the professors determined that there are nine different types of Tweets: information sharing, self promotion, opinions and complaints, statements and random thoughts, me now, question to followers, presence maintenance, self-referential anecdotes, and anecdotes about others. A majority of tweets - about 41 percent - can be classified as "me now" tweets with random thoughts, and opinions and complaints coming in as the second most tweeted items.

The research doesn't portray Twitter users very positively, but most previous research done on the social medium has had the same findings, if not worse. Some studies have gone on to call Twitter users "narcissists" or claim that nearly half of all tweets are "pointless babble."

So what else did the study find? Informers usually mention other users more often by making @replies. About 25 percent of tweets come from users' mobile phones. Of those posted from phones, over half (51 percent) tend to be "me now" messages. Females were also more likely to post the "me now" messages; 45 percent of female users posted them whereas 37 percent of men did.

Read More >>

Wednesday, May 27, 2009

Iamdoing is a twitter client for S60 phones

Iamdoing is a twitter client for S60 phones iamdoing is a twitter client for S60 phones

Best features of Iamdoing:
  • Support for splitting your message in several 140 char messages, adding "..." and using the proper order for presenting the pieces ;-)
  • Automatic support for generating tiny URLs. Yes, put any URL and it will be converted using http://is.gd service, much smaller then tinyurl.
  • Support to follow links in message. Just click in a message with links and you will have the option for following them using S60 browser.
  • Proxy support (a must have for any modern application)
Free Download: here
Read More >>

Thursday, May 21, 2009

KiTwitts allows your to search for twitts on Twitter using keywords

KiTwitts allows your to search for twitts on Twitter using keywordsKiTwitts allows your to search for twitts on Twitter using keywords. You can view the user that twitts using the browser. The application also shows mobile ads based on your search keyword, location and device.

The application is developed for Nokia S60 using Flash Lite 2.0 to fit all Nokia devices which are Flash Lite 2.0/3.0 enabled, We are looking into supporting Nokia S60 5th Ed (Touch based) and S40 too.

Free Download:
kitwitts.sis
(for Nokia S60 3rd edition)
kitwitts.sis
(for Nokia E63 and E71)

via: biskero.com
Read More >>

Thursday, May 14, 2009

Tweets60 is a free twitter client for Series 60

Tweets60 is a free twitter client for Series 60Tweets60 is a free twitter client for Series 60 devices.

Features
  • Post directly from your phone
  • Faster and more efficient than the mobile site
  • Keep up to date with automatic polling
  • Manage who you're following on the go
Free Download: here
Read More >>

Tuesday, May 12, 2009

jibjib - small and fast J2ME Twitter client

jibjib - small and fast J2ME Twitter clientjibjib is a small, fast and easy J2ME Twitter client for any Java-enabled mobile phone with CLDC 1.0/MIDP 1.0 for version prior to 1.0.11 and CLDC 1.1/MIDP 2.0 for version 1.0.11 and later. jibjib is minimalistic and it is designed for road warriors. The version newer than 1.0.17 will support both CLDC 1.0/MIDP 2.0 and CLDC 1.1/MIDP 2.0.

Free Download: jibjib.jad and jibjib.jar
Read More >>

Saturday, November 29, 2008

Twittai is a Twitter client for Java phones

Twittai is a Twitter client for Java phonesTwittai is a Java mobile application designed for Twitter, which lets you tweet on your cell phone.

Free Download: just Point your mobile browser to: http://m.twittai.com/

via: rodrigostoledo.com
Read More >>

Saturday, October 25, 2008

Twim is a mobile Twitter client for mobile phones

Twim is a mobile Twitter client for mobile phonesTwim is a mobile Twitter client that runs on devices that are compatible with Java MIDP 2.0. User can browse history, replies, friends and public feeds with the application. User can also also update his/her status.

Free Download: MobileTwitter.jar and MobileTwitter.jad
Read More >>

Monday, September 29, 2008

Cirip for Nokia Series60

cirip.ro is the Romanian version for twitter.com

What we have done is a flash lite application (tested on Nokia N73) that shows the lastest 10 public statuses from this service. This was done, using their API.

Free Download: ciripcirip.sis

via: mobbiq.com
Read More >>

Monday, April 21, 2008

Fring - Make free mobile calls with fring, IM with Skype, MSN Messenger, ICQ, Google Talk, SIP and Twitter Contacts

Make free mobile calls with fring, IM with Skype, MSN Messenger,  ICQ, Google Talk, SIP and Twitter Contactsfring™ is a mobile internet service & community that enables you to access & interact with your social networks on-the-go, make free calls and live chat with all your fring, Skype®, MSN® Messenger, Google Talk™, ICQ, SIP, Twitter, Yahoo!™ and AIM®* friends using your handset’s internet connection rather than costly cellular airtime minutes.

Free Download: here

Tech Tags: , , , , freeware
Read More >>