From MySQL to SQLite3
Here is a little trick to make a migration of data between a SQLite3 database to a MySQL
The first will make the dump of the database SQLite:
$ cd db /
$ Sqlite3 development.sqlite3
SQLite version 3.3.5
Enter. “Help” for Instructions
sqlite>. dump.sql output
sqlite>. dump
sqlite> exit;
sqlite>. exit
What we generate a file dump.sql
Share on Facebook
var button = document.getElementById(’facebook_share_link_360′) [...]
Share on Facebook
If I could just get the stupid thing to build
Rails 2.3.3 in OpenSolaris /contrib repo
A while back an OpenSolaris repository called /contrib was introduced to basically allow anyone with an account on opensolaris.org to submit Open Source applications/libraries to an OpenSolaris repo. The details of how to go about doing this are best saved for [...]
Share on Facebook
Vagrant is a tool for building and distributing virtualized development environments. This video shows how to get started with Vagrant by building a reusable development environment for a LAMP stack. For more information on Vagrant, visit vagrantup.com
Vagrant - Getting Started from Mitchell Hashimoto on Vimeo.
Share on Facebook
var button = document.getElementById(’facebook_share_link_311′) || document.getElementById(’facebook_share_icon_311′) || document.getElementById(’facebook_share_both_311′) || [...]
Share on Facebook
this is screenshot by opensolaris operating system and then it very complete
I haven’t so much say as respect only images…
Share on Facebook
var button = document.getElementById(’facebook_share_link_298′) || document.getElementById(’facebook_share_icon_298′) || document.getElementById(’facebook_share_both_298′) || document.getElementById(’facebook_share_button_298′);
if (button) {
button.onclick = function(e) {
var url = this.href.replace(/share\.php/, ’sharer.php’);
window.open(url,’sharer’,'toolbar=0,status=0,width=626,height=436′);
return false;
}
if (button.id === ‘facebook_share_button_298′) {
button.onmouseover = function(){
this.style.color=’#fff’;
this.style.borderColor = ‘#295582′;
this.style.backgroundColor = ‘#3b5998′;
}
button.onmouseout = function(){
this.style.color = ‘#3b5998′;
this.style.borderColor [...]
Share on Facebook
This opportunity was trying to write a regular expression and we’ve probably write a better … what this function is to process a string that is word for word count every word in a block…
#!/usr/bin/ruby
#Extract each word found in a block of code
class String
def word_count
[...]
Share on Facebook
Original link by http://www.linux-mag.com/cache/7439/1.html
Microsoft has released code for inclusion in the Linux kernel, but should it be accepted? Linus Torvalds gives his perspective.
Christopher Smart
Wednesday, July 22nd, 2009
Community Tools
You may have already heard, but the unthinkable has happened. That’s right, Microsoft, the self-proclaimed enemy of Linux and free software, has announced that they will be submitting [...]
Share on Facebook
First remove the file , public/index.html and add a route (to config/routes.rb) like:
then …
For example map.connect’ ‘ :controller => ‘Home’, :action => ‘ index’
To specify the Controller and Action for the initial you application Rails.
Share on Facebook
var button = document.getElementById(’facebook_share_link_261′) || document.getElementById(’facebook_share_icon_261′) || document.getElementById(’facebook_share_both_261′) || document.getElementById(’facebook_share_button_261′);
if (button) {
button.onclick = function(e) {
var [...]
Share on Facebook
Why would any self-respecting Java developer care about Ruby? Ruby is a general-purpose scripting language created 10 years ago in Japan. Contrary to popular belief, it is a pure object-oriented language. Unlike Java technology, Ruby has no scalars, so everything, including integers, are first-class objects. Ruby’s syntax borrows heavily from Smalltalk, Python, and Ada. Like [...]
Share on Facebook
Delete a file is very simple..for example…Watch this script
require ‘fileutils’
FileUtils.touch ” example.rb”
File.exists? “example.rb”
File.delete “example.rb”
File.exists? “example.rb”
Only delete a file…
Share on Facebook
var button = document.getElementById(’facebook_share_link_244′) || document.getElementById(’facebook_share_icon_244′) || document.getElementById(’facebook_share_both_244′) || document.getElementById(’facebook_share_button_244′);
if (button) {
button.onclick = function(e) {
var url = this.href.replace(/share\.php/, ’sharer.php’);
window.open(url,’sharer’,'toolbar=0,status=0,width=626,height=436′);
return false;
}
if (button.id === ‘facebook_share_button_244′) {
button.onmouseover = function(){
this.style.color=’#fff’;
this.style.borderColor = ‘#295582′;
this.style.backgroundColor = ‘#3b5998′;
}
button.onmouseout = function(){
this.style.color = ‘#3b5998′;
this.style.borderColor = [...]
Share on Facebook
Scala is a general purpose programming language designed to express common programming patterns in a concise, elegant, and type-safe way. It smoothly integrates features of object-oriented and functional languages, enabling Java and other programmers to be more productive. Code sizes are typically reduced by a factor of two to three when compared to an equivalent Java [...]
Share on Facebook