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.

481 questions
12
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
  • 8,411
  • 24
  • 67
  • 76
11
votes
2 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
  • 151
  • 8
10
votes
1 answer

How do you add xml document info with scala.xml?

First of all: I am aware of anti-xml, and scales, but I would like to use standard scala.xml I prefer to build xml document using explicit methods, not with implicit xml syntax built into Scala Ok, so I have such piece of code: val text = new…
greenoldman
  • 16,895
  • 26
  • 119
  • 185
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,584
  • 2
  • 19
  • 20
10
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
  • 10,682
  • 25
  • 79
  • 120
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
  • 38,647
  • 50
  • 150
  • 207
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
  • 12,878
  • 4
  • 30
  • 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
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
  • 245
  • 2
  • 3
  • 9
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
  • 17,913
  • 6
  • 34
  • 52
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
  • 504
  • 5
  • 12
7
votes
3 answers

Strange timestamp duplication when renaming and recreating a file

I'm trying to rename a log file named appname.log into the form appname_DDMMYY.log for archiving purposes and recreate an empty appname.log for further writing. When doing this in Windows 7 using C++ and either WinAPI or Qt calls (which may be the…
Wopfi
  • 71
  • 3
6
votes
1 answer

Expire date as default value for TIMESTAMP column

Is there any way to set the default value for a column as an expire date (some hours from CURRENT_TIMESTAMP)? I have already tried: ALTER TABLE `table` ADD COLUMN `expire` TIMESTAMP NOT NULL DEFAULT TIMESTAMPADD(HOUR, 5, CURRENT_TIMESTAMP); But…
Victor
  • 8,309
  • 14
  • 80
  • 129
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
  • 2
  • 3
  • 9
1
2
3
32 33