"How Display and Output Acq'd File.VI works?"
"My present project is somewhat similar to Display and Output Acq'd File.vi. But I don't clearly know how it works. My questions are:
1. What will happen if the data-reading from file is faster than output-generation from buffered data?
2. How does it match pace of reading and that of generation, and in which vi does the matching achieve?
3. Is it possible to get these control information, like interrupt or DMA status in labview application?
Thank you for your help
Steven"
I attached a bmp that illustrates how to read and write simultaneously from one file. The VI is using notifiers (under the advanced palette) to synchronize reader and writer loops.
Note that the Wait function in the reader loop is irrelevant because the Wait on Notifier function blocks until data is available. This forces reader to be at least as slow as writer.
Attachments:
read_and_write.bmp 1014 KB
Similar Messages
-
How to list the contents of an OSX directory, and output to text file?
hello there any hints with any known program that does following
I have recorded my music directory to DVD and now i would like to make an .txt file what the dvd contains...cos its way of hand to write all 100xx files by hand...
How to list the contents of an OSX directory, and output to text file?
any prog that does that? any hints?
best regardsThis script makes a hierarchical file listing all files in a folder and subfolder:
Click here to launch Script Editor.
choose folder with prompt "Choose a folder to process..." returning theFolder
set theName to name of (info for theFolder)
set thepath to quoted form of POSIX path of theFolder
set currentIndex to theFolder as string
do shell script "ls -R " & thepath returning theDir
set theDirList to every paragraph of theDir
set newList to {"Contents of folder \"" & theName & "\"" & return & thepath & return & return}
set theFilePrefix to ""
repeat with i from 1 to count of theDirList
set theLine to item i of theDirList
set my text item delimiters to "/"
set theMarker to count of text items of thepath
set theCount to count of text items of theLine
set currentFolder to text item -1 of theLine
set theFolderPrefix to ""
if theCount is greater than theMarker then
set theNestIndex to theCount - theMarker
set theTally to -1
set theFilePrefix to ""
set theSuffix to ""
repeat theNestIndex times
set theFolderPrefix to theFolderPrefix & tab
set theFilePrefix to theFilePrefix & tab
if theTally is -1 then
set theSuffix to text item theTally of theLine & theSuffix
else
set theSuffix to text item theTally of theLine & ":" & theSuffix
end if
set currentIndex to "" & theFolder & theSuffix
set theTally to theTally - 1
end repeat
end if
set my text item delimiters to ""
if theLine is not "" then
if word 1 of theLine is "Volumes" then
set end of newList to theFolderPrefix & "Folder: > " & currentFolder & return
else
try
if not folder of (info for alias (currentIndex & theLine & ":")) then
set end of newList to theFilePrefix & tab & tab & tab & "> " & theLine & return
end if
end try
end if
end if
end repeat
open for access file ((path to desktop as string) & "Contents of folder- " & theName & ".txt") ¬
with write permission returning theFile
write (newList as string) to theFile
close access theFile -
Oracle script:How to avoid output in log file?
Hi,
I am try to create the xml file using some sql statements in a script.
I dont want to display the output from these sql statements in log file.
I tried with SET TERMOUT OFF, even then i am getting the output.I am getting the output even after using the SET echo off.
I have given the following SET options,
SET heading off
SET feedback off
SET verify off
SET wrap off
SET pagesize 0
SET linesize 3000
SET server off
SET echo off
I do not want to display the output in log file when i run the concurrent request. -
My proggy
import java.io.*;
public class temp
public static void main (String [] args) throws Exception
DataInput keyboard = new DataInputStream (System.in);
int num = 0;
String temp;
String [] ques;
String [] a, b, c, d, e;
String [] ans;
ques = new String [5];
ques [0] = "(1) Which one of the following is an input device?";
ques [1] = "(2) Which one of the following is an output device?";
ques [2] = "(3)What does CPU stand for?";
ques [3] = "(4)How many bytes in a megabyte";
ques [4] = "(5)How many bytes in a gigabyte ?";
a = new String [5];
a [0] = "a) Printer";
a [1] = "b) Monitor";
a [2] = "c) Mouse";
a [3] = "d) Speaker";
b = new String [4];
b [0] = "a) Mouse";
b [1] = "b) Keyboard";
b [2] = "c) Scanner";
b [3] = "d) Speaker";
c = new String [4];
c [0] = "a) It does not stand for anything";
c [1] = "b) Centeral Processing Unit";
c [2] = "c) DUH!!!";
c [3] = "d) City Power Unit";
d = new String [4];
d [0] = "a) 1";
d [1] = "b) 1024";
d [2] = "c) 4096";
d [3] = "d) 1,048,576";
e = new String [4];
e [0] = "a) about 1 thousand";
e [1] = "b) about 1 million";
e [2] = "c) about 1 billion";
e [3] = "d) about 1 trillion";
ans = new String [5];
ans [0] = "c";
ans [1] = "d";
ans [2] = "b";
ans [3] = "d";
ans [4] = "d";
System.out.println ("\t\t\tWelcome to the quiz \n");
System.out.println (ques [0] + "\n\n" + a [0] + "\n" + a [1] + "\n" + a [2] + "\n" + a [3]);
System.out.print ("\nanswer : ");
temp = keyboard.readLine ();
if (temp.equals (ans [0]))
System.out.println ("\n\nCorrect!!! \n");
num = num + 1;
else
System.out.println ("\n\nWrong!!!\n\n");
System.out.println (ques [1] + "\n\n" + b [0] + "\n" + b [1] + "\n" + b [2] + "\n" + b [3]);
System.out.print ("\nanswer : ");
temp = keyboard.readLine ();
if (temp.equals (ans [1]))
System.out.println ("\n\nCorrect!!! \n");
num = num + 1;
else
System.out.println ("\n\nWrong!!!\n\n");
System.out.println (ques [2] + "\n\n" + c [0] + "\n" + c [1] + "\n" + c [2] + "\n" + c [3]);
System.out.print ("\nanswer : ");
temp = keyboard.readLine ();
if (temp.equals (ans [2]))
System.out.println ("\n\nCorrect!!! \n");
num = num + 1;
else
System.out.println ("\n\nWrong!!!\n\n");
System.out.println (ques [3] + "\n\n" + d [0] + "\n" + d [1] + "\n" + d [2] + "\n" + d [3]);
System.out.print ("\nanswer : ");
temp = keyboard.readLine ();
if (temp.equals (ans [3]))
System.out.println ("\n\nCorrect!!! \n");
num = num + 1;
else
System.out.println ("\n\nWrong!!!\n\n");
System.out.println (ques [4] + "\n\n" + e [0] + "\n" + e [1] + "\n" + e [2] + "\n" + e [3]);
System.out.print ("\nanswer : ");
temp = keyboard.readLine ();
if (temp.equals (ans [4]))
System.out.println ("\n\nCorrect!!! \n");
num = num + 1;
else
System.out.println ("\n\nWrong!!!\n\n");
System.out.println ("--------------------------------------------------");
System.out.println ("You answered " + num + " out of 5 questions correctly\n\n");
if (num >= 5)
System.out.println ("Grade A+ : You are Awesome\n\n ");
else if ((num >= 4) && (num < 5))
System.out.println ("Grade A : You did Great\n\n ");
else if ((num >= 3) && (num < 4))
System.out.println ("Grade C : You did Okay\n\n ");
else
System.out.println ("Grade F : You did Poorly\n\n ");
}is it possible to save all the output to a file, if yes then can you please tell me how
Thanks
Edited by: supahsain08 on Mar 3, 2008 3:09 PMClass names should start with a capital.
Don't put all your code in the main method. Start to break it down into smaller chunks which can go into methods.
You need to read about File classes and IO. Do a search on the sun website for a tutorial. -
HELP ON HOW TO STORE OUTPUT IN TEXT FILE
Hello,
I am trying to output the results from queties into an output text file does anyone knows how to do that please?
For example i want to do :
Select SYSDATE from dual;
and output the result of it in a text file called output.txt does anyone knows how to do that please?
THanks a lot and every help is appreciated.
Regards,
giannisCan i set the path of the output file Yes, you can :
TEST@db102 SQL> spool /tmp/output.txt
TEST@db102 SQL> select sysdate from dual;
SYSDATE
14-JUN-06
TEST@db102 SQL> spool off
TEST@db102 SQL> !ls -ltr /tmp | tail -n 1
-rw-r--r-- 1 ora102 dba 313 Jun 14 01:52 output.txt
TEST@db102 SQL> !cat /tmp/output.txt
TEST@db102 SQL> select sysdate from dual;
SYSDATE
14-JUN-06
TEST@db102 SQL> spool off
TEST@db102 SQL> -
SQL query automation and output to text file
The bcp utility should handle this task pretty easily for you. The documentation is available here.
I know enough SQL to get me by with the few things I currently do in it (but would always like to know and do more). Anyway, I was just recently asked if I could come up with a way to automate the execution of a SQL query we currently manually run, and then have the results of that query output (instead of to the screen in SSMS) to a text file with the ".dat" extension. I've never automated a SQL query before nor have I had the results output to a file. Can anyone give me some pointers on how to tackle this?
The query currently calls to a stored procedure (which does all the work) and just executes it with some given dates from the query so I'm thinking the output will need to come from the stored procedure (and the code for output to a file added there?)
This topic first appeared in the Spiceworks Community -
How to capture output of java files using Runtime.exec
Hi guys,
I'm trying to capture output of java files using Runtime.exec but I don't know how. I keep receiving error message "java.lang.NoClassDefFoundError:" but I don't know how to :(
import java.io.*;
public class CmdExec {
public CmdExec() {
public static void main(String argv[]){
try {
String line;
Runtime rt = Runtime.getRuntime();
String[] cmd = new String[2];
cmd[0] = "javac";
cmd[1] = "I:\\My Documents\\My file\\CSM\\CSM00\\SmartQ\\src\\E.java";
Process proc = rt.exec(cmd);
cmd = new String[2];
cmd[0] = "javac";
cmd[1] = "I:\\My Documents\\My file\\CSM\\CSM00\\SmartQ\\src\\E";
proc = rt.exec(cmd);
//BufferedReader input = new BufferedReader(new InputStreamReader(p.getInputStream()));
BufferedReader input = new BufferedReader(new InputStreamReader(proc.getErrorStream()));
while ((line = input.readLine()) != null) {
System.out.println(line);
input.close();
catch (Exception err) {
err.printStackTrace();
public class E {
public static void main(String[] args) {
System.out.println("hello world!!!!");
}Please help :)Javapedia: Classpath
How Classes are Found
Setting the class path (Windows)
Setting the class path (Solaris/Linux)
Understanding the Java ClassLoader
java -cp .;<any other directories or jars> YourClassNameYou get a NoClassDefFoundError message because the JVM (Java Virtual Machine) can't find your class. The way to remedy this is to ensure that your class is included in the classpath. The example assumes that you are in the same directory as the class you're trying to run.
javac -classpath .;<any additional jar files or directories> YourClassName.javaYou get a "cannot resolve symbol" message because the compiler can't find your class. The way to remedy this is to ensure that your class is included in the classpath. The example assumes that you are in the same directory as the class you're trying to run. -
How remove and delete a downloaded file
How do I remove and delete a downloaded file. I downloaded a large file a PDF that I want to remove
Thank you I just deleted the file
-
Can I upgrade to CS6 for how much and with fresh independent files.
I ordered Adobe Creative Suite 4 Web Premium a long time ago (I have the order number). I was wondering if I can get a download for CS6 and have a license to use on 2 computers.
I need to know how I can update to CS6 for how much and if I can get fresh files and not rely on old ones.http://www.adobe.com/products/creativesuite/design-web-premium/buying-guide-upgrades.html
Mylenium -
Bought new camera to work with Raw images in CS5 but file would not open so I downloaded latest update. It only allowed me to save in a file ( could have OPENED instead of saving so I don't know those results). How do I get the new download to work in CS5?
Thanks for your help, Artist RayBought new camera
Which camera make and model?
Supported cameras
Camera Raw plug-in | Supported cameras
Compatible Adobe applications
Camera Raw-compatible Adobe applications
Why doesn’t my version of Photoshop or Lightroom support my camera? -
Linking an LOV to a form in webDB 3.0 and getting the help files to work ?
Hi All I can link an LOV to a form in webDB 2.2 I can link an LOV to a report in webDB 3.0 but I cannot seem to figure out how to link an LOV to a form in webDB 3.0 can anyone help me ?
Also I can't get the help files to work I get the message : Database Log In Failed ?
nullquote:
Originally posted by:
kglad
lol, flash was confused?
Ok... maybe I caused some confusion? In my nested MC, first I
added some animation and keyframes and THEN I went back to name the
instances. This caused multiple instances with the same name along
my timeline thus "cunfusing" flash.
My bad!
live and learn! (hehe)
Pat -
How can i get my audio files to work on other computers in powerpoint?
I have made a powerpoint presentation for a class. The task was to record ourselves speaking and import the audio files to go along with a slideshow presentation. I recorded in GarageBand and imported the files to iTunes and then into my presentation. The slideshow works on my computer, but once I try to play it on any other computer (both Mac and PC) the audio files are "unavailable" and don't play. What do I need to do so that the files can play?
I don't use PowerPoint much these days, but I found this...
http://office.microsoft.com/en-us/powerpoint-help/embedded-and-linked-sound-file s-in-a-presentation-HA001230307.aspx
(It says to put the audio files in the same folder as the presentation file.) -
How to generate complete file list of hard drive and output to text file
I need to start backing things up to drives, which over time will be put in storage.
I would like to be able to create a complete file index and folder tree of every drive and have it output to a text file so that in the event I ever need to go back to a drive, I can search the text file to know what drive to pull from storage (rather than using spotlight to search through 25 drives).
Is there any way to do this with either OS X or with a third party software? Ideally, text file and not PDF.
Thanks!You can use the terminal.app with the following command:
rsync -rlptn --stats --progress +Source.. Destination..+
example with actual output:
rsync -rlptn --stats --progress /Volumes/Mac\ Data/websites /Volumes/EXT\ SATA2building file list ...
146 files to consider
websites/
websites/.DS_Store
websites/bestelectricbill.com/
websites/bestelectricbill.com/.DS_Store
websites/bestelectricbill.com/211299c1
websites/bestelectricbill.com/awards.php
websites/bestelectricbill.com/careers.php
websites/bestelectricbill.com/category1.php
websites/bestelectricbill.com/category2.php
websites/bestelectricbill.com/category3.php
websites/bestelectricbill.com/checkout.php
websites/bestelectricbill.com/company.php
websites/bestelectricbill.com/contactus.php
websites/bestelectricbill.com/email.js
websites/bestelectricbill.com/faqs.php
websites/bestelectricbill.com/fsp.js
websites/bestelectricbill.com/history.php
websites/bestelectricbill.com/index.php
websites/bestelectricbill.com/index_copy.php
websites/bestelectricbill.com/investors.php
websites/bestelectricbill.com/job1.php
websites/bestelectricbill.com/job2.php
websites/bestelectricbill.com/job3.php
websites/bestelectricbill.com/job4.php
websites/bestelectricbill.com/job5.php
websites/bestelectricbill.com/managementteam.php
websites/bestelectricbill.com/news1.php
websites/bestelectricbill.com/news2.php
websites/bestelectricbill.com/news3.php
websites/bestelectricbill.com/news4.php
websites/bestelectricbill.com/news5.php
websites/bestelectricbill.com/newsandevents.php
websites/bestelectricbill.com/partners.php
websites/bestelectricbill.com/press.php
websites/bestelectricbill.com/privacypolicy.php
websites/bestelectricbill.com/product1a.php
websites/bestelectricbill.com/product1a1.php
websites/bestelectricbill.com/product1a2.php
websites/bestelectricbill.com/product1b.php
websites/bestelectricbill.com/product1b1.php
websites/bestelectricbill.com/product1b2.php
websites/bestelectricbill.com/product1c.php
websites/bestelectricbill.com/product1c1.php
websites/bestelectricbill.com/product1c2.php
websites/bestelectricbill.com/product1d.php
websites/bestelectricbill.com/product1d1.php
websites/bestelectricbill.com/product1d2.php
websites/bestelectricbill.com/product1e.php
websites/bestelectricbill.com/product1e1.php
websites/bestelectricbill.com/product1e2.php
websites/bestelectricbill.com/products.php
websites/bestelectricbill.com/productsearch.php
websites/bestelectricbill.com/registration.php
websites/bestelectricbill.com/search.php
websites/bestelectricbill.com/searchresults.php
websites/bestelectricbill.com/service1.php
websites/bestelectricbill.com/service1a.php
websites/bestelectricbill.com/service1a1.php
websites/bestelectricbill.com/service1a2.php
websites/bestelectricbill.com/service1b.php
websites/bestelectricbill.com/service1b1.php
websites/bestelectricbill.com/service1b2.php
websites/bestelectricbill.com/service1c.php
websites/bestelectricbill.com/service1c1.php
websites/bestelectricbill.com/service1c2.php
websites/bestelectricbill.com/service1d.php
websites/bestelectricbill.com/service1d1.php
websites/bestelectricbill.com/service1d2.php
websites/bestelectricbill.com/service1e.php
websites/bestelectricbill.com/service1e1.php
websites/bestelectricbill.com/service1e2.php
websites/bestelectricbill.com/service2.php
websites/bestelectricbill.com/service3.php
websites/bestelectricbill.com/services.php
websites/bestelectricbill.com/shoppingcart.php
websites/bestelectricbill.com/sitemap.php
websites/bestelectricbill.com/story1.php
websites/bestelectricbill.com/story2.php
websites/bestelectricbill.com/story3.php
websites/bestelectricbill.com/termsofuse.php
websites/bestelectricbill.com/Templates/
websites/bestelectricbill.com/Templates/siteassist_config.cfg
websites/bestelectricbill.com/Templates/siteassist_template.dwt.php
websites/bestelectricbill.com/Templates/_notes/
websites/bestelectricbill.com/Templates/_notes/dwsync.xml
websites/bestelectricbill.com/_notes/
websites/bestelectricbill.com/_notes/dwsync.xml
websites/bestelectricbill.com/images/
websites/bestelectricbill.com/images/.DS_Store
websites/bestelectricbill.com/images/app_img17.jpg
websites/bestelectricbill.com/images/bestelectriclogo.jpg
websites/bestelectricbill.com/images/bestelectriclogo.jpg.ori.jpg
websites/bestelectricbill.com/images/btn_saveBusiness.jpg
websites/bestelectricbill.com/images/btn_saveHome.jpg
websites/bestelectricbill.com/images/imgAbout_OverviewTeam copy.jpg
websites/bestelectricbill.com/images/imgCollage.jpg
websites/bestelectricbill.com/images/imgComp1.jpg
websites/bestelectricbill.com/images/imgComp3.jpg
websites/bestelectricbill.com/images/imgComp4.jpg
websites/bestelectricbill.com/images/imgComp5.jpg
websites/bestelectricbill.com/images/imgComp6.jpg
websites/bestelectricbill.com/images/imgComp7.jpg
websites/bestelectricbill.com/images/imgComp8.jpg
websites/bestelectricbill.com/images/phone number.jpg
websites/bestelectricbill.com/images/phone number2.jpg
websites/bestelectricbill.com/images/_notes/
websites/bestelectricbill.com/images/_notes/dwsync.xml
websites/bestelectricbill.com/siteassist_css/
websites/bestelectricbill.com/siteassist_css/color.css
websites/bestelectricbill.com/siteassistcss/mystyles.css
websites/bestelectricbill.com/siteassist_css/navigation.css
websites/bestelectricbill.com/siteassistcss/navigationcolor.css
websites/bestelectricbill.com/siteassist_css/style.css
websites/bestelectricbill.com/siteassist_css/template.css
websites/bestelectricbill.com/siteassistcss/notes/
websites/bestelectricbill.com/siteassistcss/notes/dwsync.xml
websites/bestelectricbill.com/siteassist_images/
websites/bestelectricbill.com/siteassistimages/above_topnavbackground.jpg
websites/bestelectricbill.com/siteassistimages/below_topnavbackground.jpg
websites/bestelectricbill.com/siteassist_images/border.gif
websites/bestelectricbill.com/siteassistimages/bottombackground.jpg
websites/bestelectricbill.com/siteassistimages/brcorner.jpg
websites/bestelectricbill.com/siteassist_images/bubbles.jpg
websites/bestelectricbill.com/siteassistimages/dottedhorizontal.jpg
websites/bestelectricbill.com/siteassistimages/dottedvertical.jpg
websites/bestelectricbill.com/siteassistimages/home_mainbackground.jpg
websites/bestelectricbill.com/siteassistimages/img100x125.gif
websites/bestelectricbill.com/siteassistimages/img160x110.gif
websites/bestelectricbill.com/siteassistimages/img400x197.gif
websites/bestelectricbill.com/siteassistimages/img463x170.gif
websites/bestelectricbill.com/siteassistimages/loginbtn.gif
websites/bestelectricbill.com/siteassistimages/logotraditional.jpg
websites/bestelectricbill.com/siteassistimages/mainfeature.jpg
websites/bestelectricbill.com/siteassistimages/side_navcell.gif
websites/bestelectricbill.com/siteassistimages/side_nav_cellsel.gif
websites/bestelectricbill.com/siteassistimages/side_nav_opengrad.gif
websites/bestelectricbill.com/siteassistimages/side_nav_open_selgrad.gif
websites/bestelectricbill.com/siteassistimages/sidenavbackground.jpg
websites/bestelectricbill.com/siteassist_images/spacer.gif
websites/bestelectricbill.com/siteassistimages/topbackground.jpg
websites/bestelectricbill.com/siteassistimages/topnavbackground.jpg
websites/bestelectricbill.com/siteassistimages/topnav_cellbg.gif
websites/bestelectricbill.com/siteassistimages/topnav_cell_bghover.gif
websites/bestelectricbill.com/siteassistimages/trcorner.jpg
websites/bestelectricbill.com/siteassistimages/notes/
websites/bestelectricbill.com/siteassistimages/notes/dwsync.xml
Number of files: 146
Number of files transferred: 135
Total file size: 1150921 bytes
Total transferred file size: 1150921 bytes
Literal data: 0 bytes
Matched data: 0 bytes
File list size: 2825
File list generation time: 0.001 seconds
File list transfer time: 0.000 seconds
Total bytes sent: 3717
Total bytes received: 896
sent 3717 bytes received 896 bytes 9226.00 bytes/sec
total size is 1150921 speedup is 249.50
Simply copy and and paste output text in terminal to a text file.
What I actually did there was use the "dry run option" (-n) - no files were actually transferred.
For more info on the rsync command type and run "man rsync" at the terminal command line.
Also see this webpage:
http://www.ss64.com/osx/rsync.html
Kj -
Being able to quickly produce finished photos is of importance with the majority of my photography work. Therefore I shoot, process, and deliver JPEG files. For this time sensitive workflow there is no benefit to my clients by my shooting RAW. I do want to be able to accommodate any possible future uses of the photos, so I shoot using the Adobe RGB color space. The output for my clients are JPEG images for use on the Web, therefore sRGB. I currently used a wide gamut display (NEC PA302W) with a 24-bit graphics card. (I plan on upgrading to a 30-bit card sometime in the future.)
I've noticed that in Internet Explorer the reds in my finished photos are overly intense on my display. My photos look fine in other web browsers on my display. This situation has me concerned as I do not know exactly why it is happening since my photos have the sRBG color profile embedded and IE supports embedded color profiles. If anything, I would think the reds would be overly intense in other applications that do not support embedded color profiles.
Please let me know if my workflow can be improved, outside of shooting RAW and using a 30-bit display:
Shoot JPEG photos in Adobe RBG color space
Edit photos in Photoshop using wide gamut display, 24-bit
Color Settings: Monitor Color (Monitor RGB - PA302W, calibrated)
Save for Web, JPEG, Embed Color Profile, Convert to sRGB
While working in Photoshop the reds appear fine. When saving for the Web and previewing 'Monitor Color' the reds are intense, when previewing 'Internet Standard RGB (No Color Management)' the reds appear fine. The final saved images look fine with the exception of when displayed in IE, which supports embedded color profiles- Color Management.You're rapidly making a mess out of this. Stop, sit back, and stop thinking there's a "problem" to "fix". There isn't - you just need to use software that is color managed. That disqualifies IE right off. Stop using it, throw it away. It's useless with wide gamut displays. Use Firefox, which has proper color management.
OK. Save For Web in sRGB, embed profile. So far so good. But:
Don't ! set your working space to Monitor Color!. That turns off display color management which is the very last thing you want with a wide gamut monitor. You could sort of get away with that with a standard gamut monitor, because it's not all that different from sRGB anyway. So you wouldn't notice the difference (but it's there). The fact that your Adobe RGB files look right in Photoshop is purely coincidental. Any other profile will look wrong.
With a wide gamut display you absolutely and unconditionally need a fully color managed pipeline. That means 1. an embedded document profile, 2. a valid display profile (Spectraview or other calibrator), and 3. an application that reads both profiles and does the conversion from one to the other as the image is sent to the display.
See, it's not just the document profile. That's half of it. The other half is the display profile. IE doesn't use the display profile, instead substituting sRGB. And that's very wrong with that monitor. Firefox is fully color managed if there is an embedded document profile. But it can be configured to color manage even if the image is untagged (and a lot of material on the web is untagged). It does this by assigning sRGB to the image.
To configure this - and you really need that with a wide gamut monitor - type "about:config" without the quotes in the address bar and hit reload. Scroll down to gfx.color_management.mode, and change it from 2 to 1. Relaunch. All web material will now appear correctly regardless. -
Query SQL and output to text file then loop through list to execute
It seems there's no obvious way to do what I want to below as everyone has their own take on querying SQL server with Powershell!
I need to use PowerShell to connect to ServerA and query a test database and select Name from it. The Name results of that query need to output to C:\names.txt and then I need a ForEach loop to go through that file line by line and execute some text
against each Name from the list.
Any ideas how I can achieve this?
Thanks!I can't even output SQl to a table at the moment, the text file has a column header and about 50 empty rows in the file.
$dataSource = "DEMO"
$database = "TESTDB"
$connectionString = "Server=$dataSource;uid=$user; pwd=$pwd;Database=$database;Integrated Security=True;"
$query = "SELECT name FROM dbo.names"
$connection = New-Object System.Data.SqlClient.SqlConnection
$connection.ConnectionString = $connectionString
$connection.Open()
$command = $connection.CreateCommand()
$command.CommandText = $query
$result = $command.ExecuteReader()
$table = new-object "System.Data.DataTable"
$table.Load($result)
$format = @{Expression={$_.Id};Label="Name";width=25}
$table | format-table $format | Out-File C:\export\servers.txt
$connection.Close()
Maybe you are looking for
-
Hi there,?The other day my computer died, so I had to re-install the OS and everything. I've searched everywhere but I cannot find the software CD that came with my creative Zen touch MP3 player. Is there a way I can get a new copy of this disc?Cheer
-
Roles regarding E-Recruitment are not there in role maintainence
roles regarding E-Recruitment are not there in role maintainence . could anyone tell me why ?
-
I disabled my licence for CS5 on my old computer and reinstalled it on my new MacBook Pro. The software shows up and I can see the icons in my Applications Folder, but when I click in the Adobe Illustrator icon, for instance, up pops a box with "Crea
-
Halo Reach preorder promotion in store?
Hi, I am wondering if the promotion for reserving Halo Reach is also available if I reserve it in store or if it is only available if I reserve it from bestbuy.com Thank you
-
X1C / Windows 8 and USB 3.0 Dock (0A33970)
I just received my USB 3.0 dock for use with my X1C running Windows 8 x64. The drivers that are supplied with the dock do not work properly with Windows 8. DisplayLink has update drivers however that fix the problem and the dock works great http:/