w3hello.com logo
Home PHP C# C++ Android Java Javascript Python IOS SQL HTML videos Categories
Is there a way to change the default eclipse toolbar icons built into eclipse?
I don't think this is possible. The standard icons are declared using the org.eclipse.ui.commandImages extension point in the org.eclipse.ui plugin and reference icons in that plugin.

Categories : Eclipse

How to change the android default browser default Home URL
From Ben Williams I'm fairly (although admittedly not absolutely) certain this isn't possible, because apps are sandboxed, so you won't be able to access the browser's private sharedpreferences.

Categories : Android

Change default Capybara browser window size
You could define that under before(:all) describe "Test" do before(:all) do ... ... page.driver.browser.manage.window.resize_to(x,y) #Mention it here end it "should find everything" do ... end after(:all) do ... end end

Categories : Ruby

How to change the default text font in Eclipse?
Software Salariman has posted a solution - "Change Default Text Font in Eclipse". The default font is set in: Window > Preferences > General/Appearance/Colors and fonts > Basic/Text Font

Categories : Eclipse

Change default dynamic web module version in Eclipse
If I understand you correctly, right-click your project, select Properties, select Project Facets. You will have all sorts of options, one of which is the Dynamic Web Module version.

Categories : Java

Eclipse Tycho change default source location
Tycho doesn't allow to configure where the OSGi manifest is located. It always has to be at META-INF/MANIFEST.MF relative to the pom.xml file. Most other input and output folders are configurable though, so you could simply put the pom.xml at com.test.plugin/build/plugin-artifacts, and configure the paths in the build.properties (located in the same folder as the pom.xml) and POM.

Categories : Eclipse

Is it posible to change default search engine from Google.com to some other programmatically for Android browser
I am sorry, but I thing you will not be able to do so. Please go through this I think it might help you.

Categories : Android

How to open links in default browser inside InApp Browser on PhoneGap
I have been using this as a workaround (opening an inappbrowser instance): // Image zoom $('#container').on('tap', '#content.cmscontent img', function() { var browser = window.open((navigator.userAgent.indexOf('Android') != -1 ? 'file:///android_asset/www/' : '') + encodeURI($(this).attr('src')), '_blank', 'location=no,toolbar=yes,enableViewportScale=yes,transitionstyle=crossdissolve'); }); See I added (navigator.userAgent.indexOf('Android') != -1 ? 'file:///android_asset/www/' : '') as a prefix before the url. Now it detects when you're app is on Android and adds the local URL in front of it.

Categories : Android

How to set homemade c# web browser as default browser?
In Windows 7 you can set default program via Control Panel. It should be similar for all versions of Windows you mentioned. Control Panel >> Programs >> Default Programs or Start >> Run >> Default Programs EDIT Thanks for editing. I am unsure on that but you would need something similar to this I would assume. (Once you get your Keys down)

Categories : C#

How to change and blink the title of the browser when the user goes to other tab or minimizes the browser?
For blinking the title: var title = document.title; var intv = window.setInterval(function () { document.title = document.title === '' ? title : ''; }, 500); // call this to stop the blinking function stopBlink() { window.clearInterval(intv); document.title = title; } As for doing it on tab switch or minimize, maybe running the code on window.onblur would work but I'm guessing it can't be done.

Categories : Javascript

How to default a custom-styled dropdown to browser default style dropdown
It looks to me that you're using a 3rd party javascript library that is automatically converting all select boxes into the custom styled look that you're getting on page load. My suggestion would be to remove each javascript library one by one to find the culprit (by looking at the style on the rendered <select>, i'd say it's JCF). It's really got nothing to do with your html or css styles. You can tell this because the select box has a jcf-hidden style on it (so it's hidden), and your 'inspect element' is showing you a <span> instead of the actual <select>

Categories : HTML

Can't make eclipse open even after change eclipse.ini
According to this Eclipse document: Note the format of the -vm option - it is important to be exact: The -vm option and its value (the path) must be on separate lines. The value must be the full absolute or relative path to the Java executable, not just to the Java home directory. The -vm option must occur before the -vmargs option, since everything after -vmargs is passed directly to the JVM. Note the first requirement. So, try using this somewhere in your .ini file: -vm C:Program FilesJavajdk1.7.0injavaw.exe -vmargs -Dosgi.requiredJavaVersion=1.5 -Xms40m -Xmx512m Note: this is obviously a fragile way to enforce .ini file syntax, and I believe a later version of Eclipse has fixed this potential problem. But, looking at your file, you seem to have a May 2011 build, and if it

Categories : Java

Opening a URL in the default browser
java.awt.Desktop is the class you're looking for. import java.awt.Desktop; import java.net.URI; // ... if(Desktop.isDesktopSupported()) { Desktop.getDesktop().browse(new URI("http://www.example.com")); } That is what I would do. answer comes from this site at :: How to open the default webbrowser using java

Categories : Java

Launching default browser without the title bar
If you want to remove the title bar, Get a handle on your target using FindWindow(). Change style attributes in your target window and modify it. #include <windows.h> #include <stdio.h> int main(void) { HWND hWnd = NULL; LONG lStyle; hWnd = FindWindow(0, "Google - Windows Internet Explorer"); lStyle = GetWindowLong(hWnd, GWL_STYLE); lStyle &= ~WS_CAPTION; /*remove WS_CAPTION style */ SetWindowLong(hWnd, GWL_STYLE, lStyle); if(hWnd!=NULL) SetWindowPos(hWnd, HWND_TOP, 0,0,0,0, SWP_FRAMECHANGED ); /*Changes style in your window */ return 0; } Both of these features will do the job, but CreateProcess is more reliable and secure function unlike ShellExecute

Categories : C

Set default web browser via command line?
I know this doesn't specifically answer your question, but if you only need to do this for Chrome, it has a flag that let's you set itself as the default browser: $ open -a "Google Chrome" --args --make-default-browser

Categories : Osx

Can't set Chrome as default browser from Powershell
The following worked for me: $chromePath = "${Env:ProgramFiles(x86)}GoogleChromeApplication" $chromeApp = "chrome.exe" $chromeCommandArgs = "--make-default-browser" & "$chromePath$chromeApp" $chromeCommandArgs

Categories : Powershell

Open a webpage in new tab on IE, even if it's not the default browser
If it is intended that you are fixed on using Internet Explorer for this, this is what you can do: Create a (temporary) script file called temp.js. Put this in it: var navOpenInBackgroundTab = 0x1000; var objIE = new ActiveXObject("InternetExplorer.Application"); objIE.Navigate2(FIRST TAB URL GOES HERE); objIE.Navigate2(SECOND TAB URL GOES HERE, navOpenInBackgroundTab); objIE.Navigate2(NTH TAB URL GOES HERE, navOpenInBackgroundTab); objIE.Visible = true; Then you call this script in the directory you created it: wscript temp.js Don't forget to delete it afterwards: Oh, and if this sounds like a terrible hack, trust me: it is.

Categories : C#

Eclipse default with plugins
Assumig "with all the plugins" you mean all of eclipses official plugins: Go To Help->Install New Software, select the Eclipse Update Site (for example http://download.eclipse.org/releases/juno) and install the plugins you need. If you need other non-official plugins, just install them. After that you can just zip the eclipse install folder again and distribute it

Categories : Java

Use .xsl stylesheet to display XML generated from eclipse xsd in a web browser
If you have nodes that are in a namespace, you need to use the namespace prefix when referring to any of them, not just the top-level one: <xsl:value-of select="tns:calibration/tns:Temp" />

Categories : Xml

How ton run an eclipse java applet in a web browser via a network
NO, You must firstly create Web Server project in Eclipse (be sure that you installed some Tomcat) or use other one, after, put your Applet as jar file into Web Server under WebContent/web

Categories : Java

Reset link colour to browser default
It is different for each browser. What you would have to do is get a stylesheet from the browser you are trying to reset (Gecko, WebKit, or Trident) and make that the new default. Source: Browsers' default CSS for HTML elements

Categories : CSS

Delete Android Default Browser History
Add the following permissions to AndroidManifest.xml: <uses-permission android:name="com.android.browser.permission.WRITE_HISTORY_BOOKMARKS"/> <uses-permission android:name="com.android.browser.permission.READ_HISTORY_BOOKMARKS"/> Then when you want to clear the history use: Browser.clearHistory(getContentResolver());

Categories : Android

json default charset API and browser display
You can specify the charset if you want: contentType : 'application/json; charset=utf-8' And also use utf8_decode (or similar) at the other end just ot make sure. Works here.

Categories : Javascript

prevent browser from requesting default route
Solution is to place index.html file inside of public folder. Now, it can be loaded and manipulated locally with ajax ( like a template ). Also hash in the url will work ( no request to server ) - that was my main issue.

Categories : Backbone Js

@Nonnull by default in eclipse/kepler
Are you sure you want to add @Notnull to every function, every variable and every parameter in your project (keeping in mind that you have hundreds of packages)? What if you function needs to return null or parameter needs to be null? I don't think this is a good idea.

Categories : Java

How to set a command to be hidden by default in Eclipse?
Finally, I have found a solution: <extension point="org.eclipse.ui.perspectiveExtensions"> <perspectiveExtension targetID="*"> <hiddenToolBarItem id="command_id"> </hiddenToolBarItem> </perspectiveExtension> </extension>

Categories : Eclipse

How can I reset eclipse to default settings?
Yes, Eclipse can be a pain, as almost any IDE can. Please remain factual, however. Switching to a new workspace should help you. Eclipse has almost no settings that are stored outside your workspace.

Categories : Eclipse

How to open a file browser with default directory in Javascript?
This is impossible, as it is a security risk to let website code set any value on the machine. Also, you can never be sure that directory exists. What if I'm on a Mac? My stuff are in ~/Pictures. What if I installed Windows on D:?

Categories : Javascript

Loading files in default Internet browser programmatically
Quite obviously it cannot find the file in the current directory. Make sure the following are correct: The file is included in your project and its Copy to Output Directory property is set to Copy always or Copy if newer. Use Application.StartupPath to make sure you are pointing to correct directory, so the first line would become: Code: var myFile = Path.Combine(Application.StartupPath, "html_file.html");

Categories : C#

webdriver: disable "would you like to make IE your default browser" message
Open Internet Options. On Programs tab, uncheck "Tell me if Internet Explorer is not the default browser." Worked for me on IE 9 and 11. Can also be disabled by a Windows policy: "Disable changing default browser check"

Categories : Internet Explorer

How can I programmatically open the default browser and pass a URL in C/Linux?
xdg-open is your best choice. xdg-open http://www.stackoverflow.com You will have to watch out - check to see if it is installed before trying to execute it, as not all users may have xdg-open on their machine.

Categories : C

getting current url from default android browser on any event action
Your app can not monitor browser action like long press or tap the browser window. But you can do other way, like implementing "Share action". When user want to create short cut, just tell them to do "Share action". Adding an Easy Share Action

Categories : Android

Set up default TestNG launch configuration in Eclipse
Well, that is quite problemmatic, probably the easiest workaround is to set them globally (Preferences -> TestNG -> Run/Debug -> JVM args). Otherwise, if you create a run configuration for the test package, you can also set it there.

Categories : Eclipse

How to create default template for js, css files in eclipse
Depends on which plug-ins you use for development. In core Eclipse, a solution could be to set the default template content. Go to Web --> CSS Files --> Editor --> Templates, and edit the New CSS File item for example.

Categories : Eclipse

JSOUP throws url status 503 in Eclipse but URL works fine in browser
You have to set a User Agent: Document doc = Jsoup.connect(url).timeout(30000).userAgent("Mozilla/17.0").get(); (Or others; best you choose a browser user agent) Else you'll get blocked. Please see also: Jsoup: select(div[class=rslt prod]) returns null when it shouldn't

Categories : Java

Prevent browser(Chrome) to run default functions like scroll with space
How about combine these two function into one: $(document).on("keydown", function (evt) { { evt.preventDefault(); evt = evt || window.event; var charCode = evt.keyCode || evt.which; document.getElementById("current").innerHTML=charCode; } });

Categories : Javascript

Phonegap 2.9.0 doesn't open external links in default browser
I also encountered this problem. Seems most answered are exactly opposite to the question, people usually answer how to open in inAppBrowser, I don't know why. Just like you I tried various of methods but no one work. Finally I have to turn to native way. Fortunately, native way took my only around no more than 10 minutes that is much shorter than try people's phonegap answers. In Android, add the line in onCreate method to bind object to webpage's window object. add a method on your binded object which accept a url string and behave open browser behavior. @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); super.appView.addJavascriptInterface(this, "nativeInterface"); } public void openInDeviceBrowser(String url) { Intent i =

Categories : Cordova

prevent default browser action but allow library code in meteor
Wrap the HTML in {{#constant}}...{{/constant}} and run any lightbox code in a template render function, e.g. Template.pictures.rendered = function() { lightBoxInit(); } I don't actually know what the lightbox function is called... it's either something that they will tell you in the docs to run on pageload, or that is wrapped in a $(document).ready() call in the source. Even better is if there's an API call to run on the elements directly (something like $('img').lightbox() or $('img').each(function(el) { lightbox(el) }). Sorry I'm not so familiar with lightbox but this is the strategy you need and what you need to look for :) Note that the rendered function is called on rerendering too. This is fine for most libraries but if you notice any strange behaviour you'll need to add so

Categories : Javascript

How do i reset Eclipse back to default settings on Macbook
If your Eclipse explorer looks messy. Resetting package Explorer or perspective Window -> Reset Perspective If the above doesn't work, You can probably clear your meta data for resetting everything rm -rv $WORKSPACE_DIR/.metadata/ After this restart your eclipse

Categories : Eclipse

Make eclipse pdt default editor for php, css etc. files in ubuntu 12.04?
I posted this question more than a month ago and i have found an answer to it, Here is the eclipse.desktop file which needs to be added in the /usr/share/applications directory [Desktop Entry] Encoding=UTF-8 Name=Eclipse Comment=Eclipse IDE Exec=eclipse %f Icon=/opt/eclipse/icon.xpm Terminal=false Type=Application Categories=GNOME;Application;Development; StartupNotify=true Adding %f after 'eclipse' added eclipse in the list of 'other applications' and then i 'set it as default' for css files.

Categories : PHP



© Copyright 2017 w3hello.com Publishing Limited. All rights reserved.