Connect video card to TV with HDMI
I got a GeForce 9800 GT video card, and I connected it with my HDTV with HDMI cable, everything works with except no audio.
The problem is 9800 GT itself only transfer video over HDMI, if we want to audio also transfer over HDMI, we need use Internal S/PDIF Digital Audio Cable to connect mother board with video card.
This is the cable. My mother board actually does support S/PDIF output, so just connect the white side of the cable to video card, and the black side to mother board S/PDIF output connection header, something like
You need check your mother board manual to make sure which port is which port, and make sure SPDIF port to SPDIF and GND to ground.
Now pull off your other audio attachment to PC, and restart the computer, you should have audio over HDMI now.
The problem is 9800 GT itself only transfer video over HDMI, if we want to audio also transfer over HDMI, we need use Internal S/PDIF Digital Audio Cable to connect mother board with video card.
This is the cable. My mother board actually does support S/PDIF output, so just connect the white side of the cable to video card, and the black side to mother board S/PDIF output connection header, something like
Now pull off your other audio attachment to PC, and restart the computer, you should have audio over HDMI now.
loading log4j.properties
String resource = "/log4j.properties"; // / is necessary
URL configFileResource = Log4JTest.class.getResource(resource);
PropertyConfigurator.configure(configFileResource);
log4j.properties
#default one
log4j.rootLogger=DEBUG, A1
log4j.appender.A1=org.apache.log4j.ConsoleAppender
log4j.appender.A1.layout=org.apache.log4j.PatternLayout
log4j.appender.A1.layout.ConversionPattern=%p [%t] %c{2} (%M:%L) - %m%n
#under package example
log4j.logger.example=INFO, A2
log4j.appender.A2=org.apache.log4j.FileAppender
log4j.appender.A2.File=${user.home}/test.txt
log4j.appender.A2.layout=org.apache.log4j.PatternLayout
log4j.appender.A2.layout.ConversionPattern=%5r %-5p [%t] %c{2} - %m%n
Labels:
log4j
Init with Array or ArrayCollection
I am trying to use repeater to create a set of checkbox, at first, I am trying to use Array as repeater's data provider. If the array is hard coded, it works, but if I initialized the data for the array in init() method, it will not work. I changed the array to array collection, and it magically works!!!
That's quite strange...
That's quite strange...
Subscribe to:
Posts (Atom)

