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 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
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
The package needed is the ruby1.8-dev …then install
tinix@Creek:/#sudo gem install ruby-debug
Building native extensions. This could take a while…
Building native extensions. This could take a while…
Successfully installed linecache-0.43
Successfully installed ruby-debug-base-0.10.3
Successfully installed ruby-debug-0.10.3
3 gems installed
Installing ri documentation for linecache-0.43…
Installing ri documentation for ruby-debug-base-0.10.3…
Installing ri documentation for ruby-debug-0.10.3…
Installing RDoc documentation for linecache-0.43…
Installing RDoc documentation for ruby-debug-base-0.10.3…
Installing [...]
Share on Facebook
I needed install ruby-debug but the package could a take Error
tinix@Creek:/home/tinix/test# gem install ruby-debug
Building native extensions. This could take a while…
ERROR: Error installing ruby-debug:
ERROR: Failed to build gem native extension.
/usr/bin/ruby1.8 extconf.rb install ruby-debug
extconf.rb:1:in `require’: no such file to load — mkmf (LoadError)
from extconf.rb:1
Gem files will remain installed in /var/lib/gems/1.8/gems/linecache-0.43
for [...]
Share on Facebook
Finished the Conference in Buenos Aires locosxrails.com all very good, where I served well and I learned a lot more with different speakers,
I like the talk Obie Fernandez was …
that he wanted to rescue Rio Cuarto developers who are working on Ruby on Rails as well,
this moment not remenber his names…
everything was great thanks again [...]
Share on Facebook