This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/media/Yojimbo/eclipse/eclipse | |
No bp log location saved, using default. | |
[000:000] Browser XEmbed support present: 1 | |
[000:000] Browser toolkit is Gtk2. | |
[000:000] Using Gtk2 toolkit | |
No bp log location saved, using default. | |
[000:044] No bp log location saved, using default. | |
[000:044] Browser XEmbed support present: 1 | |
[000:044] Browser toolkit is Gtk2. | |
[000:044] Using Gtk2 toolkit |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
printOrder(newOrder) | |
return render_template('basantOrder.html', newOrder = newOrder, doneOrder=doneOrder) | |
# Function to print the last order row of new Order | |
def printOrder(d): | |
if (len(d) > 0): | |
key = d.keys()[-1] | |
with open('order', 'w') as f: | |
f.write("OrderNo"+ str(key)+"\n") | |
f.write("Name :"+ " " + d[key]['name'] + "\n") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div id="currentOrdersList"> | |
<div class="placedOrderDiv"> | |
</div> | |
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{% extends "basantBase.html" %} | |
{% block header %} | |
<!DOCTYPE HTML > | |
<!-- #D6FFA6 --> | |
<head id="mainHead"> | |
{% if title %} | |
<title>{{title}} - Basant Grocery</title> <!-- # the dynamic content is | |
enclosed in { {... }}--> | |
{% else %} | |
<title> Welcome! to Basant Grocery</title> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python3.2 | |
import sqlite3 | |
import os | |
dbBackup = sqlite3.connect('/home/basant/Ubuntu One/Basant site/basantBackup.db') | |
dbCurrent = sqlite3.connect('/home/basant/projects/basantProject/tmp/basant.db') | |
curB = dbBackup.cursor() | |
curC = dbCurrent.cursor() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Aug 27, 2013 6:27:44 PM org.apache.catalina.core.AprLifecycleListener init | |
INFO: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.libra | |
ry.path: /usr/lib/jvm/java-7-oracle/jre/lib/i386/client:/usr/lib/jvm/java-7-oracle/jre/lib/i386::/usr/java/packages/lib/i386:/lib:/usr/lib | |
Aug 27, 2013 6:27:45 PM org.apache.tomcat.util.digester.SetPropertiesRule begin | |
WARNING: [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting property 'source' to 'org.eclipse.jst.jee.server:mavenExample' did | |
not find a matching property. | |
Aug 27, 2013 6:27:46 PM org.apache.coyote.AbstractProtocol init | |
INFO: Initializing ProtocolHandler ["http-bio-8080"] | |
Aug 27, 2013 6:27:46 PM org.apache.coyote.AbstractProtocol init | |
INFO: Initializing ProtocolHandler ["ajp-bio-8009"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
proc /proc proc nodev,noexec,nosuid 0 0 | |
UUID=0e4d30b7-6062-45b3-89a3-266ecd5f6fca / ext4 errors=remount-ro 0 1 | |
UUID=8a4a3e51-63ce-4f65-9bee-7cee052f2a8a /home ext3 defaults 0 2 | |
UUID=4e894336-014f-4e82-94d4-6b10e9820338 none swap sw 0 0 | |
UUID=41B9013F54905221 /media/Yojimbo ntfs-3g auto,users,permissions 0 0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ varun: $~ ]$ mysql | |
Welcome to the MySQL monitor. Commands end with ; or \g. | |
Your MySQL connection id is 97 | |
Server version: 5.5.32-0ubuntu0.12.04.1 (Ubuntu) | |
Copyright (c) 2000, 2013, Oracle and/or its affiliates. All rights reserved. | |
Oracle is a registered trademark of Oracle Corporation and/or its | |
affiliates. Other names may be trademarks of their respective | |
owners. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Question --- | |
installed the devs and it runs and everything but got an error at the last step | |
copying build/lib.linux-i686-2.7/oursql.so -> /usr/local/lib/python2.7/dist-packages | |
error: /usr/local/lib/python2.7/dist-packages/oursql.so: Permission denied | |
My install --- | |
[ varun: $~ ]$ pip install oursql | |
Downloading/unpacking oursql | |
Running setup.py egg_info for package oursql |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
here is my code : | |
import oursql | |
conn = oursql.connect(db='databaseTest', user='root', passwd='ernest') | |
curs = conn.cursor(oursql.Cursor) | |
#for row in curs.fetchall(): | |
# print (row[0]) | |
mySqlFile = open( |