Questions tagged [creation]

Do not use. Too vague to be of any possible significance.

Do not use. Too vague to be of any possible significance. Tag should be removed.

462 questions
10
votes
3 answers

Tracking object allocation in python

Is there any method I can override that will allow me to use print statements / pdb / etc. to keep track of every time an instance of my class is allocated? While unpickling some objects I am seeming to get some that never have either __setstate__…
Ian Goodfellow
  • 2,384
  • 1
  • 16
  • 19
10
votes
4 answers

How do you create a file format?

I've been doing some reading on file formats and I'm very interested in them. I'm wondering what the process is to create a format. For example, a .jpeg, or .gif, or an audio format. What programming language would you use (if you use a programming…
orbit82
  • 445
  • 2
  • 6
  • 17
10
votes
7 answers

Screensavers With XNA and .NET?

I'm fairly sure you can create screensavers with.NET but are there any tutorials on doing so? and how well can you make XNA screensavers?
RCIX
  • 35,702
  • 48
  • 141
  • 204
9
votes
2 answers

Need help Creating new objects in inform7

Very new to Inform7 and it's style. I have looked through the provided docs and some internet browsing has yielded nothing for me... this is a simplistic version of what i'm looking for. I want to write something like this: breakroom is a room. "A…
deepee1
  • 11,640
  • 4
  • 28
  • 43
9
votes
6 answers

In Java what happens when an object fails to be instantiated?

I come from a c++ background and I find myself constantly doing this in java: SomeClass sc=new SomeClass(); if(null!=sc) { sc.doSomething(); } What I want to know is what will be in the variable sc if the constructor fails for some reason…
user412723
  • 93
  • 1
  • 3
9
votes
6 answers

Getting object as a result from func/proc in Delphi

What is the best practice for returning simple objects from functions / procedures in delphi? eg. 2 kinds of code: pass created object as reference, populate object in Proc, destroy it afterwards procedure Proc(var Obj: TMyObject); begin //…
Juraj Blahunka
  • 15,324
  • 6
  • 32
  • 52
9
votes
2 answers

Sorting SPARQL results by date

Is there a way to sort the results by creation date? Example query which must be sortet: SELECT * WHERE {?s ?p ?o} limit 200
cupakob
  • 7,691
  • 24
  • 60
  • 75
8
votes
3 answers

Detecting newly created files though Java in realtime

Using JDK 7 I've had success in watching specific directories for new file creations, deletions and modifications using java.nio.file.StandardWatchEventKinds.* I'm hoping someone may know a way to get Java to detect new file creations regardless of…
JonnyKash
  • 145
  • 6
8
votes
1 answer

Automagically generating notebooks with collapsed sections

The code block below CreateDocument[{ TextCell["Title", "Title"], TextCell["Subtitle", "Subtitle"], TextCell["Section 1", "Section"], TextCell["Section 1.1", "Subsection"], TextCell["Section 1.2", "Subsection"], TextCell["Section 1.3",…
dwa
  • 494
  • 5
  • 12
8
votes
3 answers

dynamically declare/create lists in python

I am a beginner in python and met with a requirement to declare/create some lists dynamically for in python script. I need something like to create 4 list objects like depth_1,depth_2,depth_3,depth_4 on giving an input of 4.Like for (i = 1; i <=…
Cheese
  • 225
  • 2
  • 3
  • 9
7
votes
0 answers

Is there any way I can know creation date of an Index for MongoDB tables(collections)?

Is there any way I can know creation date of an Index for MongoDB tables(collections)? Recently, we saw some indexes which lead to some problem of space and performance and wonder if we can get the timestamp for create_date of the indexes. And I'm…
Tony
  • 101
  • 6
7
votes
2 answers

How to get the "code for creating a variable" from a data.frame

I have a data.frame (e.g. read from a data file using read.delim) that contains the following data: 'data.frame': 10 obs. of 3 variables: $ x : int 1 2 3 4 5 6 7 8 9 10 $ y1: num 3 5 1 8 2 4 5 0 8 2 $ y2: num 1 8 2 1 4 5 3 0 8 2 I'm now…
R_User
  • 9,332
  • 22
  • 68
  • 115
6
votes
4 answers

Correct way to destroy a form and show another in Delphi

Currently in my program I have a Startup form, and a Main form. The startup form shows for a second or two. Right now, I have the following code within a timer: frmStartup.Destroy; frmMain := TfrmMain.Create(Self); frmMain.Show; Right now,…
James
  • 133
  • 1
  • 3
  • 9
6
votes
3 answers

Python File Creation Date & Rename - Request for Critique

Scenario: When I photograph an object, I take multiple images, from several angles. Multiplied by the number of objects I "shoot", I can generate a large number of images. Problem: Camera generates images identified as, 'DSCN100001', 'DSCN100002",…
Michael Moreno
  • 199
  • 1
  • 9
6
votes
3 answers

Stacking buttons upwards

I've never seen this before, or if I have I haven't noticed how it was done. I was wondering if there was a way with HTML and CSS to stack elements up, rather then down as display:inline would do. Pretty much, I want to go against gravity when the…
jbcurtin
  • 1,642
  • 1
  • 14
  • 22
1
2
3
30 31