[SOLVED] Trying to get samba to work, smbtree issues:

I am having a bit of an issue getting my computer to show up to my Mint laptop.  Running smbtree as it stands right now produces this output:
Enter mikeyd's password:
WORKGROUP
\\MINT mint server (Samba, LinuxMint)
\\MINT\IPC$ IPC Service (mint server (Samba, LinuxMint))
\\MINT\print$ Printer Drivers
Here is my smb.conf file:
http://pastebin.com/M5neuVPt
# This is the main Samba configuration file. You should read the
# smb.conf(5) manual page in order to understand the options listed
# here. Samba has a huge number of configurable options (perhaps too
# many!) most of which are not shown in this example
# Any line which starts with a ; (semi-colon) or a # (hash)
# is a comment and is ignored. In this example we will use a #
# for commentry and a ; for parts of the config file that you
# may wish to enable
# NOTE: Whenever you modify this file you should run the command "testparm"
# to check that you have not made any basic syntactic errors.
#======================= Global Settings =====================================
[global]
usershare path = /var/lib/samba/usershares
usershare max shares = 100
usershare allow guests = yes
usershare owner only = False
# workgroup = NT-Domain-Name or Workgroup-Name
workgroup = WORKGROUP
# server string is the equivalent of the NT Description field
server string = %h server (Samba, ArchBoxMTD)
# This option is important for security. It allows you to restrict
# connections to machines which are on your local network. The
# following example restricts access to two C class networks and
# the "loopback" interface. For more examples of the syntax see
# the smb.conf man page
; hosts allow = 192.168.1. 192.168.2. 127.
# if you want to automatically load your printer list rather
# than setting them up individually then you'll need this
printcap name = /etc/printcap
load printers = yes
# It should not be necessary to spell out the print system type unless
# yours is non-standard. Currently supported print systems include:
# bsd, sysv, plp, lprng, aix, hpux, qnx
; printing = bsd
# Uncomment this if you want a guest account, you must add this to /etc/passwd
# otherwise the user "nobody" is used
; guest account = pcguest
# this tells Samba to use a separate log file for each machine
# that connects
log file = /var/log/samba/%m.log
# Put a capping on the size of the log files (in Kb).
max log size = 50
# Security mode. Most people will want user level security. See
# security_level.txt for details.
security = user
# Use password server option only with security = server
; password server = <NT-Server-Name>
# Password Level allows matching of _n_ characters of the password for
# all combinations of upper and lower case.
; password level = 8
; username level = 8
# You may wish to use password encryption. Please read
# ENCRYPTION.txt, Win95.txt and WinNT.txt in the Samba documentation.
# Do not enable this option unless you have read those documents
; encrypt passwords = yes
; smb passwd file = /etc/samba/smbpasswd
# The following are needed to allow password changing from Windows to
# update the Linux sytsem password also.
# NOTE: Use these with 'encrypt passwords' and 'smb passwd file' above.
# NOTE2: You do NOT need these to allow workstations to change only
# the encrypted SMB passwords. They allow the Unix password
# to be kept in sync with the SMB password.
; unix password sync = Yes
; passwd program = /usr/bin/passwd %u
; passwd chat = *New*UNIX*password* %n\n *ReType*new*UNIX*password* %n\n *passwd:*all*authentication*tokens*updated*successfully*
# Unix users can map to different SMB User names
; username map = /etc/samba/smbusers
# Using the following line enables you to customise your configuration
# on a per machine basis. The %m gets replaced with the netbios name
# of the machine that is connecting
; include = /etc/samba/smb.conf.%m
# Configure Samba to use multiple interfaces
# If you have multiple network interfaces then you must list them
# here. See the man page for details.
; interfaces = 192.168.12.2/24 192.168.13.2/24
# Configure remote browse list synchronisation here
# request announcement to, or browse list sync from:
# a specific host or from / to a whole subnet (see below)
; remote browse sync = 192.168.3.25 192.168.5.255
# Cause this host to announce itself to local subnets here
; remote announce = 192.168.1.255 192.168.2.44
# Browser Control Options:
# set local master to no if you don't want Samba to become a master
# browser on your network. Otherwise the normal election rules apply
; local master = no
# OS Level determines the precedence of this server in master browser
# elections. The default value should be reasonable
; os level = 33
# Domain Master specifies Samba to be the Domain Master Browser. This
# allows Samba to collate browse lists between subnets. Don't use this
# if you already have a Windows NT domain controller doing this job
; domain master = yes
# Preferred Master causes Samba to force a local browser election on startup
# and gives it a slightly higher chance of winning the election
; preferred master = yes
# Use only if you have an NT server on your network that has been
# configured at install time to be a primary domain controller.
; domain controller = <NT-Domain-Controller-SMBName>
# Enable this if you want Samba to be a domain logon server for
# Windows95 workstations.
; domain logons = yes
# if you enable domain logons then you may want a per-machine or
# per user logon script
# run a specific logon batch file per workstation (machine)
; logon script = %m.bat
# run a specific logon batch file per username
; logon script = %U.bat
# Where to store roving profiles (only for Win95 and WinNT)
# %L substitutes for this servers netbios name, %U is username
# You must uncomment the [Profiles] share below
; logon path = \\%L\Profiles\%U
# All NetBIOS names must be resolved to IP Addresses
# 'Name Resolve Order' allows the named resolution mechanism to be specified
# the default order is "host lmhosts wins bcast". "host" means use the unix
# system gethostbyname() function call that will use either /etc/hosts OR
# DNS or NIS depending on the settings of /etc/host.config, /etc/nsswitch.conf
# and the /etc/resolv.conf file. "host" therefore is system configuration
# dependant. This parameter is most often of use to prevent DNS lookups
# in order to resolve NetBIOS names to IP Addresses. Use with care!
# The example below excludes use of name resolution for machines that are NOT
# on the local network segment
# - OR - are not deliberately to be known via lmhosts or via WINS.
; name resolve order = wins lmhosts bcast
# Windows Internet Name Serving Support Section:
# WINS Support - Tells the NMBD component of Samba to enable it's WINS Server
; wins support = yes
# WINS Server - Tells the NMBD components of Samba to be a WINS Client
# Note: Samba can be either a WINS Server, or a WINS Client, but NOT both
; wins server = w.x.y.z
# WINS Proxy - Tells Samba to answer name resolution queries on
# behalf of a non WINS capable client, for this to work there must be
# at least one WINS Server on the network. The default is NO.
; wins proxy = yes
# DNS Proxy - tells Samba whether or not to try to resolve NetBIOS names
# via DNS nslookups. The built-in default for versions 1.9.17 is yes,
# this has been changed in version 1.9.18 to no.
dns proxy = no
# Case Preservation can be handy - system default is _no_
# NOTE: These can be set on a per share basis
; preserve case = no
; short preserve case = no
# Default case is normally upper case for all DOS files
; default case = lower
# Be very careful with case sensitivity - it can break things!
; case sensitive = no
#============================ Share Definitions ==============================
[homes]
comment = Home Directories
browseable = yes
writable = yes
public = yes
path = /home/mikeyd
guest ok = yes
share modes = yes
# Un-comment the following and create the netlogon directory for Domain Logons
; [netlogon]
; comment = Network Logon Service
; path = /home/netlogon
; guest ok = yes
; writable = no
; share modes = no
# Un-comment the following to provide a specific roving profile share
# the default is to use the user's home directory
;[Profiles]
; path = /home/profiles
; browseable = no
; guest ok = yes
# NOTE: If you have a BSD-style print system there is no need to
# specifically define each individual printer
[printers]
comment = All Printers
path = /var/spool/samba
browseable = no
# Set public = yes to allow user 'guest account' to print
guest ok = no
writable = no
printable = yes
# This one is useful for people to share files
;[tmp]
; comment = Temporary file space
; path = /tmp
; read only = no
; public = yes
# A publicly accessible directory, but read only, except for people in
# the "staff" group
;[public]
; comment = Public Stuff
; path = /home/samba
; public = yes
; read only = yes
; write list = @staff
# Other examples.
# A private printer, usable only by fred. Spool data will be placed in fred's
# home directory. Note that fred must have write access to the spool directory,
# wherever it is.
;[fredsprn]
; comment = Fred's Printer
; valid users = fred
; path = /homes/fred
; printer = freds_printer
; public = no
; writable = no
; printable = yes
# A private directory, usable only by fred. Note that fred requires write
# access to the directory.
;[fredsdir]
; comment = Fred's Service
; path = /usr/somewhere/private
; valid users = fred
; public = no
; writable = yes
; printable = no
# a service which has a different directory for each machine that connects
# this allows you to tailor configurations to incoming machines. You could
# also use the %u option to tailor it by user name.
# The %m gets replaced with the machine name that is connecting.
;[pchome]
; comment = PC Directories
; path = /usr/pc/%m
; public = no
; writable = yes
# A publicly accessible directory, read/write to all users. Note that all files
# created in the directory by users will be owned by the default user, so
# any user with access can delete any other user's files. Obviously this
# directory must be writable by the default user. Another user could of course
# be specified, in which case all files would be owned by that user instead.
;[public]
; path = /usr/somewhere/else/public
; public = yes
; only guest = yes
; writable = yes
; printable = no
# The following two entries demonstrate how to share a directory so that two
# users can place files there that will be owned by the specific users. In this
# setup, the directory should be writable by both users and should have the
# sticky bit set on it to prevent abuse. Obviously this could be extended to
# as many users as required.
;[myshare]
; comment = Mary's and Fred's stuff
; path = /usr/somewhere/shared
; valid users = mary fred
; public = no
; writable = yes
; printable = no
; create mask = 0765
On the mint laptop, it can see its own share as well.
This is my /etc/hostname output
archboxmtd
This might help too:
mikeyd@archboxmtd ~ $ net usershare info
[Videos]
path=/home/mikeyd/Videos
comment=
usershare_acl=Everyone:F,
guest_ok=y
I have tried to get things working by following:
https://wiki.archlinux.org/index.php/Samba
https://wiki.archlinux.org/index.php/Sa … leshooting
Hopefully that gives you helpful uber dudes something to go on.
Thank you for any help you can give.  I am pretty technical, but have been away from Arch and smb for a while.  I should be able to follow any suggestions fine.
Thanks!
Last edited by degmic71 (2013-07-09 00:30:38)

Answered my own question, nmdb was the culprit.... dang, well saving this page for future ref:
This did it:
Starting the service
Start/enable Samba via the smbd and nmbd at boot:
systemctl enable smbd.service
systemctl enable nmbd.service
Run them right now as well (otherwise you'd have to reboot):
systemctl start smbd.service
systemctl start nmbd.service
Swat is a nice web interface too

Similar Messages

  • [SOLVED] Trying to get Google+ "hangout" working on Arch....

    So like the rest of the world, I just joined Google+.  In order to use the "hangouts" feature of Google+, you have to download the Google" voice and video chat" plugin.  Anyone know how to get this working within an Arch environment  I'm tired of switching between windows and arch just to use it.
    Last edited by jayd3e (2011-07-11 02:41:11)

    Not going well with this but grateful of course:-)
    I don't seem to know enough to resolve?:
    ==> hangups-git dependencies:
    - python (already installed)
    - python-requests (already installed)
    - python-six (already installed)
    - python-purplex (building from AUR)
    - python-asyncio (building from AUR)
    - python-urwid-git (building from AUR)
    - python-appdirs (building from AUR)
    - python-aiohttp (building from AUR)
    ==> Validating source files with md5sums...
        aiohttp-0.9.1.tar.gz ... Passed
    ==> Extracting sources...
      -> Extracting aiohttp-0.9.1.tar.gz with bsdtar
    ==> Entering fakeroot environment...
    ==> Starting package()...
    Traceback (most recent call last):
      File "setup.py", line 5, in <module>
        from setuptools import setup, find_packages
    ImportError: No module named 'setuptools'
    ==> ERROR: A failure occurred in package().
        Aborting...
    ==> ERROR: Makepkg was unable to build python-aiohttp.
    ==> Restart building python-aiohttp ? [y/N]
    ==> ---------------------------------------
    ==>
    ==> python-aiohttp dependencies:
    - python>=3.4 (already installed)
    (my current python is:
    [tpg@arch ~]$ sudo pacman -Q python
    [sudo] password for tpg:
    python 3.4.1-1
    PKGBUILD
    # Maintainer: Phil Schaf <[email protected]>
    _name=aiohttp
    pkgname=python-aiohttp
    pkgver=0.9.1
    pkgrel=1
    pkgdesc='http client/server for asyncio'
    arch=('any')
    url="http://pypi.python.org/pypi/$_name"
    license=('BSD')
    depends=('python>=3.4')
    source=("https://pypi.python.org/packages/source/a/$_name/$_name-$pkgver.tar.gz$
    md5sums=('28c5574b9a004a9ac2cfe1617f009d69')
    package() {
            cd "$srcdir/$_name-$pkgver"
            python setup.py install --root="$pkgdir" --optimize=1 || return 1
    Of course any comments will be appreciated:-)

  • [SOLVED] Can't get spamassassin to work

    Hi!
    I'm trying to get spamassassin to work, but it seems like it doesn't want to cooperate
    Here's ~/.forward file
    "|IFS=' ' && exec /usr/bin/procmail -f- || exit 75 #shin"
    A bit of postfix'es main.cf
    mailbox_command = /usr/bin/procmail -a "$EXTENSION"
    And a .procmailrc
    # SpamAssassin sample procmailrc
    # ==============================
    # The following line is only used if you use a system-wide /etc/procmailrc.
    # See procmailrc(5) for infos on what it exactly does, the short version:
    # * It ensures that the correct user is passed to spamd if spamc is used
    # * The folders the mail is filed to later on is owned by the user, not
    # root.
    DROPPRIVS=yes
    VERBOSE=yes
    :0fw: spamassassin.lock
    * < 256000
    | spamassassin
    :0:
    * ^X-Spam-Level: \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*
    almost-certainly-spam
    :0:
    * ^X-Spam-Status: Yes
    probably-spam
    :0
    * ^^rom[ ]
    LOG="*** Dropped F off From_ header! Fixing up. "
    :0 fhw
    | sed -e '1s/^/F/'
    The X-Spam-... doesn't appear in headers, and there's nothing in the logfiles. What's wrong?
    Last edited by lateralus (2008-10-17 19:36:56)

    Aight, solved it. I had to replace this line of .procmailrc
    | spamassassin
    With this one
    | /usr/bin/perlbin/vendor/spamassassin

  • I have a Power Mac G4 and i am trying to get it to work with my LCD

    I have a Power Mac G4 and i am trying to get it to work with my LCD Monitor/TV. The connection on the computer is DVI and the connection on the Monitor is DVI. The Monitor says in the manual to hook up computers using the DVI connection. When I connect the too the monitor says there is no video input. I tried changing the settings on the monitor from PC mode to DVI mode and nothing. I have also tried changing the display on the computer to a couple of different settings and nothing. Please Help?

    Hi-
    A little more info please.
    What model G4?
    What Graphics card?
    What OS?
    What model/make of monitor?
    G4AGP(450)Sawtooth, 2ghz PowerLogix, 2gbRAM, RaptorSATAATA, ATI Radeon 9800   Mac OS X (10.4.8)   Pioneer DVR-109, 23" ACD, Ratoc USB 2.0, QCam Ultra, Nikon Coolscan

  • My iMessage for my Macbook Air is not working. It says no delivered with a red ! next to it. I have tried serval different options on trying to get it to work to include logging out of iCloud and checking my date and time. I have done about everythin

    My iMessage for my Macbook Air is not working. I have updated everything. My system is running on OS X Yosemite Version 10.10. When I go to send a message, it says no delivered with a next to it. I have tried serval different options on trying to get it to work to include logging out of iCloud and checking my date and time and updating FlashPlayer. I have done about everything I can think of. Any help would be greatly appreciate!

    Why start a new and very similar thread to your other one which you have not responded to (have you read the replies?)
    I suggest that no response is made to this duplicate thread. 

  • Trying to get home shaing working on apple tv using Cisco Access points and a Cisco WLC 5508 with 7.2.110 code.  I can get devices working individually but they never see each other.  I can ping the apple tv from my laptop and ipad.

    Trying to get home sharing working on a corporate wireless network.  Cisco wireless.
    WLC5508 controller
    Cisco 3502 access points
    All apple devices on same WLAN - security WPA2-PSK
    ITunes account up to date
    All devices laterst software.
    Can ping apll tv from laptop
    can ping apple tv from ipad
    Can ping ipad from laptop
    can ping laptop from ipad.
    Apple tv never sees any other device.
    Any ideas?

    Fascinating just reading about your setup. I have a WRT350N and have noticed that it will drop its speed, sometimes down to 1Mbps. It seems to do so at about the same time every day, but usually comes back to speed in about 5 minutes. In my experience, the Apple TV will disconnect if the speed falls this low. Try monitoring the Linksys with Netstumbler, Vistumbler, or just in the Windows Network utility.
    Check the "lease obtained" and "lease expired" times for your router to see if that is when the network fails. I've just finished reading an angry thread over at the Linksys forum about the WRT330N where someone mentioned that the router wasn't renewing its lease.
    "I cannot set it run off automatic DHCP from the WRT330N, the router will not assign it an IP every time the lease expires, causing me to have to manually set an IP on the Print server. That's annoying. Having the router drop IP's to individual machines after 12-48 hours...very annoying."
    http://forums.linksys.com/linksys/board/message?board.id=Wireless_Routers&thread .id=67412
    If that is the problem, then I would consider setting up a Static IP address for your Apple TV. You can do that through the user interface -> Settings -> Network -> Configure ... (Quite intuitive as you only have change IP address and the subsequent details remain the same.)
    My router assigns IP Addresses in the ranges of 192.168.1.100 ->149. The idea here is to choose an address outside of that range but is not greater than 192.168.1.253 (and should not end in the number 1). You shouldn't have to change the linksys router as long as 50 clients are assigned in that range. You'll have to figure that out by accessing your router webpage at browser address 192.168.1.1 -> the default password is "admin" (without the quotes).
    Good luck.

  • Just trying to get the basics working...

    Hi,
    I have been trying to get just the basics working, and have spent almost all day, and now into the night, trying to get it to work....with no logical sucess.....
    All I am trying to do, using VB.net 2008 with Crystral Reports 2008, is to disply my report on a web page using the crystalreport viewer in Visual Studio.
    I created a report in CR2008, and during the process of creating the report I had to create a connection to the SQL Server 2005 database and set a parameter on my report to show the data for a single record from the database.
    The issue is that the connection string I use in CR2008 is NOT the connection string that is to be used in the browser, so the first task I have attempted to do is to set new log in details for the report. I just want to use a trusted connection.
    I have searched high and low on the internet, and taken a look at the samples provided on this site.
    My code, as it is at the moment for setting the connection for the report at run time is at the end of this email: ( I got this code from the samples on this site)
    The problem I have is if the integratedsecurity set to true(as I need it) then the myconnectioninfo.servername and database name are totally ignored. I have changed them to be just randon characters, which should result in the report not being able to connect, yet the report still works fine.
    No errors are generated at all, so its very confusing. I know the code is being executed via breakpoints and stepping through the code, but it would seem that it makes no difference.
    What am I doing wrong here.....
    Private Sub ConfigureCrystalReports()
            Dim reportPath As String = Server.MapPath("CrystalReport1.rpt")
            myCrystalReportViewer.ReportSource = reportPath
            Dim myConnectionInfo As ConnectionInfo = New ConnectionInfo()
            SetDBLogonForReport(myConnectionInfo)
            myConnectionInfo.ServerName = "SQL1"
            myConnectionInfo.DatabaseName = "MPx
            ' myConnectionInfo.UserID = "limitedPermissionAccount"
            'myConnectionInfo.Password = "1234"
            myConnectionInfo.IntegratedSecurity = True
        End Sub
        Protected Sub Page_Init(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Init
            ConfigureCrystalReports()
        End Sub
        Private Sub SetDBLogonForReport(ByVal myConnectionInfo As ConnectionInfo)
            Dim myTableLogOnInfos As TableLogOnInfos = myCrystalReportViewer.LogOnInfo
            For Each myTableLogOnInfo As TableLogOnInfo In myTableLogOnInfos
                myTableLogOnInfo.ConnectionInfo = myConnectionInfo
            Next
        End Sub

    Hi,
    Couple of things:
    1) Please make sure that you are using CR2008 with SP0 at least. Dlls versions should be 12.0.2000.0 and File version 12.0.1100.0.
    2) Please make sure that the destination database can be accessed from that machine. You can create a UDL file or a new report hitting the target database to see if we can see data into it.
    3) Please make sure that we are not changing the schema of the report.
    4) Can you try this code mentioned below:
    ConnectionInfo crConnection = new ConnectionInfo();
                   crConnection.ServerName="Server";
                   crConnection.DatabaseName="DB";
                   crConnection.UserID="uid";
                   crConnection.Password="pwd";
                            crConnection.IntegratedSecurity=true;
                   crReport.Load(Server.MapPath("CrystalReport1.rpt"));
                   Tables crTables=crReport.Database.Tables;
                   foreach(CrystalDecisions.CrystalReports.Engine.Table crTable in crTables)
                        TableLogOnInfo crTLOI = crTable.LogOnInfo;
                        crTLOI.ConnectionInfo=crConnection;
                        crTable.ApplyLogOnInfo(crTLOI);
                        crTable.Location=Database.Owner.Tablename
                   CrystalReportViewer1.ReportSource=crReport;
    Regards,
    AG.

  • Trying to get video chat working between mac and pc

    im trying to get video chat working between a mac and pc
    pc-running xp with aim 6.0
    will updating to aim 6.1 fix this ?
    we can text chat with no problem
    we can not audio or video chat
    any help would be great
    thanks santini

    Hi Z,
    Lets check the Port Forwarding at your end.
    Does this Zyxel have UPnP at all ?
    If so use that and disable the Port Forwarding.
    If not then these ports need to be forwarded.
    I will list with Protocols as some device need these.
    TCP 5190 for AIM Login and text chats (can be substituted for 443)
    TCP 5220, 5222 and 5223 for Jabber (the last is for OS X servers and GoogleTalk)
    TCP 5298 this is part of the Bonjour set up for iChat if you have other Macs
    UDP 5060 this is for the SIP negotiation that iChat needs
    UDP 5678 this is where the visible invites come and go out on.
    UDP 5190 for AIM file sending and Group chats
    UDP 16384-16403 This group of 20 ports is where any Audio or Video chat takes place.
    As the 443 port is below 1024 (the NAT threshold) you should not have to Forward this.
    10:23 PM Monday; August 13, 2007

  • Trying to get " url " to work in my scroller/ gallery...

    trying to get " url " to work in my scroller/ gallery...
    please take a look at my action script and xml... ive got all
    the fields working except for the " url " ... what adjustments do i
    need to make to get the url for each pix to work...
    thanks...trey
    delay = 3000;
    function loadXML(loaded) {
    if (loaded) {
    xmlNode = this.firstChild;
    image = [];
    title = [];
    headline = [];
    description = [];
    total = xmlNode.childNodes.length;
    for (i=0; i<total; i++) {
    image
    = xmlNode.childNodes.childNodes[0].firstChild.nodeValue;
    title
    = xmlNode.childNodes.childNodes[1].firstChild.nodeValue;
    headline
    = xmlNode.childNodes.childNodes[2].firstChild.nodeValue;
    description
    = xmlNode.childNodes.childNodes[3].firstChild.nodeValue;
    firstImage();
    } else {
    content = "file not loaded!";
    xmlData = new XML();
    xmlData.ignoreWhite = true;
    xmlData.onLoad = loadXML;
    xmlData.load("images.xml");
    p = 0;
    this.onEnterFrame = function() {
    filesize = picture.getBytesTotal();
    loaded = picture.getBytesLoaded();
    preloader._visible = true;
    if (loaded != filesize) {
    preloader.preload_bar._xscale = 100*loaded/filesize;
    } else {
    preloader._visible = false;
    if (picture._alpha<100) {
    picture._alpha += 10;
    function nextImage() {
    if (p<(total-1)) {
    p++;
    if (loaded == filesize) {
    picture._alpha = 0;
    picture.loadMovie(image[p], 1);
    title_txt.text = title[p];
    headline_txt.text = headline[p];
    description_txt.text = description[p];
    picture_num();
    slideshow();
    function prevImage() {
    if (p>0) {
    p--;
    picture._alpha = 0;
    picture.loadMovie(image[p], 1);
    title_txt.text = title[p];
    headline_txt.text = headline[p];
    description_txt.text = description[p];
    picture_num();
    function firstImage() {
    if (loaded == filesize) {
    picture._alpha = 0;
    picture.loadMovie(image[0], 1);
    title_txt.text = title[p];
    headline_txt.text = headline[p];
    description_txt.text = description[p];
    picture_num();
    slideshow();
    function picture_num() {
    current_pos = p+1;
    pos_txt.text = current_pos+" / "+total;
    function slideshow() {
    myInterval = setInterval(pause_slideshow, delay);
    function pause_slideshow() {
    clearInterval(myInterval);
    if (p == (total-1)) {
    p = 0;
    firstImage();
    } else {
    nextImage();
    and here is my xml...
    <?xml version="1.0" encoding="utf-8" standalone="yes"?>
    <images>
    <pic>
    <image>sample1.jpg</image>
    <title>Google</title>
    <headline>headline 1</headline>
    <description>this is the description of article
    1.</description>
    <link>
    http://www.google.com</link>
    <targetIsUrl>Y</targetIsUrl>
    </pic>
    <pic>
    <image>sample2.jpg</image>
    <caption>Yahoo</caption>
    <headline>headline 2</headline>
    <description>this is the description of article
    2.</description>
    <link>
    http://www.yahoo.com</link>
    <targetIsUrl>Y</targetIsUrl>
    </pic>
    <pic>
    <image>sample3.jpg</image>
    <caption>BAS-llc</caption>
    <headline>headline 3</headline>
    <description>this is the description of article
    3.</description>
    <link>
    http://www.bas-llc.com</link>
    <targetIsUrl>Y</targetIsUrl>
    </pic>
    <pic>
    <image>sample4.jpg</image>
    <caption>USC Trojans</caption>
    <headline>headline 4</headline>
    <description>this is the description of article
    4.</description>
    <link>
    http://www.uscripsit.com</link>
    <targetIsUrl>Y</targetIsUrl>
    </pic>
    </images>

    Extensions that do not have a "Remove" button are installed by other software and are not under control of the Firefox extension manager.
    Such globally installed extensions are usually found via a registry scan or are installed in a location that Firefox scans for installed extensions.
    *https://developer.mozilla.org/Installing_extensions
    *https://developer.mozilla.org/Adding_Extensions_using_the_Windows_Registry
    Extensions installed this way need to be removed via the settings (options/preferences) of the program that has added this extension or this program has to be uninstalled via "Control Panel > Programs".
    In Firefox you an only disable such an extension.
    Create a new profile as a test to check if your current profile is causing the problem.
    See "Creating a profile":
    *https://support.mozilla.org/kb/profile-manager-create-and-remove-firefox-profiles
    *http://kb.mozillazine.org/Standard_diagnostic_-_Firefox#Profile_issues
    If the new profile works then you can transfer files from a previously used profile to the new profile, but be cautious not to copy corrupted files to avoid carrying over problems.
    *http://kb.mozillazine.org/Transferring_data_to_a_new_profile_-_Firefox

  • Trying to get affinetransform to work in my code

    Hello,
    I am trying to get affinetransform to work in my applet. Can somebody help me figure it out. My code is below. I commented out some code because I was not sure of whether I shoud erase it or not because the affine transform works in the commented out code.
    Good luck:
    import java.lang.Integer;
    import java.awt.*;
    import java.awt.event.*;
    import java.awt.font.*;
    import java.awt.geom.*;
    import java.awt.image.*;
    import java.awt.event.ItemListener;
    import java.awt.event.ItemEvent;
    import java.awt.event.ActionListener;
    import java.awt.event.ActionEvent;
    import javax.swing.*;
    import java.awt.Graphics.*;
    import javax.swing.*;
    import java.awt.*;
    import javax.swing.text.*;
    import javax.swing.event.*;
    import java.awt.event.*;
    import javax.swing.JApplet.*;
    import javax.swing.JFrame.*;
    import java.applet.Applet;
    import javax.swing.border.*;
    import javax.swing.Spring.*;
    import java.awt.geom.AffineTransform;
    import java.awt.Graphics2D;
    //Class definition
    public class Shapeshift extends JApplet{
    private int x;
    private int a;
    private int b;
    private int c;
    private int dd;
    private int q;
    private int f;
    private int z;
    int hhh = 700;
    int wwww = 700;
    int www = 350;
    int y = 300;
    int g= 5;
    int w = 20;
    int h = 10;
    int panelheight = 100;
    int panelwidth = 540;
    //Text
    int ty = 20;
    int tx = 10;
    int twid = 40;
    int thei = 20;
    int bwid = 50;
    int bhei = 20;
    int ly = 2;
    //Defining textfields
    JTextField Lfield = new JTextField(5);
    JTextField Rfield = new JTextField(5);
    JTextField rfield = new JTextField(5);
    JTextField Hfield = new JTextField(5);
    JTextField tfield = new JTextField(5);
    JTextField hfield = new JTextField(5);
    JTextField lfield = new JTextField(5);
    JLabel Llabel = new JLabel("L");
    JLabel Rlabel = new JLabel("R");
    JLabel rlabel = new JLabel("r");
    JLabel llabel = new JLabel("l");
    JLabel tlabel = new JLabel("t");
    JLabel Hlabel = new JLabel("H");
    JLabel hlabel = new JLabel("h");
    /*public void paint(Graphics g) {
         super.paint(g);
    Graphics2D g2 = (Graphics2D) g;
    Dimension d = getSize();
    int ww = 350;
    int w = d.width;
    int h = d.height;
    int c = (int)(Integer.parseInt(Rfield.getText())) + (int)(Integer.parseInt(tfield.getText())) + 1;
    int z = 1 + (int)(Integer.parseInt(hfield.getText())) + (int)(Integer.parseInt(Rfield.getText()));
    int xx = 1 + (int)(Integer.parseInt(hfield.getText())) + (int)(Integer.parseInt(Rfield.getText())) + (int)(Integer.parseInt(tfield.getText()));
    int xxx = 1 + (int)(Integer.parseInt(rfield.getText())) + (int)(Integer.parseInt(Rfield.getText()));
    AffineTransform saveXform = g2.getTransform();
    AffineTransform toCenterAt = new AffineTransform();
    toCenterAt.translate(w/2, h/2);
    g2.transform(toCenterAt);
    g2.setColor(Color.yellow);
    g2.fillRect(-25, -30-z, 25+x, 10+f);
    g2.fillRect(-25, 70+a, 25+x, 10+f);
    g2.fillRect(50-x, -30-z, 25+x, 10+f);
    g2.fillRect(50-x, 70+a, 25+x, 10+f);
    g2.setColor(Color.blue);
    g2.fillRect(-25, -40-xx, 100, 10 + dd);
    g2.fillRect(-25, 80+z, 100, 10+dd);
    g2.setColor(Color.gray);
    g2.fillRect(x, 0+q, 50 - (2*x), 50-(2*q));
    g2.fillRect(-25, -20-a, x + 25, 90+(2*a));
    g2.fillRect(50-x, -20-a, 25+x, 90+(2*a));
    g2.drawLine(90, 25, 90, -20 - a);
    g2.drawLine(-30, 15-b, 90, 15-b);
    g2.drawLine(-30, 40+b, 90, 40+b);
    g2.drawLine(100, 25, 100, -5);
    repaint();
    public void init() {
    class MyDrawingPanel extends JPanel{
    public void paintComponent(Graphics g){
    super.paintComponent(g);
    Graphics2D g2 = (Graphics2D) g;
    Dimension d = getSize();
    int ww = 350;
    int hh = 350;
    int w = d.width;
    int h = d.height;
    int c = (int)(Integer.parseInt(Rfield.getText())) + (int)(Integer.parseInt(tfield.getText())) + 1;
    int z = 1 + (int)(Integer.parseInt(hfield.getText())) + (int)(Integer.parseInt(Rfield.getText()));
    int xx = 1 + (int)(Integer.parseInt(hfield.getText())) + (int)(Integer.parseInt(Rfield.getText())) + (int)(Integer.parseInt(tfield.getText()));
    int xxx = 1 + (int)(Integer.parseInt(rfield.getText())) + (int)(Integer.parseInt(Rfield.getText()));
    AffineTransform saveXform = g2.getTransform();
    AffineTransform toCenterAt = new AffineTransform();
    toCenterAt.translate(w/2, h/2);
    g2.transform(toCenterAt);
    g2.setColor(Color.yellow);
    g2.fillRect(-25, -30-z, 25+x, 10+f);
    g2.fillRect(-25, 70+a, 25+x, 10+f);
    g2.fillRect(50-x, -30-z, 25+x, 10+f);
    g2.fillRect(50-x, 70+a, 25+x, 10+f);
    g2.setColor(Color.blue);
    g2.fillRect(-25, -40-xx, 100, 10 + dd);
    g2.fillRect(-25, 80+z, 100, 10+dd);
    g2.setColor(Color.gray);
    g2.fillRect(x, 0+q, 50 - (2*x), 50-(2*q));
    g2.fillRect(-25, -20-a, x + 25, 90+(2*a));
    g2.fillRect(50-x, -20-a, 25+x, 90+(2*a));
    g2.drawLine(90, 25, 90, -20 - a);
    g2.drawLine(-30, 15-b, 90, 15-b);
    g2.drawLine(-30, 40+b, 90, 40+b);
    g2.drawLine(100, 25, 100, -5);
    repaint();
    // other drawing/painting code here
    MyDrawingPanel mdp = new MyDrawingPanel();
    getContentPane().add(mdp, java.awt.BorderLayout.CENTER);
    //Defining panels
    JPanel dimension = new JPanel();
    JPanel dimension1 = new JPanel();
    //Setting initial text values to zero
    int start = 0;
    Lfield.setText(start + "");
    Rfield.setText(start + "");
    rfield.setText(start + "");
    lfield.setText(start + "");
    tfield.setText(start + "");
    Hfield.setText(start + "");
    hfield.setText(start + "");
    //Setting up SpringLayout
    SpringLayout spring = new SpringLayout();
    SpringLayout spring2 = new SpringLayout();
    Container c = getContentPane();
    c.setLayout(spring);
    Spring hhhheight = Spring.constant(hhh);
    Spring wwwidth = Spring.constant(wwww);
    Spring wwidth = Spring.constant(www);
    Spring width = Spring.constant(w);
    Spring height = Spring.constant(h);
    Spring xvalue = Spring.constant(g);
    Spring yvalue = Spring.constant(y);
    Spring xxvalue = spring.getConstraint(SpringLayout.WEST, c);
    Spring yyvalue = spring.getConstraint(SpringLayout.SOUTH, c);
    //Panel 1 parameters
    Spring panwidthr = spring.getConstraint(SpringLayout.EAST, c);
    Spring panheight = Spring.constant(panelheight);
    Spring panwidth = Spring.sum(panwidthr, Spring.minus(xvalue));
    Spring ypandisp = Spring.sum(yyvalue, Spring.minus(Spring.sum(xvalue,panheight)));
    Spring dxvalue = spring2.getConstraint(SpringLayout.WEST, dimension);
    Spring dyvalue = spring2.getConstraint(SpringLayout.NORTH, dimension);
    //text parameters
    Spring txx = Spring.constant(tx);
    Spring tyy = Spring.constant(ty);
    Spring twidth = Spring.constant(twid);
    Spring theight = Spring.constant(thei);
    //button parameters
    JButton up = new JButton();
    Spring b1x = Spring.sum(txx,twidth);
    Spring b1width = Spring.constant(bwid);
    Spring b1height = Spring.constant(bhei);
    Spring b1y = Spring.sum(tyy,b1height);
    Spring b2x = Spring.sum(b1x, Spring.sum(b1x,b1width));
    //text1 x position
    Spring t1xx = Spring.sum(b2x,Spring.minus(twidth));
    Spring t3x = Spring.sum(b2x, Spring.sum(txx,b1width));
    Spring b3x = Spring.sum(t3x,twidth);
    Spring t4x = Spring.sum(b3x,Spring.sum(txx,b1width));
    Spring b4x = Spring.sum(b3x,Spring.sum(b1x,b1width));
    Spring t5x = Spring.sum(b4x,Spring.sum(txx,b1width));
    Spring b5x = Spring.sum(b4x,Spring.sum(b1x,b1width));
    Spring t6x = Spring.sum(b5x,Spring.sum(txx,b1width));
    Spring b6x = Spring.sum(b5x,Spring.sum(b1x,b1width));
    Spring t7x = Spring.sum(b6x,Spring.sum(txx,b1width));
    Spring b7x = Spring.sum(b6x,Spring.sum(b1x,b1width));
    //Label parameters
    Spring lyy = Spring.constant(ly);
    //Adding features to panel
    TitledBorder dampdim = new TitledBorder("Damper Dimensions");
    dimension.setBorder(dampdim);
    dimension.setLayout(spring2);
    TitledBorder dampdimm = new TitledBorder("Damper Dimensions");
    mdp.setBorder(dampdimm);
    //Adding features to L up button
    up.setText("UP");
    up.setFont( new Font( "UP", Font.BOLD, 2));
    up.addActionListener(new T1C());
    //Defining buttons(in an array)
    JButton buttons[] = new JButton[14];
    buttons[0] = new JButton("UP");
    buttons[1] = new JButton("DOWN");
    buttons[2] = new JButton("UP");
    buttons[3] = new JButton("DOWN");
    buttons[4] = new JButton("UP");
    buttons[5] = new JButton("DOWN");
    buttons[6] = new JButton("UP");
    buttons[7] = new JButton("DOWN");
    buttons[8] = new JButton("UP");
    buttons[9] = new JButton("DOWN");
    buttons[10] = new JButton("UP");
    buttons[11] = new JButton("DOWN");
    buttons[12] = new JButton("UP");
    buttons[13] = new JButton("DOWN");
    buttons[1].addActionListener(new T2C());
    buttons[2].addActionListener(new T3C());
    buttons[3].addActionListener(new T4C());
    buttons[4].addActionListener(new T5C());
    buttons[5].addActionListener(new T6C());
    buttons[6].addActionListener(new T7C());
    buttons[7].addActionListener(new T8C());
    buttons[8].addActionListener(new T9C());
    buttons[9].addActionListener(new T10C());
    buttons[10].addActionListener(new T11C());
    buttons[11].addActionListener(new T12C());
    buttons[12].addActionListener(new T13C());
    buttons[13].addActionListener(new T14C());
    //Component positioning
    c.add(dimension);
    spring.getConstraints(dimension).setX(xvalue);
    spring.getConstraints(dimension).setY(ypandisp);
    spring.getConstraints(dimension).setWidth(panwidth);
    spring.getConstraints(dimension).setHeight(panheight);
    c.add(dimension1);
    spring.getConstraints(dimension1).setX(xvalue);
    spring.getConstraints(dimension1).setY(theight);
    spring.getConstraints(dimension1).setWidth(panwidth);
    spring.getConstraints(dimension1).setHeight(hhhheight);
    dimension.add(Lfield);
    spring2.getConstraints(Lfield).setX(txx);
    spring2.getConstraints(Lfield).setY(tyy);
    spring2.getConstraints(Lfield).setWidth(twidth);
    spring2.getConstraints(Lfield).setHeight(theight);
    dimension.add(up);
    spring2.getConstraints(up).setX(b1x);
    spring2.getConstraints(up).setY(tyy);
    spring2.getConstraints(up).setWidth(b1width);
    spring2.getConstraints(up).setHeight(b1height);
    dimension.add(buttons[1]);
    spring2.getConstraints(buttons[1]).setX(b1x);
    spring2.getConstraints(buttons[1]).setY(b1y);
    spring2.getConstraints(buttons[1]).setWidth(b1width);
    spring2.getConstraints(buttons[1]).setHeight(b1height);
    dimension.add(Rfield);
    spring2.getConstraints(Rfield).setX(t1xx);
    spring2.getConstraints(Rfield).setY(tyy);
    spring2.getConstraints(Rfield).setWidth(twidth);
    spring2.getConstraints(Rfield).setHeight(theight);
    dimension.add(buttons[2]);
    spring2.getConstraints(buttons[2]).setX(b2x);
    spring2.getConstraints(buttons[2]).setY(tyy);
    spring2.getConstraints(buttons[2]).setWidth(b1width);
    spring2.getConstraints(buttons[2]).setHeight(b1height);
    dimension.add(buttons[3]);
    spring2.getConstraints(buttons[3]).setX(b2x);
    spring2.getConstraints(buttons[3]).setY(b1y);
    spring2.getConstraints(buttons[3]).setWidth(b1width);
    spring2.getConstraints(buttons[3]).setHeight(b1height);
    dimension.add(rfield);
    spring2.getConstraints(rfield).setX(t3x);
    spring2.getConstraints(rfield).setY(tyy);
    spring2.getConstraints(rfield).setWidth(twidth);
    spring2.getConstraints(rfield).setHeight(theight);
    dimension.add(buttons[4]);
    spring2.getConstraints(buttons[4]).setX(b3x);
    spring2.getConstraints(buttons[4]).setY(tyy);
    spring2.getConstraints(buttons[4]).setWidth(b1width);
    spring2.getConstraints(buttons[4]).setHeight(b1height);
    dimension.add(buttons[5]);
    spring2.getConstraints(buttons[5]).setX(b3x);
    spring2.getConstraints(buttons[5]).setY(b1y);
    spring2.getConstraints(buttons[5]).setWidth(b1width);
    spring2.getConstraints(buttons[5]).setHeight(b1height);
    dimension.add(lfield);
    spring2.getConstraints(lfield).setX(t4x);
    spring2.getConstraints(lfield).setY(tyy);
    spring2.getConstraints(lfield).setWidth(twidth);
    spring2.getConstraints(lfield).setHeight(theight);
    dimension.add(buttons[6]);
    spring2.getConstraints(buttons[6]).setX(b4x);
    spring2.getConstraints(buttons[6]).setY(tyy);
    spring2.getConstraints(buttons[6]).setWidth(b1width);
    spring2.getConstraints(buttons[6]).setHeight(b1height);
    dimension.add(buttons[7]);
    spring2.getConstraints(buttons[7]).setX(b4x);
    spring2.getConstraints(buttons[7]).setY(b1y);
    spring2.getConstraints(buttons[7]).setWidth(b1width);
    spring2.getConstraints(buttons[7]).setHeight(b1height);
    dimension.add(tfield);
    spring2.getConstraints(tfield).setX(t5x);
    spring2.getConstraints(tfield).setY(tyy);
    spring2.getConstraints(tfield).setWidth(twidth);
    spring2.getConstraints(tfield).setHeight(theight);
    dimension.add(buttons[8]);
    spring2.getConstraints(buttons[8]).setX(b5x);
    spring2.getConstraints(buttons[8]).setY(tyy);
    spring2.getConstraints(buttons[8]).setWidth(b1width);
    spring2.getConstraints(buttons[8]).setHeight(b1height);
    dimension.add(buttons[9]);
    spring2.getConstraints(buttons[9]).setX(b5x);
    spring2.getConstraints(buttons[9]).setY(b1y);
    spring2.getConstraints(buttons[9]).setWidth(b1width);
    spring2.getConstraints(buttons[9]).setHeight(b1height);
    dimension.add(Hfield);
    spring2.getConstraints(Hfield).setX(t6x);
    spring2.getConstraints(Hfield).setY(tyy);
    spring2.getConstraints(Hfield).setWidth(twidth);
    spring2.getConstraints(Hfield).setHeight(theight);
    dimension.add(buttons[10]);
    spring2.getConstraints(buttons[10]).setX(b6x);
    spring2.getConstraints(buttons[10]).setY(tyy);
    spring2.getConstraints(buttons[10]).setWidth(b1width);
    spring2.getConstraints(buttons[10]).setHeight(b1height);
    dimension.add(buttons[11]);
    spring2.getConstraints(buttons[11]).setX(b6x);
    spring2.getConstraints(buttons[11]).setY(b1y);
    spring2.getConstraints(buttons[11]).setWidth(b1width);
    spring2.getConstraints(buttons[11]).setHeight(b1height);
    dimension.add(hfield);
    spring2.getConstraints(hfield).setX(t7x);
    spring2.getConstraints(hfield).setY(tyy);
    spring2.getConstraints(hfield).setWidth(twidth);
    spring2.getConstraints(hfield).setHeight(theight);
    dimension.add(buttons[12]);
    spring2.getConstraints(buttons[12]).setX(b7x);
    spring2.getConstraints(buttons[12]).setY(tyy);
    spring2.getConstraints(buttons[12]).setWidth(b1width);
    spring2.getConstraints(buttons[12]).setHeight(b1height);
    dimension.add(buttons[13]);
    spring2.getConstraints(buttons[13]).setX(b7x);
    spring2.getConstraints(buttons[13]).setY(b1y);
    spring2.getConstraints(buttons[13]).setWidth(b1width);
    spring2.getConstraints(buttons[13]).setHeight(b1height);
    dimension.add(Llabel);
    spring2.getConstraints(Llabel).setX(txx);
    spring2.getConstraints(Llabel).setY(lyy);
    spring2.getConstraints(Llabel).setWidth(twidth);
    spring2.getConstraints(Llabel).setHeight(theight);
    dimension.add(Rlabel);
    spring2.getConstraints(Rlabel).setX(t1xx);
    spring2.getConstraints(Rlabel).setY(lyy);
    spring2.getConstraints(Rlabel).setWidth(twidth);
    spring2.getConstraints(Rlabel).setHeight(theight);
    dimension.add(rlabel);
    spring2.getConstraints(rlabel).setX(t3x);
    spring2.getConstraints(rlabel).setY(lyy);
    spring2.getConstraints(rlabel).setWidth(twidth);
    spring2.getConstraints(rlabel).setHeight(theight);
    dimension.add(llabel);
    spring2.getConstraints(llabel).setX(t4x);
    spring2.getConstraints(llabel).setY(lyy);
    spring2.getConstraints(llabel).setWidth(twidth);
    spring2.getConstraints(llabel).setHeight(theight);
    dimension.add(tlabel);
    spring2.getConstraints(tlabel).setX(t5x);
    spring2.getConstraints(tlabel).setY(lyy);
    spring2.getConstraints(tlabel).setWidth(twidth);
    spring2.getConstraints(tlabel).setHeight(theight);
    dimension.add(Hlabel);
    spring2.getConstraints(Hlabel).setX(t6x);
    spring2.getConstraints(Hlabel).setY(lyy);
    spring2.getConstraints(Hlabel).setWidth(twidth);
    spring2.getConstraints(Hlabel).setHeight(theight);
    dimension.add(hlabel);
    spring2.getConstraints(hlabel).setX(t7x);
    spring2.getConstraints(hlabel).setY(lyy);
    spring2.getConstraints(hlabel).setWidth(twidth);
    spring2.getConstraints(hlabel).setHeight(theight);
    //end of init()
    //Event Handlers for buttons
    class T1C implements ActionListener
    public void actionPerformed(ActionEvent e) {
    x = (int)(Integer.parseInt(Lfield.getText())) + 1;
    Lfield.setText(x + "");
    class T2C implements ActionListener
    public void actionPerformed(ActionEvent e) {
    x = (int)(Integer.parseInt(Lfield.getText())) - 1;
    Lfield.setText(x + "");
    class T3C implements ActionListener
    public void actionPerformed(ActionEvent e) {
    a = (int)(Integer.parseInt(Rfield.getText())) + 1;
    Rfield.setText(a + "");
    class T4C implements ActionListener
    public void actionPerformed(ActionEvent e) {
    a = (int)(Integer.parseInt(Rfield.getText())) - 1;
    Rfield.setText(a + "");
    class T5C implements ActionListener
    public void actionPerformed(ActionEvent e) {
    b = (int)(Integer.parseInt(rfield.getText())) + 1;
    rfield.setText(b + "");
    class T6C implements ActionListener
    public void actionPerformed(ActionEvent e) {
    b = (int)(Integer.parseInt(rfield.getText())) - 1;
    rfield.setText(b + "");
    class T7C implements ActionListener
    public void actionPerformed(ActionEvent e) {
    c = (int)(Integer.parseInt(lfield.getText())) + 1;
    lfield.setText(c + "");
    class T8C implements ActionListener
    public void actionPerformed(ActionEvent e) {
    c = (int)(Integer.parseInt(lfield.getText())) - 1;
    lfield.setText(c + "");
    class T9C implements ActionListener
    public void actionPerformed(ActionEvent e) {
    dd = (int)(Integer.parseInt(tfield.getText())) + 1;
    tfield.setText(dd + "");
    class T10C implements ActionListener
    public void actionPerformed(ActionEvent e) {
    dd = (int)(Integer.parseInt(tfield.getText())) - 1;
    tfield.setText(dd + "");
    class T11C implements ActionListener
    public void actionPerformed(ActionEvent e) {
    q = (int)(Integer.parseInt(Hfield.getText())) + 1;
    Hfield.setText(q + "");
    class T12C implements ActionListener
    public void actionPerformed(ActionEvent e) {
    q = (int)(Integer.parseInt(Hfield.getText())) - 1;
    Hfield.setText(q + "");
    class T13C implements ActionListener
    public void actionPerformed(ActionEvent e) {
    f = (int)(Integer.parseInt(hfield.getText())) + 1;
    hfield.setText(f + "");
    class T14C implements ActionListener
    public void actionPerformed(ActionEvent e) {
    f = (int)(Integer.parseInt(hfield.getText())) - 1;
    hfield.setText(f + "");
    public static void main( String[] argv ) {
    JFrame frame = new JFrame( "Transform" );
    frame.addWindowListener( new WindowAdapter(){
    public void windowClosing( WindowEvent e ){
    System.exit( 0 );
    JApplet applet = new Shapeshift();
    frame.getContentPane().add( BorderLayout.CENTER, applet );
    applet.init();
    frame.setSize( 800, 700 );
    frame.setVisible(true);
    }

    I see a lot of applet code and little that has to do with affine transformations.
    Separate the UI from what you're trying to do. Once you have it working perfectly on a command line with simple text input and output, then worry about the applet.
    %

  • Trying to get PM to work with our upgrade process

    We are trying to get Personality migration working properly in our
    environment to migrate our users from 2000 to XP. We have been able to
    get the files to migrate properly, but are having issues with the
    application settings. We have installed PM from Zenworks 7 which is the
    Computer Associates version. When we are setting up the template in the
    application area, there does not seem to be anything there. For example,
    how do we set PM to gather the IE settings but not gather the proxy
    settings? Also, where would I find better documentation on this product?
    THanks in advance for any help.
    Brian

    Brian,
    It appears that in the past few days you have not received a response to your
    posting. That concerns us, and has triggered this automated reply.
    Has your problem been resolved? If not, you might try one of the following options:
    - Do a search of our knowledgebase at http://support.novell.com/search/kb_index.jsp
    - Check all of the other support tools and options available at
    http://support.novell.com.
    - You could also try posting your message again. Make sure it is posted in the
    correct newsgroup. (http://support.novell.com/forums)
    Be sure to read the forum FAQ about what to expect in the way of responses:
    http://support.novell.com/forums/faq_general.html
    If this is a reply to a duplicate posting, please ignore and accept our apologies
    and rest assured we will issue a stern reprimand to our posting bot.
    Good luck!
    Your Novell Product Support Forums Team
    http://support.novell.com/forums/

  • Just upgraded my Mac laptop to Lion to take advantage of iCloud, spent hours trying to get iCloud to work, no happy

    Just upgraded my Mac laptop to Lion to take advantage of iCloud, spent hours trying to get iCloud to work, not happy, tried everything still does not work, this is the first time i have been defeated.

    The initial upgrade from Snow Leopard to Lion is 10.7.1.  Have you done the system update to 10.7.2 already?
    And since there isn't any general overview of what you've tried, see if anything at this site will help" http://help.apple.com/icloud/index.html#

  • HT204291 Don't bother trying to get Airplay to work even if you have all the latest updates etc..if your computer is a MacBook Pro 2008 or earlier..The Apple staff have decided they are too old and not worth supporting...

    Don't bother trying to get Airplay to work even if you have all the latest updates etc..if your computer is a MacBook Pro 2008 or earlier..The Apple staff have decided they are too old and not worth supporting...

    AirPlay Mirroring requires a second-generation Apple TV or later, OS X 10.8 or better and is supported on the following Mac models: iMac (Mid 2011 or newer), Mac mini (Mid 2011 or newer), MacBook Air (Mid 2011 or newer), and MacBook Pro (Early 2011 or newer). It also requires the computer to be using wi-fi.
    Patrick is either mistaken or describing basic airplay and not mirroring.

  • [SOLVED] trying to get my keyboard layout to work, & hal to mount..

    hi,
    prior to the recent xorg upgrade, i had my xorg.conf set my keyboard layout, and hal would automount my phone in pcmanfm. since the xorg update, for the sake of not having to to set up the new hotplugging, I disabled it in my xorg.conf so my keyboard would keep its layout.
    obviously though, with hot plugging switched off, hal wont mount my phone, so i am trying to get my keyboard set up and get hal automounting.
    i have set    Option       "AutoAddDevices" "True" in my xorg.conf
    i have edited /etc/hal/fdi/policy/10-keymap.fdi as follows;
    <?xml version="1.0" encoding="ISO-8859-1"?> <!-- -*- SGML -*- -->
    <deviceinfo version="0.2">
    <device>
    <match key="info.capabilities" contains="input.keymap">
    <append key="info.callouts.add" type="strlist">hal-setup-keymap</append>
    </match>
    <match key="info.capabilities" contains="input.keys">
    <merge key="input.xkb.rules" type="string">base</merge>
    <!-- If we're using Linux, we use evdev by default (falling back to
    keyboard otherwise). -->
    <merge key="input.xkb.model" type="string">kbd</merge>
    <match key="/org/freedesktop/Hal/devices/computer:system.kernel.name"
    string="Linux">
    <merge key="input.xkb.model" type="string">logiaccess</merge>
    </match>
    <merge key="input.xkb.layout" type="string">gb</merge>
    <merge key="input.xkb.variant" type="string" />
    </match>
    </device>
    </deviceinfo>
    basically, my keyboard is still in us layout, and hal still wont mount my phone even after restarting X! what have i missed?
    Last edited by ninjaprawn (2008-12-16 20:29:09)

    ok, i managed to fix the problem. i edited the .fdi file as follows;
    <?xml version="1.0" encoding="ISO-8859-1"?> <!-- -*- SGML -*- -->
    <deviceinfo version="0.2">
    <device>
    <match key="info.capabilities" contains="input.keymap">
    <append key="info.callouts.add" type="strlist">hal-setup-keymap</append>
    </match>
    <match key="info.capabilities" contains="input.keys">
    <merge key="input.xkb.rules" type="string">base</merge>
    <!-- If we're using Linux, we use evdev by default (falling back to
    keyboard otherwise). -->
    <merge key="input.xkb.model" type="string">evdev</merge>
    <match key="/org/freedesktop/Hal/devices/computer:system.kernel.name"
    string="Linux">
    <merge key="input.xkb.model" type="string">evdev</merge>
    </match>
    <merge key="input.xkb.layout" type="string">gb</merge>
    <merge key="input.xkb.variant" type="string" />
    </match>
    </device>
    </deviceinfo>
    for some reason, logiaccess and kbd work in xorg.conf, but no in hal? instead, evdev can do everything!

  • [SOLVED] Can't get Steam to work, VirtualBox installation

    Hello!
    I'm having problems with getting Steam to work on my Arch Linux installation. I'm new to Linux so I'll just give you a prehistory & console output. I installed the distro on a virtual machine created in VirtualBox, installed xorg & KDE, I didn't install any video drivers because this is what wiki says:
    https://wiki.archlinux.org/index.php/VirtualBox#Installation_steps_for_Arch_Linux_guests wrote:Note: You do not need to also install a specific video driver in the guest system. Install the Guest Additions instead.
    So I installed "virtualbox-guest-utils" package, created a file /etc/modules-load.d/virtualbox.conf with the following contents:
    vboxguest
    vboxsf
    vboxvideo
    Then I executed
    sudo systemctl enable vboxservice
    and rebooted the system. After the reboot I got the shared clipboard feature working => VBox Guest Additions seemed to work. Then I installed "steam" package, launched it via the terminal and waited for it to download it's updated. After Steam downloaded everything, I tried to launch it once again via terminal and got this:
    Running Steam on arch  64-bit
    STEAM_RUNTIME is enabled automatically
    Installing breakpad exception handler for appid(steam)/version(1405013548_client)
    Xlib:  extension "GLX" missing on display ":0".
    Installing breakpad exception handler for appid(steam)/version(1405013548_client)
    Installing breakpad exception handler for appid(steam)/version(1405013548_client)
    Installing breakpad exception handler for appid(steam)/version(1405013548_client)
    Xlib:  extension "GLX" missing on display ":0".
    OpenGL GLX extension not supported by displayAssert( Assertion Failed: Fatal Error: OpenGL GLX extension not supported by display ):/home/buildbot/buildslave_steam/steam_rel_client_ubuntu12_linux/build/src/steamUI/Main.cpp:285
    Installing breakpad exception handler for appid(steam)/version(1405013548_client)
    Uploading dump (out-of-process) [proxy '']
    /tmp/dumps/assert_20140712040049_6.dmp
    Finished uploading minidump (out-of-process): success = yes
    response: CrashID=bp-e2313069-9637-4ef3-aeee-fe3b92140711
    and a GUI window saying "OpenGL GLX extension not supported by display". I tried to find a solution on the internet but they all mentioned installing Nvidia drivers. And VirtualBox GPU != Nvidia GPU.
    Is there any way to solve this? Steam is working on my Fedora-VBox (this is the distro our lecturer uses as an example to teach us about Linux) installation out of the box.
    EDIT: forgot to mention that system is x86_64, multilib in enabled, 3D acceleration in VM settings is enabled.
    Last edited by Nathel (2014-07-12 22:10:16)

    Fixed the issue by replacing nvidia-libgl with mesa-libgl & lib32-mesa-libgl.

Maybe you are looking for

  • Long running in Move Nametabs phase while applying SAPKIBIIP2

    HI All, I am applying SAPKIBIIP2 (BI 7.03) patch, its long running in MOVE NAMETAB phase, I checked dumps in st22..there were no dumpsu2026in sm37 RDDMNTAB is also active & in sm50 I found its taking long Sequential Read for this table D010TAB. Check

  • Download window, show all downloads and Ctrl+F Search Menu

    I click the little down arrow for downloads and a "show all downloads" thing pops up. Anyway to stop this and make it automatically show all downloads? Kind of annoying having to click twice to see my downloads. Also, I am using this: https://addons.

  • More missing on iTunes on iPad

    I use my iPad for listening to audiobooks.  Recently I accidentally hit the "Radio" button on iTunes, and now I can't get back to the audiobook I'm in the middle of.  "Audiobooks" should be one of the menu options, but it isn't.  There ought to be a

  • Ssrs report export to excel along with parameter filters

    HI, In ssrs reports export to excel along with parameter filters,is it possible or not? Could you please help me.. indu

  • SPOOL STATMENT warning

    HI  ALL i am getting some warning message in a program for the below statement in ECC 6.0 which was working fine in earlie system 4.0b but now in new system as upgraded the spool is not created whic might be due to the below statment and warning as p