First space on each monitor gets merged together on external monitor disconnect
I work on two displays and noticed that spaces act strangely when my external display gets disconnected. My setup might look something like:
Laptop:
Space 1 | Space 2
External Monitor:
Space 3 | Space 4 | Space 5
What I would expect when disconnecting my monitor is that Space 3 - 5 just move to the laptop. However, I have noticed that what actually happens is that the first Space on the external monitor gets merged into the first Space on the laptop:
Space 1 + 3 | Space 2 | Space 4 | Space 5
I've worked around this by keeping the first Space on my external monitor empty so that I don't experience any merging when disconnecting.
Has anyone else noticed this? Is this the desired effect or is there a more effective workaround?
Thanks,
Patrick
Re-check your connections again. Did you plug in the +12v cable to your Radeon yet?
All the Best... :D!!!
Similar Messages
-
Creating view to get first row for each table !!
I am having tables(more than 10) which are related using foreign key and primary key relationship.
Example:
Table1:
T1Prim T1Col1 T1Col2
Table2
T2For T2Prim T2Col1 T2Col2 T2Col3
(here T2For will have value same as T1Prim and in my design it has same column name i.e. T1Prim)
Table3
T3For T3Prim T3Col1 T3Col2 T3Col3
(here T3For will have value same as T2Prim)
and so on.
The data in the tables is like For table1 there will be one record, for table2 there will be one record and for table 3 there are more than one records.
Can i view either the first record for each of them or all records from each of them by writing the following view.
I have written a view like this:
Create or replace view test (T1Prim,T1Col1, T1Col2,T2Prim,T2Col1 T2Col2, T2Col3, T3Prim,T3Col1, T3Col2, T3Col3)
As
Select
Table1.T1Prim,
Table1.T1Col1,
Table1.T1Col2,
Table2.T2Prim,
Table2.T2Col1,
Table2.T2Col2,
Table2.T2Col3,
Table3.T3Prim,
Table3.T3Col1,
Table3.T3Col2,
Table3.T3Col3
From
Table1,
Table2,
Table3
where
Table1.Prim = Table2.For
and Table2.Prim = Table3.For
When i ran the select statement on the view I am not getting any data. Whereas there is data when select is ran on individual table.
Can someone please tell me where i am goofing.
Thanks in the anticipation that i will get some hint to solve this.
Eagerly waiting for reply.
Thanks !!I mean use a collection :
Collection Methods
A collection method is a built-in function or procedure that operates on collections and is called using dot notation. The methods EXISTS, COUNT, LIMIT, FIRST, LAST, PRIOR, NEXT, EXTEND, TRIM, and DELETE help generalize code, make collections easier to use, and make your applications easier to maintain.
EXISTS, COUNT, LIMIT, FIRST, LAST, PRIOR, and NEXT are functions, which appear as part of an expression. EXTEND, TRIM, and DELETE are procedures, which appear as a statement. EXISTS, PRIOR, NEXT, TRIM, EXTEND, and DELETE take integer parameters. EXISTS, PRIOR, NEXT, and DELETE can also take VARCHAR2 parameters for associative arrays with string keys. EXTEND and TRIM cannot be used with index-by tables.
For more information, see "Using Collection Methods".
Syntax
Text description of the illustration collection_method_call.gif
Keyword and Parameter Description
collection_name
This identifies an index-by table, nested table, or varray previously declared within the current scope.
COUNT
COUNT returns the number of elements that a collection currently contains, which is useful because the current size of a collection is not always known. You can use COUNT wherever an integer expression is allowed.
For varrays, COUNT always equals LAST. For nested tables, normally, COUNT equals LAST. But, if you delete elements from the middle of a nested table, COUNT is smaller than LAST.
DELETE
This procedure has three forms. DELETE removes all elements from a collection. DELETE(n) removes the nth element from an index-by table or nested table. If n is null, DELETE(n) does nothing. DELETE(m,n) removes all elements in the range m..n from an index-by table or nested table. If m is larger than n or if m or n is null, DELETE(m,n) does nothing.
EXISTS
EXISTS(n) returns TRUE if the nth element in a collection exists. Otherwise, EXISTS(n) returns FALSE. Mainly, you use EXISTS with DELETE to maintain sparse nested tables. You can also use EXISTS to avoid raising an exception when you reference a nonexistent element. When passed an out-of-range subscript, EXISTS returns FALSE instead of raising SUBSCRIPT_OUTSIDE_LIMIT.
EXTEND
This procedure has three forms. EXTEND appends one null element to a collection. EXTEND(n) appends n null elements to a collection. EXTEND(n,i) appends n copies of the ith element to a collection. EXTEND operates on the internal size of a collection. So, if EXTEND encounters deleted elements, it includes them in its tally. You cannot use EXTEND with index-by tables.
FIRST, LAST
FIRST and LAST return the first and last (smallest and largest) subscript values in a collection. The subscript values are usually integers, but can also be strings for associative arrays. If the collection is empty, FIRST and LAST return NULL. If the collection contains only one element, FIRST and LAST return the same subscript value.
For varrays, FIRST always returns 1 and LAST always equals COUNT. For nested tables, normally, LAST equals COUNT. But, if you delete elements from the middle of a nested table, LAST is larger than COUNT.
index
This is an expression that must yield (or convert implicitly to) an integer in most cases, or a string for an associative array declared with string keys.
LIMIT
For nested tables, which have no maximum size, LIMIT returns NULL. For varrays, LIMIT returns the maximum number of elements that a varray can contain (which you must specify in its type definition).
NEXT, PRIOR
PRIOR(n) returns the subscript that precedes index n in a collection. NEXT(n) returns the subscript that succeeds index n. If n has no predecessor, PRIOR(n) returns NULL. Likewise, if n has no successor, NEXT(n) returns NULL.
TRIM
This procedure has two forms. TRIM removes one element from the end of a collection. TRIM(n) removes n elements from the end of a collection. If n is greater than COUNT, TRIM(n) raises SUBSCRIPT_BEYOND_COUNT. You cannot use TRIM with index-by tables.
TRIM operates on the internal size of a collection. So, if TRIM encounters deleted elements, it includes them in its tally.
Usage Notes
You cannot use collection methods in a SQL statement. If you try, you get a compilation error.
Only EXISTS can be applied to atomically null collections. If you apply another method to such collections, PL/SQL raises COLLECTION_IS_NULL.
You can use PRIOR or NEXT to traverse collections indexed by any series of subscripts. For example, you can use PRIOR or NEXT to traverse a nested table from which some elements have been deleted.
EXTEND operates on the internal size of a collection, which includes deleted elements. You cannot use EXTEND to initialize an atomically null collection. Also, if you impose the NOT NULL constraint on a TABLE or VARRAY type, you cannot apply the first two forms of EXTEND to collections of that type.
If an element to be deleted does not exist, DELETE simply skips it; no exception is raised. Varrays are dense, so you cannot delete their individual elements.
PL/SQL keeps placeholders for deleted elements. So, you can replace a deleted element simply by assigning it a new value. However, PL/SQL does not keep placeholders for trimmed elements.
The amount of memory allocated to a nested table can increase or decrease dynamically. As you delete elements, memory is freed page by page. If you delete the entire table, all the memory is freed.
In general, do not depend on the interaction between TRIM and DELETE. It is better to treat nested tables like fixed-size arrays and use only DELETE, or to treat them like stacks and use only TRIM and EXTEND.
Within a subprogram, a collection parameter assumes the properties of the argument bound to it. So, you can apply methods FIRST, LAST, COUNT, and so on to such parameters. For varray parameters, the value of LIMIT is always derived from the parameter type definition, regardless of the parameter mode.
Examples
In the following example, you use NEXT to traverse a nested table from which some elements have been deleted:
i := courses.FIRST; -- get subscript of first element
WHILE i IS NOT NULL LOOP
-- do something with courses(i)
i := courses.NEXT(i); -- get subscript of next element
END LOOP;
In the following example, PL/SQL executes the assignment statement only if element i exists:
IF courses.EXISTS(i) THEN
courses(i) := new_course;
END IF;
The next example shows that you can use FIRST and LAST to specify the lower and upper bounds of a loop range provided each element in that range exists:
FOR i IN courses.FIRST..courses.LAST LOOP ...
In the following example, you delete elements 2 through 5 from a nested table:
courses.DELETE(2, 5);
In the final example, you use LIMIT to determine if you can add 20 more elements to varray projects:
IF (projects.COUNT + 20) < projects.LIMIT THEN
-- add 20 more elements
Related Topics
Collections, Functions, Procedures
http://download-west.oracle.com/docs/cd/B10501_01/appdev.920/a96624/13_elems7.htm#33054
Joel P�rez -
In Mountain Lion, I considered myself a fairly expert user of Pages. Since "upgrading" to Mavericks, I can't get even basic things to work anymore. My current problem is that the headers and footers are only showing up on the first page of each section. A related annoyance is that if I copy the information in a header or footer, all the associated formatting disappears when I paste it. But the first problem is the one that matters — headers and footers that only show up on one page sort of negate the whole point of headers and footers.
If you click the link I posted previously, it takes you right to the Pages community.
Here > Pages: iWork: Apple Support Communities
Then click New. -
How to get the date for the first monday of each month
Dear Members,
How to get the date for the first monday of each month.
I have written the following code
SELECT decode (to_char(trunc(sysdate+30 ,'MM'),'DAY'),'MONDAY ',trunc(sysdate+30 ,'MM'),NEXT_DAY(trunc(sysdate+30 ,'MM'), 'MON')) FROM DUAL
But it look bith complex.
Abhishek
Edited by: 9999999 on Mar 8, 2013 4:30 AMUse IW format - it will make solution NLS independent. And all you need is truncate 7<sup>th</sup> day of each month using IW:
select sysdate current_date,
trunc(trunc(sysdate,'mm') + 6,'iw') first_monday_the_month
from dual
CURRENT_D FIRST_MON
08-MAR-13 04-MAR-13
SQL> Below is list of first monday of the month for this year:
with t as(
select add_months(date '2013-1-1',level-1) dt
from dual
connect by level <= 12
select dt first_of_the_month,
trunc(dt + 6,'iw') first_monday_the_month
from t
FIRST_OF_ FIRST_MON
01-JAN-13 07-JAN-13
01-FEB-13 04-FEB-13
01-MAR-13 04-MAR-13
01-APR-13 01-APR-13
01-MAY-13 06-MAY-13
01-JUN-13 03-JUN-13
01-JUL-13 01-JUL-13
01-AUG-13 05-AUG-13
01-SEP-13 02-SEP-13
01-OCT-13 07-OCT-13
01-NOV-13 04-NOV-13
FIRST_OF_ FIRST_MON
01-DEC-13 02-DEC-13
12 rows selected.
SQL> SY. -
Getting the first row for each group
Hi Everyone,
I have a query which returns a number of rows, all of which are valid. What I need to do is to get the first row for each group and work with those records.
For example ...
client flight startairport destairport stops
A fl123 LGW BKK 2
A fl124 LHR BKK 5
B fl432 LGW XYZ 7
B fl432 MAN ABC 8
.... etc.
I would need to return one row for Client A and one row for Client B (etc.) but find that I can't use the MIN function because it would return the MIN value for each column (i.e. mix up the rows). I also can use the rownum=1 because this would only return one row rather than one row per group (i.e. per client).
I have been investigating and most postings seem to say that it needs a second query to look up the first row for each grouping. This is a solution which would not really be practical because my query is already quite complex and incorporating duplicate subqueries would just make the whole thing much to cumbersome.
So what I really new is a "MIN by group" or a "TOP by group" or a "ROWNUM=1 by group" function.
Can anyone help me with this? I'm sure that there must be a command to handle this.
Regards and any thanks,
Alan Searle
Cologne, GermanySomething like this:
select *
from (
select table1.*
row_number() over (partition by col1, col2 order by col3, col4) rn
from table1
where rn = 1In the "partition by" clause you place what you normally would "group by".
In the "order by" clause you define which will have row_number = 1.
Edit:
PS. The [url http://download.oracle.com/docs/cd/E11882_01/server.112/e17118/functions004.htm#i81407]docs have more examples on using analytical functions ;-)
Edited by: Kim Berg Hansen on Sep 16, 2011 10:46 AM -
Get the string until first space
hi,
can anyone provide an example how to get the string until the first space?
i mean if the value is :
this is an example
how to get only the word "this" (before the very first space) by select?
thanks in advance,There are several methods to achieve this:
SELECT SUBSTR(t.col1, 1, INSTR(t.col1 || ' ', ' ') - 1)
FROM (SELECT 'this is an example' col1
FROM dual) t
; or in 10g using regular expressions:
SELECT REGEXP_SUBSTR(t.col1, '^[^ ]+')
FROM (SELECT 'this is an example' col1
FROM dual) t
; C. -
Script to get the first word on each page
Is there a script that would make a list of the first word of each page (or, preferably, create a text box on each page and place the next page's word in that)? My document's all in one story with one text frame on each page, although there are several other frames (header, page number) applied through master pages.
You wrote: I changed the numbers to "8.0425in", "4.5681in", "8.1275in", "5.4319in" and it mostly worked - it placed the box at exactly 5 inches (X) and at 8.085 inches (Y) instead of 4.5681 inches. Any idea why?
No. I cannot reproduce the error you describe. I assume you've checked your numbers very closely in the script--I don't normally indicate measurements as strings.
you wrote: Something wasn't working with the styling - it kept freezing the program -
What do you mean by "freezing the program"? Is there a specific error message?
The paragraph style is named "firstword" and is all lowercase letters?
firstword paragraph style is NOT in a paragraph style group, right?
Is the first word on any page too long when formatted with the paragraph style "firstword" to fit in the text frame? -
How do i stop each song getting up under seperate album covers?
hello, I want to load all my mp3s (about 500) onto my itunes, but everytime i do this, each song comes up under individual album covers, how can I put all the songs under just one album cover or no album at all? i dont want to have 500 different albums i have to scroll through everyday! thanks!
*HowTo: Grouping Tracks Into Albums*
Excuse the long post, but hopefully covering all the bases (that I can think of) will help you fix the other issues you are likely to run into as you try to organise your iTunes library.
*Use an album friendly view*
iTunes will let you sort music on many columns, some of which are unlikely to group albums together or put the tracks in their normal order. The most useful order for editing the library is probably *Album by Artist*. If you're not already there, select the list view and click on the column heading for Artist until it reads Album by Artist.
*One cover, too many tracks*
The iPod (and iTunes to a lesser extent) conflates two or more albums with the same title, most obviously with *Greatest Hits*. On the iPod this can result in one album acting as a combination of two or more. Selecting any cover gives all the tracks of all albums with the same title. The workaround for this "Greatest Hits" bug is to give each album a unique title - I tend to go for *Album - Album Artist* as this reads clearly in the iTunes browser. Alternatively you could use the wording as it appears on the cover or append different numbers of spaces for each different album. Somewhat oddly, setting different values for Sort Album doesn't work.
*Missing artist or album not with others by same artist*
iTunes relies on the Gracenote CDDB database when identifying CD's. This often marks collections or anthologies of an artist's work as a compilation. In iTunes, however, the compilation flag has the logical function of grouping together tracks with the same album name, but different artists on each track, e.g. "Now That's What I Call Metal 666!". These compilations are then all grouped together at the end of cover flow. Most of us however, would expect "Greatest Hits" albums to be listed with the other albums by the same album artist. For albums which are essentially by a single album artist or group it is best to set the appropriate value for the album artist and clear the compilation flag.
*One album, too many covers*
For true compilations, where each track is by a different artist, the answer is to set the compilation flag to true and enable the iTunes preference to *Group compilations when browsing*. If the album is not a compilation however, any tracks which list guest artists may be treated as separate items. Filling in the Album Artist field is enough to link things in iTunes. Sadly, however, the iPod ignores the Album Artist field when grouping albums so this is only a partial solution. You can simply mark the entire album as a compilation which seems to be the way iTMS handles it, however that's not an ideal fix. Short of waiting for Apple to address this issue (and as far as I can tell it goes back to the 1st gen. of iPods) we need a workaround. What I do is to put any additional artist info. in square brackets after the song name. E.g. *Track \[Feat. Guest\]* and then set *Artist=Album Artist* for each track. For anthologies where the Album Artist is credited as part of another group, e.g. for Cream tracks on an Eric Clapton anthology, I use *Track \[As Group\]*. For a track where the main Album Artist doesn't receive a credit, e.g. the first track of the Slim Shady LP credited to Jeff Bass, I just set the track name to *Track \[Guest\]* while still setting the artist to the album artist. N.b. I use square brackets to indicate that this is information about the track as distinct from the song title and also use this style for Mix/Live/Bonus info.
*One album, still too many covers*
iTunes may split albums into two or more sections if some tracks from the album have different values for Artist, Album Artist, Album, No. of Discs or Part of a Compilation. Tiny differences such as trailing spaces, accented characters or variants of symbols can sometimes be quite hard to spot. The iPod is also more sensitive to case variations and may split or reorder an album that looks okay in iTunes. Normally overtyping the desired value for each shared field will complete the grouping of the album into one entity. Occasionally, however, this method seems to fail. When this happens I've found that you can force every field to update properly by adding some extra text - e.g. a trailing X, which once applied seems to complete the joining of the tracks into one album. Once this has happened the extra data can be removed and the album should remain properly grouped.
*Tried that, there are STILL too many covers!*
The Sort Artist, Sort Album & Sort Album Artist fields can be used to override the normal sort order. For example iTunes automatically drops leading articles (a/an/the) so "The Beatles" are arranged under "B" instead of "T". Occasionally different tracks from the same album can have different values in these sort fields which can also break up the grouping. Making the sort columns visible in iTunes can help with spotting & correcting such problems.
*One cover for multi-disc album*
Multi-disc albums are often listed as *Album (CD1)* for CD 1, *Album (CD2)* for CD 2 etc. To display these properly using just one cover, each disc should have the correct *Disc X of Y* values set, and then the entire album should be given the single title Album. Being somewhat obsessive I also renumber the tracks sequentially, working backwards from the last track (so that no two tracks ever have the same number) until I reach disc 1. BTW You can still give the individual discs different artwork should it be relevant so that the correct artwork will be displayed as the album progresses.
*One artist, many names*
With some artists, particularly classical composers, you should be aware of alternative representations of their names. E.g. 2Pac vs. Tupac. The menus will work best if for each artist you standardise on just one form of their name. E.g. make a choice between Mozart, W.A. Mozart or Wolfgang Amadeus Mozart, and then apply it consistently. For classical music I tend also to use the Composer as the Artist & Album Artist and either discard the performer details or place these into the Comments field.
tt2 -
It happens randomly. The spaces between each letter are huge. It happens on websites that you print and also in your email (webmail).
Lets say you printing an email, then it will print and all the characters are jumbled up, then when you click reply on the same email and press print, then it print fine. It just the first time I have seen this and only since we updated to Firefox 7.
Thank you'''bold text'''(1) Firefox's built-in post-crash page has not been a real HTML page for a long time (for example, from the time of Firefox 22, see: [https://support.mozilla.org/en-US/questions/968212 Want to save LOTS of versions of "Restore Session.xht" from the "oops ..." page for later use]). If you had this working differently with Firefox 25, that might have been created by an extension.
You can check to see whether extensions are disabled or need an update on the Add-ons page. Either:
* Ctrl+Shift+a
* orange Firefox button (or Tools menu) > Add-ons
In the left column, click Extensions. The disabled extensions cluster toward the bottom of the list. To poll for updates, use the "gear" button above the list and choose Check for Updates.
If you used the Reset feature (or Firefox automatically did a reset due to some problem during upgrading), you will need to reinstall missing extensions. The reset feature creates a folder on the desktop named Old Firefox Data. Do you have that folder? There may be data you can recover from it.
(2) There are many ways for history to get cleared, both internal to Firefox and external. Could you double-check your Privacy settings?
orange Firefox button (or Tools menu) > Options > Privacy
* The "Firefox will" drop-down says Remember History: Firefox shouldn't be clearing history, but an add-on or external software could do it
* The "Firefox will" drop-down says Use custom settings for history: inspect the "Clear history when Firefox closes" setting to make Firefox isn't set to clear history. Also check your add-ons and consider external software.
Firefox normally accumulates months of history. However, some of Firefox's database sizes are based on disk space available. If your hard drive is very full, Firefox might reduce the amount of history stored. -
SVN Tab Complete issues (space after each complete)
Morning all,
I've got a weird issue with my SVN tab complete using Bash, it adds a space after each item it completes - for example: Say there is a directory 'foobar' with a file 'zomg' within that, I'd type 'svn add fo' and then hit tab - however, this results in 'svn add foobar ' (note the space). This is highly annoying, as I can no longer hit 'z' then tab to complete it to 'foobar/zomg', I have to remove the space, then go again (it does it for everything, so adding something like 'foobar/zomg/wtf/bbq' is a nightmare.)
So far it only does it with Bash, I've not been able to test it on other shells. Subversion 1.4.6-4 on an up-to-date Arch install with core, extra and community repos enabled (however it has done it from the very start of me using Arch, so it's not a recent update that killed it).
Regards,
Last edited by AlexC_ (2008-09-20 16:13:48)Hi AlexC_ :-)
I suspect that it may be an issue with /etc/bash_completion. This is the relevant part from my /etc/bash_completion.
# svn completion
have svn &&
_svn()
local cur prev commands options command
COMPREPLY=()
cur=${COMP_WORDS[COMP_CWORD]}
commands='add blame praise annotate ann cat checkout co cleanup commit \
ci copy cp delete del remove rm diff di export help ? h import \
info list ls lock log merge mkdir move mv rename ren \
propdel pdel pd propedit pedit pe propget pget pg \
proplist plist pl propset pset ps resolved revert \
status stat st switch sw unlock update up'
if [[ $COMP_CWORD -eq 1 ]] ; then
if [[ "$cur" == -* ]]; then
COMPREPLY=( $( compgen -W '--version' -- $cur ) )
else
COMPREPLY=( $( compgen -W "$commands" -- $cur ) )
fi
else
prev=${COMP_WORDS[COMP_CWORD-1]}
case $prev in
--config-dir)
_filedir -d
return 0;
-@(F|-file|-targets))
_filedir
return 0;
--encoding)
COMPREPLY=( $( compgen -W \
'$( iconv --list | sed -e "s@//@@;" )' \
-- "$cur" ) )
return 0;
--@(editor|diff|diff3)-cmd)
COMP_WORDS=(COMP_WORDS[0] $cur)
COMP_CWORD=1
_command
return 0;
esac
command=${COMP_WORDS[1]}
if [[ "$cur" == -* ]]; then
# possible options for the command
case $command in
add)
options='--auto-props --no-auto-props \
--force --targets --no-ignore \
--non-recursive -N -q --quiet'
@(blame|annotate|ann|praise))
options='-r --revisions --username \
--password --no-auth-cache \
--non-interactive -v \
--verbose --incremental --xml'
cat)
options='-r --revision --username \
--password --no-auth-cache \
--non-interactive'
@(checkout|co))
options='-r --revision -q --quiet -N \
--non-recursive --username \
--password --no-auth-cache \
--non-interactive \
--ignore-externals'
cleanup)
options='--diff3-cmd'
@(commit|ci))
options='-m --message -F --file \
--encoding --force-log -q \
--quiet --non-recursive -N \
--targets --editor-cmd \
--username --password \
--no-auth-cache \
--non-interactive --no-unlock'
@(copy|cp))
options='-m --message -F --file \
--encoding --force-log -r \
--revision -q --quiet \
--editor-cmd -username \
--password --no-auth-cache \
--non-interactive'
@(delete|del|remove|rm))
options='--force -m --message -F \
--file --encoding --force-log \
-q --quiet --targets \
--editor-cmd -username \
--password --no-auth-cache \
--non-interactive'
@(diff|di))
options='-r --revision -x --extensions \
--diff-cmd --no-diff-deleted \
-N --non-recursive --username \
--password --no-auth-cache \
--non-interactive --force \
--old --new --notice-ancestry'
export)
options='-r --revision -q --quiet \
--username --password \
--no-auth-cache \
--non-interactive -N \
--non-recursive --force \
--native-eol --ignore-externals'
import)
options='--auto-props --no-auto-props \
-m --message -F --file \
--encoding --force-log -q \
--quiet --non-recursive \
--no-ignore --editor-cmd \
--username --password \
--no-auth-cache \
--non-interactive'
info)
options='--username --password \
--no-auth-cache \
--non-interactive -r \
--revision --xml --targets \
-R --recursive --incremental'
@(list|ls))
options='-r --revision -v --verbose -R \
--recursive --username \
--password --no-auth-cache \
--non-interactive \
--incremental --xml'
lock)
options='-m --message -F --file \
--encoding --force-log \
--targets --force --username \
--password --no-auth-cache \
--non-interactive'
log)
options='-r --revision -v --verbose \
--targets --username \
--password --no-auth-cache \
--non-interactive \
--stop-on-copy --incremental \
--xml -q --quiet --limit'
merge)
options='-r --revision -N \
--non-recursive -q --quiet \
--force --dry-run --diff3-cmd \
--username --password \
--no-auth-cache \
--non-interactive \
--ignore-ancestry'
mkdir)
options='-m --message -F --file \
--encoding --force-log -q \
--quiet --editor-cmd \
--username --password \
--no-auth-cache \
--non-interactive'
@(move|mv|rename|ren))
options='-m --message -F --file \
--encoding --force-log -r \
--revision -q --quiet \
--force --editor-cmd \
--username --password \
--no-auth-cache \
--non-interactive'
@(propdel|pdel|pd))
options='-q --quiet -R --recursive -r \
--revision --revprop \
--username --password \
--no-auth-cache \
--non-interactive'
@(propedit|pedit|pe))
options='-r --revision --revprop \
--encoding --editor-cmd \
--username --password \
--no-auth-cache \
--non-interactive --force'
@(propget|pget|pg))
options='-R --recursive -r --revision \
--revprop --strict --username \
--password --no-auth-cache \
--non-interactive'
@(proplist|plist|pl))
options='-v --verbose -R --recursive \
-r --revision --revprop -q \
--quiet --username --password \
--no-auth-cache \
--non-interactive'
@(propset|pset|ps))
options='-F --file -q --quiet \
--targets -R --recursive \
--revprop --encoding \
--username --password \
--no-auth-cache \
--non-interactive -r \
--revision --force'
resolved)
options='--targets -R --recursive -q \
--quiet'
revert)
options='--targets -R --recursive -q \
--quiet'
@(status|stat|st))
options='-u --show-updates -v \
--verbose -N --non-recursive \
-q --quiet --username \
--password --no-auth-cache \
--non-interactive --no-ignore \
--ignore-externals \
--incremental --xml'
@(switch|sw))
options='--relocate -r --revision -N \
--non-recursive -q --quiet \
--username --password \
--no-auth-cache \
--non-interactive --diff3-cmd'
unlock)
options='--targets --force --username \
--password --no-auth-cache \
--non-interactive'
@(update|up))
options='-r --revision -N \
--non-recursive -q --quiet \
--username --password \
--no-auth-cache \
--non-interactive \
--diff3-cmd --ignore-externals'
esac
options="$options --help -h --config-dir"
COMPREPLY=( $( compgen -W "$options" -- $cur ) )
else
if [[ "$command" == @(help|h|\?) ]]; then
COMPREPLY=( $( compgen -W "$commands" -- $cur ) )
else
_filedir
fi
fi
fi
return 0
complete -F _svn $default svn
_svnadmin()
local cur prev commands options mode
COMPREPLY=()
cur=${COMP_WORDS[COMP_CWORD]}
commands='create deltify dump help ? hotcopy list-dblogs \
list-unused-dblogs load lslocks lstxns recover rmlocks \
rmtxns setlog verify'
if [[ $COMP_CWORD -eq 1 ]] ; then
if [[ "$cur" == -* ]]; then
COMPREPLY=( $( compgen -W '--version' -- $cur ) )
else
COMPREPLY=( $( compgen -W "$commands" -- $cur ) )
fi
else
prev=${COMP_WORDS[COMP_CWORD-1]}
case $prev in
--config-dir)
_filedir -d
return 0;
--fs-type)
COMPREPLY=( $( compgen -W 'fsfs bdb' -- $cur ) )
return 0;
esac
command=${COMP_WORDS[1]}
if [[ "$cur" == -* ]]; then
# possible options for the command
case $command in
create)
options='--bdb-txn-nosync \
--bdb-log-keep --config-dir \
--fs-type'
deltify)
options='-r --revision -q --quiet'
dump)
options='-r --revision --incremental \
-q --quiet --deltas'
hotcopy)
options='--clean-logs'
load)
options='--ignore-uuid --force-uuid \
--parent-dir -q --quiet \
--use-pre-commit-hook \
--use-post-commit-hook'
rmtxns)
options='-q --quiet'
setlog)
options='-r --revision --bypass-hooks'
esac
options="$options --help -h"
COMPREPLY=( $( compgen -W "$options" -- $cur ) )
else
if [[ "$command" == @(help|h|\?) ]]; then
COMPREPLY=( $( compgen -W "$commands" -- $cur ) )
else
_filedir
fi
fi
fi
return 0
complete -F _svnadmin $default svnadmin
_svnlook()
local cur prev commands options mode
COMPREPLY=()
cur=${COMP_WORDS[COMP_CWORD]}
commands='author cat changed date diff dirs-changed help ? h history \
info lock log propget pget pg proplist plist pl tree uuid \
youngest'
if [[ $COMP_CWORD -eq 1 ]] ; then
if [[ "$cur" == -* ]]; then
COMPREPLY=( $( compgen -W '--version' -- $cur ) )
else
COMPREPLY=( $( compgen -W "$commands" -- $cur ) )
fi
else
command=${COMP_WORDS[1]}
if [[ "$cur" == -* ]]; then
# possible options for the command
case $command in
@(author|cat|date|dirs-changed|info|log))
options='-r --revision -t \
--transaction'
changed)
options='-r --revision -t \
--transaction --copy-info'
diff)
options='-r --revision -t \
--transaction \
--no-diff-deleted \
--no-diff-added \
--diff-copy-from'
history)
options='-r --revision --show-ids'
prop@(get|list))
options='-r --revision -t \
--transaction --revprop'
tree)
options='-r --revision -t \
--transaction --show-ids \
--full-paths'
esac
options="$options --help -h"
COMPREPLY=( $( compgen -W "$options" -- $cur ) )
else
if [[ "$command" == @(help|h|\?) ]]; then
COMPREPLY=( $( compgen -W "$commands" -- $cur ) )
else
_filedir
fi
fi
fi
return 0
complete -F _svnlook $default svnlook
Hope this helps.
Last edited by alanhaggai (2008-09-21 02:08:12) -
Merging together two different VSANs
Hi all.
I need to migrate an actual fabric based on Cisco 9124 and 9134, to a brand new Cisco Director 9506. Actually I have two fabric (fabric 1 and 2) which are not currently merging together. VSAN are not in use in the actual scenario.
I would like to move to a VSAN topology. In order to proceed with migration from actual fabric, my idea would be to create two separate VSANs on the 9506 (VSAN 10 and VSAN20). Then I could merge fabric 1 with VSAN 10 and fabric2 witrh VSAN20. Unfortunately I can't use IVR, then the idea would be to disable trunking on ISLs so I could migrate zones to new directors but maintaining the separation between fabric 1 and 2 (from actual physical separation to new logical one). I am aware merging different VSANs is discouraged, but it is documented by Cisco ("In some cases, you may need to merge traffic from different port VSANs across a non-trunking ISL. If so, disable the trunking protocol. "). Idea would be maintain the ISL for the time required to migrate all the gears (servers and disk arrays) to the new directors. My question then: have you got any experiences or suggestions ? Could I proceed with this unusual merge hoping not encounter any outages ? Many thanks !Let me get this straight, today you have 2 physical switches each is a separate fabric, they do not talk to eachother. You are moving to a single 9506 director. The current switches do not use VSAN's, but you are asking if you can create VSAN 10 and 20 on the director.
Yes, this is fine. You should create VSAN 10 and 20 on the director. Connect fabric 1 to VSAN 10. You should use an E-port and disable trunking protocol like you suggested. You can do the same with fabric 2 and VSAN 20. Then copy over all the zones and move the stuff over one port at a time if you like.
There is no issue with what you are discussing. Keep in mind normal fabric "rules" apply, such as timers matching, and other parameters to avoid an isolation. Good luck!
Brian -
Need to 5 spaces before each paragraph and 5 lines between paragraphs
Hello,
I need to write a program to insert 5 spaces (indent) before each 1st line of the paragraph and 5 spaces between each paragraph....I am new to java so I don't understand everything I write and I try and use what is out of the book...so far have done well until this assignment. My program below does create a new history.d2 file but it is blank....anyone have any input to offer or can you help me understand where I am going wrong in the program....thank you kindly.
I am playing with the program now just to see if I can find my error but of course don't fully understand the function of every line so having trouble finding my error.....at the end of my program is the file of what I am trying to edit into the new file history.d2.
import java.io.*; //import class we need in order to read from a file
import java.util.Scanner; //import class we need in order to read from a file
public class History //class History
public static Scanner inFile;
public static PrintWriter outFile;
public static void main(String[] args) //main method
throws IOException //a pre-defined Java exception - if file history.d1 not found, throws IOException error
String inputString;
// int index;
Scanner inFile= new Scanner(new FileReader("history.d1")); //it opens history.d1
PrintWriter outFile= new PrintWriter(new FileWriter("history.d2")); //instantiates an output file with the name "history.d2"
while (inFile.hasNextLine())
inputString=inFile.nextLine();
// index=inputString.indexOf(' ');
// while (index != -1)
if (inputString.length()!= 1)
outFile.println(" ");
else if (inputString.length() == 1)
System.out.println();
System.out.println();
System.out.println();
System.out.println();
System.out.println();
outFile.close();
inFile.close();
history.d1 file:
The Abacus (which appeared in the sixteenth century) was the
first calculator. In the middle of the seventeenth century
Blaise Pascal, a French mathematician, built and sold gear-
driven mechanical machines which performed whole number
addition and subtraction. (Yes, the language Pascal is named
for him.)
Later in the seventeenth century a German mathematician
Gottfried Wilhelm von Leibniz built the first mechanical
device designed to do all four whole number operations:
addition, subtraction, multiplication and division. The
state of mechanical gears and levers at that time was such
that the Leibniz machine was not very reliable.
It wasn't until the nineteenth century that the next major
step was taken, this time by a British mathematician.
Charles Babbage designed what he called his analytical
engine. His design was too complex for him to build with the
technology of his day, so his design was never implemented.
His vision, however, included the important components of
today's computers. His design was the first to include a
memory so that intermediate values did not have to be re-
entered. His design also included the input of both numbers
and mechanical steps on a type of punched card developed in
the late eighteenth century by Joseph Jacquard to be used
with a mechanical loom.
Ada Agusta, Countess of Lovelace, was a most romantic figure
in the history of computing. Ada, the daughter of Lord Byron
(the English poet), was herself quite a mathematician. She
became interested in Babbage's work on the analytical engine
and extended his ideas (and corrected some of his errors).
Ada is credited with being the first programmer. The concept
of the loop--a series of instructions that repeat--is
attributed to her. Ada, the language used by the Department
of Defense, is named for her.
During the later part of the nineteenth century and the
beginning of the twentieth century advances were made
rapidly. William Seward Burroughs produced and sold a
mechanical adding machine (that worked!). Dr. Herman
Hollerith developed the first electro-mechanical tabulator
which used a punched card. Data was represented by holes
punched on the card in certain positions. Descendants of
this card are still in use today. Dr. Hollerith formed a
company that is known today as IBM.
In 1936 a theoretical development took place that had nothing
to do with hardware per se but profoundly influenced the
field of Computer Science. Alan M. Turing, another British
mathematician, invented an abstract mathematical model called
a Turing machine, laying the foundation for a major area of
computing theory.. The most prestigious award given in
Computer Science (equivalent to the Fielding Medal in
Mathematics or a Nobel Prize in other sciences) is the Turing
Award, named for Alan Turing. A current Broadway play deals
with his life. Analysis of the capabilities of Turing
machines is a part of the theoretical studies of all Computer
Science students.
By the outbreak of World War II, several computers were under
design and construction. The Harvard Mark I and the ENIAC
are two of the more famous machines of the era. John von
Neumann (an American mathematician this time) who had been a
consultant on the ENIAC project started work on another
machine known as EDVAC which was completed in 1950. In 1951
the first commercial computer, UNIVAC I, was delivered to the
Bureau of the Census.
Von Neumann is credited with the development of two very
important concepts. The first is that the instructions that
operate the machine should be stored in the machine along
with the data to be operated on. The second is that data
(and instructions) should be represented in the binary number
system rather than the decimal number system.
The general organization of a computer has remained constant
over the last 40 years. This organization or architecture is based
on the ideas of von Neumann and bears his name. The
essence of this architecture is sequentiality. That is,
instructions (a program) are stored in sequential memory
locations in binary form and are executed in sequence, one
after the other.Each paragraph is terminated in your text file by a newline character. So effectively what scanner.readLine() is doing is reading a paragraph of text.
1. Read paragraph into String (readLine())
2. Print or prefix 5 spaces to String.
3. Print 5x newline character
Mel -
hi
i have sorted the internal table by field f1 and i need to insert the first row for each f1 entry.
I tried AT NEW f1. But that doesnt seem to work.
Kindlly help.
Thanks.*--ENSURE THAT age IS FIRST FIELD IN INTERNAL TABLE it_gir while declaring it.....
SORT it_gir BY age ASCENDING.
LOOP AT it_gir INTO wa_gir.
AT NEW age.
<b>*--if there are fields which are getting populated with **** instead of original values....then use below statement...</b>
read table it_gir index sy-tabix.
MOVE-CORRESPONDING wa_gir TO wa_final1.
APPEND wa_final1 TO it_final1.
clear wa_final1.
ENDAT.
ENDLOOP.
now it should definitely work.....
if not check in debugging mode if data exists or not....!!!
Regards
Vasu -
Read the first word of each line in a text file
i need to read the first word of each line of a text file.
i know of line.split() but not actually sure how i would go about using it
Any help most appreciated
Many Thanks
BenHi thanks for the reply!
this is what i tried... and it still doesn't get me the first word of each line!
import java.awt.*;
import javax.swing.*;
import java.awt.event.*;
import java.awt.Color;
import java.awt.event.ActionEvent;
import java.io.*;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import javax.swing.text.*;
import javax.swing.event.*;
import java.util.Calendar;
import java.util.Scanner;
import java.util.Vector;
import java.text.SimpleDateFormat;
import java.net.InetAddress;
import java.net.UnknownHostException;
import java.io.BufferedReader;
public class testing {
Vector progs=new Vector();
Vector rand=new Vector();
String[] tmp = new String [2];
String str;
String str2="ewerwer";
String str3;
public void programTest()
try
BufferedReader in = new BufferedReader(new FileReader("progList.log"));
while ((str = in.readLine()) != null)
progs.add(str);
catch(IOException e)
System.out.println("cannot read file");
//////THE ISSUES IS HERE....I WANT TO GET THE FIRST WORD FROM EACH LINE OF THE FILE!!!
try
BufferedReader in2 = new BufferedReader(new FileReader("eventLog.log"));
while ((str = in2.readLine()) != null)
tmp = str.split(" ");
System.out.println(tmp[0]);
catch(IOException e)
System.out.println("cannot read file");
public static void main(String[] args)
testing B = new testing();
B.programTest();
// B.fileToVector();
//B.LoginWindow();
//B.anomDetect();
}//end class -
Toolbars in the report view take a lot of the screen space as each button takes a line
I created a report which looks fine in the BIDs but as soon as I upload it to the Report server and open it with the IE the toolbars take much of the screen space as each button (Export, Refresh and save) take a line. how can I change the configuration so
that all buttons will appear in one line (or will not appear at all)?
I'm sure it is something to configure in the server side as in whichever IE I open the report, from different computers, I always get it the sameHi,
I would ask the following questions to verify the issue:
1. Does the issue happen on all the reports?
2. Does the issue persist if you open it in the other web browsers?
2. What’s the version of your Reporting Service and Internet Explorer?
Please post the image of the issue, so we can understand the problem in more details.
You can use &rc:Toolbar=false parameter to hide the toolbar in the Report Server.
The following articles are helpful:
URL Access (SSRS)
http://msdn.microsoft.com/en-us/library/ms152835.aspx
SSRS Remove Menu in Web-Page
http://social.msdn.microsoft.com/Forums/sqlserver/en-US/a6f2899b-a8bb-41a2-880c-0b302907161c/ssrs-remove-menu-in-webpage
Thanks.
Tracy Cai
TechNet Community Support
Maybe you are looking for
-
firefox crashes on opening within seconds. this started suddenly a few weeks ago and despite several daily attempts, i still can't load firefox application. it crashes immediately upon startup every time no matter what and crash reporter arrives. i h
-
Performance problem for mass transactions after upgrade from 4.7 to ECC6.0
Hi All, After upgrade from 4.7 to ECC 6.0 (IS-U), mass transactions such as FPY1, FPVA, FP04M are taking very long time to complete. for example, before upgrade the jobs sceduled for FPVA transaction take around 5k-6k seconds. Whereas after upgrade t
-
Idoc data definitions- TPSDL01,SHPMNT03,TPSSHT01
My translator allows me to import idoc standards. My customer is not sure how to export the data definitions from SAP. Are the above IDOC data type definitions available on the web? Sample definition: BEGIN_RECORD_SECTION BEGIN_CONTROL_RECORD
-
Moving pics from a pc to mac - keeps locking up
I recently made the jump to Mac from a pc. I have about 10,000 photos ~ 22 GB and I have them stored on a external HD, firewire. About 8,000 of the photos are in one folder b/c I used adobe photoshop album to store and sort them. It worked great unti
-
Value Blank/space is invalid for account assignment element fund
Hello! I created an invoice with several items linked to funds reservation. when the invoice has 2 line items, the payment run is executed without problem. when the invoice has more than 3 line items, the payment run is executed with error. The messa