How do I find if a string contains html data or not? (note: user provides input via rich:editor and its quite possible he could have used either a simple text or used html formatting)
I am facing a problem on load pdf on browser. its working fine but slow in load. That's why i want to display a loading message / gif until it's fully loaded so the user isn't looking at a blank screen.
My question is same as previous question
http://stackoverflow.com/questions/1138232/html-embedded-pdfs-onload
I am writing a little bit of documentation and code explanation. I would like to copy code from eclipse including line numbers, so that it becomes easier to reference the code in the text.
Is there any way to do this in eclipse or some other IDE, editor?
I've only ever learned to "program" with notepad when I was learning to create batch files in Windows.
I would appreciate if you can explain to me the benefits of working with an IDE over a text editor or vice versa. Please don't give emotional responses or argue someone else's suggestion/advice. I use Linux primarily. Also, I would like to be able to make programs that can be used in Windows, but programmed in Linux. Thanks.
Hey, guys!
I found javascript is not so easy to master. And I want to dive into it. I think learning by using is a good way. Since javascript is different from other C-style language, what kind of project is good for learning?
Thanks.
Hello,
I have simple situation (like on the image link text) and simple SQL query
SELECT M.Name,
A.Name,
B.Name
FROM Master M LEFT JOIN DetailA A
ON M.DescA = A.Id LEFT JOIN DetailB B
ON M.DescB = B.Id
How to achive the same effect in nHibernate using CriteriaAPI ?
Hello everybody,
I want to convert a pdf file to an image with PHP, but i can't get the command worked. PHP returns a 4. I don't have any kind of idea what that can be.
I am using the next code:
$tmp = system("convert -version", $value);
var_dump($value);
Someone an idea?
D'oh! I just made a perfectly good commit to the wrong branch.
How do I undo the last commit in my master branch and then take those same changes and get them into my upgrade branch?
Thanks!
I am a beginner Java programmer. I am attempting to make a simple text editor. I have got the text from the text field into a variable that's a String, called "text".
My question is, how can I save the contents of the "text" variable to a text file?
Thank you!
I have "Selected Text" color set to a default value in vs 2010 RGB 51,153,253. But really in text editor it is RGB 173,214,255 that is slightly darker. The same things are with some other colors, e.g. Resharper Dead Code.
What can it be a problem and how should I solve it?
In an environment where you have a relational database which handles all business transactions is it a good idea to utilise SimpleDB for all data queries to have faster and more lightweight search?
So the master data storage would be a relational DB which is "replicated"/"transformed" into SimpleDB to provide very fast read only queries since no JOINS and complicated subselects are needed.
I just got CS5 master suite which includes Flash Builder 4 and Flash CS5 Pro.
When I create a new AIR app in CS5 pro it says "AIR 2" but when I create a new AIR project in Flash Builder I do not see anything indicating that it is AIR 2 or 1.5?
Is there a way to tell which AIR runtime it is using?
I've got two web sites (written in c#) which are pretty common:
One is an admin site (cms) where you add images into content as needed, through editor pages.
Second is the site where the content with images is shown.
Images should be stored outside these two sites but where and how?
I'm relatively new to Git, and want to get advice on best practices for deleting branches.
After I've created and merged a branch back into master, should I leave it hanging around for historical purposes, or should I delete it as soon as it's no longer needed for housekeeping purposes?
I'd like to create the same kind of function tumblr has for uploading images and then inserting them directly into the WYSIWYG editor.
I was planning on using uploadify to upload the image, then I am not sure of the method for inserting into the CKEditor.
Has anyone done anything similar or know of a plugin that could do this? Ideally I'd like it to insert the image wherever the text cursor was last placed.
Thanks in advance,
Tim
I've found information about Editor and Detail templates based on object name (i.e. DateTime, MyCustomObject) for use with MVC system. I am just wondering if it was possible for creating templates for use when creating the items in a similar fashion, where the form used for Creating the items is going to be different than the Editing Screen.
I am using Xinha editor with Jquery 1.4.2 and cannot use the UI components in IE 8.
Other browsers work great!
include the following scripts:
jstree also throws a 'data not included' exception (which stumps me since it works without including the xinha library)
Is there a way to find the conflict with Xinha and either work-around or resolve it for IE 8 using 1.4.2 jquery
thanks please let me know if you need more info.
I am new to Git hub and was able to successfully create an ssh key and upload it to the website however when I type in
git push origin master
I receive the following error:
error: cannot run ssh: no such file or directory
fatal: unable to fork
I am using Cygwin on a windows Vista machine if that is also useful. Ok.. after installing openssh I now get the error:
Permission denied (publickey)
fatal: the remote end hung up unexpectedly
Is there any possibility to connect webservice using Lua Language in Scite editor? Otherwise Please help me how to connect webservice with Lua Language.
My project currently contains two largish property lists. One is currently 20KB; another is 8KB. So far, I have been maintaining them with xCode's property list editor. This is manageable but also a bit clunky. I am wondering if other people have better ways of doing this?
So far, my lists consist of nested arrays of strings. The depth is not uniform.
I need to manage the trace files for a database on Sql Server 2005 Express Edition. The C2 audit logging is turned on for the database, and the files that it's creating are eating up a lot of space.
Can this be done from within Sql Server, or do I need to write a service to monitor these files and take the appropriate actions?
I found the [master].[sys].[trace] table with the trace file properties. Does anyone know the meaning of the fields in this table?
Hi,
I'm trying to make wysiwyg editor with content editable divs and I'm inserting html with document.execCommand('insertHTML', false, html); but the problem is, when i insert link, and then i want to write after it continues to write INSIDE that link.
EXAMPLE:
how it does now:
Hello, stackoverflow.com MyTextAfterLink
how it should be:
Hello, stackoverflow.com MyTextAfterLink
How could i fix this? Thanks.
I've written a custom plugin for CKEditor--successful on all fronts, save one currently: I can't, for the life of me, figure out how to customize the image on the button in the toolbar of the editor. As I'm a new user, you'll have to click through to see attached image; the highlighted square in the top left should have a pretty picture (like most of the other toolbar items).
Thanks much for thoughts/advice/help.
Isaac
Screenshot: http://imgur.com/ZNNKe.jpg
With the Ajax Control Toolkit, one can easily drag and drop all types of great extender onto controls, but they register a boatload of JavaScript to do it.
How do I control this?
If the ScriptManager is in the MasterPage, is there anyway to control the loading of a script on one page that isn't in another?
For example: calendar extender is on one page, but the script for it gets loaded on every page that is a child of the master page.
OpenAL is such a huge thing, and the documentation doesn't tell what values are acceptable for properties. That's really bad.
I'm using the document: "OpenAL_Programmers_Guide.pdf"
Whenever I look up a property I'm left in the dark what value might be ok. For example, take AL_PITCH. What value?
Maybe someone wrote a better one? Or is there something like a wiki place with more details?