|
Import sys print sys.path sys.path+=['D:\\zjm_code'] print sys.path
it can't be save,how does do it,
thanks
Started by zjm1126 on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
You can use append()
import sys sys.path.append("/mypath")
to save it permanently, you can export.
|
|
It's possible to create digrams in SQL Server 2000 that can be useful to show the relationships between tables. The problem we run into is that when somebody refreshes our development database, the diagrams get lost. We can load tables, stored procedures...
Started by Jim on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
If you have Visio you can use the "Reverse Engineer" to diagram the DB. .
On SQL Server 2000 - here.
And info.
It can be done for SQL Server 2005 - see here .
|
|
What is the right way to save (php, html, js and mysql) code in database
Started by mando on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
As you didn't provide any other info:
$mycode....
D'oh! Are you sure you want to do that? How are you going to version that and work with that code from within an IDE?
However, if you're really inclined to, just keep it in whatever CLOB your DBMS supports .
|
Ask your Facebook Friends
|
Hey, is there a way to see what's been saved to NSUserDefaults directly? I'd like to see if my data saved correctly. Thanks!
Started by Ethan on
, 7 posts
by 7 people.
Answer Snippets (Read the full thread at stackoverflow):
You could NSLog each value you set, like:
NSLog(@"%@",[[NSUserDefaults standardDefaults] stringForKey:@"WhateverTheKeyYouSet"]);
you can check values for each key in array, returned by
[[[NSUserDefaults standartDefaults] dictionaryRepresentation] allKeys... .
|
|
What is an easy way to save/load settings? I'd prefer it if each user has their own set of settings.
Started by acidzombie24 on
, 6 posts
by 6 people.
Answer Snippets (Read the full thread at stackoverflow):
If this is a desktop application you could save information into the registry in the user's area well (desktop application)....
If this is a desktop application, the best way to store application and/or user specific settings of application.
|
|
I'm trying to create a notepad/wordpad clone. I want to save it in .rtf format so that it can be read by wordpad. How do I save a do this in C#?
Started by Lucas McCoy on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
RTF Spec Link
create the xml spec based ....
Just a guess though that you mean doing it without using that control .
Correct me if I'm wrong, but if you're using the RichTextBox control, you can just use the RichTextBox.SaveFile method to accomplush this .
|
|
Pretty simple scenario. I have a web service that receives a byte array that is to be saved as a particular file type on disk. What is the most efficient way to do this in C#?
Started by Kilhoffer on
, 8 posts
by 8 people.
Answer Snippets (Read the full thread at stackoverflow):
Actually, the most efficient way would be to stream the data and to write.
Will have a better performance.
|
|
I'm building some WPF application to manage my time. I'd like to save time spans for work time on project for a calendar day.
So my question is what's the best choice on how to save the data? I figured I could use an XML file, an Access database file ...
Started by Richard on
, 5 posts
by 5 people.
Answer Snippets (Read the full thread at stackoverflow):
And transactions ....
You know, things like backup.
I also assume you probably wouldn't mind some manageability of your data .
I know you said no SQL Server, but I am reading that to mean you want no "server", and you want to store your data on the client .
|
Is there any way to make Django's get_or_create() to create an object without saving it to database?
When using Django's get_or_create(), when created=True, is there any way to make it so that it creates an object without saving it to DB?
I want to take the newly created object, do some validation tests, and only save it to DB if it passes all tests....
Started by Continuation on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
Or use a custom manager) called get_or_new(), and then only do the save() when you want to?
Why not override the model's save method, and have it do the tests there? Then you don't have to make sure you use the right creation method each....
|
|
I want to save tags related to a discussion post. The same as the 'tags' that Stack Overflow uses. What is the best way to do this?
I was thinking of saving them in the 'discussion' table as a single comma separated string, but I'm not sure if this is...
Started by tappit on
, 5 posts
by 5 people.
Answer Snippets (Read the full thread at stackoverflow):
Tags in the database?
What is the most efficient way to store tags in a database
How to design.
|