What tool can I use to displays a picture of a desgin with transparency right over my website?
I need to check that my design fits, pixel by pixel, to the wishes of the designer.
Hi,
I want to automatically change the color of my xterm titlebar.
I would like to put code into my .bashrc so that the color changes
automatically (say depending on the directory I am in).
I know how to change the prompt and also how to change the text displayed
in the titlebar. My question is about the color of the titlebar. Right
now the color is orangish. I am using Ubuntu.
Thanks
Right now I have both type of tests but when I say "mvn test" it only executes TestNG tests and not Junit. I want to execute both one after another. Any Idea ?
I have a list of numbers I am reading left to right. Anytime I encounter a sign change when reading the sequence I want to count it.
X = [-3,2,7,-4,1,-1,1,6,-1,0,-2,1]
X = [-, +, +, -, +, -, +, +, -, -,-,+]
So, in this list there are 8 sign changes.
When Item [0] (in this case -3) is negative it is considered a sign change. Also, any 0 in the list is considered [-].
Any help would be greatly appreciated.
How would I be able to set the position of a UIBarButtonItem? Like, I would like to set it to be on either the very right of a UIToolbar or the very left depending on a state.
Thank you.
I am trying to implement something that is similar to a faceted search. My data is a series of objects and relationships. The idea is that you click an object (in this case "95 Theses" and then the possibly relationships are displayed, in this case "author" and clicking the relationship shows the object that matches the relationship, in this case "Martin Luther".
My clicking of objects and relationsips (predicates) works fine. What I need to do is allow users to click an object or relationship and have all those that extend from it removed.
This is what I thought of adding when a object or relationship 'tag' is clicked (every time I add another object or relationship I increment the global attribute called 'level'):
if($(".objHolder,. preHolder").filter("[level>'"+level+"']").filter("[holderId='"+holderId+"']").length)
{ $(".objHolder,. preHolder").filter("[level>'"+level+"']").filter("[holderId='"+holderId+"']").remove(); }
<table border="0" cellpadding="4" cellspacing="2">
<tbody><tr>
<td class="objHolder" objid="1" holderid="1" level="1">
<table border="0" cellpadding="4" cellspacing="2">
<tbody><tr class="objItemRow" objid="1" holderid="1" level="1">
<td class="objItem" objid="1" holderid="1" level="2" bgcolor="#eeeeee" nowrap="nowrap">95 Theses</td>
</tr></tbody>
</table></td>
<td><img src="images/right.jpg" alt="" height="10" width="16"></td>
<td class="preHolder" level="2" holderid="1">
<table border="0" cellpadding="4" cellspacing="2"><tbody>
<tr><td class="preItem" level="3" subid="1" preid="1" holderid="1" bgcolor="#eeeeee" nowrap="nowrap">author</td></tr>
</tbody></table></td>
<td><img src="images/right.jpg" alt="" height="10" width="16"></td>
<td class="objHolder" level="3" holderid="1">
<table border="0" cellpadding="4" cellspacing="2"><tbody><tr><td class="objItem" level="4" objid="3" holderid="1" bgcolor="#eeeeee" nowrap="nowrap">Martin Luther</td></tr></tbody></table>
</td>
</tr></tbody>
</table>
or conversly can you import a parents menu items into a child window?
So I have an UI that is composed of controls that all have their own context menu, but we also have a datagrid that get's nested inside our generic contaier.
So when you right click the datagrid elements I want to show both the context items I've created for the datagrid and the items from the generic container.
if i search the word in google is "twitter".
google display the first result like the below...
Twitter
Twitter is without a doubt the best way to share and discover what is happening right now.
twitter.com/ - Cached - Similar
Search How To Contest Account Suspension
Blog An API
Twitter_logo_header Twitter Status
More results from twitter.com »
how they can display Search,blog,Twitter_logo_header and etc...
thanks and advance...
hi all,
i am trying to hide some text inside an on my website using the text indent property (setting it to text-indent: -999px;). for some reason this doesnt work when i set the direction of the document to "rtl" (my site is in Hebrew, which is written from right to left).
under "rtl" direction, the text still shows.
anyone knows any way around this?
thanks
I would like to add 24 hours to the timestamp for now. How do I find the unix timestamp number for 24 hours so I can add it to the timestamp for right now?
I also would like to know how to add 48 hours or multiple days to the current timestamp.
How can I go best about doing this?
I've stuck with syncing a Sql server 2008 having changes tracking enabled with a 2005 one that doesn't have this mechanism.
Would you please point me a right track, how can I handle this.
Thank you,
Hi all,
How does something like this work without Flash?
http://www.dirtyphonebook.com/dashboard/425-205-1921
I right-clicked on it but there's no Flash menu. I love Flash because its stable and works. But is using some sort of Javascript hack for this kind of complex behavior actually a good idea?
i am using border on object.
like
.box{
border-left:solid 1px #000;
border-right:solid 1px #000;
border-bottom:solid 1px #000;
width:50px;
height:50px;
}
may i write this in shorthand?
How to make the first matrix look like the latter?
The code of the first matrix is:
$$F(x)=\left(
\begin{array}{cc}
\frac{x}{2} & 0 \\
0 & x^2\\
\end{array}\right)$$
Every time I view a form or dialog in Visual Studio (2005) the Properties and Toolbox panes show up on the right side of my screen. That's good to have because they are useful for manipulating dialogs.
However once I switch back to source code these panes just get in the way... is there a way to get them to go away automatically?
If I have handle to file how do I create a document and write to it? Right now, I am having to delete the file completely and recreate with new content as shown below :
IFile file = getFile();
file.delete();
file.create(input, false, null);
I have a UITextView in which I want the initial value to be "@username " (notice the space after the username). This way the user can start typing right away without having to tap space. So I do:
textView.text = [NSString stringWithFormat:@"@%@ ", username];
But it seems like it's impossible to have an NSString ending with a space (it always gets stripped out). Am I correct? Is there any workaround for this?
If I have a page that takes some amount of time to process, and suddenly the client closes it's connection (network disconnect, browser closed, etc), what will happened to the processing operation on the server side? Is it get canceled automatically or it continues to process, and then stop right before rendering?
I am working with Pharo Smalltalk. Suppose you want to save your own group of packages into a local repository, you know that your packages are prefixed with "MyPrefix". What's the right message to do it? In code:
| myPkgs |
myPkgs := MCPackage allInstances select: [: mcPkg | mcPkg name beginsWith: 'MyPrefix' ].
myPkgs do: [ : myPkg | myPkg ??? ].
It would be too difficult to script that one for a web based repository?
I have an sql statement that returns this result below,and I want that the num will drag the latest(by date) num that is not null. I can't get it right.
I want to add somthing like this:
case
when num is null then max(num where date<my_date)
my result now:
Date num
1.1 0
2.1 1
3.1 NULL
4.1 NULL
5.1 4
what I want:
Date num
1.1 0
2.1 1
3.1 1
4.1 1
5.1 4
Right now my Boolean values for my JTable display as JCheckBoxes. This would normally be fine but I would like to display them as either an alternative String or image.
I can get them to display as true/false but I would like to display them as a checkmark (?) if true and nothing if false. Possibly an image but lets do a String first...
Right now I'm using the following code in my markup:
<asp:HiddenField ID="TheName" runat="server" Value=<%#Eval("SpeakerName")%> />
I would like to use:
<asp:HiddenField ID="TheName" runat="server" Value=<%#Eval(0)%> />
I would like to be able to call it by index instead of explicitly by "SpeakerName". Is there a way to do this in ASP.NET 4.0?
Disclaimer, I'm from a Java background. I don't do much C#. There's a great deal of transfer between the two worlds, but of course there are differences and one is in the way Exceptions tend to be thought about.
I recently answered a C# question suggesting that under some circstances it's reasonable to do this:
try {
some work
} catch (Exeption e) {
commonExceptionHandler();
}
(The reasons why are immaterial). I got a response that I don't quite understand:
until .NET 4.0, it's very bad to catch
Exception. It means you catch various
low-level fatal errors and so disguise
bugs. It also means that in the event
of some kind of corruption that
triggers such an exception, any open
finally blocks on the stack will be
executed, so even if the
callExceptionReporter fuunction tries
to log and quit, it may not even get
to that point (the finally blocks may
throw again, or cause more corruption,
or delete something important from the
disk or database).
May I'm more confused than I realise, but I don't agree with some of that. Please would other folks comment.
I understand that there are many low level Exceptions we don't want to swallow. My commonExceptionHandler() function could reasonably rethrow those. This seems consistent with this answer to a related question. Which does say "Depending on your context it can be acceptable to use catch(...), providing the exception is re-thrown." So I conclude using catch (Exception ) is not always evil, silently swallowing certain exceptions is.
The phrase "Until .NET 4 it is very bad to Catch Exception" What changes in .NET 4? IS this a reference to AggregateException, which may give us some new things to do with exceptions we catch, but I don't think changes the fundamental "don't swallow" rule.
The next phrase really bothers be. Can this be right?
It also means that in the event
of some kind of corruption that
triggers such an exception, any open
finally blocks on the stack will be
executed (the finally blocks may
throw again, or cause more corruption,
or delete something important from the
disk or database)
My understanding is that if some low level code had
lowLevelMethod() {
try {
lowestLevelMethod();
} finally {
some really important stuff
}
}
and in my code I call lowLevel();
try {
lowLevel()
} catch (Exception e) {
exception handling and maybe rethrowing
}
Whether or not I catch Exception this has no effect whatever on the excution of the finally block. By the time we leave lowLevelMethod() the finally has already run. If the finally is going to do any of the bad things, such as corrupt my disk, then it will do so. My catching the Exception made no difference. If It reaches my Exception block I need to do the right thing, but I can't be the cause of dmis-executing finallys
Hello
in a form with a textarea with id "ckeditor_input"
$("#ckeditor_input").ckeditor();
$("#ckeditor_input").html(); // can get the value
("#ckeditor_input").click/blur/keydown/keypressed(
function(){
alert("OK");
}
); //doesn't work!
the problem is ckeditor! If I don't start an instance of ckeditor on the textarea all events work fine! What is the right way to get events on a ckeditor instance?
Thank you
Please tell me how can i show symbols like "lambda" or Mu using c#.net in desktop application. what i think is we may do it using ASCII values and convert.toChar();.. if i am right that please give me link of page where i can get ASCII values of all such a scientific symbols.