Skip to content

Instantly share code, notes, and snippets.

View vamsiikrishna's full-sized avatar
🎯

Vamsi Krishna B vamsiikrishna

🎯
  • Bengaluru - India
View GitHub Profile
@vamsiikrishna
vamsiikrishna / gist:849112
Created March 1, 2011 13:21
codeigniter jQuery-File-Upload Controller
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
class Upload extends CI_Controller {
function __construct()
{
parent::__construct();
$this->load->helper(array('form', 'url'));
$this->load->database();
@vamsiikrishna
vamsiikrishna / gist:849114
Created March 1, 2011 13:22
CodeIgniter jQuery-File-Upload upload form
<html>
<head>
<title>Upload Form</title>
<link rel="stylesheet" href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.9/themes/base/jquery-ui.css" id="theme">
<link rel="stylesheet" href="http://dl.dropbox.com/u/8626323/dnd/jquery.fileupload-ui.css">
<style>
body {
font-family: Verdana, Arial, sans-serif;
font-size: 13px;
margin: 0;
@vamsiikrishna
vamsiikrishna / gist:849115
Created March 1, 2011 13:23
CodeIgniter jQuery-File-Upload succes view
<?php echo '{"name":"'.$upload_data['file_name'].'","type":"'.$upload_data['file_type'].'","size":"'.$upload_data['file_size'].'"}';?>
<!doctype html>
<html>
<head>
<!-- Run in full-screen mode. -->
<meta name="apple-mobile-web-app-capable" content="yes">
<!-- Make the status bar black with white text. -->
<meta name="apple-mobile-web-app-status-bar-style" content="black">
# Installing graphite dependencies
apt-get install -y python2.6 python-pip python-cairo python-django python-django-tagging
apt-get install -y libapache2-mod-wsgi python-twisted python-memcache python-pysqlite2 python-simplejson
pip install whisper
pip install carbon
pip install graphite-web
# Setup a vhost by grabbing the example the graphite team released on their repo.
# In this file, you'll provide the url used to access to your Graphite dashboard
wget https://raw.github.com/tmm1/graphite/master/examples/example-graphite-vhost.conf -O /etc/apache2/sites-available/graphite
sudo apt-get update && apt-get install git-core curl build-essential openssl libssl-dev
# Don't forget to go to the location you want to install node in (like cd /home/) before running these commands
git clone https://github.com/joyent/node.git
cd node
git checkout v0.8.12
./configure --openssl-libpath=/usr/lib/ssl
make
make test
Your requirements could not be resolved to an installable set of packages.
Problem 1
- Installation request for symfony/icu 1.2.x-dev -> satisfiable by symfony/icu 1.2.x-dev.
- symfony/icu 1.2.x-dev requires lib-icu >=4.4 -> the requested linked library icu has the wrong version installed or is missing from your system, make sure to have the extension providing it.
Problem 2
- symfony/icu 1.2.x-dev requires lib-icu >=4.4 -> the requested linked library icu has the wrong version installed or is missing from your system, make sure to have the extension providing it.
- symfony/symfony v2.4.2 requires symfony/icu ~1.0 -> satisfiable by symfony/icu 1.2.x-dev.
- Installation request for symfony/symfony v2.4.2 -> satisfiable by symfony/symfony v2.4.2.
### Keybase proof
I hereby claim:
* I am vamsiikrishna on github.
* I am vamsi (https://keybase.io/vamsi) on keybase.
* I have a public key whose fingerprint is 959F DD2F ED3E 02DF F052 C407 F909 6810 9585 8817
To claim this, I am signing this object:
:] :) :D :/ >[ :p :o >_>
It also supports the word syntax:
:happy: :aw: :cool: :kiss: :meh: :mmf: :heart:';