Questions tagged [temp]

A common directory on a file system which acts as a "scratch area" that can be used to hold files and directories for short periods of time.

When a file system is executing some process, it is often desirable to record information outside of registers/RAM and save them into memory. However, if these files are not intended to be permanently stored, a temporary "temp" directory may used to facilitate the storage/disposal of these files. For example, you might have a temp directory which stores logging data, which is regularly cleaned by the OS at discrete intervals.

temp may also refer to individual files, e.g. temp_data.csv which would be a temporary data file in the CSV format.

556 questions
3
votes
4 answers

SQL Server Temp Dir?

exec master..xp_cmdshell 'set' I need to get the OS temporary directory without resorting to using xp_cmdshell. I am using MSSQL 2008. What's the best way I can do that? Well, it looks like there is no way to do that from TSQL. I believe SQL Server…
Snowy
  • 5,942
  • 19
  • 65
  • 119
3
votes
4 answers

Pythonic way to append output of function to several lists

I have a question that I haven't quite found a good solution to. I'm looking for a better way to append function output to two or more lists, without using temp variables. Example below: def f(): return 5,6 a,b = [], [] for i in range(10): …
halolord01
  • 173
  • 1
  • 3
  • 8
3
votes
1 answer

Bash - work with a file in the temp folder

In my script I am creating a temp directory with this command TMPDIR=$(mktemp -d) and later when I want to create a file there I use (with $DATA being my source data file) touch $TMPDIR/data echo "$DATA" > $TMPDIR/data command. Later on, I use…
Jesse_Pinkman
  • 565
  • 1
  • 8
  • 21
3
votes
4 answers

JVisualVM: "Local Applications Cannot Be Detected"

I would like to monitor a local Java application using JVisualVM. When I'm starting it, the popup 'Local java application cannot be monitored' or 'Local Applications Cannot Be Detected' is shown. I have read here that it is a permissions problem.…
Paweł Dulęba
  • 1,048
  • 1
  • 13
  • 25
3
votes
2 answers

How to save files in temp directory for any platform?

I have a Grails application in which I generate PDF/Excel files in a folder. My problem is, everytime I need to change the directory path through code when I test or run the code on different machines like Windows, Linux, Mac. So what is the generic…
VVB
  • 7,363
  • 7
  • 49
  • 83
3
votes
1 answer

Could not select additional column names if dropped temporary table is created again with additional column names

Though I have dropped the temporary table, it does not let me select the new column names if the temporary table with same table name with additional column names will be created. I have been using SQL Server 2008. Try this code for instance: IF…
hsuk
  • 6,770
  • 13
  • 50
  • 80
3
votes
4 answers

Oracle SQL consumes huge temp space

I'm facing a trade-off issue between temp space & query performance. My scenario is like this: I have a huge transaction table (20 billion records across 25 partitions) and a small metric lookup table with 7 records. I need to process each…
user3279189
  • 1,643
  • 8
  • 22
  • 35
3
votes
2 answers

T-SQL - populating data in temp table in stored procedure.

I need help with my stored procedure which I'm currently working on. Basically stored procedure works fine and gets me required data. I would like to keep this funcionality and add new temporary table within stored procedure and populate this temp…
Dear Deer
  • 99
  • 1
  • 9
3
votes
1 answer

how should I understand tmp folder in app bundle? will it be cleared at some moment?

I'm capturing video using my app. I was thinking about saving the captured movie to Documents folder. I've explored project bundle and saw the captured movie is saved 2times. It's in tmp and also in my Documents folder. Will tmp folder be cleared…
alexhajdu
  • 410
  • 5
  • 13
3
votes
2 answers

T-Sql getting data from tempdb table

I'm using Microsoft SQL Server 2008 R2 (RTM) - 10.50.1600.1 (X64) and I'm trying to make a SELECT statement to a table that have been created like this: DECLARE @Sql AS VARCHAR(1500) SET @Sql = 'SELECT 1 AS id, ''123'' AS value INTO…
Sergio Flores
  • 5,231
  • 5
  • 37
  • 60
3
votes
2 answers

Color tint and temperature

Though I have found a lot of topics on color tint and temperature, but till now I have not seen any definite solution, which is the reason I am creating this post..My apologies for that. I am interested in adjusting color temp and tint in images…
Code Warrior
  • 133
  • 1
  • 3
  • 15
2
votes
2 answers

PHP How to get tmp file size during Upload

I want to implement PHP uploading Progress Bar and My idea is to get the size of $_FILES['file']['tmp'] after each second. But what is problem here, when a file is uploading there exist no file in temp directory set in php.ini but file successfully…
Wasim A.
  • 9,660
  • 22
  • 90
  • 120
2
votes
3 answers

iOS How to receive MIDI tempo (BPM) from host using CoreMidi?

I want to know how I can receive MIDI tempo (bpm) from host running on my computer (it is simple Ableton Live or Logic Pro) using CoreMidi ? Does MIDI standards support this feature ? If yes, then please show me Objective C code example. I'm using…
user1195202
  • 1,423
  • 1
  • 16
  • 20
2
votes
1 answer

Referencing a case statement from outside a Temp Table

declare @Temp table (CaseID int, PrimaryClientID int, Category int ) INSERT INTO @Temp SELECT [casCaseID], [casPrimaryClientID], CASE WHEN (SELECT COUNT(evecaseid) FROM MPS3.dbo.Events where evecaseid=cascaseid and…
TJH
  • 189
  • 1
  • 5
  • 18
2
votes
7 answers

C Pointer and temp variable

int main() { int i=0; int* p_numbers = ((int*) malloc (5*sizeof(int))); int* temp; temp = p_numbers; for(i=0;i<5;i++) { *temp=i; printf("temp %d p_numbers %d",*temp,*p_numbers); …
anshulkatta
  • 2,044
  • 22
  • 30