w3hello.com logo
Home PHP C# C++ Android Java Javascript Python IOS SQL HTML videos Categories
Changing highlighting color in a theme from Eclipse color theme
You can adjust the highlight colors directly in Eclipse. On the right side of your code you see the color mark for the search results (red arrow). If you right-click on this mark the entry "Preferences" shows up. This will take you to the Preferences Dialog: General > Editors > Text Editors > Annotations If you adjust the colors for Occurences and Search Results this should do the trick for you.

Categories : Eclipse

MySql database allow remote connections
I had a similar problem and I solved it this way: Try to create a new user from sql command of phpmyadmin like this: CREATE USER 'myuser'@'%' IDENTIFIED BY 'mypassword'; GRANT ALL ON *.* to myuser; and use this user for the connection.

Categories : Mysql

activemq deny remote connections
You need to configure your broker for remote transport. if you are using a broker.xml config-file, tcp transport could be configured like this: <transportConnectors> <transportConnector uri="tcp://0.0.0.0:61616"/> </transportConnectors>

Categories : Maven

How do I open up my MySQL on my Raspberry Pi for Outside / Remote Connections?
I have recently had the same problem myself. I got it working by doing the following: Edit MySQL configuration By default, MySQL is not configured to accept remote connections. You can enable remote connections by modifying the configuration file: sudo nano /etc/mysql/my.cnf Find the [mysqld] section. The line you need to alter is bind-address, which should be set to the default value of 127.0.0.1. You want to edit this line to instead show the IP of your RPi on the network (which would seem to be 192.168.1.102 from your example). Write the changes. Restart the MySQL service sudo service mysql restart Setup MySQL permissions Connect to your MySQL instance as root: mysql -p -u root Create a user: CREATE USER '<username>'@'<ip_address>' IDENTIFIED BY '<password&g

Categories : Mysql

Unknown remote connections to SMTP server
You have two separate problems. Sending to Hotmail: They have a web page regarding their own private white list, and if you're not on the list, you get blocked. Receiving delivery status notices for messages not sent: Someone is spoofing your domain in messages they're sending to others. You need to protect your domain with some authentication technology. The two most common are called "sender policy framework" and domainkeys.

Categories : Email

How to Reset Remote Debugger Connections in VS2012 Once Set
The value from that popup is stored in your project file. You can access it by going to the Debug tab on your project properties. You can change the value there, or if you clear it out, you can get the popup again next time you navigate to remote debugger

Categories : Visual Studio 2012

MySQL Abruptly Refusing Remote Connections
So I completely disabled my server's firewall and it appears to be the culprit. I had tried to disable certain rules before but disabling the whole thing worked. Very frustrating, but problem solved I guess... I think the key indicator that it was the firewall was because it happened at exactly midnight when my server likes to apply updates and such.

Categories : PHP

Switch color defined in LESS base on scala variable - switch color theme in different environment
I don't think it's possible to mix javascript and LESS in that way. I would just do something like: if (env === "DEV"){ var styleRef = document.createElement("link"); styleRef.setAttribute("rel", "stylesheet"); styleRef.setAttribute("type", "text/css"); styleRef.setAttribute("href", "dev-style.css"); document.getElementsByTagName("head")[0].appendChild(styleRef); } else if (env === "UAT"){ ... } And so on. You can then fetch the correct compiled CSS file according to your environment.

Categories : Scala

Unable to make remote connections to SQL Server 2008 Express
you must check that also all the following check the protocol named pipes is enabled the IP port for named pipes is enabled (usually port# 445) the SQL Server Browser service is started

Categories : SQL

Enable Remote Connections on Windows Server 2012 via AWS User Data Field
I ended up doing the following: Stop the instance, detach the root volume and attach it as another partition on another Windows instance. Once attached, go to disk management and set it online, mount the registry hive and make the proper changes. Navigate to the following location in the registry HKEY_LOCAL_MACHINESYSTEMCurrentControlSetControlTerminal Server In the right pane, locate a REG_DWORD value named fDenyTSConnection. Double-click on fDenyTSConnection and change the value data from 1 (Remote Desktop disabled) to 0 (Remote Desktop enabled). If the server was placed in drain mode, then locate a REG_DWORD value named TSServerDrainMode and change the value data from 1 (Remote Desktop disabled) to 0 (Remote Desktop enabled). Unmount registry, set t

Categories : Powershell

Red color in terminal not working
There must be something with your terminal settings, since the code you sent is correct. I get: and my settings are: and I use Konsole on KDE4.

Categories : Shell

Check whether application is running under Terminal Services as opposed to Remote Desktop
One way is to use the below code: string s = System.Environment.GetEnvironmentVariable("SessionName"); If the value of s is "Console", it could be running in terminal services. On the other hand, if the value is something like "RDP-Tcp#01", it is running under Remote Desktop.

Categories : C#

remote emacs client connects, but doesn't create new frame in terminal
There is nothing you could “check or configure”. You simply cannot use emacsclient remotely, because both processes share the frame, which does not work remotely for obvious reasons. If a client connects to an Emacs server, it does not actually create the frame itself. Rather, it merely tells the server what kind of frame to create, i.e. whether a GUI frame or a terminal frame. The server then creates the frame based on the client's request and parameters. Specifically, in case of a TTY client (i.e. emacsclient -t) the server attempts to create a frame on the client's TTY. Obviously this won't work if the server runs on a different system. TTYs are local and not remotely accessible. FYI, the “TCP mode” of the Emacs server was never intended for remote access. It is simpl

Categories : Emacs

How to use terminal color palette with curses
I currently put these lines in front of my script. curses.use_default_colors() for i in range(0, curses.COLORS): curses.init_pair(i, i, -1); I don't know if it is the best solution, but at least it yields some color pairs that are consistent with the terminal color palette.

Categories : Python

magento theme falling back to default theme evenafter theme is changed in admin side
In System > Configuration > GENERAL > Design > Package > Current Package Name, you put the name of the folder that is directly under app/design/frontend/ that you are going to use for your theme. inside this folder is your theme. if the theme you are using is not 'default' you need to put the name of this folder to System > Configuration > GENERAL > Design > Themes > Default. eg: if your package name is mypackage and theme name is mytheme you need to put those in current package name and default themes respectively

Categories : Magento

Get color value programmatically when it's a reference (theme)
This should do the job: TypedValue typedValue = new TypedValue(); Theme theme = context.getTheme(); theme.resolveAttribute(R.attr.theme_color, typedValue, true); int color = typedValue.data; Also make sure to apply the theme to your Activity before calling this code. Either use: android:theme="@style/Theme.BlueTheme" in your manifest or call (before you call setContentView(int)): setTheme(R.style.Theme_BlueTheme) in onCreate() I've tested it with your values and it worked perfectly.

Categories : Android

Can't use referenced color (by theme) in drawable
Yes, this seems to be a known problem. But there is a workaround. Instead of using ?attr referenced colors like you described, create several drawables (as many as the different colors you have), let each call its colors directly. On the theme level, reference to the drawables themselves depending on the theme. It works that way. Update: On Lollipop, you can tint the drawable in XML. To cover pre-Lollipop, you can simply call this for all your drawables in question (thanks to the newer versions of the appcompat library): public void setDrawableColor(Drawable d, int color) { if (Build.VERSION.SDK_INT < Build.VERSION_CODES.LOLLIPOP) { d = DrawableCompat.wrap(d); DrawableCompat.setTint(d.mutate(), color); } }

Categories : Android

emacs color theme initialization
From the color-theme website: (eval-after-load "color-theme" '(progn (color-theme-initialize) (color-theme-hober)))

Categories : Emacs

color theme options in emacs
OSX comes with Emacs 22 preinstalled as well. You might be running Emacs 22 from the Terminal accidentally (perhaps you just typed emacs -nw which would normally start Emacs 22). Normally in Emacs 24, after M-x load-theme you'd get the prompt Load custom theme: and pressing TAB once at this point would show the list of all available themes.

Categories : Emacs

Set different color theme when running in console
You may use programatically load-theme and/or enable-theme (at least in emacs 24.3). This way you don't need to flag themes as safe (since you are supposed you know what you are doing), and you may use a (if (display-graphic-p) ...) to select your theme.

Categories : Emacs

Eclipse Color Theme is not working
is easy http://eclipsecolorthemes.org/ in window/preference/general/aparence look http://eclipsecolorthemes.org/?view=how-to-use

Categories : Eclipse

How to set random color box in wordpress theme
If you want to create a random background color <?php $hex = dechex(rand(0,255)) . dechex(rand(0,255)) . dechex(rand(0,255)); ?> and then you’d use the following in your body tag: <body BGCOLOR=“#<?php echo($hex);?>”>

Categories : PHP

How to change Terminal background color when I open new tab?
By default, Terminal creates new tabs with the same settings as the current tab. You can change it to always use your default profile for new tabs in Preferences > Startup by changing New tabs open with: to Default Settings. Note that there’s a built-in way to automatically set the background color for specific commands instead of using the script from that other answer: You can set the name of a settings profile to a command name and Terminal will select that profile when you create a new terminal via either Shell > New Command… or Shell > New Remote Connection…. For example, duplicate your default profile, name it “ssh” and set its background color to red. Then use New Command… to run ssh host.example.com. It also matches on arguments, so you can have it choose different

Categories : Osx

Custom DialogPreference & TextView color/theme
You can define a general Theme and set this Theme to the Dialog, passing it through the constructor. public DialogPref(Context context, AttributeSet attrs) { super(context, attrs,R.style.DialogTheme); setDialogLayoutResource(R.layout.my_layout); } How to define a Theme : Android Styles and Themes - Tutorial

Categories : Android

SASS Color Theme without repeat elements
You could make a different assignment to the same variables ($color1 and $color2) with a simple if statement, checking the value of an extra variable, e.g. $theme: light; @if $theme == light { $color1: green; $color2: red; } @else if $type == dark { $color1: blue; $color2: orange; } @else { /* fallback values */ } and for scalability I just suggest to wrap this code in a themes.scss file, and to include it at the beginning of your main sass file. When you want to change theme, just change the value of your $theme variable. You can find further info about the @if directive on the official site

Categories : HTML

Changing the color scheme of a wordpress theme
it looks like the css file is called superfish.css?ver=3.4.1 if youre using firefox.. firebug is a great tool for exploring css on a page. you could download the extension for free. then right click on anything in the page and click 'inspect element' on the right side of the page you should see all the css properties

Categories : PHP

MS Excel do not copy the color theme automatically
Use PasteSpecial Method. With Range("A1:K1") .PasteSpecial Paste:=xlPasteFormats, Operation:=xlNone, _ SkipBlanks:=False, Transpose:=False Application.CutCopyMode = False End With Refer this Link for more about PasteSpecial

Categories : Excel

Color Theme selector for web base app with Jquery
Set a class on the root element or body like: <body class="raw_umber"> The write your CSS rules base on these classes, for example: .raw_umber h1 { color:#7B4A12; } .blue h1 { color:#00c; } ... Then use jQuery to change that class. EDIT .raw_umber .some_class { border-color: #7B4A12; } .raw_umber .some_other_class { color:#7B4A12; } Those are examples of other rules. But there's no way I could account for every possible rule you need.

Categories : Jquery

How to color Linux terminal foreground and background text
You could use ANSI escape codes in your program output. And if you are coding the terminal emulator, you should make it understand those ANSI escape codes.

Categories : Linux

How to generate 256 color palette for Linux terminal in HTML/jquery
For future reference, here's the mapping table. Taken from MicahElliott/colortrans.py # Primary 3-bit # Equivalent "bright" versions 00 = 000000 08 = 808080 01 = 800000 09 = ff0000 02 = 008000 10 = 00ff00 03 = 808000 11 = ffff00 04 = 000080 12 = 0000ff 05 = 800080 13 = ff00ff 06 = 008080 14 = 00ffff 07 = c0c0c0 15 = ffffff # Extended color palette 16 = 000000 124 = af0000 17 = 00005f 125 = af005f 18 = 000087 126 = af0087 19 = 0000af 127 = af00af 20 = 0000d7 128 = af00d7 21 = 0000ff 129 = af00ff 22 = 005f00 130 = af5f00 23 = 005f5f 131 = af5f5f 24

Categories : Jquery

Hover Status Color Change, Avada Theme, Wordpress
If you make a CSS selector more specific than the one with the !important annotation, you should be able to override the hover color as long as you include an !important annotation of your own. For example, this: .featured-post a:hover { background-color: pink !important; } Will override this: a:hover { background-color: #ffffff !important; } Here's a simple JSFiddle demo. In the demo, the second link's styling overrides the !important annotation on the first due to having a more specific selector.

Categories : CSS

Android: change color of disabled text using Theme/Style?
I figured this out more or less by accident, but if you subclass Preference and override the onBindView(), you can achieve the "grayed out" effect when a preference is disabled: @Override protected void onBindView(View view) { // TODO Auto-generated method stub super.onBindView(view); TextView title = (TextView)view.findViewById(android.R.id.title); TextView summary = (TextView)view.findViewById(android.R.id.summary); if (title.isEnabled()) { title.setTextColor(getContext().getResources().getColor(R.color.gold)); } else { title.setTextColor(getContext().getResources().getColor(R.color.gold_disabled)); } if (summary.isEnabled()) { summary.setTextColor(getContext().getResources().getColor(R.color.orange)); } else {

Categories : Android

Can't define active link color in custom Drupal theme
Active is a CSS class, which is target with a "dot" in CSS (instead of the semi-colon you're using). Change your CSS code to a:link {color:#fff; text-decoration: none; font-family: 'Dosis', sans-serif; font-size: 22px;} a.active {color: #93278f;} a:visited {color:#fff;} a:hover {color: #93278f;} and try again. Otherwise, it always good to have a look with Firebug to see what is overriding your CSS definitions.

Categories : Drupal

Android color code for action bar in holo light theme
All colors are stored here : https://github.com/android/platform_frameworks_base/blob/master/core/res/res/values/colors.xml The color you looking for is : #fff3f3f3

Categories : Android

I do not want that my child page inherits the link color (red) of the parent theme , how do i do that?
You need to add a second CSS rule that is more specific for your a tag. For example: #links a { color: white; } or #list a { color: white; } I would add these rules below the two that you posted in your sample. However, you could also use a class instead of an id to make the CSS rule more generally applicable. PS If you are applying this to your Tumblr page, there may be other styles conflicting so you might have to make the CSS rule even more specific. I would need the link to your Tumblr page to be sure.

Categories : HTML

Change Divider Color OR theme of Android DatePicker Dialog
Use Custom Style to change the divider color/theme from your drawable image as below: <?xml version="1.0" encoding="utf-8"?> <resources xmlns:android="http://schemas.android.com/apk/res/android"> <style name="YourTheme" parent="@android:style/Theme"> <item name="android:divider">@drawable/dialog_divider_color</item> </style> </resources> and update the AndroidManifest.xml file with the android:theme="YourTheme" for the <activity/>

Categories : Android

Eclipse - set custom color theme and now when highlighted things turn black
This option is can be modified under the Annotations section of the Preferences dialog (as shown below).

Categories : Java

How to change the color of a focused EditText when using "android:Theme.Holo.Light"?
May this help you: You will have to create/modify your own NinePatch image to replace the default one, and use that as the background of your EditText. If you look in your SDK folder, under your platform, then res/drawable, you should find the NinePatch image for the EditText focus state. If that's all you want to change, you can just pull it into Photoshop, or whatever image editing software you have, and change the orange color to a color of your choosing. Then save that into your drawable folder. For example: edittext_modified_states.xml <?xml version="1.0" encoding="utf-8"?> <selector xmlns:android="http://schemas.android.com/apk/res/android" > <item android:state_pressed="true" android:drawable="@android:drawable/edittext_pressed"

Categories : Android

Telerik RadPageView in BackStage mode: howto change selected item color without whole new theme?
You can use the SelectedPageChanging event for this: void radPageView1_SelectedPageChanging(object sender, RadPageViewCancelEventArgs e) { e.Page.Item.BackColor = Color.Red; e.Page.Item.DrawFill = true; e.Page.Item.GradientStyle = GradientStyles.Solid; radPageView1.SelectedPage.Item.ResetValue(LightVisualElement.BackColorProperty, ValueResetFlags.Local); radPageView1.SelectedPage.Item.ResetValue(LightVisualElement.DrawFillProperty, ValueResetFlags.Local); radPageView1.SelectedPage.Item.ResetValue(LightVisualElement.GradientStyleProperty, ValueResetFlags.Local); }

Categories : C#

How to change text color in responsive expanded dropdown menu item in Wordpress theme The Bootstra
i think your question is understandable in the sense that you want to change the background color of hovering as well as active element in your dropdown menu... In a simplest and easy way, you can simply call the elements of hover and active to a separate file and define with your custom color... The classes for define your bg colors on hover and active are as follow:- //For active states .navbar .nav > .active > a, .navbar .nav > .active > a:hover, .navbar .nav > .active > a:focus { background-color:#f00; //Your Pick } //For hovering states .nav-collapse .nav > li > a:hover, .nav-collapse .nav > li > a:focus, .nav-collapse .dropdown-menu a:hover, .nav-collapse .dropdown-menu a:focus { background-color:#bbb; //Your Pick } Check my demo for more referenc

Categories : Twitter



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