Second Official HKDUG meeting

We encourage users to post events happening in the community to the community events group on https://www.drupal.org.
cloneofsnake's picture
Start: 
2008-11-13 19:00 - 21:00 Asia/Hong_Kong
Event type: 
User group meeting

I've confirmed w/ Antonio and Karim and we are definitely having a meeting this week! Just wanted to start an official thread so people will know. Karim & Tony, I put down Thursday night @ 7 like last time, please make changes to it if you guys had planned for another date / time.

Karim will be the main presenter, he is going to talk about:

  1. JW FLV Player with RSS playlist.
  2. JW javascript API event listener to jQuery.
  3. jQuery media, add inline media in content.
  4. jCarousel from item list.

and Dave will be doing an introduction to version control.

Here's the direction given from our 1st meet up. (Google Maps)

Online conference provide through dimdim.com.

Recording of Dave's Version Control session: (No Sound)

To view:
http://recordings.dimdim.com/view/349bc5e8-02c6-102c-a126-003048944478

To download:
http://recordings.dimdim.com/saveflv/349bc5e8-02c6-102c-a126-003048944478

It's going to be a fun night! Please sign up soon.

Comments

I post it in facebook

hk900's picture

See you there! I also post the news on facebook.

any meeting agenda?

DigitalFreak's picture

what topics we are going to discuss?

Meeting II Agenda

moni-gdo's picture

Meeting Agenda



  1. JW FLV Player with RSS playlist.
  2. JW javascript API event listener to jQuery.
  3. jQuery media, add inline media in content.
  4. jCarousel from item list.

Good ref. links:
http://www.jeroenwijering.com/?page=wizard
http://www.malsup.com/jquery/media/#demos
http://sorgalla.com/projects/jcarousel/examples/static_simple.html

I'm doing an introduction to

dalin's picture

I'm doing an introduction to version control. Karim is doing the main presentation. I'm not quite sure what exactly he's going to be talking about, but it'll be a case study of some of his work.

Dave Hansen-Lange
Web Developer
Advomatic LLC
East Asia Office
Hong Kong

--


Dave Hansen-Lange
Director of Technical Strategy, Advomatic.com
Pronouns: he/him/his

Screencasting?

cloneofsnake's picture

What do you guys think about recording using screencasting software rather than using a camcorder? This way Tony doesn't have to encode and stuff and the recording will be much sharper than our last session.

Problem is, what software to use? Anyone has experience w/ screencasting software?

Tips for Making Screencast Videos

moni-gdo's picture

This page may help...
http://groups.drupal.org/node/8945

I'm broke so I only use free

cloneofsnake's picture

I'm broke so I only use free stuff :P I have Jing on my macbook and it works ok but it limits the length of each screencast to only 5 mins. That's not gonna work for us.

If none of us got this kinda software, then I guess we go back to video taping huh...

I can't wait for the meeting

DigitalFreak's picture

I can't wait for the meeting as all the topics interest me. Yet, where is the location we are going to meet? Any contact (phone number) that I could call in case I got lost?

I just check the first meeting info from facebook.

1st meeting with tutor
Event InfoHost:
Hong Kong Drupal User Group
Type:
Meetings - Club/Group Meeting
Network:
Global
Time and PlaceDate:
Thursday, September 25, 2008
Time:
7:00pm - 9:00pm
Location:
64 Mac Donnell Rd. Flat 6A
City/Town:
Hong Kong, Hong Kong
Contact InfoPhone:
62990230
Email:
spyderboy@gmail.com

are we going to meet at the same place?

Yes! Most definitely!

spyderboy's picture

I would be happy to host it again! My place tomorrow then? 7-9ish? Sorry for the late response, been knee deep in work stuffs!

Tony

Pain in life is necessary. Suffering is optional.

Directions to Tony's place

cloneofsnake's picture

Thanks Tony! Don't worry about that, I apologize for not starting the thread earlier!

Here's the direction given from our 1st meet up. (Google Maps)

Let's meet at Admiralty station again, the walk up should be nicer in this weather :P Exit C, we'll start walking at 6:45pm. My cell is 6603-6127, in case anyone needs it.

Looking forward to tmrw night! Please sign up so we can gauge the size of the audience. Thanks!

I can't make it today

DigitalFreak's picture

Sorry, guys, something urgent just come up, I need to stay in Guangzhou tonight. I wonder if there is any "live screencast" (I saw ppl in drupal dojo do that) so that I might join through skype or other IM in Guangzhou.

I've wanted to do FREE

cloneofsnake's picture

I've wanted to do FREE online screen-share meetings a while ago to work with developers from overseas, but it never worked out. I'm still very interested in getting this done, so let me look into this this afternoon.

A few online meetings tools that I've read about are:

http://www.campfirenow.com/
http://www.mikogo.com/
http://www.yuuguu.com/

Worst case scenario, we can still use Skype, Yahoo Messenger w/ Voice (exceptionally good quality when connecting to the US) or GTalk.

But will there be a problem w/ your location? (Inside China!)

dimdim.com

cloneofsnake's picture

might have found what we need for online conference - http://www.dimdim.com/

Found on Drupal's Open Learning and Collaboration Portal group - http://groups.drupal.org/node/16320

It a "virtual classroom" free for up to 99 users, with nothing to install, if anyone is online, please help me test it out:


A meeting has started, please click the link http://webmeeting.dimdim.com:80/portal/JoinForm.action?confKey=cloneofsn... to join the meeting

Details of the meeting are
Agenda: Pre-meeting test International Dial In:
Meeting Key: iamnothost

Hi! Yes We Can - record!

hk900's picture

I will bring a notebook with camtasia studio 3.13 ,Screen Recording Software http://www.techsmith.com/camtasia.asp , is installed. Even it is not lastest Versions, I thing it can use (i just try, it work). If anyone use it before can help tonight!

ooh! Can someone help to bring mic.

hk900's picture

I lost my computer micophone. Anybody can help to bring one for the screencast recording.

Thanks!

skype works fine in china.

DigitalFreak's picture

skype works fine in china. But if you host your own screencast server, I doubt if I can connect to that server, as I tried to VNC my home server from guangzhou with no success. (maybe because i use no-ip.org which got blocked by the great wall)

my skype id is "datafok", see you all in skype

I just did some lookup in

DigitalFreak's picture

I just did some lookup in google and this screen sharing software look promising, anyone have tried it ? http://www.nchsoftware.com/screen/index.html

A meeting is scheduled.

cloneofsnake's picture

A meeting is scheduled. Please click the link http://webmeeting.dimdim.com:80/portal/JoinForm.action?confKey=cloneofsn... to join the meeting at the scheduled time.

Details of the meeting are
Meeting Name: cloneofsnake
Meeting Room ID: cloneofsnake
Meeting Agenda: Dave and Karim to present.
Your Role: Attendee
Recurrence: This meeting happens only once
Schedule Starts on: November 13, 2008 7:00:PM Asia/Taipei
Schedule Ends At: November 13, 2008
International Dial In: Not Applicable
Moderator Pass Code: Not Applicable
Attendee Pass Code: Not Applicable
Meeting Key: HKDUP2meet

Please click the following link to download iCal attachment http://webmeeting.dimdim.com:80/portal/calendar.action?meetingId=6b3f4c4...

Sincerely,
Your Dimdim Team

I can join and see the

DigitalFreak's picture

I can join and see the screencast in dimdim, but I can listen nothing. Maybe, I should wait for the record version of the screencast with sound. -_-

thanks for the hard work.

Recording also has no sound :(

cloneofsnake's picture

Can see Dave's face though, so if u can read lips, this is as good as having sound!!

This makes me wish there's an easy way to dub or add subtitles to flv online! (& I think there already are these kinds of apps online...)

To view:
http://recordings.dimdim.com/view/349bc5e8-02c6-102c-a126-003048944478

To download:
http://recordings.dimdim.com/saveflv/349bc5e8-02c6-102c-a126-003048944478

meeting2 code

moni-gdo's picture

1 - inline podcast:

<a class="media2" href="/sites/dev.meeting2.com/files/audio.mp3">Podcast</a>

<?php
// this part can put in header block
drupal_add_js('
   $(document).ready(function(){
     $("a.media2").media( { width: 300, height: 20 } );
   });
'
,'inline');
?>

2 - Carousel:

<?php
 
// this part can put in views header
 
drupal_add_js(drupal_get_path('module', 'jcarousel_block') . '/jcarousel/lib/jquery.jcarousel.pack.js');
 
drupal_add_css(drupal_get_path('module', 'jcarousel_block') . '/jcarousel/lib/jquery.jcarousel.css');
 
drupal_add_css(drupal_get_path('module', 'jcarousel_block') . '/jcarousel/skins/tango/skin.css');
 
drupal_add_js('$(document).ready(function() {
   $(".view-id-carousel_list div ul").attr("id","mycarousel");
   $(".view-id-carousel_list div ul").addClass("jcarousel-skin-tango");
   $("#mycarousel").jcarousel();
  });'
,'inline');
?>

3 - JW playlist:

<div id="flashplayer"></div>

<?php
drupal_add_js
('
  var currentItem;
  
  function getUpdate(typ,pr1,pr2,pid) {
    if(typ == "item") { currentItem = pr1; setTimeout("getItemData(currentItem)",100); }
  }

  function getPlayer(gid) {
    return (navigator.appName.indexOf("Microsoft") != -1) ? window[gid] : document[gid];
  }

  function getItemData(idx) {
    var obj  = getPlayer("movie_player_1").itemData(idx);
    var nodes="<ul>";
    for(var i in obj) {
      nodes += "<li>"+i+": "+obj[i]+"</li>";
    }
    nodes +="</ul>"; 
    var playing = "<img src="+obj["image"]+" width=150><br>"+obj["title"];
    $("#block-block-1 .content").html(playing + nodes);
  }

  $(document).ready(function(){
    $("#flashplayer").media({
      width:600,
      height:200,
      autoplay:false,
      src: "/sites/dev.meeting2.com/files/mediaplayer.swf",
      params: { allowfullscreen:"true", allowscriptaccess:"always", wmode:"opaque", id:"movie_player_1", name:"movie_player_1"},
      flashvars: { file:"/sites/dev.meeting2.com/files/playlist.xml", repeat:"false", thumbsinplaylist:"true", displaywidth:"340", autoscroll:"true", playlistsize:"240", playlist:"right", enablejs:"true"}
    });
  });

'
,'inline');
?>

what up with the SVN thing?

DigitalFreak's picture

what up with the SVN thing? When i got in, you guys are talking about svn, and you guys using it thru terminal! I just know how to use by tortoiseSVN, indeed, i never use that at work, still stuck with the old CVS.

Version control notes

dalin's picture

Here's some notes about version control.

The main benefits:

  1. Ease of install/updating
  2. Ease of contributing bug fixes back to the community
  3. Ease of managing your sites:
    • maintaining a local copy of your site
    • updating the webserver once you're happy with your changes
    • reverting changes when you screw things up
    • keeping a history to see what you've done over time

1. Ease of install/updating

How to checkout Drupal core from CVS:

http://drupal.org/node/320
"Checkout a specific Drupal version"
cvs -z6 -d:pserver:anonymous:anonymous@cvs.drupal.org:/cvs/drupal co -r DRUPAL-6-6 drupal

How to checkout Drupal modules from CVS:

http://drupal.org/node/321
"Checking out a specific version of a contrib module"
cvs -z6 -d:pserver:anonymous:anonymous@cvs.drupal.org:/cvs/drupal-contrib checkout -r <version tag> -d ModuleName contributions/modules/moduleName

How to update to a newer version:

http://drupal.org/node/93966

cvs update -r DRUPAL-6-4 -dP
cvs update -r DRUPAL-5--1-4 -dP

2. Ease of contributing bug fixes back to the community

How to create a patch when you fix a bug:

http://drupal.org/patch/create

3. Ease of managing your sites

Places to setup a free subversion repository:

http://unfuddle.com/
http://www.assembla.com/
http://code.google.com/hosting/

How to import your site into a SVN repo:

svn import my_directory https://svn.example.com/projects/my_site
http://svnbook.red-bean.com/en/1.0/re12.html

How to checkout from SVN:

svn checkout URL... [PATH]
svn checkout https://svn.example.com/projects/my_site my_directory
http://svnbook.red-bean.com/en/1.0/re04.html

How to add new files to the repository (forgot to talk about this one last night):

cd my_directory/sites/all/modules
cvs -z6 -d:pserver:anonymous:anonymous@cvs.drupal.org:/cvs/drupal-contrib checkout -r DRUPAL-6--2-0 -d cck contributions/modules/cck
svn add cck

http://svnbook.red-bean.com/en/1.0/re01.html
How to commit your changes:

svn commit -m "Added cck, now I can create custom content types!"
http://svnbook.red-bean.com/en/1.0/re06.html

How to update another installation (your webserver perhaps):

svn update
http://svnbook.red-bean.com/en/1.0/re28.html

4. Getting the tools

Making life simpler for you windoze users

http://www.tortoisecvs.org/
http://tortoisesvn.tigris.org/

Mac Users

CVS comes with Mac OS X; so you don’t need to install anything new if you’ve installed the programs on the Xcode Tools CD or downloaded Xcode from http://developer.apple.com/tools/
SVN comes with OS X.

Other *nix users

The CSV package name is cvs.
The SVN package name is subversion.

--
Dave Hansen-Lange
Web Developer
Advomatic LLC
East Asia Office
Hong Kong

--


Dave Hansen-Lange
Director of Technical Strategy, Advomatic.com
Pronouns: he/him/his

Formatting

dalin's picture

Neither my or Moni's posts turned out well via email. Take a look at the site to see things more clearly.

--

Dave Hansen-Lange
Web Developer
Advomatic LLC
East Asia Office
Hong Kong

--


Dave Hansen-Lange
Director of Technical Strategy, Advomatic.com
Pronouns: he/him/his

thank you for explain it in

DigitalFreak's picture

thank you for explain it in words.

however, I am still a bit confused about how to use SVN / CVS to maintain the site.
what is the setup of that?
is it like?
I first setup a repository and I update my code to it.
then I checkout from repository to my web server?

(local machine) ----> (repository) -----> (web server)

what if my web server does not allow me to have terminal access (can only ftp)? Is there ways to work around with the above setup?

Moreover, in my mind the most efficient way is to have the repository and web server on the same machine. So that I can directly update any change without going through one more step of checking out from the web server. Am I right, or there are some concerns in this way?

You will need SSH access to

cloneofsnake's picture

You will need SSH access to your web host in order to use SVN to dev / maintain your sites.

My understanding of the correct steps are:

  1. Check out Drupal core + modules from CVS - (Drupal.org --> Local box)
  2. Import local development snapshot to SVN repository for the 1st time - (Local box --> SVN repository)
  3. Check out from SVN repository to Local box and your web host - (SVN repository [1 --> Many] Local box, Local box 2, staging, live site... etc)

When new versions of Drupal core or modules come out, you can then update from CVS directly, make sure everything still works and then check in to your SVN and then check out to your staging / live sites.

@cloneofsnake: exactly! Dave

dalin's picture

@cloneofsnake: exactly!

Dave Hansen-Lange
Web Developer
Advomatic LLC
East Asia Office
Hong Kong

--


Dave Hansen-Lange
Director of Technical Strategy, Advomatic.com
Pronouns: he/him/his

@Dave > SVN comes with OS

cloneofsnake's picture

@Dave > SVN comes with OS X

Not true on Tiger? (me on 10.4 still...)

What are my options? Anyone can lend me a Leopard disc? ;-P

Install MacPorts

johndbritton's picture

Install MacPorts, then just run "sudo port install subversion" from terminal and you'll be all set.

--
http://www.johndbritton.com

Available options

caphun's picture

You could download the Subversion binary for Tiger from http://subversion.tigris.org/. The one in Leopard is provided by CollabNet.

Alternatively, if you have Fink installed open a terminal and run 'apt-get install svn'. I've not used the svn package provided by Fink so not sure how good this is.

You might also want to investigate whether Apple Developer Tools include Subversion. As I'm new to Mac myself (recently switched a month ago) I haven't fully investigated this avenue.

cloneofsnake's picture

Had been reading the docs but couldn't find the answer. With CVS, can I checkout Drupal into a specific directory?

Or... does that really matter? Let's say I go to my web root folder and use CVS, a new folder called "drupal" will be created then. From there, I guess I can CVS a few necessary modules (like CCK2 and Views2) into sites/all/modules/

After that, can I copy the entire drupal folder for creating a new site? Let's say I'm creating a site called "Utube", can I copy "drupal" into "Utube", and then continue to use CVS to checkout additional modules and do updates and import to my own SVN?

So, whenever I make a new site, I duplicate the "drupal" folder with a new name, do CVS updates, checkout modules and import to new SVN project. Is this the right process? Or should I CVS checkout a new copy of Drupal into a new folder every time?

The later

dalin's picture

I would do the later:

cvs -z6 -d:pserver:anonymous:anonymous@cvs.drupal.org:/cvs/drupal checkout -d utube -r DRUPAL-6-6 drupal

and then sometime in the future, after 6.9 has been released you want to make a new site called stube

cvs -z6 -d:pserver:anonymous:anonymous@cvs.drupal.org:/cvs/drupal checkout -d stube -r DRUPAL-6-9 drupal

--
Dave Hansen-Lange
Web Developer
Advomatic LLC
East Asia Office
Hong Kong

--


Dave Hansen-Lange
Director of Technical Strategy, Advomatic.com
Pronouns: he/him/his

Enjoy!

hk900's picture

Morning! I enjoy the lesson so much.

Looking for the next meeting before X'mas.
Maybe for the X'mas special, everyone can present one or two module. We can share the experience and make improvement!

SSH capable hosting for $20USD

spyderboy's picture

I think it was John who mentioned this: http://mediatemple.net/

100gigs hosting space with SSH access. Sounds like a good deal. Anyone else have hosting experiences/reccommendations to share?

Pain in life is necessary. Suffering is optional.

Dreamhost

caphun's picture

I'm using Dreamhost. Haven't had any problems with it so far.

http://www.dreamhost.com/

They are offering unlimited disk space today!

Be warned there're stict TOS

cloneofsnake's picture

Be warned there're stict TOS w/ that unlimited storage / bandwidth offer:

http://www.webhostingtalk.com/search.php?searchid=6920498
(Strange URL... I did an advanced search for "dreamhost" on their Web Hosting Forum.

Same goes for Media Temple actually, there are a lot of complaints about their $20 Grid Service being slow... (web <--> database connection problems).

I don't know... seems like there're a ton of complaints on webhostingtalk.com. Do you guys have personal testimonial? I am on skynethosting.net, but they seem to be down a lot. Like recently I upgraded from their $5 shared hosting to $9 reseller hosting, which moved me from servers in Florida to Dallas, Texas, I was hoping for better performance, but already experienced some downtime last weekend and today! Today my drupal site was down for most of the day actually!!! mysqli error, seems like they're doing a lot of server adjustments & upgrades on the weekends.

From webhostingtalk.com, seems like tmzhosting gets pretty good reviews:
http://www.tmzhosting.com/

Also, do you guys know any good server / site monitoring services?
http://www.viewmydns.com/
http://host-tracker.com/ (<-- I just signed up here.)

DreamHost's TOS

caphun's picture

I agree with what people are saying in webhostingtalk.com that the TOS is to protect the Hosting company. For $5-$10 a month you can't really expect to host a high bandwidth website or run a video streaming web application. So for the usual website the TOS is fine but for a high profile site it's a grey area. Though by that time the site would have moved away from the shared hosting environment.

I've used DreamHost for over a year now. My website has been down once I think and the Control panel went through several maintenance upgrades. DreamHost are pretty Phone shy though their online support is second to none. However I have not used DreamHost for anything major. So far I've only used it for my website and as a dev/testing server. So any testimonial I have wouldn't be complete.

Hope that helped :)

You Get What You Pay For

johndbritton's picture

Don't really expect too much from shared hosting, in most cases you're sharing space with many other hosting clients. I'm weary of hosts that offer unlimited anything, it's just not possible.

--
http://www.johndbritton.com

Marketing ploy

caphun's picture

I see it as a marketing ploy. The word "Unlimited" catches peoples attention. In most cases I would be weary of these hosts but DreamHost provides a pretty solid service and a very genuine one too.

SVN

dalin's picture

Since there will be many of us working on the SOHO project on different machines SVN will be a necessity. Advomatic has volunteered our SVN repo for HKDUG group work. I'll contact you all individually about the user/pass for the repo.

Dave Hansen-Lange
Web Developer
Advomatic LLC
East Asia Office
Hong Kong

--


Dave Hansen-Lange
Director of Technical Strategy, Advomatic.com
Pronouns: he/him/his

Karim's request fulfilled!

cloneofsnake's picture

Karim! We got to use Advomatic's SVN repository!! :D

Seriously! Thanks Dave! I'm in the process of getting their local web hosting info. Hope they allow SSH and has CVS + SVN installed. Will keep y'all posted.

Thanks!

coool

moni-gdo's picture

That's awesome Dave!

Brilliant!

caphun's picture

Advomatic's generosity is much appreciated.

It sounds like much was discussed in the second meeting.

Do we have a project plan? Who will be doing what? How many of us are working on / interested in the SOHO project? Should we setup a meeting to discuss this project?

DrupalHK

Group categories

HKDUG Vocabulary

Group notifications

This group offers an RSS feed. Or subscribe to these personalized, sitewide feeds:

Hot content this week