473,626 Members | 3,325 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

journal stuff


;; Fedora! Slask! .emacs!

;;; uncomment this line to disable loading of "default.el " at startup
;; (setq inhibit-default-init t)

;; turn on font-lock mode
(global-font-lock-mode t)

;; this command makes Emacs set the key "f5" to copy any text that is highlighted
(global-set-key [f5] "\M-w")

;; this command makes the "f6" key paste your copied text
(global-set-key [f6] "\C-y")

;; enable visual feedback on selections
(setq transient-mark-mode t)

(defun linux-c-mode ()
"C mode with adjusted defaults for use with the Linux kernel."
(interactive)
(c-mode)
(setq c-indent-level 8)
(setq c-brace-imaginary-offset 0)
(setq c-brace-offset -8)
(setq c-argdecl-indent 8)
(setq c-label-offset -8)
(setq c-continued-statement-offset 8)
(setq indent-tabs-mode nil)
(setq tab-width 8))

(setq auto-mode-alist (cons '("/home22/j/c/foster.*/.*\\.[ch]$" . linux-c-mode)
auto-mode-alist))

;; this sets syntax highlighting so that html, C and various other programming
;; languages and style appear colored - this allows for easier understanding of
;; text inside the Emacs buffer.
(global-font-lock-mode t)

;; Please do not make backup files
(setq make-backup-files nil)

;; Turn off auto-saving
(setq auto-save-default nil)

;; this sets line numbers
(setq line-number-mode t)

;; this sets the background to grey
(set-background-color "grey40")

;; this sets the foreground color or the text itself.
(set-foreground-color "black")

;; this sets the cursor color
(set-cursor-color "DarkOrange 2")

(custom-set-variables
;; custom-set-variables was added by Custom -- don't edit or cut/paste it!
;; Your init file should contain only one such instance.
)
(custom-set-faces
;; custom-set-faces was added by Custom -- don't edit or cut/paste it!
;; Your init file should contain only one such instance.
'(mode-line ((((type x w32 mac) (class color)) (:background "grey75" :foreground "black" :box (:line-width -1 :color "gray2" :style pressed-button)))))
'(region ((((class color) (background dark)) (:background "DarkOrange2")) ))
'(scroll-bar ((t (:background "grey75" :foreground "CadetBlue4 " :box (:line-width 2 :color "AliceBlue" :style released-button))))))

#!/usr/bin/python
"""form.py - a python cgi script with forms"""

# import various functionality
import os
import sys
import cgi

# debugging
import cgitb; cgitb.enable()

# uncomment for more debugging
# cgi.test()

# The all-important header
print "Content-type: text/html\n\n"
print ""

print "<header><title >form.py</title></header>"
print """<link rel=stylesheet type="text/css" href="../css/form.css">"""

print '''<h1>Journals at Archemix.</h1> Simply select the journals you want to be included in your inbox from the pull-down menu. If you want to pick more than one journal simply hold down the control key when you select. This woll generate a message so that you can see that you have selected every thing you want to receive. This can be changed at anytime so feel free to adjust your list whenever you want to.
<hr>

<form method=POST action="form.py ">
<p>Please enter your first name and last initial;
<p><input name="name" type="text" value="">
&nbsp <p> &nbsp
<p><select multiple name="Example">
<option selected label="none" value="none">No Magazine</option>
<optgroup label="Elsevier ">
<option value="science" >Science</option>
<option value="prosci"> Protein Science</option>
<option value="cell">CE LL</option>
</optgroup>
<optgroup label="Molecule s">
<option label="4" value="Molecula rCell">Molecula r Cell</option>
</optgroup>
</select>

<form method=POST action="form.py ">
<input type=submit value="Submit"> &nbsp <input type=reset value="Reset"></form>'''

# The fields and their values
form = cgi.FieldStorag e()
field = form.getlist("E xample")

print "<p><font size=+2>Your name:", form["name"].value
print "</font>"

for mag in field:
print "<br>You are on the list for:", mag

# write them to a file
file = open("file_cgi. txt", "a")
file.write("<p> name - " + form["name"].value)

for name in field:
file.write("<br ><font color='orange'> ")
file.writelines (name)
file.write("</font>")
file.close()

## InputFile = open("file_cgi. txt", "r")
## Input = InputFile.read( )
## InputFile.close ()
## print "<div class='InputFil e'>", Input
## print "</div>"


Jul 18 '05 #1
0 1163

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
3245
by: Preston Crawford | last post by:
I'm looking to quickly get a photo album online. Very simple, thumbnails, a few pages, maybe a description, but hopefully a small script that's easy to edit and work into my existing site. I know about hot scripts, etc. but I was wondering if any one could recommend one? Secondly, I also want to setup a journal. It's not really a "blog" although I guess blog software may work. But it isn't going to be a message board or anything like...
0
1495
by: Dianne Combs | last post by:
Dear Online Reader or Editor ... If you could ... please take a look at our new online treeless edition newspapers, The Northeast Progressive Advocate-Journal and our sister newspaper the San Francisco Bay Gazette, which are produced exclusively by our joint staffs to serve the Northeast and West Coast areas - with additional non-mainline media perspective. News stories and columns are researched, thoughtful and blend politics with...
3
5092
by: Gerhard Swart | last post by:
Hi all. I'm writing a queue browser that reads queues from a specified machine and then display the data that's on the queue. I am using the MessageQueue Class in .Net(C#). I get the problem that I can't read the journal private queue on a remote machine. I don't know if this is possible though. I have tried all the possible options but can't seem to get it to work. The code that I tried is: MessageQueue _mq = new MessageQueue(...
0
1076
by: Apostolos | last post by:
Hello, I am really happy to let you know that the "Internation Journal of Digital Typography" is now accepting submissions. IJDT is a new peer-reviewed e-journal that aims to provide a forum for the publication of original results in the area of digital typography (i.e., electronic document preparation, on-screen reading, data representation, etc.). The journal's Web page is located at http://www.bepress.com/ijdt.
0
1748
by: Sam Flywheel | last post by:
Hello, all: I am pleased to announce that the MySQL Journal is moving forward. During the past two weeks, I've been discussing the journal with MySQL AB, and the plan that's been devised benefits all involved, including authors, readers, the community, and MySQL AB.  Let me outline how the journal will operate: * The name of the magazine is Tabula: The Journal of MySQL Development.
4
2626
by: tleeuwenburg | last post by:
To whom it may concern, I have been involved in putting together a new Python journal, called (oh so originally) The Python Journal. This isn't related to a previous project also called The Python Journal although we have the approval of the group that put it together in using their name. http://pyjournal.cgpublisher.com is the journal URL, and it has a number of news feeds -- blog entries, new products (i.e. articles and volumes)
0
1695
by: Brent Freeborn | last post by:
Hi all, I am trying to create a C# console application to convert a Microsoft Journal file to a TIFF image file. I am using the Microsoft.Ink.DLL and the Microsoft.Ink.JournalReader.DLL to read in the Journal file (using the JournalReader's ReadFromStream method) allowing me to then have an XML representation of the Journal file within an in-memory XmlDocument.
0
1167
by: =?Utf-8?B?Umljaw==?= | last post by:
As I researched alternatives to filewatchers, I ran across the change journal. What is the best way to access the Change Journal through managed code? Thank you
0
1271
by: tavares | last post by:
----------------------------------------------------------------------------------------------------------------------------------------- (Apologies for cross-posting) International Journal of Imaging (IJI) http://www.ceser.res.in/iji.html ISSN 0974-0627 We would appreciate if you could distribute this information by your
0
8266
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8705
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
7196
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5574
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4092
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4198
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2626
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1811
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1511
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.