Skip to content

Instantly share code, notes, and snippets.

View carlisia's full-sized avatar
:octocat:
๐ŸŽ‰ โ€ผ๏ธ ๐Ÿ™‹โ€โ™€๏ธ ๐Ÿ˜œ ๐Ÿ‘€ ๐ŸŒŸ ๐ŸŒˆ โ˜€๏ธ ๐Ÿ’ฏ

Carlisia Campos carlisia

:octocat:
๐ŸŽ‰ โ€ผ๏ธ ๐Ÿ™‹โ€โ™€๏ธ ๐Ÿ˜œ ๐Ÿ‘€ ๐ŸŒŸ ๐ŸŒˆ โ˜€๏ธ ๐Ÿ’ฏ
View GitHub Profile
def load_classifier(name)
# load energetic classifier
labels = Bayes.find(:all,
:select => "category",
:conditions => ["classifier = ? AND word is NULL AND count is NULL", name])
str_labels = []
labels.each do |l|
str_labels << l.name
end
[11:18]
carlisia
does anyone here know how i can transfer data from my local db to my production db?
zapnap
if the database itself is different (sqlite vs mysql for instance) you will have to do a bit of data conversion to do so
[11:21]
carlisia
with a visual tool (GUI) i know how that can be done. i haven't tried, could i hook up my mysql GUI tool to my db on linode? i can't see why not, but just checking
[11:22]
SuttoL