[fluxbox]turning decorations off for certain instances of a program
Hi, I would like to have some instances of aterm placed on my desktop without any decorations. I would probably fire those up through ~/.xinitrc. But after that I want every new aterm instance to have the decor of fluxbox. And to make things even more difficult: I have set aterm to be grouped together by fluxbox but I want the aterm-instances with decor not to be grouped together with those instances without the decor.
Anyone still with me? :>
I am thinking the easiest way would be to run a little script in ~/.xinitrc that turn the decors off, fires up some aterm instances using the "-name" option (so that those aterms won't be grouped together with the aterms started later on) and to have the script turn the decor back on then.
First of all: does anyone have a better, more elegant idea?
And then I guess I could use some help with the script, cuz I don't really know how to have a bash-script check a text file for a certain pattern (across three lines), to change the existing pattern or write it if it doesn't exist and then to either change the pattern again or deleting these three lines out of a textfile (not touching the other lines in the same textfile).
Hope someone can help me. :>
A huge thx in advance
Lol, I am a retard. :>
Alright, I knew about the apps file and the deco option I guess my actual question was to ask for help for that script (I wanted that script to edit ~/.fluxbox/apps for me sothat aterm would be generally decorless, then fire up some aterms and then change the apps-file back to what it was before).
But what was I thinking, I totally don't need such a script. Here's how I do that now: I start those aterm instances I want to be displayed without decor with aterm's "-name superdupername"-option and put "superdupername" (well actually I call it 'aterm-root' ) into the apps file to have that generally without decor.
It's as easy as that. I dunno why I wanted to make it so complicated with a script in the beginning.
Anyhow, thanks for everyone who read it and iphitus for the nice response!
Similar Messages
-
Can you turn Faces off for specific Projects?
I do photography just for myself normally, and for my pictures I like to use Faces. However, I've also done some photography for groups. I don't want Faces to try and tag these people, because I don't even know them! Is there a way to turn Faces off for certain projects, but not turn it off totally?
I have a similer thing since I use aperture for my work and for personal things. I use seperate libraries. Create a seperate library from the file menue. (File->switch library->other/new) make one for work (no faces) and one for personal (faces enabled) It's not as simple as setting it on or off for each project but it does work for me.
-
Unable to turn cellular off for podcast app
In looking at an overusage of cellular data, I've decided to turn off cellular data for almost all apps. When I turn cellular data off for Podcast app, leave cellular settings menu, and go back in, cellular data for Podcast is back on. Even if I go into the Podcast settings screen, and turn data off, it immediatley goes back on. Why can't I get Podcast app to stop using cellular? I've restarted the phone. I don't even use Podcast app, but now it seems that I can't delete it from my phone either. Help! iPhone 5s, version 8.1
so now I've done everything from resetting settings, resetting network settings, turning wifi off, turning phone in and off, messing with cellular data and background app refresh as well as notifications.
trying to use an app that has no cellular data while wifi is
off does not force the app to show up under Settings > Cellular Data.
it appears as though a lot of people are having this problem and sometimes the above mentioned things work and sometimes they don't. It looks like having Cellular Data turned off for
certain apps during an iO
God **** it now I have to write things in the Notes app and copy/paste them here because it's randomly not inputting my text and when I start typing it says "GGo" instead of Go, double typing the first letter. Why the **** doesn't Apple have a mobile app/setup of this?
Anyway it looks like if you have Cellular Data turned off for an app and do an iOS update it causes this bug. Sometimes the things above work, sometimes not. This is insanely frustrating. -
So the left side of my iPhone isn't working at all and I even tried turning it off for 5 minutes about 10 million times but nothing is working. Any suggestions on what to do I need help like ASAP!?
Have you performed a reset? Tap and hold the Home button and the On/Off button for approximately 10-15 seconds, until the Apple logo appears. Release both buttons and await restart.
-
My new 4th generation iPod touch won't let me view my pictures.. It lets me get into the app but when I try to look at an album it crashes. I've tried resetting and turning it off for a while and nothing has worked. What do I do?
- Try restoring the iPod from backup
- Next restore to factory defaults/new iPod. -
I've been sent a scan of a document as an attachment. Clicking on it, I get the message, "Pixel aspect ration correction is for preview purposes only. Turn it off for maximum image quality." What is pixel aspect ration and how do I turn it off?
It's "aspect ratio", not aspect "ration".
It's what determines whether you have square pixels ("normal") or, if rectangular pixels, what the aspect ratio (width : length) of that rectangle is.
It's explained in the Help files. I cannot go into more detail because you have neglected to provide information about your platform and exact version of Photoshop.
Example in next post -
Turn logging off for a roll off job
Hi Everyone,
We are running into an issue in one of our bw production systems. Once a week we run a chain that deletes data that is past our required retention period. The infoproviders we are doing the data roll off on are quite large. Most contain two years worth of transactional data. We have been running into issues with this process because the transaction log keeps filling and the job gets rolled back. In sm21 the errors are as follows:
Database error -964 requires intervention by the database administrator
Database error -964 at UPD access to table BTCCTL
> SQL0964C The transaction log for the database is full.
> SQLSTATE=57011 row=1
Perform rollback
I am wondering if there is a way to turn logging off for this particular job. We do not require the logging. I realize the rollback cannot occur without the logs, but we don't need the rollback to happen, because we want the data deleted.
Any suggestions?
Thanks
CharlaHi Charla,
I don't think turn logging off is the best way to resolve this problem. I'd suggest you contact your DBA/BASIS for the root cause of this issue. They will correct it with the most professional way
Generally once we see SQL error or DB error we just ask for their help.
Regards,
Frank -
My Ipad turned itself off for no reason and I can't turn it on. Not even when I'm charging it. What can I do??
iPad: Not responding or does not turn on
-
All my contacts use iPhones but one doesn't use iMessage because it uses data. I want to use iMessage for other contacts but i have to turn off for just one contact. Can I turn iMessage off for just one contact?
You need to delete here conversation and start another one using her phone number and not her Apple ID. You cannot delete iMessage, you can disable it. If the Apple server still sees her iPod with iMessage on and using her Apple ID, then it will continue to appear to your phone that she has iMessage. She needs to take a look at this support document about permanently disabling iMessage for her account. Can’t receive text messages on a non-Apple phone
-
Turn Autocommit off for JDBC Connection
I'd like to control the commit for DBMS_XMLSave operations on my own instead of auto commit. The documentation says to "Turn Autocommit off for JDBC Connection", but I haven't found how to do that yet, any clues?
My apologies for how complicated this is, it was written to be a
generic xml processor for multiple tables. I narrowed it to one
table. It converts a long to clob, parses it, walks the dom to
find rows and processes each row. One InsertXML per row in the
XML.
CREATE OR REPLACE package whl_rtl_xml_pkg as
--Context definitions by table
HUDLINE_CTX_IND char(1) := 'N';
HUDLINE_Ctx DBMS_XMLSave.ctxType := null;
procedure accept_xml (in_long in long, out_sts out char, out_msg
out varchar2);
procedure updt_hudline(in_row_node in xmldom.DOMNode, in_clob
clob, out_sts out char, out_msg out varchar2);
procedure set_context(in_table_name in varchar2, out_sts out
char, out_msg out varchar2);
end whl_rtl_xml_pkg;
CREATE OR REPLACE package body whl_rtl_xml_pkg as
procedure accept_xml (in_long in long, out_sts out char, out_msg
out varchar2) is
begin
declare
-- Long to CLOB and Parse XML variables
v_in_clob clob; -- Entire long converted to clob
v_clob clob; -- One row written to clob from DOM
doc xmldom.domdocument; -- Parsed XML Document
v_long_lnth NUMBER;
v_nbr INTEGER := 500;
bbuf varchar2(500);
p xmlparser.parser;
retval xmldom.domdocument;
--LOANLOCK information
lock_list xmldom.DOMNodeList;
lock_node xmldom.DOMNODE;
lock_loan_nbr WHL_LOAN_TB.LOAN_NBR%TYPE;
lock_rcd_updt_ts WHL_LOAN_TB.RCD_UPDT_TS%TYPE;
lock_rcd_updt_user_id WHL_LOAN_TB.RCD_UPDT_USER_ID%TYPE;
V_RETURN char(2);
-- Rowset Info
rowset_nl xmldom.DOMNodeList;
rowset_len number;
rowset_node xmldom.DOMNode;
rowset_table varchar2(30);
-- Row Info
row_nl xmldom.DOMNodeList;
row_len number;
row_node xmldom.DOMNode;
-- General
v_table_name char(30);
v_time char(10);
v_ret_sts char(2);
v_ret_msg VARCHAR2(200);
function selected_nodes (in_xpath varchar2)
return xmldom.domnodelist is
retval xmldom.domnodelist;
begin
retval := xslprocessor.selectnodes (xmldom.makenode
(doc),in_xpath);
RETURN retval;
end selected_nodes;
begin
--Connection.setAutoCommit(false);
v_long_lnth := length(in_long); -- Determine length of XML Input
-- Create Clob and convert long to CLOB
dbms_lob.createtemporary(v_in_clob,TRUE);
dbms_lob.createtemporary(v_clob,TRUE);
dbms_lob.write(v_in_clob,v_long_lnth,1,in_long);
-- Parse Clob, create DOM
p := xmlparser.newParser;
xmlparser.parseCLOB(p,v_in_clob);
doc := xmlparser.getDocument(p);
-- Loop through ROWSETS
rowset_nl := selected_nodes('/ROOT/ROWSET'); -- Find rowset
nodes
rowset_len := xmldom.getLength(rowset_nl);
for rs in 0..rowset_len-1 loop
rowset_node := xmldom.item(rowset_nl,rs);
rowset_table := xslprocessor.valueof
(rowset_node,'TABLE_NAME'); -- Determine which table the rowset
is for
-- set up context for this table
set_context(rtrim(rowset_table), v_ret_sts, v_ret_msg);
IF V_RET_STS != '00' THEN -- Update failed for row
OUT_STS := '01';
OUT_MSG:= 'WHL_RTL_TEMPLATE_SP ERROR from:'||rtrim
(v_ret_msg);
RETURN;
END IF;
-- Loop through Row Nodes to process individual rows
row_nl := xslprocessor.selectnodes (rowset_node,'ROW');
row_len := xmldom.getLength(row_nl);
for i in 0..row_len-1 loop
row_node := xmldom.item(row_nl,i);
xmldom.writeToClob(row_node, v_clob);
-- DBMS_LOB.READ (v_clob, v_nbr, 1, Bbuf);
-- dbms_output.put_line(substr(bbuf,1,200));
-- Find elements of "ROW" -->Column Names needed for key
processing
-- call function to process row for the table
-- pulls column names needed and update row in database
as required
if rowset_table = 'WHL_HUDLINE_TB' then
updt_hudline(row_node, v_clob, v_ret_sts, v_ret_msg);
IF V_RET_STS != '00' THEN -- Update failed for
row
OUT_STS := '01';
OUT_MSG:= 'WHL_RTL_TEMPLATE_SP ERROR from:'||rtrim
(v_ret_msg);
RETURN;
END IF;
end if;
end loop;
end loop;
-- Clean up
dbms_lob.FREETEMPORARY (v_in_clob);
dbms_lob.FREETEMPORARY (v_clob);
out_sts := '00';
out_msg := 'WHL_RTL_XML_PKG.ACCEPT_XML Finished without errors';
exception
when others then
out_sts := '99';
out_msg := 'WHL_RTL_XML_PKG uncaught error:'|| SQLERRM;
end;
end accept_xml;
procedure updt_hudline(in_row_node in xmldom.DOMNode, in_clob
clob, out_sts out char, out_msg out varchar2) is
begin
declare
V_LOAN_NBR WHL_LOAN_TB.LOAN_NBR%TYPE;
V_HUDLINE_NBR WHL_HUDLINE_TB.HUDLINE_NBR%TYPE;
V_KEY_EXISTS NUMBER;
v_rows_updt number;
v_nbr number;
v_msg varchar2(200);
begin
v_loan_nbr := xslprocessor.valueof(in_row_node,'LOAN_NBR');
v_hudline_nbr := xslprocessor.valueof
(in_row_node,'HUDLINE_NBR');
select count(*) into v_key_exists from whl_hudline_tb
where loan_nbr = v_loan_nbr
and hudline_nbr = v_hudline_nbr;
if v_key_exists > 0 then
v_rows_updt := DBMS_XMLSave.updateXML
(hudline_Ctx,in_clob);
else
v_rows_updt := DBMS_XMLSave.insertXML
(hudline_Ctx,in_clob);
END IF;
if v_rows_updt = 0 then -- Error no rows were inserted
or updated
out_sts := '01';
out_msg := 'UPDT_HUDLINE - insert/update did not
update any rows for:'||V_LOAN_NBR||':'||
V_HUDLINE_NBR||':'||V_KEY_EXISTS;
else
out_sts := '00';
end if;
exception
when others then
-- get the original exception
DBMS_XMLQuery.getExceptionContent(HUDLINE_Ctx,v_nbr,
v_msg);
dbms_output.put_line('updt_hudline Exception caught ' ||
TO_CHAR(v_nbr)
|| out_msg );
out_sts := '99';
out_msg := 'updt_hudline:'||v_msg;
end;
end updt_hudline;
procedure set_context(in_table_name in varchar2, out_sts out
char, out_msg out varchar2) is
begin
declare
v_nbr number;
v_msg varchar2(200);
begin
if in_table_name = 'WHL_HUDLINE_TB' then
if HUDLINE_CTX_IND = 'N' THEN -- Context has not been created
for the table
HUDLINE_Ctx := DBMS_XMLSave.newContext('WHL_HUDLINE_TB');
DBMS_XMLSave.clearUpdateColumnList(HUDLINE_Ctx); -- To
test
DBMS_XMLSave.clearKeyColumnList(HUDLINE_Ctx);
DBMS_XMLSave.setKeyColumn(HUDLINE_Ctx,'LOAN_NBR');
DBMS_XMLSave.setKeyColumn(HUDLINE_Ctx,'HUDLINE_NBR');
DBMS_XMLSave.setCommitBatch(HUDLINE_Ctx, 0);
HUDLINE_CTX_IND := 'Y';
END IF;
END IF;
out_sts := '00';
exception
when others then
-- get the original exception
DBMS_XMLQuery.getExceptionContent(HUDLINE_Ctx,v_nbr,
v_msg);
dbms_output.put_line('set_context Exception caught ' ||
TO_CHAR(v_nbr)
|| out_msg );
out_sts := '99';
out_msg := 'set_context error:'||v_msg;
end;
end set_context;
end whl_rtl_xml_pkg;
procedure kim_test as
begin
declare
in_long long := '<ROOT>
<ROWSET>
<TABLE_NAME>WHL_HUDLINE_TB</TABLE_NAME>
<ROW num="3">
<LOAN_NBR>6000012</LOAN_NBR>
<HUDLINE_NBR>104.3</HUDLINE_NBR>
<HUDLINE_AMT>700</HUDLINE_AMT>
<HUDLINE_PYMNT_MTHD_CD>A</HUDLINE_PYMNT_MTHD_CD>
<HUDLINE_COMMENT_TXT>THIS IS A
COMMENT</HUDLINE_COMMENT_TXT>
</ROW>
<ROW num="4">
<LOAN_NBR>6000012</LOAN_NBR>
<HUDLINE_NBR>104.4</HUDLINE_NBR>
<HUDLINE_AMT>700</HUDLINE_AMT>
<HUDLINE_PYMNT_MTHD_CD>A</HUDLINE_PYMNT_MTHD_CD>
<HUDLINE_COMMENT_TXT>THIS IS A
COMMENT</HUDLINE_COMMENT_TXT>
</ROWSET>
</ROOT>';
out_err_sts char(2);
out_err_msg varchar2(200);
begin
WHL_rtl_xml_pkg.accept_xml (in_long, out_err_sts, out_err_msg);
dbms_output.put_line(out_err_msg);
end;
end;
Output from running it
SQL> edit
Wrote file afiedt.buf
1 delete from whl_hudline_tb
2* where loan_nbr = '6606665'
SQL> /
2 rows deleted.
SQL> commit;
Commit complete.
SQL> set serveroutput on
SQL> execute kim_test
WHL_RTL_XML_PKG.ACCEPT_XML Finished without errors
PL/SQL procedure successfully completed.
SQL> select loan_nbr, hudline_nbr, hudline_amt
2 from whl_hudline_tb
3 where loan_nbr = '6606665';
LOAN_NB HUDLIN HUDLINE_AMT
6606665 104.3 700
6606665 104.4 700
SQL> rollback;
Rollback complete.
SQL> select loan_nbr, hudline_nbr, hudline_amt
2 from whl_hudline_tb
3 where loan_nbr = '6606665';
LOAN_NB HUDLIN HUDLINE_AMT
6606665 104.3 700
6606665 104.4 700 -
my iphone just turn it off for on reason, when i turn it on after 2or3 min it just shutdown by it self, and even when i charge my ipjone it works, but once i take off the charge then it shut down by it self again
Hello there, queen168.
The following Knowledge Base article provides some good steps for troubleshooting your particular issue:
iPhone: Hardware troubleshooting
http://support.apple.com/kb/ts2802
Particularly:
Will not turn on, will not turn on unless connected to power, or unexpected power off
Verify that the Sleep/Wake button functions. If it does not function, inspect it for signs of damage. If the button is damaged or is not functioning when pressed, seek service.
Check if a Liquid Contact Indicator (LCI) is activated or there are signs of corrosion. Learn about LCIsand corrosion.
Connect the iPhone to the iPhone's USB power adapter and let it charge for at least ten minutes.
After at least 30 minutes, if:
The home screen appears: The iPhone should be working. Update to the latest version of iOS if necessary. Continue charging it until it is completely charged and you see this battery icon in the upper-right corner of the screen . Then unplug the phone from power. If it immediately turns off, seek service.
The low-battery image appears, even after the phone has charged for at least 20 minutes: See "iPhone displays the low-battery image and is unresponsive" symptom in this article.
Something other than the Home screen or Low Battery image appears, continue with this article for further troubleshooting steps.
If the iPhone did not turn on, reset it while connected to the iPhone USB power adapter.
If the display turns on, go to step 4.
If the display remains black, go to next step.
Connect the iPhone to a computer and open iTunes. If iTunes recognizes the iPhone and indicates that it is in recovery mode, attempt to restore the iPhone. If the iPhone doesn't appear in iTunes or if you have difficulties in restoring the iPhone, see this article for further assistance.
If restoring the iPhone resolved the issue, go to step 4. If restoring the iPhone did not solve the issue, seek service.
Thanks for reaching out to Apple Support Communities.
Cheers,
Pedro. -
Mac Mail Conversations - Can you turn it off for a Specific Email address?
In Mac Mail 6.2, is there a way to leave "Conversations" ON as a default, but turn it off in regards to a certain email address?
Example:
I resell printing and have multiple receipts coming from one supplier(One Email address and the same Subject Line). My problem is it is grouping those receipts into the same conversation, but each of these should be seperate because they are for more than one customer.
Any help would be great. ThanksNot exactly, but the following workaround might be useful to you:
* Create a new mail folder (either in an IMAP account or in "On My Mac").
* Set that set conversations off for that mail folder.
* Create a mail rule to move messages from your problem supplier to that folder.
Downside: You have to remember to check that other folder.
If it is important to you that the messages be available in the unified Inbox, you might be able to do something similar with a separate mail account. -
Turning servers off for two weeks (Safe?)
The air conditioning unit in our server room has broken down. The room is very small with 4 servers in it and there is no other way to ventilate the room to let the heat out. Currently we have
the door open, but this will need to be shut for next 2 weeks for security reasons.
The site is not in use for the next two weeks, is there any issue with turning the server off for two weeks?
I know in the past there was a risk of hard drive seizing up, is this still the case? All of the hard drives are SAS drives and the oldest server is around 6-7 years old.
I would appreciate some input.If the servers are not needed, then powering them down seems a reasonable option.
Risks concerning hard drives seizing up disappeared several generations of disk drives back.... or maybe we just quit turning off computers and it just doesn't happen anymore.
On the other hand, it's unlikely that four servers are going to generate enough heat to be an issue. Today's servers are actually pretty heat tolerant in terms of ambient room temperature, and while you might not want to run a bunch of 'em in a 90F
room permanently, a couple of weeks may be quite tolerable.
One approach might be to put a thermometer in the room, close the door for a couple hours, then come back and check the temperature and compare it to the documented/supported ambient room temperature for each server.
In the end, it seems like it's just a comparison of two risk factors:
The risk of the machine not starting up vs the risk of the machine overheating due to ambient temperature.
Which risk seems more certain? :-)
Then again... your question was posted over two weeks ago, so maybe the real question is what you actually did do, and how it worked out.
Lawrence Garvin, M.S., MCSA, MCITP:EA, MCDBA
SolarWinds Head Geek
Microsoft MVP - Software Packaging, Deployment & Servicing (2005-2014)
My MVP Profile: http://mvp.microsoft.com/en-us/mvp/Lawrence%20R%20Garvin-32101
http://www.solarwinds.com/gotmicrosoft
The views expressed on this post are mine and do not necessarily reflect the views of SolarWinds. -
Nano problems after not turning it off for 24 hours
I forgetten to turn off my nano and put in in pause mode and hold it for overnight. When i realised what happened in the moring, i couldnt turn it off and it just froze. I reset my nano by pressing the menu button and select button and it finally turned off. I tried to turn it on again but could not. I thought that it had no more battery, so i went to charge it. but when i tried to charge it, still, nothing appears on the screen and I cannot turn it on too. Help anyone?
try a reset hold the menu and middle button for 10
sec or until the apple logo comes up.
i tried that many times but nothng seems to work.. i even tried to update my ipod but it said that it has some error and thats all. it even closed the programme and didnt even solve the problem.. -
Cannot reconnect iphone 3G to itunes after turning it off for 2 hours
i turned my iphone 3G off for 2 hours and when i turned it back on it was telling me to connect to itunes. i have done this and the phone will not reactivate itself rendering it useless. how do i get my phone to work again?? please! thanks.
Have you put your phone into DFU mode and tried to restore?
Maybe you are looking for
-
How to MODIFY A CUSTOM TABLE FROM A FLAT FILE
Dear Friends, I have a requirement where i have to upload data from excel file to my custom table so i have used a FM 'TEXT_CONVERT_XLS_TO_SAP' and i have collected data into a internal table , till here i am able to get data correc
-
I moved my itunes library to external drive and now itunes wont work.
I moved my itunes library to an external drive and now itunes cannot find the library. I followed a youtube video and all seemed to work fine until i deleted the old library and emptied the trash. Prior to deleting and emptying the trash I checked pr
-
Is it possible to use more than one value in SUPPRESSCHARACTER option
Hi, Is it possible to Suppress more than one value uisng SUPPRESSCHARACTER option in transformation file? if yes, any syntax? I have 'Z' and '1000' that i wish to suppress from the values being loaded. Any thoughts ? Thanks.
-
Problem exporting RAW files from Photos
Previously when using iphoto when exporting images I was given the option of exporting the orrigional RAW image as well as the edited now jpg. With Photos I am ot given this option and can only export the edited jpg and can not even find the master f
-
Framework for parallel processing
Hello, Can anyone help me by giving some links or examples as to how to use the framework for parallel processing ?? (FPP) My scenario is that I have a report that handles huge volumes of data and process it. But at present my report is not able to h