Run as dialog box, is this normal?
I have run several seaches in the forum and google and can not seem to find or phrase my question correctly. Dialog box says "run as. which user account do you want to use to run this program." I have a dell, that has multiple user accounts, the account this shows on is not an administrator account. I have never seen this box ever and am concerned it is some kind of malware. Is this normal. Thank you in advance.
I'm having the same problem -It started when I installed Reader 9. I have a Dell, run FireFox 3.5, have Limited Users, and I accidently tried to download and install the program from a limited user.I got a message (file corrupt), and then went to the Admin User to install Reader 9.
I only get this when starting a new session of FireFox on the limited user that I (mistakenly) tried to install the program. I have deleted the installation folder from that user's desktop, and now I don't get the "Download Manager" popup running behind the "Use As" popup. No other user gets this popup.
Ive done all that I can think of - checking other users, searching Users in the Control Panel, running repair installation from the Admin - short of uninstalling and re-installing Reader 9. I have not done that because I feel that the error is in the User, not in the Adobe program as installed.
Thanks (in advance) for any help.
Similar Messages
-
I try to play the Itunes song I purchased. I have a new computer, another internet provider since I purchased the songs, and have switched to a new internet browser Internet Explorer 8. I keep getting a dialog box saying "this computer is not authorized to play the song. would you like to authorize it?
An old Apple ID popps up and I am asked for the old passwork which I no longer remember. I successfully changed to a new Apple ID and password.
when I enter that, a new dialog box appears, saying "this computer is already authorized." When I try to play the song the first box appears again,
I I go round over and over, with no success playing my songs. Can anybody out their resolve this? Thanks for any helpWere these songs purchased using another account?
" I opened a new iTunes account and copied the files to the new account. "
Do you mean to a new library?
Account is a user neame and password with which you purchase content.
A library is your collection of media. -
Brand new iphone 5 in recovery mode straight out of the box, is this normal?!
Hi all,
I got my new iphone 5 upgrade today, inserted sim card and plugged it in to my laptop to copy everything over from my 4 but when it's plugged in to either the laptop or the charger, the black screen with the silver apple just keeps flashing every few seconds and it won't power on.
I've tried doing a reset (keeping home and lock buttons pressed) and it came up with the connect to itunes screen but this was while it was plugged in to the main charger so as soon as I unplugged it to plug it into itues the screen went blank and it's back to square one!!
**update** the boyfriend managed to get it to the connect to itunes screen and itunes reported that it had detected an iphone in recovery mode and it needed restoring.
So, it this normal to expect a brand new iphone to be in recovery mode?!
Advice would be appreciated, many thanksWell first just to let you know the "connect to iTunes" screen or also knows as "the usb cable pointing to iTunes" means to connect it to iTunes to initially set the ipod up. Now if you already have done this or dont get the option to try forcing into recovery mode and then restoring the ipod followed in this article. Also make sure your computer and iTunes is up to date with the latest software.
If not i would try connecting it to anther computer with iTunes 9.0.2 installed and then call Apple if that doesnt work since you purchased it from the Apple online store.
http://support.apple.com/kb/HT1414
Hope it helps!!
Message was edited by: ataylor87 -
Noisy power supply when running of UPS? Is this normal?
Iv recently purchased a belkin 1500VA UPS, which in the near future i was looking to use on MAC Pro (once iv actually ordered and received it) The price was to good to miss, as it was currently on offer at misco and quite heavely reduced. So i went ahead thinking it would be a good idea to have for my G5 anyway. Everything setup a treat and the built OSX controls are fine but when the unit is on battery backup. Sleeping or in normal usage the actually G5's power supply makes a buzzing electrical sound from the power supply? I have read about this a little else-wear but no one has yet confirmed if this is normal/acceptable for a G5 to do this. Or the that the noise is the sign of a dodgy/faulty power supply.
I am aware the UPS also makes a noise when running in backup mode. But the UPS and the tower are some distance apart so i can quite easily identify that the noise is coming from the G5.
Any user experiences or advice on this would be much appreciate. I dont want to burn my power supply out. I still love my G5 very much. Cheers in advance for anyones assistance. PobThankyou everyone for all of your responces. I think we're getting to the bottom of things now. It would appear that when in battery back up mode my UPS is generating a square wave which my powermac is not liking at all. And the power supply is working to put this right. Weather the work the power supply is doing and the noise generated is a sign of harm to my computer is still some what unclear. But it does not seem like a good noise as it is not normal.
It is also interesting that maclover has no problems using an APC smart ups that produces sine wave. So this points to square wave being the saurce of problems. Thankyou maclover for also pointing out that other very useful thread that concludes the smart ups range seems to be the way to go. Even tho a little more money i would prefer to have no noise! And be sure im not harming my Mac.
Malcolm Rayfield - I am under the impression my UPS does no produce a sine wave. And you saying that the noise is the input filter sorting it out does make sense. I am going to contact Belking and Apple tomorrow and hopefully either way confirm that this noise is a bad thing or just something iv got to live with.
DaddyPaycheck - My belkin model number is F6C1500EITW-RK. Quite a new model i think, dual form, 1500VA. Very pleased with all the features. This model does have AVR too (Automatic Voltage Regulation) But it would appear from what everyone has said along with some other findings about the web that this unit produces square wave! I guess yours is Sine wave hence you not having any problems.
I will probably end up returning this unit and buying an APC SUA1500i. As its been confirmed in this thread and the other thread that was linked to as producing a nice sine wave which is what i want. Again thank you everyone. Pob -
Hello all,
So, as a loyal Lenovo customer I decided to purchase the X1 Carbon 2nd Gen (non-touch, I5 version).
Last week I finally received it.
Unfortunately, the first thing I noticed was a defective touchpad - very loose, the right bottom corner was not solid
enough and made a weird noise while clicking it. It drove me crazy since I am used to the top build quality the Thinkpad series offers.
I took to the local Lenovo service center, they actually replaced it on the spot and it made it better, not great but better. I still think there is something wrong there, since the bottom two "buttons" don't feet and sound as good as the upper ones.
But that I can tolarate.
The thing that really pissed me off was this: To me demise, after using the laptop in a dark room I noticed this massive screen bleed :
(apologize for the ling stream of pics, didn't know how to thumbnail them)
My question to you guys, is this okay? is this an acceptable bleed? or should I do whatever it takes to get it repaired/replaced?
I just hope they will know how to handle this here at local center, as from my experience dealing with computer reps here, the local Lenovo agent (which is actually the importer) will not replace it for me (their excuse is that it wasn't bought in this country)
This is amazing, in one year Lenovo has lost it's entire reputation over the 2nd Gen X1 carbon.
Please help me. what should I do?
Thank you very much.The official method of creating / escalating to a complaint is to call support, with previous call numbers handy, and request the representative to escalate your case to a complaint. They will then create a complaint on your behalf and also be able to inform you about the complaints proceedure.
Andy ______________________________________
Please remember to come back and mark the post that you feel solved your question as the solution, it earns the member + points
Did you find a post helpfull? You can thank the member by clicking on the star to the left awarding them Kudos Please add your type, model number and OS to your signature, it helps to help you. Forum Search Option T430 2347-G7U W8 x64, Yoga 10 HD+, Tablet 1838-2BG, T61p 6460-67G W7 x64, T43p 2668-G2G XP, T23 2647-9LG XP, plus a few more. FYI Unsolicited Personal Messages will be ignored.
Deutsche Community Comunidad en Español English Community Русскоязычное Сообщество
PepperonI blog -
When i installed yosemite on my mac book it runs very slow, is this normal ?
After installing OS X yosemite on my mac book it runs extremely slow. Is this normal ?
Slow performance after installing Yosemite on an older Mac is often caused by inadequate memory. Although you can install the upgrade on a Mac with 2 GB of memory, experience has shown that at least 4 GB is needed for full performance.
Select About This Mac from the Apple menu. If you have less than 4 GB of memory, and your model has upgradable memory, install as much as it can take, or at least that much. Any reputable RAM vendor will have a web form in which you can select the Mac model and be directed to compatible parts.
Memory in the MacBook Air is not upgradable. If that's what you have, you should restore the previous system from a backup, or replace the machine. Ask if you need guidance. -
Adobe Reader 8.1.2; Windows XP; screen resolution 800 by 600 pixels.
Normally, whenever I print a PDF, I click on the printer icon on the toolbar or go to File > Print. The Print dialog appears, and I click on the OK button at the bottom of the box.
Recently, for some unknown reason, the Print dialog appears too big on my screen, and I cannot see the OK button at the bottom of the box.
However, when I change the screen resolution to 1024 by 768 pixels, I can see the OK (to print button), but all other text, icons, etc., are too small to read.
Ultimately, I need to see the OK (to print button)and the text, icons, etc., need to be sized larger, to the 800 by 600 pixels resolution.
TIA,
Jerry D.I am trying to resolve a similar problem on a Toshiba laptop running Vista. Dialog boxes are being displayed that fill the entire screen truncating the OK, Cancel and Apply buttons that should appear at the bottom of the dialog box. This is happening on all contol panel and games settings dialog boxes. I have tried the Toshiba zoom settings (FN+Space), but this has not foxes the problem.
-
Adobe Reader - Print Dialoge box is usable
Yesterday I was running Reader ver. 10.1.3 on a Windows 2008 x64 Terminal Server. All users Adobe Reader print dialoge boxes now open up very very large. Any visible font is perhpas 10" tall (see screenshots below). Drop down pick lists don't display text, and neither does any of the buttons (see screenshots below). As long as you just want a standard print, you can press enter to activate the defaulted print button. You can press the ESC key to exit the print dialoge form. Printing is all being done to Networked printers and I get the same screen no matter what printer is set to be the default printer.
Sometimes (rarely) the print dialoge box will display normal size, and it will display the page your going to print, but as per above, there is no text on the buttons or drop down boxes. The sample screenshot below took up my entire 1920x1080 screen and is just a small portion of the dialoge box size. I have to scroll around three screen lengths to get to the other side of the dialoge box. There is no verticle scroll bars, so I can't scroll down to the bootom of the dialoge box. Nor are there any window resize options (see last screenshot below)
Here is a closeup shot of the top LH side of the Dialoge box:
Below is a screenshot of the top RH corner (I had to scroll three window lengths to get to it):
The Word and Excel etc. Print Dialoge boxes are all working ok. I have tested different default printers with the Reader Print Dialoge box window and get the same looking screen.
The first thing I tried was to just reboot the Terminal Server (TS). I was supprised to find that I had the same problem. I tried upgrading to 10.1.4 and rebooted the TS. I still have the same problem. I see that someone else has sort of had a similar issue to mine: http://forums.adobe.com/message/4559861 But don't really see a response on how or if it was resolved.
Anyone have an idea of whats going wrong and how to fix this?
Thanks.As mentioned above, every now and then people will see a normal sized dialoge box. Here are two examples:
and:
Regards. -
Runtime Error that Seems to be Related to Dialog Boxes
Although I am currently taking a college course in Java and my code is based on a couple of questions from my Java textbook, I would like to make it perfectly clear that this is NOT homework. This is self-assigned for studying purposes and my professor will probably never see this, let alone grade it. Regardless, I suspect this to be a configuration-related issue as I had no such problems running this program in a Vista machine on campus. Assuming I am right, there shouldn't be any issue with any of this community's policies as I won't need to receive any "answer" code to solve this issue.
In NetBeans, my program compiles and works fine, but produces a couple of runtime errors. Any idea what could be going on here?
Here's my code:
import java.util.Scanner; // Needed for console input.
import javax.swing.JOptionPane; // Needed for dialog boxes.
This program performs the actions requested in questions 2.35 and 2.36 in the textbook.
* @author Dan
public class Pages98To99 {
public static void main(String[]args){
// Asks the user for what answer he/she wants to see.
System.out.println("Do you want to see the answer to 2.35 or 2.36?");
Scanner keyboard = new Scanner(System.in); // Creates a scanner object.
double answer = keyboard.nextDouble();
if (answer == 2.35){
//2.35
JOptionPane.showMessageDialog(null, "Greetings Earthling.");
JOptionPane.showInputDialog("Enter a number.");}
else if (answer == 2.36){
//2.36
String str = JOptionPane.showInputDialog("Please enter your age.");
// Gets age.
int age = Integer.parseInt(str);} /* Converts age from a string to an
integer.*/
else
JOptionPane.showMessageDialog(null, "Go to another program.");
System.exit(0); // Ends the program
}Here are the runtime errors produced by NetBeans:
2010-02-15 21:23:54.659 java[3891] CFLog (0): CFMessagePort: bootstrap_register(): failed 1103 (0x44f), port = 0xf203, name = 'java.ServiceProvider' See /usr/include/servers/bootstrap_defs.h for the error codes. 2010-02-15 21:23:54.660 java[3891] CFLog (99): CFMessagePortCreateLocal(): failed to name Mach port (java.ServiceProvider)The following is a troubleshooting terminal session using both the newer version of JDK courtesy of SoyLatte ( [http://landonf.bikemonkey.org/static/soylatte/|http://landonf.bikemonkey.org/static/soylatte/] ), which fails to produce a dialog box) as well as the older one supplied by Apple as part of my OS (which like in NetBeans works fine otherwise) as well.
Last login: Sat Feb 20 00:12:55 on ttyp1
Welcome to Darwin!
Dans-MacBook:~ Dan$ cd /Volumes/Lexar/NetBeansProjects/MacBook-Made/test/;echo $PATH;java -version;javac -version;javac Pages98To99.java;java Pages98To99;PATH=/sw/bin:/sw/sbin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/X11R6/bin;java -version;javac -version;javac Pages98To99.java;java Pages98To99
/sw/bin:/sw/sbin:/Applications/soylatte16-i386-1.0.3/bin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/X11R6/bin
java version "1.6.0_03-p3"
Java(TM) SE Runtime Environment (build 1.6.0_03-p3-landonf_19_aug_2008_14_55-b00)
Java HotSpot(TM) Server VM (build 1.6.0_03-p3-landonf_19_aug_2008_14_55-b00, mixed mode)
javac 1.6.0_03-p3
Do you want to see the answer to 2.35 or 2.36?
0
Exception in thread "main" java.lang.NoClassDefFoundError: Could not initialize class sun.awt.X11GraphicsEnvironment
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:169)
at java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(GraphicsEnvironment.java:68)
at sun.awt.X11.XToolkit.(XToolkit.java:89)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:169)
at java.awt.Toolkit$2.run(Toolkit.java:836)
at java.security.AccessController.doPrivileged(Native Method)
at java.awt.Toolkit.getDefaultToolkit(Toolkit.java:828)
at sun.swing.SwingUtilities2$AATextInfo.getAATextInfo(SwingUtilities2.java:120)
at javax.swing.plaf.metal.MetalLookAndFeel.initComponentDefaults(MetalLookAndFeel.java:1556)
at javax.swing.plaf.basic.BasicLookAndFeel.getDefaults(BasicLookAndFeel.java:130)
at javax.swing.plaf.metal.MetalLookAndFeel.getDefaults(MetalLookAndFeel.java:1591)
at javax.swing.UIManager.setLookAndFeel(UIManager.java:537)
at javax.swing.UIManager.setLookAndFeel(UIManager.java:577)
at javax.swing.UIManager.initializeDefaultLAF(UIManager.java:1331)
at javax.swing.UIManager.initialize(UIManager.java:1418)
at javax.swing.UIManager.maybeInitialize(UIManager.java:1406)
at javax.swing.UIManager.getDefaults(UIManager.java:656)
at javax.swing.UIManager.getString(UIManager.java:802)
at javax.swing.UIManager.getString(UIManager.java:819)
at javax.swing.JOptionPane.showMessageDialog(JOptionPane.java:592)
at Pages98To99.main(Pages98To99.java:29)
java version "1.5.0_19"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_19-b02-306)
Java HotSpot(TM) Client VM (build 1.5.0_19-138, mixed mode, sharing)
javac 1.5.0_19
javac: no source files
Usage: javac
where possible options include:
-g Generate all debugging info
-g:none Generate no debugging info
-g:{lines,vars,source} Generate only some debugging info
-nowarn Generate no warnings
-verbose Output messages about what the compiler is doing
-deprecation Output source locations where deprecated APIs are used
-classpath Specify where to find user class files
-cp Specify where to find user class files
-sourcepath Specify where to find input source files
-bootclasspath Override location of bootstrap class files
-extdirs Override location of installed extensions
-endorseddirs Override location of endorsed standards path
-d Specify where to place generated class files
-encoding Specify character encoding used by source files
-source Provide source compatibility with specified release
-target Generate class files for specific VM version
-version Version information
-help Print a synopsis of standard options
-X Print a synopsis of nonstandard options
-J Pass directly to the runtime system
Do you want to see the answer to 2.35 or 2.36?
0
2010-02-20 00:16:09.967 java[4618] CFLog (0): CFMessagePort: bootstrap_register(): failed 1103 (0x44f), port = 0xf103, name = 'java.ServiceProvider'
See /usr/include/servers/bootstrap_defs.h for the error codes.
2010-02-20 00:16:09.968 java[4618] CFLog (99): CFMessagePortCreateLocal(): failed to name Mach port (java.ServiceProvider)
Dans-MacBook:/Volumes/Lexar/NetBeansProjects/MacBook-Made/test Dan$ Edited by: Viewer07 on Mar 6, 2010 12:15 AMIn terminal I've been using a JDK from Soylatte. I haven't tampered with the JDK that NetBeans uses.
About NetBeans (from the menubar returns the following):
Product Version: NetBeans IDE 6.8 (Build 200912041610)
Java: 1.5.0_19; Java HotSpot(TM) Client VM 1.5.0_19-138
System: Mac OS X version 10.4.11 running on i386; MacRoman; en_US (nb)
Userdir: /Users/Dan/.netbeans/6.8 -
How do you customise the finder "save as" dialog box?
Hi
I get a lot of email with attachments that I need to work on - word documents and powerpoint slides mainly.
I am still running Snow Leopard and I think Finder is very frustrating. Has it been improved in this aspect in Mountain Lion?
Firstly, if I look at the email and click the "save" box next to the attachment, it immediately puts the attachment in the download folder. I dont want that. I want to be given a dialog box giving me options where to save the file in my heirachy of folders that I have set up by client and project. Sending it to the download folder is a naff default, but I cannot find a way to change this default?
Secondly, if i scroll down to the bottom of the email to see the attached file, and then right click to "save as", I get a dialog that is devoid of all the customisation options I have chosen for the standard finder view. For examply, I cannot get the "path" to be displayed as part of the "save as" dialog box.
This is all pretty fundamental stuff, and Windows have been able to offer much better customisation and default setting in Windows Explorer for years. WHy is OSX so far behind in this aspect?
Is Lion better?
Do I have to fork out an additional $35 for each of my 3 macs to buy "Default Folder" just to get something that should be basic workflow management within the OSX
Am I missing something?Thanks Jeffry
Yes I am using the expanded save dialog.
Thanks for pointing out how to change the default save location away from the downloads folder.
What I really want, though, is for when I press the "save" button next to an attachment in the email, then I want to be given the choice of where to save it, and easy ways of navigating to my recent folders, favourite folders etc. Each file I save will need to go to a folder dependent upon which client it is, so just saving then all by default into "Documents" for example, means that after saving them, I then need to go and move them to the correct location.
How to I get to have a choice if where to save whenever I press the SAVE button -
Awesome3 dialog boxes and pop-ups appearing partly offscreen
Dialog boxes like when opening a specific file in evince (with C-o or file->open) are appearing floating (as they should) but with almost half of the box offscreen. Its irritating to have to move my hand to my mouse every time and move the window into full view as otherwise I use the keyboard exclusively, so I'm wondering if anyone knows how to set a default location on screen for pop-up dialog boxes like this.
Thanks for any help provided.
here is my rc.lua:
-- awesome 3 configuration file
-- Include awesome library, with lots of useful function!
require("awful")
require("tabulous")
require("beautiful")
--extra non-default library
require("wicked")
-- {{{ Variable definitions
-- This is a file path to a theme file which will defines colors.
theme_path = "/home/ojcp/.config/awesome/themes/default"
-- This is used later as the default terminal to run.
terminal = "terminal"
editor = "emacs"
browserName = "Gran Paradiso"
browser = "firefox"
pdfview = "evince"
office = "abiword"
spreadsheet = "Gnumeric"
-- Default modkey.
-- Usually, Mod4 is the key with a logo between Control and Alt.
-- If you do not like this or do not have such a key,
-- I suggest you to remap Mod4 to another key using xmodmap or other tools.
-- However, you can use another modifier like Mod1, but it may interact with others.
modkey = "Mod4"
-- Table of layouts to cover with awful.layout.inc, order matters.
layouts =
"tile",
"tileleft",
"tilebottom",
"tiletop",
"fairh",
"fairv",
"magnifier",
"max",
"spiral",
"dwindle",
"floating"
-- Table of clients that should be set floating. The index may be either
-- the application class or instance. The instance is useful when running
-- a console app in a terminal like (Music on Console)
-- xterm -name mocp -e mocp
floatapps =
-- by class
["MPlayer"] = true,
["pinentry"] = true,
["gimp"] = true,
-- by instance
["mocp"] = true
-- Applications to be moved to a pre-defined tag by class or instance.
-- Use the screen and tags indices.
apptags =
[browserName] = {screen = 1, tag = 2},
[editor] = {screen = 1, tag = 4},
[office] = {screen = 1, tag = 3},
[pdfview] = {screen = 1, tag = 3},
[spreadsheet] = {screen = 1, tag = 3}
-- Define if we want to use titlebar on all applications.
use_titlebar = false
-- {{{ Initialization
-- Initialize theme (colors).
beautiful.init(theme_path)
-- Register theme in awful.
-- This allows to not pass plenty of arguments to each function
-- to inform it about colors we want it to draw.
awful.beautiful.register(beautiful)
-- Uncomment this to activate autotabbing
-- tabulous.autotab_start()
-- {{{ Tags
-- Define tags table.
tags = {}
for s = 1, screen.count() do
-- Each screen has its own tag table.
tags[s] = {}
tagnames = {"chmu","net","doc","emacs", "misc", "float"}
-- Create 9 tags per screen.
for tagnumber = 1, 6 do
if tagnumber < 6 then
tags[s][tagnumber] = tag({ name = tagnames[tagnumber], layout = layouts[1] })
else
tags[s][tagnumber] = tag({ name = tagnames[tagnumber], layout = layouts[11] })
end
-- Add tags to screen one by one
tags[s][tagnumber].screen = s
end
-- I'm sure you want to see at least one tag.
tags[s][1].selected = true
end
-- {{{ Statusbar
-- Create a taglist widget
mytaglist = widget({ type = "taglist", name = "mytaglist" })
mytaglist:mouse_add(mouse({}, 1, function (object, tag) awful.tag.viewonly(tag) end))
mytaglist:mouse_add(mouse({ modkey }, 1, function (object, tag) awful.client.movetotag(tag) end))
mytaglist:mouse_add(mouse({}, 3, function (object, tag) tag.selected = not tag.selected end))
mytaglist:mouse_add(mouse({ modkey }, 3, function (object, tag) awful.client.toggletag(tag) end))
mytaglist:mouse_add(mouse({ }, 4, awful.tag.viewnext))
mytaglist:mouse_add(mouse({ }, 5, awful.tag.viewprev))
mytaglist.label = awful.widget.taglist.label.all
-- Create a tasklist widget
mytasklist = widget({ type = "tasklist", name = "mytasklist" })
mytasklist:mouse_add(mouse({ }, 1, function (object, c) client.focus = c; c:raise() end))
mytasklist:mouse_add(mouse({ }, 4, function () awful.client.focusbyidx(1) end))
mytasklist:mouse_add(mouse({ }, 5, function () awful.client.focusbyidx(-1) end))
mytasklist.label = awful.widget.tasklist.label.currenttags
-- Create a textbox widget
mytextbox = widget({ type = "textbox", name = "mytextbox", align = "right" })
-- Set the default text in textbox
mytextbox.text = "<b><small> awesome " .. AWESOME_VERSION .. " </small></b>"
mypromptbox = widget({ type = "textbox", name = "mypromptbox", align = "left" })
-- Create an iconbox widget
myiconbox = widget({ type = "textbox", name = "myiconbox", align = "left" })
myiconbox.text = "<bg image=\"/usr/share/awesome/icons/awesome16.png\" resize=\"true\"/>"
-- Create a systray
mysystray = widget({ type = "systray", name = "mysystray", align = "right" })
-- Create an iconbox widget which will contains an icon indicating which layout we're using.
-- We need one layoutbox per screen.
mylayoutbox = {}
for s = 1, screen.count() do
mylayoutbox[s] = widget({ type = "textbox", name = "mylayoutbox", align = "right" })
mylayoutbox[s]:mouse_add(mouse({ }, 1, function () awful.layout.inc(layouts, 1) end))
mylayoutbox[s]:mouse_add(mouse({ }, 3, function () awful.layout.inc(layouts, -1) end))
mylayoutbox[s]:mouse_add(mouse({ }, 4, function () awful.layout.inc(layouts, 1) end))
mylayoutbox[s]:mouse_add(mouse({ }, 5, function () awful.layout.inc(layouts, -1) end))
mylayoutbox[s].text = "<bg image=\"/usr/share/awesome/icons/layouts/tilew.png\" resize=\"true\"/>"
end
-- Create battery widget
batterytext = widget({type = "textbox", name = "batterytext", align = "right"})
batterytext.text = " bat: "
mybatterymonitor = widget({type = "progressbar", name = "batterywidget", align = "right" })
mybatterymonitor.width = 50
mybatterymonitor.height = 0.6
mybatterymonitor.border_padding = 1
mybatterymonitor.border_width = 1
mybatterymonitor.ticks_count = 20
mybatterymonitor.ticks_gap = 1
mybatterymonitor.vertical = false
mybatterymonitor:bar_properties_set('bat', {
bg = 'black',
fg = 'blue4',
fg_off = 'black',
reverse = false,
min_value = 0,
max_value = 100
-- Create membar
membartext = widget({ type = "textbox", name = "membartext", align = "right" })
membartext.text = " mem: "
membarwidget = widget({
type = 'progressbar',
name = 'membarwidget',
align = 'right'
membarwidget.width = 50
membarwidget.height = 0.6
membarwidget.border_padding = 1
membarwidget.gap = 5
membarwidget.ticks_count = 20
membarwidget.ticks_gap = 1
membarwidget:bar_properties_set('mem', {
bg = 'black',
fg = '#285577',
fg_center = '#285577',
fg_end = '#285577',
fg_off = 'black',
reverse = false,
min_value = 0,
max_value = 100
wicked.register(membarwidget, wicked.widgets.mem, '$1', 1, 'mem')
-- CPU graph
cputext = widget ({ type = "textbox", name = "cputext", align = "right"})
cputext.text = " cpu: "
cpugraphwidget = widget({
type = 'graph',
name = 'cpugraphwidget',
align = 'right'
cpugraphwidget.height = 0.85
cpugraphwidget.width = 45
cpugraphwidget.bg = 'black'
cpugraphwidget.border_width = 1
cpugraphwidget.grow = 'left'
cpugraphwidget:plot_properties_set('cpu', {
fg = '#AEC6D8',
fg_center = '#285577',
fg_end = '#285577',
vertical_gradient = false
wicked.register(cpugraphwidget, wicked.widgets.cpu, '$1', 1, 'cpu')
-- mpd display
--mpdwidget = widget({
-- type = 'textbox',
-- name = 'mpdwidget',
-- align = 'left'
--wicked.register(mpdwidget, wicked.widgets.mpd,
-- function (widget, args)
-- if args[1]:find("volume:") == nil then
-- return ' <span color="white">Now Playing:</span> '..args[1]
-- else
-- return ''
-- end
-- end)
-- Create a statusbar for each screen and add it
mystatusbar = {}
for s = 1, screen.count() do
mystatusbar[s] = statusbar({ position = "top", name = "mystatusbar" .. s,
fg = beautiful.fg_normal, bg = beautiful.bg_normal })
-- Add widgets to the statusbar - order matters
mystatusbar[s]:widgets({
mytaglist,
--mytasklist,
myiconbox,
mypromptbox,
mytasklist,
--mpdwidget,
cputext,
cpugraphwidget,
membartext,
membarwidget,
batterytext,
mybatterymonitor,
mytextbox,
mylayoutbox[s],
s == 1 and mysystray or nil
mystatusbar[s].screen = s
end
--bottomStatusBar = {}
--for s = 1, screen.count() do
-- bottomStatusBar[s] = statusbar({ position = "bottom", name = "bottomStatusBar" .. s,
-- fg = beautiful.fg_normal, bg = beautiful.bg_normal })
-- -- Add widgets to the statusbar - order matters
-- bottomStatusBar[s]:widgets({
-- --mytaglist,
-- mytasklist,
-- --myiconbox,
-- --mypromptbox,
-- --testbox,
-- --mytextbox,
-- --mylayoutbox[s],
-- --s == 1 and mysystray or nil
-- bottomStatusBar[s].screen = s
--end
-- {{{ Mouse bindings
awesome.mouse_add(mouse({ }, 3, function () awful.spawn(terminal) end))
awesome.mouse_add(mouse({ }, 4, awful.tag.viewnext))
awesome.mouse_add(mouse({ }, 5, awful.tag.viewprev))
-- {{{ Key bindings
-- Bind keyboard digits
-- Compute the maximum number of digit we need, limited to 9
keynumber = 0
for s = 1, screen.count() do
keynumber = math.min(9, math.max(#tags[s], keynumber));
end
for i = 1, keynumber do
keybinding({ modkey }, i,
function ()
local screen = mouse.screen
if tags[screen][i] then
awful.tag.viewonly(tags[screen][i])
end
end):add()
keybinding({ modkey, "Control" }, i,
function ()
local screen = mouse.screen
if tags[screen][i] then
tags[screen][i].selected = not tags[screen][i].selected
end
end):add()
keybinding({ modkey, "Shift" }, i,
function ()
local sel = client.focus
if sel then
if tags[sel.screen][i] then
awful.client.movetotag(tags[sel.screen][i])
end
end
end):add()
keybinding({ modkey, "Control", "Shift" }, i,
function ()
local sel = client.focus
if sel then
if tags[sel.screen][i] then
awful.client.toggletag(tags[sel.screen][i])
end
end
end):add()
end
keybinding({ modkey }, "Left", awful.tag.viewprev):add()
keybinding({ modkey }, "Right", awful.tag.viewnext):add()
keybinding({ modkey }, "Escape", awful.tag.history.restore):add()
-- Standard program
keybinding({ modkey }, "Return", function () awful.spawn(terminal) end):add()
keybinding({ }, "F4", function () awful.spawn(browser) end):add()
keybinding({ modkey, "Control" }, "r", awesome.restart):add()
keybinding({ modkey, "Shift" }, "q", awesome.quit):add()
-- Client manipulation
keybinding({ modkey }, "m", awful.client.maximize):add()
keybinding({ modkey, "Shift" }, "c", function () client.focus:kill() end):add()
keybinding({ modkey }, "d", function () awful.client.focusbyidx(1); client.focus:raise() end):add()
keybinding({ modkey }, "f", function () awful.client.focusbyidx(-1); client.focus:raise() end):add()
keybinding({ modkey, "Shift" }, "d", function () awful.client.swap(1) end):add()
keybinding({ modkey, "Shift" }, "f", function () awful.client.swap(-1) end):add()
keybinding({ modkey, "Control" }, "d", function () awful.screen.focus(1) end):add()
keybinding({ modkey, "Control" }, "f", function () awful.screen.focus(-1) end):add()
keybinding({ modkey, "Control" }, "space", awful.client.togglefloating):add()
keybinding({ modkey, "Control" }, "Return", function () client.focus:swap(awful.client.master()) end):add()
keybinding({ modkey }, "o", awful.client.movetoscreen):add()
keybinding({ modkey }, "Tab", awful.client.focus.history.previous):add()
keybinding({ modkey }, "u", awful.client.urgent.jumpto):add()
keybinding({ modkey, "Shift" }, "r", function () client.focus:redraw() end):add()
-- Layout manipulation
keybinding({ modkey }, "l", function () awful.tag.incmwfact(0.05) end):add()
keybinding({ modkey }, "h", function () awful.tag.incmwfact(-0.05) end):add()
keybinding({ modkey, "Shift" }, "h", function () awful.tag.incnmaster(1) end):add()
keybinding({ modkey, "Shift" }, "l", function () awful.tag.incnmaster(-1) end):add()
keybinding({ modkey, "Control" }, "h", function () awful.tag.incncol(1) end):add()
keybinding({ modkey, "Control" }, "l", function () awful.tag.incncol(-1) end):add()
keybinding({ modkey }, "space", function () awful.layout.inc(layouts, 1) end):add()
keybinding({ modkey, "Shift" }, "space", function () awful.layout.inc(layouts, -1) end):add()
-- Prompt
keybinding({ modkey }, "F1", function ()
awful.prompt.run({ prompt = "Run: " }, mypromptbox, awful.spawn, awful.completion.bash,
os.getenv("HOME") .. "/.cache/awesome/history") end):add()
keybinding({ modkey }, "F4", function ()
awful.prompt.run({ prompt = "Run Lua code: " }, mypromptbox, awful.eval, awful.prompt.bash,
os.getenv("HOME") .. "/.cache/awesome/history_eval") end):add()
keybinding({ modkey, "Ctrl" }, "i", function ()
if mypromptbox.text then
mypromptbox.text = nil
else
mypromptbox.text = nil
if client.focus.class then
mypromptbox.text = "Class: " .. client.focus.class .. " "
end
if client.focus.instance then
mypromptbox.text = mypromptbox.text .. "Instance: ".. client.focus.instance .. " "
end
if client.focus.role then
mypromptbox.text = mypromptbox.text .. "Role: ".. client.focus.role
end
end
end):add()
--- Tabulous, tab manipulation
keybinding({ modkey, "Control" }, "y", function ()
local tabbedview = tabulous.tabindex_get()
local nextclient = awful.client.next(1)
if not tabbedview then
tabbedview = tabulous.tabindex_get(nextclient)
if not tabbedview then
tabbedview = tabulous.tab_create()
tabulous.tab(tabbedview, nextclient)
else
tabulous.tab(tabbedview, client.focus)
end
else
tabulous.tab(tabbedview, nextclient)
end
end):add()
keybinding({ modkey, "Shift" }, "y", tabulous.untab):add()
keybinding({ modkey }, "y", function ()
local tabbedview = tabulous.tabindex_get()
if tabbedview then
local n = tabulous.next(tabbedview)
tabulous.display(tabbedview, n)
end
end):add()
-- Client awful tagging: this is useful to tag some clients and then do stuff like move to tag on them
keybinding({ modkey }, "t", awful.client.togglemarked):add()
keybinding({ modkey, 'Shift' }, "t", function ()
local tabbedview = tabulous.tabindex_get()
local clients = awful.client.getmarked()
if not tabbedview then
tabbedview = tabulous.tab_create(clients[1])
table.remove(clients, 1)
end
for k,c in pairs(clients) do
tabulous.tab(tabbedview, c)
end
end):add()
for i = 1, keynumber do
keybinding({ modkey, "Shift" }, "F" .. i,
function ()
local screen = mouse.screen
if tags[screen][i] then
for k, c in pairs(awful.client.getmarked()) do
awful.client.movetotag(tags[screen][i], c)
end
end
end):add()
end
-- {{{ Hooks
-- Hook function to execute when focusing a client.
function hook_focus(c)
if not awful.client.ismarked(c) then
c.border_color = beautiful.border_focus
end
end
-- Hook function to execute when unfocusing a client.
function hook_unfocus(c)
if not awful.client.ismarked(c) then
c.border_color = beautiful.border_normal
end
end
-- Hook function to execute when marking a client
function hook_marked(c)
c.border_color = beautiful.border_marked
end
-- Hook function to execute when unmarking a client
function hook_unmarked(c)
c.border_color = beautiful.border_focus
end
-- Hook function to execute when the mouse is over a client.
function hook_mouseover(c)
-- Sloppy focus, but disabled for magnifier layout
if awful.layout.get(c.screen) ~= "magnifier" then
client.focus = c
end
end
-- Hook function to execute when a new client appears.
function hook_manage(c)
-- Set floating placement to be smart!
c.floating_placement = "smart"
if use_titlebar then
-- Add a titlebar
awful.titlebar.add(c, { modkey = modkey })
end
-- Add mouse bindings
c:mouse_add(mouse({ }, 1, function (c) client.focus = c; c:raise() end))
c:mouse_add(mouse({ modkey }, 1, function (c) c:mouse_move() end))
c:mouse_add(mouse({ modkey }, 3, function (c) c:mouse_resize() end))
-- New client may not receive focus
-- if they're not focusable, so set border anyway.
c.border_width = beautiful.border_width
c.border_color = beautiful.border_normal
client.focus = c
-- Check if the application should be floating.
local cls = c.class
local inst = c.instance
if floatapps[cls] then
c.floating = floatapps[cls]
elseif floatapps[inst] then
c.floating = floatapps[inst]
end
-- Check application->screen/tag mappings.
local target
if apptags[cls] then
target = apptags[cls]
elseif apptags[inst] then
target = apptags[inst]
end
if target then
c.screen = target.screen
awful.client.movetotag(tags[target.screen][target.tag], c)
end
-- Set the windows at the slave,
-- i.e. put it at the end of others instead of setting it master.
-- awful.client.setslave(c)
-- Honor size hints
c.honorsizehints = true
end
-- Hook function to execute when arranging the screen
-- (tag switch, new client, etc)
function hook_arrange(screen)
local layout = awful.layout.get(screen)
if layout then
mylayoutbox[screen].text =
"<bg image=\"/usr/share/awesome/icons/layouts/" .. awful.layout.get(screen) .. "w.png\" resize=\"true\"/>"
else
mylayoutbox[screen].text = "No layout."
end
-- If no window has focus, give focus to the latest in history
if not client.focus then
local c = awful.client.focus.history.get(screen, 0)
if c then client.focus = c end
end
-- Uncomment if you want mouse warping
local sel = client.focus
if sel then
local c_c = sel:coords()
local m_c = mouse.coords()
if m_c.x < c_c.x or m_c.x >= c_c.x + c_c.width or
m_c.y < c_c.y or m_c.y >= c_c.y + c_c.height then
if table.maxn(m_c.buttons) == 0 then
mouse.coords({ x = c_c.x + 5, y = c_c.y + 5})
end
end
end
end
-- Hook called every second
function hook_timer ()
-- For unix time_t lovers
-- mytextbox.text = " " .. os.time() .. " time_t "
-- Otherwise use:
mytextbox.text = " " .. os.date() .. " "
end
-- Custom functions
local function get_bat()
local a = io.open("/sys/class/power_supply/BAT0/energy_full")
for line in a:lines() do
full = line
end
a:close()
local b = io.open("/sys/class/power_supply/BAT0/energy_now")
for line in b:lines() do
now = line
end
b:close()
batt=math.floor(now*100/full)
mybatterymonitor:bar_data_add("bat",batt)
end
-- Set up some hooks
awful.hooks.focus.register(hook_focus)
awful.hooks.unfocus.register(hook_unfocus)
awful.hooks.marked.register(hook_marked)
awful.hooks.unmarked.register(hook_unmarked)
awful.hooks.manage.register(hook_manage)
awful.hooks.mouseover.register(hook_mouseover)
awful.hooks.arrange.register(hook_arrange)
awful.hooks.timer.register(1, hook_timer)
awful.hooks.timer.register(5, get_bat)
--startup scriptSame problem here. Also happens to me in wmii. I think if the WM puts the window in floating mode without telling it where to appear somethings will appear wrong.
For me it's the Firefox Upload selection box.
It doesn't happen in ratpoison, but you can tell the floating window is getting moved after it spawns. (ratpoison has editable rules for where to put these windows)
Last edited by Procyon (2008-11-07 22:34:40) -
Hi,
I received an email from VH1 today (I do receive periodic emails so they are legit) that keeps running a dialog box of "To view this page, you need to log in to area “” on www.vh1-d.mtvi.com:80." And it asks for a login & password. This dialog box will not go away (I've tried a Force Quit & Restart but as soon as I start Mail it starts all over). This appears to 'freeze up' mail because I can see new mail but I cannot access it as the dialog box continually runs in the preview window. I am running 10.5.6. I also have an older G4 PowerBook that received the same email but I did not have any issues with deleting it or any dialog boxes.
Any ideas or suggestions?
Thank you!
JonI just had the same thing and with the help of my son and husband we were able to open a new mail window, slide the preview window down all the way and then delete the email from vh1. we then restarted the computer and it was gone. Hope this helps
-
Dialog box with default starting location?
Running LV2010. I want to prompt a user to save a file by opening a dialog box. This way the user can select the file and location of the file. Problem is, I want to open the dialog box starting in a default folder that I choose. The LV help for file functions say that if I wire a path to the file (use dialog) input and the file doesn't exist, it will throw an error. Is there a way to get it to open a dialog box that starts in a default folder? Thanks.
Solved!
Go to Solution.File Dialog.vi has a 'start path' input. A dialog box will pop up starting at this path.
CLD -
Crystal Report - Parameter issue (advanced dialog box)
In our wpf .net application we view the crystal report, the report prompts for entering 2 parameter values i.e 2 dates and inturn these parameters will be used to generate the crystal report.
The parameter panel on the left has a button (show advanced dialog box). This button should again invoke the same parameter prompt dialog box, so that the user can modify these parameters and the report can be regenerated.
Issue is that when I click on the the button, this generates a null reference exception in the code. The call stack is -
at CrystalDecisions.Windows.Forms.ParameterFieldInfo.get_isDCP()
at CrystalDecisions.Windows.Forms.InteractiveParameterPanel.ShowAdvancedDialog(ParameterUnit pu)
at CrystalDecisions.Windows.Forms.InteractiveParameterPanel.pu_ShowAdvancedDialog(Object sender, EventArgs e)
at CrystalDecisions.Windows.Forms.ParameterUnit.OnShowAvancedDialog(EventArgs e)
at CrystalDecisions.Windows.Forms.ParameterUnit.editControl_ShowAdvancedDialog(Object sender, EventArgs e)
at CrystalDecisions.Windows.Forms.ParameterValueEditControl.OnShowAdvancedDialog(EventArgs e)
at CrystalDecisions.Windows.Forms.ParameterValueEditControl.btnShowAdvancedDialog_Click(Object sender, EventArgs e)
at System.Windows.Forms.Control.OnClick(EventArgs e)
at System.Windows.Forms.Button.OnClick(EventArgs e)
at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ButtonBase.WndProc(Message& m)
at System.Windows.Forms.Button.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
Please note, I used the .net reflector to debug the crystal report dll , the isDCP method looks like -
public bool isDCP
get
return (this.Attributes.Contains("IsDCP") && ((bool) this.Attributes["IsDCP"]));
Looks like the attributes value is null.
Please let me know your comments. Am I missing something while getting the report in the frontend.
I use crystal reports 2008 sp 2 (also note that my gac contains different version of crystal reports (cannot remove them - tried it) , with windows server 2003. I use web service with proxy to get the report from the local server.
Note I also tried to create sample application in which I specify the local path to reports source , this works. However when I tried to use webservice, i was getting soap exception.
Please let me know how solve above issueSo you found the Report Design forum, if you looked down one more you would have found the SDK forum, SDK stands for Software Development Kit if you did not know.
Or did you not mention you get the same error when you run this report in CR Designer, if so then you were in the right forum.
Try Service Pack 3 also
Move to the SDK forums. -
AppleScript Newbie - Display dialog box when quitting an application
Hello.
I was wondering if it's possible to write a script that displays a dialog box (in this case one saying "BACK UP!!!!") everytime i quit Final Draft.
Thanks.
F.A regular AppleScript does not have the ability to get system notifications, so you would have to do something like have the script continually check (poll) for applications that are running. A Cocoa-AppleScript does have the ability to do Cocoa-y stuff such as register for system notifications, so you can create a new applet (AppleScript Editor > File > New from Template > Cocoa-AppleScript Applet), paste in the following, and save it as an application (uncheck the option to show the startup screen):
property theApps : {"Final Draft"} -- a list of applications to watch for
on run -- example
# add observers for workspace notifications
tell current application's NSWorkspace's sharedWorkspace's notificationCenter
addObserver_selector_name_object_(me, "appQuit:", current application's NSWorkspaceDidTerminateApplicationNotification, missing value)
end tell
-- tell application "Final Draft" to activate
end run
on appQuit_(aNotification) -- an application quit
# aNotification's userInfo record contains an NSRunningApplication instance that we can get properties from
set theApplication to (aNotification's userInfo's NSWorkspaceApplicationKey's localizedName()) as text
if theApplication is in theApps then
tell current application -- me
beep 3
activate -- make sure dialog comes to front
display dialog "BACK UP!!!!" with title "Final Draft quit notice" buttons {"OK"} default button 1
quit
end tell
end if
end appQuit_
When the application is run it will sit there and receive notifications when other applications quit, and checks to see if it was the application you want.
Maybe you are looking for
-
Direct Print a webi report, from InfoView
Hi, I want to direct print a webi report after I open it with InfoView, but i don't know if it's possible. Right now, when I open a webi report in InfoView I have a button saying "Print to PDF", which will open that report as a PDF document. But I wa
-
How do I move the policy from Default domain policy to a custom policy.
I want to implement a new password policy. In the past we had a fairly loose policy, now I want to implement minimum length and complexity. I know how to set this up in Computer Config Policies windows settings security settings and account policie
-
How/where can I get an operating system disk for 2007mid iMac that I installed new hard drive on
I installed a new hard drive in my iMac 2007mid .Adventurous.. I am told I need the operating system now. I am behind a few upgrades due to needing the new hard drive.. suggestions please?
-
Open item management is not activated
Hi Consultant, I want to activate the open item management in GL. We have done correct setting another GL account. The amount should be transferred from old GL to new GL. The old GL become zero balances. We will try to activate the open item mana
-
Any problems using 6' usb to micro usb cable for programming Apple TV
Tried using configurator to program Apple TV with 6' USB to Micro USB and it would not connect. Will connect with 3' cable. Any info?