Wednesday, December 10, 2008

How To Modify The Look And Feel of Your Qt Jambi Application

Just add this line on your Main Window:

QApplication.setStyle(new QWindowsStyle());

Check this link: http://doc.trolltech.com/qtjambi-4.4/html/com/trolltech/qt/gui/QStyle.html

Tuesday, December 9, 2008

Installing Google AppEngine In Eclipse Ganymede

Installation:
1. Install Python 2.5.
2. Download App-Engine SDK and documentation.
3. Extract to directory.
4. If using Eclipse, follow the instructions listed here:
http://code.google.com/appengine/articles/eclipse.html

5. On the eclipse integration with assembla, you will need the Mylyn + extras plugin. Install those first. If you are familiar with Trac it should be easy. But learning Trac is not that hard.

Trac is the issue tracking tool used by assembla which is well integrated with svn. So you will need Subclipse too.

6. On your update manager in eclipse, add these links :
Subclipse : http://subclipse.tigris.org/update_1.4.x
Mylyn : http://download.eclipse.org/tools/mylyn/update/e3.4
Mylyn Extras : http://download.eclipse.org/tools/mylyn/update/extras/

7. Choose to install all features of Mylyn including the extras for the Trac plugin.

8. On subclipse, point your new repository from assembla (Or, other code repository) via Subversion Repository Exploring perspective.

(documentation for eclipse provided by Jose Maranan)

Using Audacity on Asus Eeepc

If you have an Ubuntu 8.04 installed on an Eeepc and will be using Audacity, the default ALSA will not work only the Jack Connection would work, but how do you configure your JACK?

Install Qjackctl using synaptic:

1. Go to System->Adminstration->Synaptic Package Manager.
2. Search on Qjackctl and check then install.
3. Go to Applications->Sound & Video->Jack Control.
4. Configure using these settings:

* Driver: oss
* Frames/ Period: 512
* Sample rate: 48000
* Periods/ Buffer: 20
* Word Length: 16
* Port Maximum: 1024
* Timeout: 5000
* Audio: Duplex

5. Click OK then Start jackd.
6. Run Audacity, then Edit-> Preferences.
7. Playback device and Recording device choose Jack Connection.
8. On the lower left side of the tracks, choose 48000 instead of 41000.
9. Record, Play, and Enjoy!

Or, you could upgrade to 8.10 Intrepid Ibex and is fixed by default without going into this trouble. :)

Monday, December 8, 2008

Want To Learn Java Using Qt Jambi For Free?

If you want to program in Java using Qt Jambi Framework from Nokia, this is it. Though this is just a tutorial of the basics, you will learn how to create your first Qt GUI program and run it. It also includes Java topics such as Language Basics: Strings, Numbers, Arrays, String Builder, Expressions, Statements, Blocks, and OOP concepts like Classes, Objects, and so on. It also include a link where you could copy and paste the source code book example creating your own Photo Slideshow!

1.Go to this Link: http://www.esnips.com/web/JavaQtBook

How To Upgrade Your Ubuntu

1.Go to System-> Administration->Software Sources->Updates.
2.Release Upgrade, choose Normal Releases.
3.Then, go to System-> Administration->Update Manager.
4.Click on the button upgrade. This would take hours, depending on your Internet connection and computer speed.
5.Enjoy!

Monday, November 17, 2008

Web-Sequencer User Manual


Web-Sequencer User Manual (alpha)

http://web-sequencer.appspot.com

Disclaimer

Since this is still on alpha stages of the program, there are still some bugs to iron out. Yet, it is tested to be working properly on our system. If you encountered bugs or lost work, we are not responsible because of this. You may report it to us using this email address: soundchemistry29@yahoo.com

Introduction

Music has been my passion ever since. I wrote this web application for educational purposes, enjoyment, and to promote striving artists (such as myself) to expose their talents thoughout the world using the miracle of the Internet Age.

Using this application gives users the ability to collaborate together as artists.

In this release, adding sound files, drag and drop support, playing, stopping, and starting works. You can save your work and recreate it; it can retrieve your saved work and show it on the list. But, showing other saved works were not tested yet.

The Application Roadmap: Add collaboration support like saving your friends work and retrieving it. Uploading Sound Files may, or may not be supported.

Requirements

  • Firefox 3.0 not 3.5

  • Quicktime plugin or Mplayer plugin (which works best)

  • MediaWrap extension for firefox (Windows)

In firefox (Linux): Edit→Preferences→Content You should find MP3 or MPEG layer 3 using Quicktime plugin or Mplayer plugin.



Plug-ins in firefox 2.0


Or, type: "about:plugins" in the address bar of the browser.

Usage

Uploading New Sound Files (not yet supported)

  1. Scroll-down; Type a name for the file then click the browse button to locate your file.

Warning: You may only upload MP3 files. Other formats are not supported!



Uploading MP3 Files


  1. Click "Upload" button.

Inserting Sound Files

  1. Scroll down; choose the Sound File you want to insert then Click "Insert" button.



Inserting sound files


  1. Scroll up; you will see a light blue bar on the upper left corner, below the Music Sequencer Title. This bar represents the sound file you inserted.



blue bar sound file inserted


  1. Double-click, hold, drag, release! the blue bar, and position it in the track. The Track is represented by colors light blue and sky blue inside the frame.



tracks light blue and sky blue


Deleting Sound Files (Blue Bars)

  1. Click on the Delete Check Box.

  2. Click on the Blue Sound Files to Delete.

  3. Uncheck the Delete Checkbox.

Copying Sound Files

After Inserting your Sound File, in the corresponding track, click the "Copy" button.

It will copy the sound file and insert another bar. The copied bars will have a distance according to the first sound file on the track between the yellow and blue/red track.



Copying Sound Files


Saving Your Work

  1. To save a session,

  2. Click button "Get Data," then, "Save Data."

Retrieving your Saved Sessions

  1. Scroll down; You will see "Links of Saved Sessions."

  2. Click on the User Name to retrieve the Saved Session.

  3. Click "Recreate" button.

--End of User Manual Web-Sequencer alpha--

Saturday, September 6, 2008

Adding Scroll Bars in a Qt Widget

Read this:

http://foobar.lu/wp/2007/09/10/adding-scrollbars-to-a-qframe-in-qt/


self.scrollBarArea = QtGui.QScrollArea() #create object
self.stackedWidget.setParent(None)
self.scrollBarArea.setWidget(self.stackedWidget) #assign child widget to scroll area layout = QtGui.QVBoxLayout() #create Vertical Layout (QLayout won't run) layout.addWidget(self.scrollBarArea) #add the scroll area to layout
self.centralwidget.setLayout(layout) #add layout to the widget