Problems setting volume of a net stream
I'm using this actionscript, but the volume doesnt seem to be
set to 0.
Any tips, greatly appreciated.
Yes I know setVolume, but I was looking for a solution
without actionscripting.
The sound is not controlled through actionscript but is
integrated in author
environment, so I thought perhaps there is any hidden feature
(in the prioperty
panel?) to configure allowing you to set the volume.
For example if you drag and drop a sound from the library to
the stage, I
would expect a feature in the property panel to setup the
volume but obviously
there is none.
Similar Messages
-
WRT600N problems setting up a home net with PDAs
Good afternoon,
I've just bought a WRT600N and I'm having problems to configure.
Network configuration: 4 computer wire connected;1 laptop and 2 PDAs (Ipaq hx47000 & Ipaq hx2490b);
OS: Windows XP Proffesional and PDAs Windows Mobile 5.
Internet cable connection.
Security at 2.4Ghz. WPA-personal + TKIP and MAC filter enabled.
No activity expected at 5 Ghz.
Problems:
- I can't connect PDAs to Internet. Only able to connect but with some difficulties (sometimes loose connection) and always have NO Internet access.
- I can't see network places from laptop or PDAs.
- I can't access to web based utility from computers only from laptop.
Steps alrady done:
- IP reserved for each PDA' MAC address..
- QoS disabled.
- Beacon interval increased to 800.
Could anyone help me to fix it?. Thanks in advance.I looked through the User Guide for both of your PDA's. There is no mention that they support WPA encryption. They User Guide says that they only support WEP encryption.
Unless HP (or Microsoft Windows Mobile) has released some new wireless drivers for your PDA's, it looks like they won't do WPA.
If you believe that you have the WPA drivers, then I would suggest that you first connect your PDAs using no encryption and no MAC address filtering. If this works, then turn on only the WPA encryption. If this works, try the MAC address filtering.
Message Edited by toomanydonuts on 04-21-2008 06:24 AM -
I have iCloud set up fine on Windows 8 and it pulls shared photo streaming great, The problem is that in My Photo Stream folder the photos doesn't charge automatically and is empty, how can I do?
Hey appleIC!
Here is an article that will help you troubleshoot this issue:
iCloud: My Photo Stream troubleshooting
http://support.apple.com/kb/ts3989
Take care, and thanks for visiting the Apple Support Communities.
Cheers,
Braden -
Hi!
Does anyone know what I need to do in order to turn up the volume when I’m streaming a Netflix movie from my Mac Book Pro (Mid 2009) to my flat screen TV?
I hooked up the HDMI adapter from my Mac to my TV and it is currently in Mirror Mode, but I can’t turn up the volume, the only audio I’m able to adjust is on my Mac.
I’ve already tried: System Preference > Sound > Output > Internal Speakers Built in output. That’s the only option my Mac gives me.
Any suggestions?Hello jguti,
Thanks for using Apple Support Communities.
I understand that your external display connected via HDMI is not being detected by the computer. At this point, the best bet for your next troubleshooting step would be to reset the system:
Reset the system
You can reset the Mac's parameter RAM and SMC.
Reset the resolution
Start by resetting the Mac's parameter RAM. If the display does not come up, was previously set to an unsupported resolution, and still results in no video:
Start up in Safe Mode.
From the Apple () menu, choose System Preferences.
Choose Displays from the View menu to open the preferences pane.
Select any resolution and refresh rate that your display supports.
Restart your computer.
Apple computers: Troubleshooting issues with video on internal or external displays
http://support.apple.com/kb/HT1573
Take care,
Alex H. -
Revision: 14823
Revision: 14823
Author: [email protected]
Date: 2010-03-17 10:51:40 -0700 (Wed, 17 Mar 2010)
Log Message:
Fix bug where canPause was not set to false for live streams.
Modified Paths:
osmf/trunk/framework/OSMF/org/osmf/net/NetStreamPlayTrait.as
osmf/trunk/framework/OSMFTest/org/osmf/elements/TestVideoElement.asThanks for looking at this post. We have resolved the issue for ourselves by working with our DBAs to narrow down where the problem actually started. We found that the particular SQL we were looking at was not the issue. In a chart on a subsequent page (via a click through), we were actually running into where apex was starting to consuming memory but we were catching it later.
What we found was that when we had a chart query that was SQL containing a pipeline function, the memory usage went up. And within 10 minutes, the server would crawl to a halt. To release the memory, the DBAs would have to bounce the Apex instance. When I changed the query to be a function returning SQL, the problem stopped. I don't know what the correlation was between SQL and moving to a PL/SQL function returning SQL.
I am not even 100% positive of the pipeline function being the cause. I only know that this started happening about the same time as when I implemented the pipeline function. I understand you are leery of a one-second function/query running up that kind of utilization. No one here believed me either (including me really). We figured it HAD to be a coincidence. But once I changed the query from SQL to a function returning PL/SQL, our problem went away.
Thanks to all who looked at and thought about this.
Walter -
Problems setting up static routing
HI
I'm having a problem setting up static routing. I keep getting the message "invalid static route". I have an E1550 router and my frimware is up to date. I have tried a few different gateway addresses ie 192.168.1.1, 127.0.0.1 and my router's address on the net, but I keep getting the same message. Has anyone else had this problem and been able to fix it?I think the E1550 router supports LAN to LAN routing provided that you have two local networks. If you only have a plain modem and the E1550, I believe you can't do Static routing on that type of setup. Found this link that might help: http://kb.linksys.com/Linksys/ukp.aspx?vw=1&docid=12a84336a124498eb5d6f0204b85191e_17589.xml&pid=80&...
-
Problems setting up a Domain - javax.management.InstanceNotFoundException
I am having problems setting up a Domain. The following steps summarize
what I have done.
1. Created FooDomain in d:/bea/wlserver6.0/config and created
appropriate config.xml, startup scripts, security, etc... (FooDomain
boots ok)
2. Moved console.war to bea/wlserver6.0/config/FooDomain/applications
3. Connected to FooDomain via console (works ok).
4. Defined machine FooMachine (happens to be localhost)
5. Defined new server FooServer (in addition to default myserver) and
assigned it to FooMachine.
6. Created a new directory d:/managedServers/FooServer (note - outside
installation directory)
7. Created directories d:/managedServers/FooServer/logs &
d:/managedServers/FooServer/applications
8. Copied sample startManagedServer.cmd from mydomain to
d:/managedServers/FooServer & modified appropriately.
9. Ran startManagedServer.cmd (Note: I was able to connect to the
Administration Server ok)
The problems are as follows. (From the console - pointing to the
Administration Server for the FooDomain)
1. I am unable to configure a DefaultWebApp_FooServer to be located at
d:/managedServers/FooServer/applications. I get the following exeption:
javax.management.InstanceNotFoundException:
FooDomain:Name=DefaultWebApp_FooServer,Type=WebAppComponent.
2. I get a similar error when trying to set FooServer log locations to
d:/managedServers/FooServer/logs
Any ideas as to why? This then begs the question, what if FooServer was
on a different physical server altogether. How would I define the
location of the DefaultWebApp and logs.
Thanks
jay ()If you want your application work, think my way. At least, all my teammates have used this method to build their development environment. If you are more interested to debug for Weblogic, contact your support representative. The tools from Administration console look very nice, but not function as you want (e.g., the tool to convert version 5.1 application to version 6, even monitor tools). Administration console is very nice to be used to configue the parameters for a domain, but not so trustful and not for application setup in my own experience and that is why I suggest you use mydomain and DefaultWebApp_MyServer as templates. By the way, I did modify config.xml manually to change the default web application entry, etc, to what I want.
Jay Zammit <[email protected]> wrote:
I did not modify config.xml manually. In fact, I am able to boot both the Administration Server & Managed Server. The problem happens when using the Administration console to assign my logs and Default Applications directory to the d:/managedServers/FooServer/logs, and d:/managedServers/FooServer/applications/DefaultWebApp_FooServer directories. Try it yourself. Go to the Configurer WebApp option and type in a fully qualified directory such as d:/managedServers/FooServer/applications/DefaultWebApp_FooServer
and see if it works on your system.
thanks
jay ()
Xiang Rao wrote:
One suggestion. Use the default domain mydomain as a template. Just make a copy of "mydomain" in folder config and rename the copy to whatever you like. Use some help tools to search all files (non-binary files) in new domain for key word "mydomain" and replace these words with your new domain name. To build an application, just rename the DefaultWebApp_MyServer to what you like and search "DefaultWebApp_MyServer" in all files (non-binary files) in your new domain and replace these words with yournew application name. Note you need to modify the scripts accordingly. Then you can run "startWeblogic" in your new domain directory to start your new domain. Other parameters should be configured by Administration console. If you manually modify configuration files, you could expect some bad news without reason.
Jay Zammit <[email protected]> wrote:
I am having problems setting up a Domain. The following steps summarize
what I have done.
1. Created FooDomain in d:/bea/wlserver6.0/config and created
appropriate config.xml, startup scripts, security, etc... (FooDomain
boots ok)
2. Moved console.war to bea/wlserver6.0/config/FooDomain/applications
3. Connected to FooDomain via console (works ok).
4. Defined machine FooMachine (happens to be localhost)
5. Defined new server FooServer (in addition to default myserver) and
assigned it to FooMachine.
6. Created a new directory d:/managedServers/FooServer (note - outside
installation directory)
7. Created directories d:/managedServers/FooServer/logs &
d:/managedServers/FooServer/applications
8. Copied sample startManagedServer.cmd from mydomain to
d:/managedServers/FooServer & modified appropriately.
9. Ran startManagedServer.cmd (Note: I was able to connect to the
Administration Server ok)
The problems are as follows. (From the console - pointing to the
Administration Server for the FooDomain)
1. I am unable to configure a DefaultWebApp_FooServer to be located at
d:/managedServers/FooServer/applications. I get the following exeption:
javax.management.InstanceNotFoundException:
FooDomain:Name=DefaultWebApp_FooServer,Type=WebAppComponent.
2. I get a similar error when trying to set FooServer log locations to
d:/managedServers/FooServer/logs
Any ideas as to why? This then begs the question, what if FooServer was
on a different physical server altogether. How would I define the
location of the DefaultWebApp and logs.
Thanks
jay () -
Problem setting up HP 6310 all-in-one printer/scanner
I have just installed archlinux for the first time, and so far everything is working great except for a HP 6310 all-in-one printer/scanner. This printer is connected by wire to a router, and the computer communicates with the router over a wireless connection. I have managed to install the printer through cups and print a test page. The problem is getting hplip and sane set up. I belive that if I get hplip set up correctly that that will take care of the sane problem.
Trying to install the printer with hp-setup:
[mike@archy ~]$ sudo hp-setup -i 192.168.1.104
Password:
HP Linux Imaging and Printing System (ver. 3.9.12)
Printer/Fax Setup Utility ver. 9.0
Copyright (c) 2001-9 Hewlett-Packard Development Company, LP
This software comes with ABSOLUTELY NO WARRANTY.
This is free software, and you are welcome to distribute it
under certain conditions. See COPYING file for more details.
(Note: Defaults for each question are maked with a '*'. Press <enter> to accept the default.)
Setting up device: hp:/net/Officejet_6300_series?ip=192.168.1.104
| PRINT QUEUE SETUP |
Please enter a name for this print queue (m=use model name:'Officejet_6300'*, q=quit) ?
Using queue name: Officejet_6300
Locating PPD file... Please wait.
error: No PPD found for model officejet_6300 using new algorithm. Trying old algorithm...
Found PPD file: drv:///hp/hpcups.drv/hp-officejet_6300_series.ppd
Enter a location description for this printer (q=quit) ?computer room
Enter additonal information or notes for this printer (q=quit) ?
Adding print queue to CUPS:
Device URI: hp:/net/Officejet_6300_series?ip=192.168.1.104
Queue name: Officejet_6300
PPD file: drv:///hp/hpcups.drv/hp-officejet_6300_series.ppd
Location: computer room
Information:
error: Printer queue setup failed. Please restart CUPS and try again.
Restarting cups doesn't change anything.
Running hp-check gives this:
[mike@archy ~]$ hp-check
HP Linux Imaging and Printing System (ver. 3.9.12)
Dependency/Version Check Utility ver. 14.3
Copyright (c) 2001-9 Hewlett-Packard Development Company, LP
This software comes with ABSOLUTELY NO WARRANTY.
This is free software, and you are welcome to distribute it
under certain conditions. See COPYING file for more details.
Note: hp-check can be run in three modes:
1. Compile-time check mode (-c or --compile): Use this mode before compiling the
HPLIP supplied tarball (.tar.gz or .run) to determine if the proper dependencies
are installed to successfully compile HPLIP.
2. Run-time check mode (-r or --run): Use this mode to determine if a distro
supplied package (.deb, .rpm, etc) or an already built HPLIP supplied tarball
has the proper dependencies installed to successfully run.
3. Both compile- and run-time check mode (-b or --both) (Default): This mode
will check both of the above cases (both compile- and run-time dependencies).
Saving output in log file: hp-check.log
Initializing. Please wait...
| SYSTEM INFO |
Basic system information:
Linux archy 2.6.32-ARCH #1 SMP PREEMPT Sat Jan 23 13:53:44 UTC 2010 i686 Intel(R) Pentium(R) III CPU 1133MHz GenuineIntel GNU/Linux
Distribution:
unknown 0.0
Checking Python version...
OK, version 2.6.4 installed
Checking PyQt 4.x version...
OK, version 4.6.2 installed.
Checking for CUPS...
Status: scheduler is running
Version: 1.4.2
error_log is set to level: debug
Checking for dbus/python-dbus...
dbus daemon is running.
python-dbus version: 0.83.0
| COMPILE AND RUNTIME DEPENDENCIES |
note: To check for compile-time only dependencies, re-run hp-check with the -c parameter (ie, hp-check -c).
note: To check for run-time only dependencies, re-run hp-check with the -r parameter (ie, hp-check -r).
Checking for dependency: CUPS - Common Unix Printing System...
OK, found.
Checking for dependency: CUPS devel- Common Unix Printing System development files...
OK, found.
Checking for dependency: CUPS image - CUPS image development files...
OK, found.
Checking for dependency: DBus - Message bus system...
OK, found.
Checking for dependency: gcc - GNU Project C and C++ Compiler...
OK, found.
Checking for dependency: GhostScript - PostScript and PDF language interpreter and previewer...
OK, found.
Checking for dependency: libcrypto - OpenSSL cryptographic library...
OK, found.
Checking for dependency: libjpeg - JPEG library...
OK, found.
Checking for dependency: libnetsnmp-devel - SNMP networking library development files...
OK, found.
Checking for dependency: libpthread - POSIX threads library...
OK, found.
Checking for dependency: libtool - Library building support services...
OK, found.
Checking for dependency: libusb - USB library...
OK, found.
Checking for dependency: make - GNU make utility to maintain groups of programs...
OK, found.
Checking for dependency: PIL - Python Imaging Library (required for commandline scanning with hp-scan)...
OK, found.
Checking for dependency: PolicyKit - Administrative policy framework...
OK, found.
Checking for dependency: PyQt 4 DBus - DBus Support for PyQt4...
OK, found.
Checking for dependency: Python DBus - Python bindings for DBus...
OK, found.
Checking for dependency: Python devel - Python development files...
OK, found.
Checking for dependency: Python libnotify - Python bindings for the libnotify Desktop notifications...
OK, found.
Checking for dependency: Python XML libraries...
OK, found.
Checking for dependency: Python 2.3 or greater - Required for fax functionality...
OK, found.
Checking for dependency: Python 2.2 or greater - Python programming language...
OK, found.
Checking for dependency: Reportlab - PDF library for Python...
OK, found.
Checking for dependency: SANE - Scanning library...
OK, found.
Checking for dependency: SANE - Scanning library development files...
OK, found.
Checking for dependency: scanimage - Shell scanning program...
OK, found.
Checking for dependency: xsane - Graphical scanner frontend for SANE...
OK, found.
| HPLIP INSTALLATION |
Currently installed HPLIP version...
HPLIP 3.9.12 currently installed in '/usr/share/hplip'.
Current contents of '/etc/hp/hplip.conf' file:
# hplip.conf. Generated from hplip.conf.in by configure.
[hplip]
version=3.9.12
[dirs]
home=/usr/share/hplip
run=/var/run
ppd=/usr/share/ppd/HP
ppdbase=/usr/share/ppd
doc=/usr/share/doc/hplip-3.9.12
icon=/usr/share/applications
cupsbackend=/usr/lib/cups/backend
cupsfilter=/usr/lib/cups/filter
drv=/usr/share/cups/drv/hp
# Following values are determined at configure time and cannot be changed.
[configure]
network-build=yes
pp-build=no
gui-build=yes
scanner-build=yes
fax-build=yes
dbus-build=yes
cups11-build=no
doc-build=yes
shadow-build=no
hpijs-install=yes
foomatic-drv-install=yes
foomatic-ppd-install=yes
foomatic-rip-hplip-install=yes
hpcups-install=yes
cups-drv-install=yes
cups-ppd-install=no
internal-tag=3.9.12.29
restricted-build=no
ui-toolkit=qt4
qt3=no
qt4=yes
policy-kit=no
hpijs-only-build=no
lite-build=no
udev-acl-rules=no
hpcups-only-build=no
hpijs-only-build=no
Current contents of '/var/lib/hp/hplip.state' file:
# hplip.state - HPLIP runtime persistent variables.
[plugin]
installed=0
eula=0
Current contents of '~/.hplip/hplip.conf' file:
[last_used]
device_uri = hp:/net/Officejet_6300_series?ip=192.168.1.104
[installation]
version = 3.9.12.29
date_time = 01/24/2010 15:48:05
| DISCOVERED USB DEVICES |
No devices found.
| INSTALLED CUPS PRINTER QUEUES |
Officejet_6300_series
Type: Unknown
Device URI: socket://192.168.1.104
PPD: /etc/cups/ppd/Officejet_6300_series.ppd
PPD Description: HP Officejet 6300 Series, hpcups 3.9.12
Printer status: printer Officejet_6300_series is idle. enabled since Sat 23 Jan 2010 02:26:45 PM CST
warning: Printer is not HPLIP installed. Printers must use the hp: or hpfax: CUPS backend to function in HPLIP.
| SANE CONFIGURATION |
'hpaio' in '/etc/sane.d/dll.conf'...
OK, found. SANE backend 'hpaio' is properly set up.
Checking output of 'scanimage -L'...
No scanners were identified. If you were expecting something different,
check that the scanner is plugged in, turned on and detected by the
sane-find-scanner tool (if appropriate). Please read the documentation
which came with this software (README, FAQ, manpages).
| PYTHON EXTENSIONS |
Checking 'cupsext' CUPS extension...
OK, found.
Checking 'pcardext' Photocard extension...
OK, found.
Checking 'hpmudext' I/O extension...
OK, found.
Checking 'scanext' SANE scanning extension...
OK, found.
| USB I/O SETUP |
Checking for permissions of USB attached printers...
HP Device 0xb1d at 004:002:
warning: Device URI: (Makeuri FAILED)
| USER GROUPS |
lp wheel network video audio optical storage scanner power users mike
| SUMMARY |
error: 1 error or warning.
Please refer to the installation instructions at:
http://hplip.sourceforge.net/install/index.html
Done.
I have a feeling that the problem is here:
warning: Printer is not HPLIP installed. Printers must use the hp: or hpfax: CUPS backend to function in HPLIP.
Something about the backend isn't right, but I'm out of my depth here. Any suggestions would be appreciated.
One other point. It works with no problem in Ubuntu with both hplip and sane, so I know it is possible. I just haven't figured out the trick yet.Well, it's fixed now, but I'm not sure why. I hooked up a HP 3970 usb scanner to my computer and when I started xsane it not only found it, but also found the 3610 all-in-one on the network. I checked hp-tools, and the 3610 was there also.So everything is working now, but I'm still curious as to why the 3610 wouldn't work with sane and hp-setup until I plugged in the 3970 to the computer.
-
HP Pavilion dv7-3170ez: volume indicator not showing when setting volume
Hi
I own a Pavilion dv7-3170ez, and when I change volume using the volume touch-slider on top of the keyboard, volume is adjusted accordingly but no volume indicator appears on the screen.
Previously, while setting volume, a speaker icon with a slider popped out in the middle of the screen showing current volume level.
I'm using Windows 7 Home Premium and both Windows Update and HP update shows that I have latest version of software. Also, I've the latest version of the BIOS installed.
As a side note: the touch buttons on top (volume, speaker and wireless enable, etc.) stopped working a few days after the volume indicator disappeared, I fixed that by plugging off power and disconnectiong battery for a while. Still, the indicator is yet not showing. Not sure if this is related (I guess not).
Thanks
This question was solved.
View Solution.The Volume OSD is a function HP MediaSmart Menu. It will need to load on start up. To do that, go to msconfig, and make sure it is checked under the Startup Tab....
If it is not there, you can download it from here...ftp://ftp.hp.com/pub/softpaq/sp48501-49000/sp48552.exe
Although I am an HP employee, I am speaking for myself and not for HP.
Make it easier for other people to find solutions, by marking my answer with 'Accept as Solution', if it solves your problem.
Click on the BLUE KUDOS button on the left to say "Thanks" -
Having problems setting up ntlworld email on ipad 2. Help?
I am having problems setting up my ntlworld email on my new ipad 2. It works ok on my iphone 3. Trying to use the same settings as my iphone but its not setting up.
This should work for all email addresses managed by Virgin Media
@ntlworld.com
@blueyonder.co.uk
@virgin.net
@virginmedia.com
1. Turn on Settings > Airplane Mode.
2. Open Settings > Mail, Contacts, Calendars.
3. Tap Add Account….
4. From list choose Other.
5. Choose Add Mail Account.
6. In the New Account screen enter customer’s:
Name (e.g. Johnny Appleseed)
Email (full email address, e.g. [email protected])
Password (password for email address)
Description (this will automatically get filled in, but you can put something more meaningful e.g. ‘NTLWorld Email’)
7. Tap Next.
8. In the next screen ensure IMAP is selected.
9. Enter the following settings:
Incoming Mail Server (section)
Host Name imap.virginmedia.com
User Name (full email address, e.g. [email protected])
Password (password for email address)
Outgoing Mail Server (section)
Host Name smtp.virginmedia.com
User Name (full email address, e.g. [email protected])
Password (password for email address)
10. You will get an error that the IMAP server is not responding (Airplane Mode being on); just tap OK.
11. Tap Next.
12. You will get an error that the account may no be able to send or receive emails; tap Save anyway.
13. On next screen turn Notes off and tap Save.
14. The new account should be created; we now need to tweak some settings in it.
15. Tap the new account in the list.
16. On the next screen tap Account.
17. Where is says Outgoing Mail Server tap on SMTP smtp.virginmedia.com >.
18. On the next screen, under Primary Server, tap smtp.virginmedia.com.
19. Ensure the settings are as follows:
Outgoing Mail Server (section)
Host Name smtp.virginmedia.com
User Name (full email address, e.g. [email protected])
Password (password for email address)
Use SSL is turned ON
Authentication Password
Server Port 465
20. Tap Done.
21. You will get an error that the SMTP server is not responding; just tap OK.
22. Tap Done.
23. You will get an error that the account may no be able to send or receive emails; tap Save anyway.
21. Tap Account to go back one screen.
22. Tap Advanced at the bottom of the screen.
23. At the bottom of the screen ensure the settings are as follows:
Incoming Mail Server (section)
Use SSL is turned ON
Authentication Password
IMAP Path Prefix is left blank (will show ‘/’)
Server Port 993
21. Tap Account to go back one screen.
22. Tap Done.
23. You will get an error that the IMAP server is not responding; just tap OK.
24. Tap Done.
25. You will get an error that the account may no be able to send or receive emails; tap Save anyway.
26. Tap Mail… to go back one screen.
27. Tap Settings to go back one screen.
28. Turn Airplane Mode to OFF.
29. Press Home button and open Mail app to check it is now collecting and sending email. -
Problems setting up username & password for SQL
Due to the outstanding advice I recieved from this excellent forum, I have managed to overcome my first problem with declaring a new Class.
This leads me to request help with my next biggest problem:
Setting up a user GUI that takes a "username" & "password" that will be used to access a password protected database.
I am a simple bloke, with simple thought processes, so please, go easy on me...
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
import java.sql.*;
public class DBQuery1 {
String username = "" , password = "";
public static void main(String[] arguments) {
PassDB UPass = new PassDB();
String data = "jdbc:odbc:JavaTestDataBase";
try {
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
Connection conn = DriverManager.getConnection(data, "" + username, "" + password);
Statement st = conn.createStatement();
ResultSet rec = st.executeQuery(
"SELECT Title, ContactID, First, Last, Dear FROM Contacts "
+ "WHERE (Title='Mr') ORDER BY ContactID");
/* ResultSet rec2 = st.executeQuery(
"SELECT Subject, ContactID FROM Calls "
+ "WHERE (Subject Is Not Null) ORDER BY ContactID");
System.out.println("\nFirst Name\tSurname\t\tNick Name\t\tSubject\n");
while(rec.next()) {
System.out.println(rec.getString(3) + "\t\t" + rec.getString(4) + "\t\t" + rec.getString(5) /* + rec2.getString(1) */ );
st.close();
catch (SQLException s) {
System.out.println("SQL Error: " + s.toString() + " " + s.getErrorCode() + " " + s.getSQLState());
catch (Exception e) {
System.out.println("Error: " + e.toString() + e.getMessage());
class PassDB extends javax.swing.JFrame implements ActionListener {
String username = "", password = "";
JTextField uname = new JTextField(10);
JTextField pword = new JTextField(10);
// JPasswordField pword = new JTextField(10);
PassDB() {
super("duBe's database logon");
setSize(220, 160);
setDefaultCloseOperation(EXIT_ON_CLOSE);
JPanel pane = new JPanel();
JLabel unameLabel = new JLabel ("Username: ");
JLabel pwordLabel = new JLabel ("Password: ");
JButton submit = new JButton("OK");
submit.addActionListener(this);
pane.add(unameLabel);
pane.add(uname);
pane.add(pwordLabel);
pane.add(pword);
pane.add(submit);
setContentPane(pane);
setVisible(true);
public void actionPerformed(ActionEvent evt) {
PassDB clicked = (PassDB)evt.getSource();
username = uname.getText();
password = pword.getText();
This code generates two errors, stating:
C:\Java_progs>javac DBQuery1.java
DBQuery1.java:14: non-static variable username cannot be referenced from a static context
Connection conn = DriverManager.getConnection(data, "" +
username, "" + password);
^
DBQuery1.java:14: non-static variable password cannot be referenced from a static context
Connection conn = DriverManager.getConnection(data, "" +
username, "" + password);
^
2 errors*****************************
The code works when I remove the reference to the variables "username" & "password" in Connection "conn" call & replace them with the actual username & password, but this is not exactly what I was after. I was hoping to make the program responsive to each individual user, not set in code.
I also would like to make the program pause after the call in "main" to "PassDB" to wait for "PassDB" to exit before continuing.
I would also like to make "PassDB" destroy itself after the "OK" button is pressed & the "username" & "password" set.
If that isn't enough for you, I would really like the program to search 2 different database tables, return their values & compare them to be sure that they are the same.
When I try & search 2 different tables, as in:
ResultSet rec = st.executeQuery(
"SELECT Title, ContactID, First, Last, Dear FROM Contacts "
+ "WHERE (Title='Mr') ORDER BY ContactID");
ResultSet rec2 = st.executeQuery(
"SELECT Subject, ContactID FROM Calls "
+ "WHERE (Subject Is Not Null) ORDER BY ContactID")javac tells me that "ResultSet" is set to null 0
As always, I am extremely appreciative of any assistance you are able to offer.
Kind regards
duBedat
[email protected]This is where I'm at now:
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
import java.sql.*;
public class DBQuery {
static String username = "" ;
static String password = "" ;
public static void main(String[] arguments) {
PassDB UPass = new PassDB();
String data = "jdbc:odbc:JavaTestDataBase";
try {
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
Connection conn = DriverManager.getConnection(data, "" + DBQuery.username, "" + DBQuery.password);
Statement st = conn.createStatement();
ResultSet rec = st.executeQuery(
"SELECT Title, ContactID, First, Last, Dear FROM Contacts "
+ "WHERE (Title='Mr') ORDER BY ContactID");
/* ResultSet rec2 = st.executeQuery(
"SELECT Subject, ContactID FROM Calls "
+ "WHERE (Subject Is Not Null) ORDER BY ContactID");
System.out.println("\nFirst Name\tSurname\t\tNick Name\t\tSubject\n");
while(rec.next()) {
System.out.println(rec.getString(3) + "\t\t" + rec.getString(4) + "\t\t" + rec.getString(5) /* + rec2.getString(1) */ );
st.close();
catch (SQLException s) {
System.out.println("SQL Error: " + s.toString() + " " + s.getErrorCode() + " " + s.getSQLState());
catch (Exception e) {
System.out.println("Error: " + e.toString() + e.getMessage());
class PassDB extends javax.swing.JFrame implements ActionListener {
static boolean getOut = false;
JTextField uname = new JTextField(10);
JTextField pword = new JTextField(10);
// JPasswordField pword = new JTextField(10);
public PassDB() {
super("duBe's database logon");
setSize(220, 160);
setDefaultCloseOperation(EXIT_ON_CLOSE);
JPanel pane = new JPanel();
JLabel unameLabel = new JLabel ("Username: ");
JLabel pwordLabel = new JLabel ("Password: ");
JButton submit = new JButton("OK");
submit.addActionListener(this);
pane.add(unameLabel);
pane.add(uname);
pane.add(pwordLabel);
pane.add(pword);
pane.add(submit);
setContentPane(pane);
while(getOut == false)
setVisible(true);
public void actionPerformed(ActionEvent evt) {
PassDB clicked = (PassDB)evt.getSource();
DBQuery.username = uname.getText();
DBQuery.password = pword.getText();
getOut = true;
} Any advice is greatly appreciated
duBe -
Problems setting up an NFS server
Hi everybody,
I just completed my first arch install. :-)
I have a desktop and a laptop, and I installed Arch on the desktop (the laptop runs Ubuntu 9.10). I had a few difficulties here and there, but I now have the system up and running, and I'm very happy.
I have a problem setting up an NFS server. With Ubuntu everything was working, so I'm assuming that the Ubuntu machine (client) is set-up correctly. I'm trying to troubleshoot the arch box (server) now.
I followed this wiki article: http://wiki.archlinux.org/index.php/Nfs
Now, I have these problems:
- when I start the daemons, I get:
[root@myhost ~]# /etc/rc.d/rpcbind start
:: Starting rpcbind [FAIL]
[root@myhost ~]# /etc/rc.d/nfs-common start
:: Starting rpc.statd daemon [FAIL]
[root@myhost ~]# /etc/rc.d/nfs-server start
:: Mounting nfsd filesystem [DONE]
:: Exporting all directories [BUSY] exportfs: /etc/exports [3]: Neither 'subtree_check' or 'no_subtree_check' specified for export "192.168.1.1/24:/home".
Assuming default behaviour ('no_subtree_check').
NOTE: this default has changed since nfs-utils version 1.0.x
[DONE]
:: Starting rpc.nfsd daemon [FAIL]
- If I mount the share on the client with "sudo mount 192.168.1.20:/home /media/desktop", IT IS mounted but I can't browse it because I have no privileges to access the home directory for the user.
my /etc/exports looks like this:
# /etc/exports: the access control list for filesystems which may be exported
# to NFS clients. See exports(5).
/home 192.168.1.1/24(rw,sync,all_squash,anonuid=99,anongid=99))
/etc/conf.d/nfs-common.conf:
# Parameters to be passed to nfs-common (nfs clients & server) init script.
# If you do not set values for the NEED_ options, they will be attempted
# autodetected; this should be sufficient for most people. Valid alternatives
# for the NEED_ options are "yes" and "no".
# Do you want to start the statd daemon? It is not needed for NFSv4.
NEED_STATD=
# Options to pass to rpc.statd.
# See rpc.statd(8) for more details.
# N.B. statd normally runs on both client and server, and run-time
# options should be specified accordingly. Specifically, the Arch
# NFS init scripts require the --no-notify flag on the server,
# but not on the client e.g.
# STATD_OPTS="--no-notify -p 32765 -o 32766" -> server
# STATD_OPTS="-p 32765 -o 32766" -> client
STATD_OPTS="--no-notify"
# Options to pass to sm-notify
# e.g. SMNOTIFY_OPTS="-p 32764"
SMNOTIFY_OPTS=""
# Do you want to start the idmapd daemon? It is only needed for NFSv4.
NEED_IDMAPD=
# Options to pass to rpc.idmapd.
# See rpc.idmapd(8) for more details.
IDMAPD_OPTS=
# Do you want to start the gssd daemon? It is required for Kerberos mounts.
NEED_GSSD=
# Options to pass to rpc.gssd.
# See rpc.gssd(8) for more details.
GSSD_OPTS=
# Where to mount rpc_pipefs filesystem; the default is "/var/lib/nfs/rpc_pipefs".
PIPEFS_MOUNTPOINT=
# Options used to mount rpc_pipefs filesystem; the default is "defaults".
PIPEFS_MOUNTOPTS=
/etc/hosts.allow:
nfsd: 192.168.1.0/255.255.255.0
rpcbind: 192.168.1.0/255.255.255.0
mountd: 192.168.1.0/255.255.255.0
Any help would be very appreciated!Thanks, I finally got it working.
I realized that even though both machines had the same group, my Ubuntu machine (client) group has GID 1000, while the Arch one has GID 1001. I created a group that has GID 1001 on the client, and now everything is working.
I'm wondering why my Arch username and group both have 1001 rather than 1000 (which I suppose would be the default number for the first user created).
Anyway, thanks again for your inputs. -
Problems Setting Up Developer Users
I am having a problem setting up developer users and I am trying to determine if I am missing a step or if there is a configuration problem on my staging and production systems.
What I want to do should be very simple. I want to create a user that can create an application and see the information under the "Application" tab in the Navigator.
I have created the user using the following steps on 3.0.9.82 for Unix:
1. Create the user
2. Make the user a full administrator (rather than end user)
3. Make the user a member of the portal_developers group
4. Make the user's default group the portal_developers group
However, when I do this the user does not see the information under the
"Application" tab. The only way I can get the user to see the info under the
"Application" tab is to make him a member of the Portal_administrators
and/or DBA group. Both my staging and production boxes have the same result.
Does anyone have any thoughts or suggestions on what might be happening?Thank you- I have read through that thread and can see some resonance with my issue.
My AOL emails work VERY fast with BB, in fact almost simultaneously received on PC & Torch " ping ping!"
This issue only raised its ugly head when I had 2 Torches replaced by my insurers.
Whilst the claim was in process I used a new Curve, loaded from backup on PC to keep emails going and of course phone & web facilities. ( I use the BB to power internet via bluetooth to my PC / laptop when living on a remote island with no phone lines or power supplies) All was fine. Swapping email accounts took a few minutes with the usual password confirmations for each AOL screenname etc.
Then the new Torches came back from insurers, and I tried to swap devices. Phoning & texting is fine. Al data and contacts swap over fine.
SETUP email accounts.............stymied every time. It says repeatedly that my user name/password is invalid etc etc etc
Have tried security wipes. Have tried setting up new BB ID & passwords on PC website. All is OK until I try to setup emails on the Torches. This has used up ridiculous amounts of time- all wasted.
I love the BB phones and the fast email push......in fact I recently bought a new Sony Xperia Z1 but sent it back because of wifi coverage meant no emails on that superb phone for lots of the time.
Good old BB I said..........I always get emails wherever I am. ( Rural Scotland has very patchy radio & wifi coverage)
Was about to purchase new Z10s just to get a bigger screen, but now I am averse to buying ANY BB phone again because this present mess means I may never get emails set up again. How nuts is that?
Many thanks for all help & suggestions..........boy do I need them!!
Kind wishes from West of Scotland
Fair winds and kind landfalls -
Problems setting up VVSA 6.0 (lookup service adresse)
Hi,
I was happy to see VVSA 6.0 released, but i'm having problems setting it up. It keeps saying that the lookup service adresse is not reachable. But I have tried with the VVSA 5.5 and 5.5.1.1 and they work just fine with the lookup service adresse.
Anyone else having this issue?
Also trying to check for updates within the appliance failes since the repository is not online at vmware it seems.
Might not be ready for primetime (like ESXi6).If Developer has a separate Oracle Home on your PC, then it has a separate TNSNAMES.ORA file that is uses to connect to the database. If you search for all tnsnames.ora files, you should find the one used by Developer 6.
Since Enterprise manager works, the tnsnames.ora in your Enterprise Manager's home will have an entry for your server database. You should be able to cut and paste this into the tnsnames.ora file used by Developer, or try copying the E.M. tnsnames.ora file directly.
John Alexander www.SummitSoftwareDesign.com -
I recently downloaded mysql Connector for my project.
However, I have problems setting it up.
When I run my program, It gives me a class not defined error.
System.out.println("Registering Driver...");
Class.forName("com.mysql.jdbc.Driver").newInstance();
System.out.println("Connected to database");
System.out.println("Creating Connection");
connection= DriverManager.getConnection("jdbc:mysql://localhost:8080/neuis");
System.out.println("Connection created");
catch(Exception ex)
System.out.println("Error in loading jdbc Driver: "+ex);
ex.printStackTrace();
I have put the jar file of the JDBC Bridge in a folder
C:\Drivers\Sql Connector
I have also added the absolute path of the jar to the system classpath
The value put in is:
C:\Drivers\Sql Connector\mysql-connector-java-3.1.10-bin.jar.
I am not sure what the problem is because I was told by the API that this was all I needed to do. Are there any other files I need to include with the jar file? Also, Is there a specific folder I must put it in?
Thank you in advance.Hi,
Take a look at the below link
http://www.cs.nott.ac.uk/TSG/manuals/databases/mysql/jdbc.html
may help you to setting up the jdbc with mysql
regards
MJ
Maybe you are looking for
-
How to get PortetSession object in backing file
Hi all, Is it possible to get PortletSession object for current portlet in a backing file. If it is then could you please tell me how? regards -saurabh
-
Problem in Importing Configuration object
Dear All, I am facing the problem while importing ID object. Business system INTEGRATION_SERVER_XIP is not assigned to a business system group with the ID (XISystemGroup). So , I just try to create a Group in Business System in SLD. But I could not f
-
I have a short 3d video with a separate black/white alpha pass, how can I use the alpha pass as a mask? I want to add a heat wave distortion to the whole video but not on the alpha pass area. How do I set this up?
-
Illustrator extension - Drag and drop is not working on mac
During testing my extension on Mac,I noticed that drag and drop doesn't work as expected. Therefore I have created a new simple extension with two lists. <s:List id="lst1" label="name" dragEnabled="true"> <tree> <name>a</name>
-
Elements 9 editor screen splits apart and desktop shows through the gap- Help
I run elements 9. on a mac. Never really had a problem before. Today I decided to open a photo from iphoto to edit in photoshop. Neve been a problem before but now the various panels of the editor screen have split apart and the desktop shows through