Skip to content

Instantly share code, notes, and snippets.

View mariuz's full-sized avatar

Popa Marius Adrian mariuz

View GitHub Profile
CREATE DOMAIN "BooleanField" AS smallint CHECK (VALUE IN (0,1));
CREATE DOMAIN "NullBooleanField" AS smallint CHECK ((VALUE IN (0,1)) OR (VALUE IS NULL));
CREATE DOMAIN "PositiveIntegerField" AS integer CHECK ((VALUE >= 0) OR (VALUE IS NULL));
CREATE DOMAIN "PositiveSmallIntegerField" AS smallint CHECK ((VALUE >= 0) OR (VALUE IS NULL));
CREATE DOMAIN "TextField" AS varchar(10921);
CREATE TABLE "books_publisher" (
"id" integer NOT NULL PRIMARY KEY,
"name" varchar(30) NOT NULL,
"address" varchar(50) NOT NULL,
"city" varchar(60) NOT NULL,
# Django settings for django_frontend project.
DEBUG = True
TEMPLATE_DEBUG = DEBUG
ADMINS = (
# ('Your Name', 'your_email@example.com'),
)
MANAGERS = ADMINS
CREATE DOMAIN "BooleanField" AS smallint CHECK (VALUE IN (0,1));
CREATE DOMAIN "NullBooleanField" AS smallint CHECK ((VALUE IN (0,1)) OR (VALUE IS NULL));
CREATE DOMAIN "PositiveIntegerField" AS integer CHECK ((VALUE >= 0) OR (VALUE IS NULL));
CREATE DOMAIN "PositiveSmallIntegerField" AS smallint CHECK ((VALUE >= 0) OR (VALUE IS NULL));
CREATE DOMAIN "TextField" AS varchar(10921);
CREATE TABLE "books_publisher" (
"id" integer NOT NULL PRIMARY KEY,
"name" varchar(30) NOT NULL,
"address" varchar(50) NOT NULL,
"city" varchar(60) NOT NULL,
<!--[if gte IE 6]>
<style type="text/css">
#ie6msg{border:3px solid #090; margin:8px 0; background:#cfc; color:#000;}
#ie6msg h4{margin:8px; padding:0;}
#ie6msg p{margin:8px; padding:0;}
#ie6msg p a.getie7{font-weight:bold; color:#006;}
#ie6msg p a.ie6expl{font-weight:normal; color:#006;}
</style>
<div id="ie6msg">
<h4>Did you know that your browser is not working with the old web 1.x ?</h4>
server {
listen 80;
server_name www.example.com;
# serve static files
location ~ ^/(img|images|javascript|js|css|flash|media|static)/ {
root /var/www/www;
# expires 30d;
}
location / {
# Generated by the windmill services transformer
from windmill.authoring import WindmillTestClient
def test_recordingSuite0():
client = WindmillTestClient(__name__)
client.click(name=u'q')
client.type(text=u'firebird', name=u'q')
client.click(name=u'btnG')
client.waits.forPageLoad(timeout=u'20000')
#include <stdio.h>
#include<stdlib.h>
#include <sys/ipc.h>
#include <sys/types.h>
#include"functii.h"
int main()
{
pid_t PID1=PID();
struct shmid_ds buff;
key_t key;
[base]
name=Fedora Core $releasever - $basearch - Base
baseurl=http://archive.nl.eu.kernel.org/fedora-archive/core/$releasever/$basearch/os/
mirrorlist=http://fedora.redhat.com/download/mirrors/fedora-core-$releasever
enabled=1
gpgcheck=1
[updates-released]
name=Fedora Core $releasever - $basearch - Released Updates
baseurl=http://archive.nl.eu.kernel.org/fedora-archive/fedora/linux/core/updates/$releasever/$basearch/
#mirrorlist=http://fedora.redhat.com/download/mirrors/updates-released-fc$releasever
enabled=1
gpgcheck=1
voi scrie aici experientza de la un upgrade de fedora 3 la 4
ghidul general este aici
http://fedoraproject.org/wiki/YumUpgradeFaq#Fedora_Core_3_-.3E_Fedora_Core_4
1.prima eroare a fost ca lipsea keia gpg
rpm --import /usr/share/doc/fedora-release-3/RPM-GPG-KEY*
2. decomantat #baseurl in /etc/yum.repos.d/fedora.repo