Help requested with the background of lighting effects
I need help creating a light background when rendering with light effects. I am selecting filter, then render, then lighting effects. From there I am choosing an omni light to create a blue light shining from above on my project. The problem I have is that the blue light fades into black or grey. I need the blue light to disseminate or fade into a white background instead. I have tried all sorts of options with changing the background in the lighting effects menu to no avail. I have photoshop CS3. Any help would be greatly appreciated!
Jim
Could you please post a screenshot with the pertinent Panels and dialog visible?
Similar Messages
-
I RECIVED AN EMAIL FROM ADOBE AS : As good will gesture, we can help you with the upgrade for PSE 13. We would request you to place the order for Adobe Photoshop Elements 13 as an upgrade and then we will provide you the full version serial number for the same product against the new upgrade order" IS THIS UPGRADE FREE AND WHAT SHOULD I DO, HOW CAN I HAVE THIS UPGRADE?
Compare with on-line stores. The full version is often cheaper than Adobe's upgrade price.
See this example from Amazon, but check pricing in your own region.
http://www.amazon.com/gp/product/B00N4OLCRO/ref=s9_simh_gw_p65_d4_i2?pf_rd_m=ATVPDKIKX0DER &pf_rd_s=desktop-1&pf_rd_r=0F1GED9546928YP3PHC0&pf_rd_t=36701&pf_rd_p=1970559082&pf_rd_i=d esktop -
Help requested with White Balance
This may come as a surprise to many, but here I am requesting your help, instead of giving it.
I have filled out a feature request with the following content, already some time ago:
Would it not be nice to be able to extract the WB settings in K from the metadata and be able in post to change it to what you should have done during the shoot.
Say your WB is set to 5600 K, you can extract that from the metadata and with the White Balance effect you can enter a desired setting of say 6100 K. During the shoot you can do that with the Canon XF series, but if you have forgotten to use a warm card instead of the white balance card, this would be a great effect to have. Or in the situation where you simply want a shot to be slightly cooler or warmer, this would be a great feature.
Interface similar to the scale slider and fully keyframeable. The program monitor should reflect changes in color temperature immediately. Simple, easy to understand, like using a set of Warm Cards after the shoot.
Retrieval of the color temperatures should not be difficult. It is contained in the metadata:
It works both with AWB and manual for the XF series. If the camera does not record these data, the effect should be greyed out.
I request your help to get this feature implemented, since it is pretty simple to implement, is a great help to have when doing multicam work, to fine tune different cameras or to change the atmosphere of a shot. It is far easier than the color correction effects we already have.
If you agree with me, please fill out a similar feature request. The more requests made, the greater the chance of it being implemented.
See Feature Request FormHarm, I've seen instances of multi-cam shoot cameras that were identical models, using a clone of the settings which still resulted in differences in color. I've seen this blamed on the chips and the chip manufacturing process. I've also seen multicam footage from analog cameras that were supposedly balanced before shooting that resulted in shifts. And then, you have a situation where the atmospherics can alter the color, such as when one camera is close to the action, and the distant camera is shooting through fog or haze that has light shooting through it.
So again, while you can get in the ballpark with certain regimes, when it comes time to finish, you have to trust your eyes.
So, for my situation, it's not something that rises to the level of something I'd use enough to warrant a feature request.
My biggest issue today is that I'd love to see Pr offering bottom-up rendering, the way Avid MC offers it with its Render All option vs. Smart Rendering, which is top down. I don't like that I have to re-render entire sequences just because I made a little change to an upper layer clip. That, to me, warrants a concerted campaign or pitchfork mob.
But, I'll make a pact with you. If you'll request bottom up rendering, I'll request WB metadata support, OK? -
I am trying to use the Filter-Render-Lighting Effects tool but the Lighting Effects is in light grey and I can not access it can anyone help please?
Hi again is this what you are looking for?
Adobe Photoshop Version: 14.2.1 (14.2.1 20140207.r.570 2014/02/07:23:00:00)
x64
Operating System: Windows 8 64-bit
Version: 6.2
System architecture: Intel CPU Family:6, Model:10, Stepping:9 with MMX, SSE
Integer, SSE FP, SSE2, SSE3, SSE4.1, SSE4.2, HyperThreading
Physical processor count: 2
Logical processor count: 4
Processor speed: 1796 MHz
Built-in memory: 3977 MB
Free memory: 1203 MB
Memory available to Photoshop: 3289 MB
Memory used by Photoshop: 60 %
Image tile size: 128K
Image cache levels: 4
Font Preview: Medium
TextComposer: Latin
Display: 1
Display Bounds: top=0, left=0, bottom=768, right=1366
OpenGL Drawing: Disabled.
OpenGL Allow Old GPUs: Not Detected.
OpenGL Drawing Mode: Advanced
OpenGL Allow Normal Mode: True.
OpenGL Allow Advanced Mode: True.
AIFCoreInitialized=1
AIFOGLInitialized=1
OGLContextCreated=1
NumGPUs=1
gpu[0].OGLVersion="3.0"
gpu[0].MemoryMB=2052
gpu[0].RectTextureSize=16384
gpu[0].Renderer="Intel(R) HD Graphics 4000"
gpu[0].RendererID=358
gpu[0].Vendor="Intel"
gpu[0].VendorID=32902
gpu[0].HasNPOTSupport=1
gpu[0].DriverVersion="10.18.10.3379"
gpu[0].Driver="igdumdim64.dll,igd10iumd64.dll,igd10iumd64.dll,igdumdim32,igd10iumd32,igd10 iumd32"
gpu[0].DriverDate="20131218000000.000000-000"
gpu[0].CompileProgramGLSL=1
gpu[0].TestFrameBuffer=1
gpu[0].OCLPresent=1
gpu[0].OCLVersion="1.2 "
gpu[0].CUDASupported=0
gpu[0].OCLBandwidth=0
gpu[0].glGetString[GL_SHADING_LANGUAGE_VERSION]="1.30 - Build 10.18.10.3379"
gpu[0].glGetProgramivARB[GL_FRAGMENT_PROGRAM_ARB][GL_MAX_PROGRAM_INSTRUCTIONS_ARB]=[1447]
gpu[0].glGetIntegerv[GL_MAX_TEXTURE_UNITS]=[8]
gpu[0].glGetIntegerv[GL_MAX_COMBINED_TEXTURE_IMAGE_UNITS]=[96]
gpu[0].glGetIntegerv[GL_MAX_VERTEX_TEXTURE_IMAGE_UNITS]=[16]
gpu[0].glGetIntegerv[GL_MAX_TEXTURE_IMAGE_UNITS]=[16]
gpu[0].glGetIntegerv[GL_MAX_DRAW_BUFFERS]=[8]
gpu[0].glGetIntegerv[GL_MAX_VERTEX_UNIFORM_COMPONENTS]=[4096]
gpu[0].glGetIntegerv[GL_MAX_FRAGMENT_UNIFORM_COMPONENTS]=[4096]
gpu[0].glGetIntegerv[GL_MAX_VARYING_FLOATS]=[64]
gpu[0].glGetIntegerv[GL_MAX_VERTEX_ATTRIBS]=[16]
gpu[0].extension[AIF::OGL::GL_ARB_VERTEX_PROGRAM]=1
gpu[0].extension[AIF::OGL::GL_ARB_FRAGMENT_PROGRAM]=1
gpu[0].extension[AIF::OGL::GL_ARB_VERTEX_SHADER]=1
gpu[0].extension[AIF::OGL::GL_ARB_FRAGMENT_SHADER]=1
gpu[0].extension[AIF::OGL::GL_EXT_FRAMEBUFFER_OBJECT]=1
gpu[0].extension[AIF::OGL::GL_ARB_TEXTURE_RECTANGLE]=1
gpu[0].extension[AIF::OGL::GL_ARB_TEXTURE_FLOAT]=1
gpu[0].extension[AIF::OGL::GL_ARB_OCCLUSION_QUERY]=1
gpu[0].extension[AIF::OGL::GL_ARB_VERTEX_BUFFER_OBJECT]=1
gpu[0].extension[AIF::OGL::GL_ARB_SHADER_TEXTURE_LOD]=0
License Type: Subscription
Serial number: 96040664679779475738
Application folder: C:\Program Files\Adobe\Adobe Photoshop CC (64 Bit)\
Temporary file path: C:\Users\Trisha\AppData\Local\Temp\
Photoshop scratch has async I/O enabled
Scratch volume(s):
C:\, 452.3G, 51.7G free
Required Plug-ins folder: C:\Program Files\Adobe\Adobe Photoshop CC (64
Bit)\Required\Plug-Ins\
Primary Plug-ins folder: C:\Program Files\Adobe\Adobe Photoshop CC (64
Bit)\Plug-ins\
Installed components:
ACE.dll ACE 2013/10/29-11:47:16 79.548223 79.548223
adbeape.dll Adobe APE 2013/02/04-09:52:32 0.1160850 0.1160850
AdobeLinguistic.dll Adobe Linguisitc Library 7.0.0
AdobeOwl.dll Adobe Owl 2013/10/25-12:15:59 5.0.24 79.547804
AdobePDFL.dll PDFL 2013/10/29-11:47:16 79.508720 79.508720
AdobePIP.dll Adobe Product Improvement Program 7.0.0.1786
AdobeXMP.dll Adobe XMP Core 2013/10/29-11:47:16 79.154911 79.154911
AdobeXMPFiles.dll Adobe XMP Files 2013/10/29-11:47:16 79.154911
79.154911
AdobeXMPScript.dll Adobe XMP Script 2013/10/29-11:47:16 79.154911
79.154911
adobe_caps.dll Adobe CAPS 7,0,0,21
AGM.dll AGM 2013/10/29-11:47:16 79.548223 79.548223
ahclient.dll AdobeHelp Dynamic Link Library 1,8,0,31
aif_core.dll AIF 5.0 79.534508
aif_ocl.dll AIF 5.0 79.534508
aif_ogl.dll AIF 5.0 79.534508
amtlib.dll AMTLib (64 Bit) 7.0.0.249 BuildVersion: 7.0; BuildDate:
Thu Nov 14 2013 15:55:50) 1.000000
ARE.dll ARE 2013/10/29-11:47:16 79.548223 79.548223
AXE8SharedExpat.dll AXE8SharedExpat 2011/12/16-15:10:49 66.26830
66.26830
AXEDOMCore.dll AXEDOMCore 2011/12/16-15:10:49 66.26830 66.26830
Bib.dll BIB 2013/10/29-11:47:16 79.548223 79.548223
BIBUtils.dll BIBUtils 2013/10/29-11:47:16 79.548223 79.548223
boost_date_time.dll DVA Product 7.0.0
boost_signals.dll DVA Product 7.0.0
boost_system.dll DVA Product 7.0.0
boost_threads.dll DVA Product 7.0.0
cg.dll NVIDIA Cg Runtime 3.0.00007
cgGL.dll NVIDIA Cg Runtime 3.0.00007
CIT.dll Adobe CIT 2.1.6.30929 2.1.6.30929
CITThreading.dll Adobe CITThreading 2.1.6.30929 2.1.6.30929
CoolType.dll CoolType 2013/10/29-11:47:16 79.548223 79.548223
dvaaudiodevice.dll DVA Product 7.0.0
dvacore.dll DVA Product 7.0.0
dvamarshal.dll DVA Product 7.0.0
dvamediatypes.dll DVA Product 7.0.0
dvaplayer.dll DVA Product 7.0.0
dvatransport.dll DVA Product 7.0.0
dvaunittesting.dll DVA Product 7.0.0
dynamiclink.dll DVA Product 7.0.0
ExtendScript.dll ExtendScript 2013/10/30-13:12:12 79.546835
79.546835
FileInfo.dll Adobe XMP FileInfo 2013/10/25-03:51:33 79.154511
79.154511
filter_graph.dll AIF 5.0 79.534508
icucnv40.dll International Components for Unicode
2011/11/15-16:30:22 Build gtlib_3.0.16615
icudt40.dll International Components for Unicode
2011/11/15-16:30:22 Build gtlib_3.0.16615
imslib.dll IMSLib DLL 7.0.0.145
JP2KLib.dll JP2KLib 2013/10/29-11:47:16 79.248139 79.248139
libifcoremd.dll Intel(r) Visual Fortran Compiler 10.0 (Update A)
libiomp5md.dll Intel(R) OMP Runtime Library 5.0
libmmd.dll Intel(r) C Compiler, Intel(r) C++ Compiler, Intel(r)
Fortran Compiler 12.0
LogSession.dll LogSession 2.1.2.1785
mediacoreif.dll DVA Product 7.0.0
MPS.dll MPS 2013/10/29-11:47:16 79.535029 79.535029
msvcm80.dll Microsoft® Visual Studio® 2005 8.00.50727.8428
msvcm90.dll Microsoft® Visual Studio® 2008 9.00.30729.1
msvcp100.dll Microsoft® Visual Studio® 2010 10.00.40219.1
msvcp80.dll Microsoft® Visual Studio® 2005 8.00.50727.8428
msvcp90.dll Microsoft® Visual Studio® 2008 9.00.30729.1
msvcr100.dll Microsoft® Visual Studio® 2010 10.00.40219.1
msvcr80.dll Microsoft® Visual Studio® 2005 8.00.50727.8428
msvcr90.dll Microsoft® Visual Studio® 2008 9.00.30729.1
PatchMatch.dll PatchMatch 2013/10/29-11:47:16 79.542390 79.542390
pdfsettings.dll Adobe PDFSettings 1.04
Photoshop.dll Adobe Photoshop CC CC
Plugin.dll Adobe Photoshop CC CC
PlugPlugOwl.dll Adobe(R) CSXS PlugPlugOwl Standard Dll (64 bit)
4.2.0.36
PSArt.dll Adobe Photoshop CC CC
PSViews.dll Adobe Photoshop CC CC
SCCore.dll ScCore 2013/10/30-13:12:12 79.546835 79.546835
ScriptUIFlex.dll ScriptUIFlex 2013/10/30-13:12:12 79.546835
79.546835
svml_dispmd.dll Intel(r) C Compiler, Intel(r) C++ Compiler, Intel(r)
Fortran Compiler 12.0
tbb.dll Intel(R) Threading Building Blocks for Windows 4, 1, 2012,
1003
tbbmalloc.dll Intel(R) Threading Building Blocks for Windows 4, 1,
2012, 1003
updaternotifications.dll Adobe Updater Notifications Library
7.0.1.102 (BuildVersion: 1.0; BuildDate: BUILDDATETIME) 7.0.1.102
WRServices.dll WRServices Mon Feb 25 2013 16:09:10 Build 0.19078
0.19078
Required plug-ins:
3D Studio 14.2.1 (14.2.1 x001)
Accented Edges 14.2.1
Adaptive Wide Angle 14.2.1
Angled Strokes 14.2.1
Average 14.2.1 (14.2.1 x001)
Bas Relief 14.2.1
BMP 14.2.1
Camera Raw 8.4.1
Camera Raw Filter 8.4.1
Chalk & Charcoal 14.2.1
Charcoal 14.2.1
Chrome 14.2.1
Cineon 14.2.1 (14.2.1 x001)
Clouds 14.2.1 (14.2.1 x001)
Collada 14.2.1 (14.2.1 x001)
Color Halftone 14.2.1
Colored Pencil 14.2.1
CompuServe GIF 14.2.1
Conté Crayon 14.2.1
Craquelure 14.2.1
Crop and Straighten Photos 14.2.1 (14.2.1 x001)
Crop and Straighten Photos Filter 14.2.1
Crosshatch 14.2.1
Crystallize 14.2.1
Cutout 14.2.1
Dark Strokes 14.2.1
De-Interlace 14.2.1
Dicom 14.2.1
Difference Clouds 14.2.1 (14.2.1 x001)
Diffuse Glow 14.2.1
Displace 14.2.1
Dry Brush 14.2.1
Eazel Acquire 14.2.1 (14.2.1 x001)
Embed Watermark 4.0
Entropy 14.2.1 (14.2.1 x001)
Extrude 14.2.1
FastCore Routines 14.2.1 (14.2.1 x001)
Fibers 14.2.1
Film Grain 14.2.1
Filter Gallery 14.2.1
Flash 3D 14.2.1 (14.2.1 x001)
Fresco 14.2.1
Glass 14.2.1
Glowing Edges 14.2.1
Google Earth 4 14.2.1 (14.2.1 x001)
Grain 14.2.1
Graphic Pen 14.2.1
Halftone Pattern 14.2.1
HDRMergeUI 14.2.1
IFF Format 14.2.1
Ink Outlines 14.2.1
JPEG 2000 14.2.1
Kurtosis 14.2.1 (14.2.1 x001)
Lens Blur 14.2.1
Lens Correction 14.2.1
Lens Flare 14.2.1
Liquify 14.2.1
Matlab Operation 14.2.1 (14.2.1 x001)
Maximum 14.2.1 (14.2.1 x001)
Mean 14.2.1 (14.2.1 x001)
Measurement Core 14.2.1 (14.2.1 x001)
Median 14.2.1 (14.2.1 x001)
Mezzotint 14.2.1
Minimum 14.2.1 (14.2.1 x001)
MMXCore Routines 14.2.1 (14.2.1 x001)
Mosaic Tiles 14.2.1
Multiprocessor Support 14.2.1 (14.2.1 x001)
Neon Glow 14.2.1
Note Paper 14.2.1
NTSC Colors 14.2.1 (14.2.1 x001)
Ocean Ripple 14.2.1
Oil Paint 14.2.1
OpenEXR 14.2.1
Paint Daubs 14.2.1
Palette Knife 14.2.1
Patchwork 14.2.1
Paths to Illustrator 14.2.1
PCX 14.2.1 (14.2.1 x001)
Photocopy 14.2.1
Photoshop 3D Engine 14.2.1 (14.2.1 x001)
Photoshop Touch 14.0
Picture Package Filter 14.2.1 (14.2.1 x001)
Pinch 14.2.1
Pixar 14.2.1 (14.2.1 x001)
Plaster 14.2.1
Plastic Wrap 14.2.1
PNG 14.2.1
Pointillize 14.2.1
Polar Coordinates 14.2.1
Portable Bit Map 14.2.1 (14.2.1 x001)
Poster Edges 14.2.1
Radial Blur 14.2.1
Radiance 14.2.1 (14.2.1 x001)
Range 14.2.1 (14.2.1 x001)
Read Watermark 4.0
Reticulation 14.2.1
Ripple 14.2.1
Rough Pastels 14.2.1
Save for Web 14.2.1
ScriptingSupport 14.2.1
Shake Reduction 14.2.1
Shear 14.2.1
Skewness 14.2.1 (14.2.1 x001)
Smart Blur 14.2.1
Smudge Stick 14.2.1
Solarize 14.2.1 (14.2.1 x001)
Spatter 14.2.1
Spherize 14.2.1
Sponge 14.2.1
Sprayed Strokes 14.2.1
Stained Glass 14.2.1
Stamp 14.2.1
Standard Deviation 14.2.1 (14.2.1 x001)
STL 14.2.1 (14.2.1 x001)
Sumi-e 14.2.1
Summation 14.2.1 (14.2.1 x001)
Targa 14.2.1
Texturizer 14.2.1
Tiles 14.2.1
Torn Edges 14.2.1
Twirl 14.2.1
Underpainting 14.2.1
Vanishing Point 14.2.1
Variance 14.2.1 (14.2.1 x001)
Variations 14.2.1 (14.2.1 x001)
Water Paper 14.2.1
Watercolor 14.2.1
Wave 14.2.1
Wavefront|OBJ 14.2.1 (14.2.1 x001)
WIA Support 14.2.1 (14.2.1 x001)
Wind 14.2.1
Wireless Bitmap 14.2.1 (14.2.1 x001)
ZigZag 14.2.1
Optional and third party plug-ins: NONE
Plug-ins that failed to load: NONE
Flash:
Mini Bridge
Kuler
Adobe Exchange
Installed TWAIN devices: NONE
On Tue, Feb 24, 2015 at 10:29 PM, Benjamin Root Photography < -
After Mavericks OS upgrade, can no longer make any HTTP requests with the OPTIONS verb
My machine can no longer make any HTTP requests with the OPTIONS verb. This happens whether I try it curl, postman, or ajax.
curl -i -X OPTIONS http://www.google.com returns curl: (52) Empty reply from server
It should return a long string containing a 405 error code.
I suspect that this is related to the Mavericks upgrade I did earlier this week. I only have one mac (my dev machine) with Mavericks. Other macs are Mountain Lion and they don't have this problem.
Can anyone else with Mavericks confirm whether or not they have this problem too?
If this is Mavericks related, anyone know of a fix or workaround?Turns out that it wasn't Mavericks related at all. Cisco AnyConnect has a security module running behind the scenes even when you're not VPNed into anything. It was blocking my OPTIONS verb requests. I was able to make these calls after uninstalling.
Re-installing with Web Security turned off should prevent it from happening. While I was uninstalling I did notice that there was a web security uninstall script in /opt/cisco/vpn/bin but I already committed to taking the whole app off my machine. Simply running that script could have done it too.
I must give credit to Ben Nadel. It was his blog post that helped me fix this issue.
http://www.bennadel.com/blog/2559-Cisco-AnyConnect-VPN-Client-May-Block-CORS-AJA X-OPTIONS-Requests.htm?&_=0.10495476494543254#comments_44093 -
Hi,
Please could you say where is the Hue, Saturation, Lightness effect that has colorize option in CS3 Premiere? I look under Color Correction in Effects and there is a "Color Balance (HLS)" but there is no colorize option. Thanks for your help.Sometimes you ned to apply more than one effect.
Look at Fast Color Corrector. -
Trouble with the PS CC2014 3D Effects - Intel HD Graphics 3000 that doesn't work properly?
I Have a MBP 13 inch 2.8 GHz Intel Core i7 late 2011 and I'm Having trouble with the PS CC2014 3D Effects crashing when trying to apply a New 3D extrusion, are there any solution regarding the Intel HD Graphics 3000 that doesn't work properly?
Thanks!Look at this document. It should help you troubleshoot and it suggests settings to try out.
Photoshop CC and CC 2014 GPU FAQ
While the stock advice for Windows users is to go to the Intel site for updates, Mac users can only get their drivers in the Mac OSX system updates. So you need to be sure your OS is up to date. If you have an earlier version, like 10.7 or 10.8, it is possible an upgrade to 10.9 might help. -
Hello, we have both Creative Cloud membership and Creative Cloud for team. Can you help me with the difference and if i need to have both? We have 9 employees that are using it. Just not sure if i'm paying for something i don't need.
Thank youPlease refer to Creative Cloud Help | Creative Cloud / Common Questions
CC is for retail use with 20 GB of storage space, CCT is where number of seats are purchased & assigned by one program admin where each seat gets 100GB of storage space.
You can not have both the CC & team in one account as it will only provide you added storage space of 120 GB but you can activate the CC any of them or either of them twice as CC is based on Adobe ID.
Regards
Rajshree -
Please help me with the iphone 4 trouble
I'm using iphone4 and i saw a new update IOS7 and i press to update,the iphone is updating than it turn off for 5 minutes later it turn on again but with the app's logo and it start to repeat again and again and I can not connect to itunes to fix,I do not know what to do ,hope you guys will help me with the iphone,i reallly need it right now
Make sure you have the Latest Version of iTunes (v11) Installed on your computer
iTunes free download from www.itunes.com/download
Christine Hua wrote:
the iphone is updating than it turn off for 5 minutes later it turn on again but with the app's logo and it start to repeat again and again and I can not connect to itunes to fix,
See Here > http://support.apple.com/kb/HT1808
You may need to try this More than Once...
Be sure to Follow ALL the Steps...
But... if the Device has been Modified... this will Not necessarily work.
Unauthorized modification of iOS > http://support.apple.com/kb/HT3743 -
Please help me with the installation process.
i have got free norton antivirus activation keybwith the pirchase of hp 16 gb pendrive .
please help me with the installation process.Hey @10p,
Welcome to the HP Support Forums!
I understand that you need assistance with the installation of Norton Antivirus that you received with the purchase of an HP 16gb Pendrive. Did you get the Pendrive with a computer or just purchase the Pendrive on its own?
Once I know if the Pendrive came with the purchase of a computer I will be able to point you in the right direction for support. Good luck!
X-23
I work on behalf of HP
Please click "Accept as Solution" if you feel my post solved your issue, it will help others find the solution.
Click the "Kudos, Thumbs Up" on the right to say "Thanks" for helping! -
Please help me with the homework given to me by my teacher
hello,i am new in java programming please help me with the home work given to me by my teacher at school, help me to build an interface that can work with this code.i can build an interface but i dont just understand this code.
//references:
//http://forums.techguy.org/development/570048-need-write-java-program-convert.html
import java.util.Map;
import java.util.HashMap;
import java.util.Iterator;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.io.BufferedReader;
import java.io.FileReader;
public class Translate
public static void main(String [] args) throws IOException
if (args.length != 2)
System.err.println("usage: Translate wordmapfile textfile");
System.exit(1);
try
HashMap words = ReadHashMapFromFile(args[0]);
System.out.println(ProcessFile(words, args[1]));
catch (Exception e)
e.printStackTrace();
// static helper methods
* Reads a file into a HashMap. The file should contain lines of the format
* "key\tvalue\n"
* @returns a hashmap of the given file
@SuppressWarnings("unchecked")
private static HashMap ReadHashMapFromFile(String filename) throws FileNotFoundException, IOException
BufferedReader in = null;
HashMap map = null;
try
in = new BufferedReader(new FileReader(filename));
String line;
map = new HashMap();
while ((line = in.readLine()) != null)
String[] fields = line.split("\\t", 2);
if (fields.length != 2) continue; //just ignore "invalid" lines
map.put(fields[0], fields[1]);
finally
if(in!=null) in.close(); //may throw IOException
return(map); //returning a reference to local variable is safe in java (unlike C/C++)
* Process the given file
* @returns String contains the whole file.
private static String ProcessFile(Map words, String filename) throws FileNotFoundException, IOException {
BufferedReader in = null;
StringBuffer out = null;
try {
in = new BufferedReader(new FileReader(filename));
out = new StringBuffer();
String line = null;
while( (line=in.readLine()) != null ) {
out.append(SearchAndReplaceWordsInText(words, line)+"\n");
} finally {
if(in!=null) in.close(); //may throw IOException
return out.toString();
* Replaces all occurrences in text of each key in words with it's value.
* @returns String
private static String SearchAndReplaceWordsInText(Map words, String text) {
Iterator it = words.keySet().iterator();
while( it.hasNext() ) {
String key = (String)it.next();
text = text.replaceAll("\\b"+key+"\\b", (String)words.get(key));
return text;
* @returns: s with the first letter capitalized
String capitalize(String s)
return s.substring(0,0).toUpperCase() + s.substring(1);
}... here's the head of my pirate_words_map.txt
hello ahoy
hi yo-ho-ho
pardon me avast
excuse me arrr
yes aye
my me
friend me bucko
sir matey
madam proud beauty
miss comely wench
stranger scurvy dog
officer foul blaggart
where whar
is be
are be
am be
the th'
you ye
your yer
tell be tellin'Heres your answer. Run it in on your pc.
public class Annoy
public static void main(String[] args)
System.out.println("I am a triple poster.");
System.out.println("I can not understand why I can not understand the help I have receved to date on the java forums.");
} -
Please help me with the digital signature validation problem?
Please help me with the digital signature validation problem?
Hi
Execute the program in the Debuggin mode.
In the Debugger Window
Select Breakpoint -> Break point at -> Breakpoint at source code Menu Item and enter the details of the program/include/line no..
Activate the System Debugger On from the Settings Menu.
Hope this would help you.
Murthy
Edited by: Kalyanam Seetha Rama Murthy on Jul 18, 2008 7:20 AM -
Please help me with the accounting records of iTunes. At step in placing credit card details are asked to contact iTunes Support
Brenda, the easiest way to contact the support team is thru the iTunes Customer Service website:
http://www.apple.com/support/itunes/contact/ -
Please help me with the step by step instructions on how to install a Windows server 2008 on a computer that has Windows 8 installed on it without formatting windows 8.Please email the steps , Thanks
Please help me with the step by step instructions on how to install a Windows server 2008 on a computer that has Windows 8 installed on it without formatting windows 8.Please email the steps , Thanks
Assuming your rig can support virtual machines, you can use Hyper-V and run another OS there.
Better practice however is to use a dedicated machine and use remote desktop to the server.
Corsair Carbide 300R with window
Corsair TX850V2 70A@12V
Asus M5A99FX PRO R2.0 CFX/SLI
AMD Phenom II 965 C3 Black Edition @ 4.0 GHz
G.SKILL RipjawsX DDR3-2133 8 GB
EVGA GTX 6600 Ti FTW Signature 2(Gk104 Kepler)
Asus PA238QR IPS LED HDMI DP 1080p
ST2000DM001 & Windows 8.1 Enterprise x64
Microsoft Wireless Desktop 2000
Wacom Bamboo CHT470M
Place your rig specifics into your signature like I have, makes it 100x easier to understand!
Hardcore Games Legendary is the Only Way to Play! -
Could you please help me with the problem. I have macbook with retina with mac os 10.7.4 ann want to update it to mac os 10.7.5. I had been waiting for 2 hours to do it and had tried 3 times but it appeared that it was impossible. What should I do?
You can download the standalone updates:
OS X Lion Update 10.7.5 (Client Combo)
OS X Lion 10.7.5 Supplemental Update
Maybe you are looking for
-
Hi, We want to devaluate an asset which is wrongly given as life for 10 years . we want to make resudual value as zero. As the asset should be depreciated only for 2 years. So we want to make resudual value as zero. May i know how can we make this Me
-
Hello experts, I have to count employees who worked at least one day in a year. I don't know how to do this because if I display the year, the report counts only employee who worked the entire year. I'm new on the HR reporting and the headcount cube
-
Minimize Window capability disabled
Lately I've been seeing the yellow "bead" in the upper lefthand corner of a window turn gray, at which point all "minimize window" functionality stops (i.e. clicking the yellow bead, typing Command+M, selecting Window>Minimize, or double-clicking the
-
Using the EVOC TO with automation
Hi, I'm trying to use the EVOC TO effect insert. When using automation, how is it possible to gradually fade in one of this effect banks settings rather than just having it suddenly slam on. What do I gradually need to adjust in automation to create
-
HI, is it possible to convert an existing"filled" IDoc to an XML file ? Without using SAP XI. Maybe an fuction or something else `? Regards, Gordon