w3hello.com logo
Home PHP C# C++ Android Java Javascript Python IOS SQL HTML videos Categories
position menu bars below site logo css
It doesn't look like you added markup for logo. So add in markup: <div class="logo"></div> And in css .logo { height: 50px; background: brown; } FIDDLE

Categories : HTML

Cocoa application contains no menu bars, according to AppleScript
Have you tried activating your app with a short delay before running the system events stuff? You're also missing some other stuff. Here's how you would do it in Safari... tell application "Safari" to activate delay 1 tell application "System Events" tell process "Safari" tell menu bar item "Edit" of menu bar 1 click delay 0.5 tell menu item "Speech" of menu 1 click delay 0.5 click menu item "Start Speaking" of menu 1 end tell end tell end tell end tell A second point. If you are creating the application yourself then you do not need to do as you are suggesting. You state "Because there is no way to initiate dictation directly" but why do you say that? Every menu ite

Categories : Objective C

JSF with Primefaces Menu duplicate Id error?
I completely re-write the code and there was no error afterwords. I think that although I couldn't trace any duplicate Ids in previous time, there must have been one. This time also the same error occurred and I found that there is a duplication introduced by myself. If anyone get the same error, I think there is a very high possibility that it is caused by duplicates in manual insertion of duplicate ids.

Categories : JSF

Duplicate javascript for Codrops MULTI-LEVEL PUSH MENU
I could not find nav element with id="mp-menu2" in your fiddle, but however even adding it didn't make any difference... Maybe you could try using Multi-Level Push Menu jQuery plug-in instead.

Categories : Javascript

How some services start without restart where as some require restart
You shouldn't be directly manipulating the registry to create a service. You should be using the service control manager API's to create and if desired start the service. The registry values are documented but they are still private to the API and only take effect upon reboot. Using the API will take affect immediately and the registry changes are done by the API. If you are using Windows Installer you can let the installer handle all of this for you by using the Windows Installer's ServiceInstall and ServiceControl tables. Some services have dependencies on resources that aren't available until after a reboot. One example might be a locked file that will be overwritten during startup via the Pending Files Rename Operations pattern. Another gotcha is if the service has a dependen

Categories : Sql Server

Facebook Unity SDK has error when send request with custom friends in Unity Webplayer
One of the Facebook software engineers here. Are you passing in null to the data or title param for FB.AppRequest()? There's a bug where it doesn't handle that correctly currently. Either exclude that or pass in an empty string. We'll get that fix ASAP. Thanks for finding that. Update: The latest SDK version has that fix.

Categories : Facebook

Is it practical to start a Unity game from an Android app and revert back from Unity to the app?
You should be able to have two activities in your app, one using your java code and another with the Unity game. Android is already pretty good at switching between activities. Check out this: http://developer.android.com/training/basics/firstapp/starting-activity.html You'll probably need to add your Java project as a plugin in Unity and override the AndroidManifest.xml in the Unity project to load the Java activity. Check out this documentation on extending android projects in Unity: http://docs.unity3d.com/Documentation/Manual/PluginsForAndroid.html

Categories : Android

Unity Register For One Interface Multiple Object and Tell Unity Where to Inject them
In the example below you have an interface implemented twice and injected on demand into two different client classes, just as you request. The trick is to use named registrations. class Program { static void Main(string[] args) { IUnityContainer container = new UnityContainer(); container.RegisterType<IFoo, Foo1>("Foo1"); container.RegisterType<IFoo, Foo2>("Foo2"); container.RegisterType<Client1>(new InjectionConstructor(new ResolvedParameter<IFoo>("Foo1"))); container.RegisterType<Client2>(new InjectionConstructor(new ResolvedParameter<IFoo>("Foo2"))); Client1 client1 = container.Resolve<Client1>(); Client2 client2 = container.Resolve<Client2>(); } } public interface IF

Categories : C#

Xcode cannot parse exported project from Unity 4 after being upgraded from unity 3
Some Unity packages install editor scripts that modify the XCode project after it's generated. These scripts can cause the symptom described, if they have a bug, or if they subtly interfere with each other. Search your project for OnPostprocessBuild calls, try disabling them one-by-one, generate a fresh XCode project each time, and see if it starts opening with XCode. If it does start working, diff the working and non-working versions of Unity-iPhone/project.pbxproj, and see if you can figure out why.

Categories : IOS

Unity iOs - screen gets black when changing rotation while Unity is paused
Not sure if you have fixed this, Its been a while... But the reason that your UnityViewController is not functioning properly is because a view controller that is not visible will not receive rotation events. Because you are setting your view controller as the root view controller, the UnityDefaultViewController defined in "iPhone_View.mm" is not receiving rotation events. I have been studying Unity's rotation for a while now as I have my own issue with a similar setup. There are a few things that you might be able to try: In iPhone_View.mm there is a function that is defined called: UpdateOrientationFromController(UIViewController* controller) that might be able to solve your problem. You would want to call this function on the view controller that you designed yourself where you plac

Categories : IOS

Unity.AutoRegistration ?? Convention Based Registration Unity
It appears that what you are looking for is this: container.ConfigureAutoRegistration() .LoadAssemblyFrom(typeof(ITest).Assembly.Location) .LoadAssemblyFrom(typeof(Test).Assembly.Location) .Include(If.ImplementsITypeName, Then.Register()) .ApplyAutoRegistration(); This will tell Unity.AutoRegistration to register all types where there is an interface with the same name, prefixed with I.

Categories : C#

Resolving Unity Dependencies without a Unity.MVC
You're doing it in the right way. With DI you can remove dependencies from your application. So that you can get a "Repository agnostic" application. And you have effectively done it. At least on the projects that 'declare' the dependencies. However, when the application has to run, you need to specify the concrete objects which will be used for the "declared" abstract dependencies (interface, abstract class) is required. You do this by registering the types which object will be used for each abstract dependency. In you sample, when a IUnitOfWork or a DbContext, an instance of MyDbContext is provided. So the projects that 'declare' the dependencies are completely independent of a particular implementation. However, when you register the dependent types, you're loosing that independen

Categories : C#

Unable to restart varnish using "service varnish restart"
Fixed the problem by removing line breaks from the "/etc/default/varnish" file. DAEMON_OPTS="-a :80 -T localhost:1234 -f /etc/varnish/default.vcl -s malloc,256m" to DAEMON_OPTS="-a :80 -T localhost:1234 -f /etc/varnish/default.vcl -s malloc,256m"

Categories : Caching

Twitter Bootstrap responsive menu/small devices: close/collapse menu on clicking a menu item
You can try something like.. $('.nav li a').on('click',function(){ $('.nav-collapse').collapse('hide'); }) This will work for menu links that are referencing '#'. The menu should already be collapsing if your menu links navigate to another page on the site as this would cause a full page refresh.

Categories : Twitter

How to combine two multidimensional arrays with showing duplicate keys or if duplicate, must add the values
$array1 = array( 'a1' => array(200,300,300), 'a2' => array(100,600,200)); $array2 = array( 'a1' => array('gen','gen2','gen'), 'a2' => array('gen2','gen3','gen3')); $result = array('a1' => array(), 'a2' => array()); foreach($array2 as $k => $v) { foreach ($v as $k2 => $v2){ if (array_key_exists($v2, $result[$k])){ $result[$k][$v2] += $array1[$k][$k2]; } else { $result[$k][$v2] = $array1[$k][$k2]; } } } Output: Array ( [a1] => Array ( [gen] => 500 [gen2] => 300 ) [a2] => Array ( [gen2] => 100 [gen3] => 800 ) )

Categories : PHP

css drop down menu :: sub menu is appearing within main menu after hover
You have to make some changes in the code. Fiddle css .menu{ width:70%; background:green; position:relative; } .menu ul{list-style:none;} .menu ul li{ margin-left:20px;position:relative; float:left} .menu ul ul{display:none;} .menu ul li:hover ul{display:block; background:black; position: absolute; margin: -2px 0 0 0; z-index: 11110;} .menu ul li:hover ul li{ float:none; height:20px; } Updated Fiddle Changes: display: inline-block; occupies the combined width of the inner container. position:relative; using it in menu will cause increase in the height of the outer container. you can read it at w3school

Categories : HTML

Hudson server running app engine, duplicate shell script executions result in duplicate property errors
It might be the case that the dev_appserver is already running and then you run it again with hudson job. The best way will be to stop the dev_appserver instance first and then pump it up again.

Categories : Python

Ext.menu.Menu (Context Menu) is displayed only once on right click - Ext JS 4.2.1
Because you're creating a new menu instance every time, which means: a) Memory leak b) Duplicate component id So, remove the id from the class definition, you don't need it. Secondly, only create the menu once: onViewItemContextMenu: function(dataview, record, item, index, e, eOpts) { e.stopEvent(); if (!this.menu) { this.menu = Ext.create('MyApp.view.TreeContextMenu'); } this.menu.showAt(e.getXY()); }

Categories : Javascript

unity or unity.mvc4 for MVC4 application
You will want to add the Unity.MVC4 package, since it provides the integration between Unity and ASP.NET MVC 4. However, Unity.MVC4 depends on Unity, so by adding that you will get both packages. You will also need something like this to configure the integration: var container = new UnityContainer(); // configure container here (RegisterType, etc.), then make sure MVC 4 uses Unity... DependencyResolver.SetResolver(new Unity.Mvc4.UnityDependencyResolver(container));

Categories : C#

How to display bars next to each other
The problem is that with one point Highcharts won't be able to calculate pointRange for any of series. In that case set directly pointRange for series, see: http://jsfiddle.net/b33mN/5/ In the example, pointRange = tickInterval, it's probably you want to achieve.

Categories : Highcharts

SWT Scale - add more bars
The Opal project has a widget called RangeSlider. This lets you use 2 "bars". I don't know of anything that has more and I can't think of any scenario where you would need more than 2. It looks like this:

Categories : Java

Architecture/Design of PageObjects for Pages with hierarchy: menu-items/menu-sub-items/menu-sub-items-tabs
I think the following will be a simple and efficient solution, Class for Main page with methods to navigate(or click) other menu items and logout. Class for each menu item with methods for sub menu items, extend the Main page class

Categories : Java

filling a blank between two bars - css
I think this is probably what you're after: http://jsfiddle.net/UQzQD/3/ You should start with a good CSS reset. I used * selector to reset padding and margin in this example and it looks like what I think you want in FF, Chrome, and Safari. http://meyerweb.com/eric/tools/css/reset/ I fixed some errors in your HTML as well. language="javascript" is obsolete, <form method="post" action="<c:url value="/search"/>"> isn't valid.

Categories : HTML

Switch between button bars
You can add your second set of buttons in a layout like you did with the first, then in the layout xml file set the attribute android:visibility="gone" on the second layout. In your code you can call setVisibility(View.GONE) for one layout (e.g. taoFooter) and setVisibility(View.VISIBLE) on the other layout when you need to switch the buttons out. Alternatively, if you easily want to add some animations you can add a ViewFlipper around your two alternate button layouts. Only the first one is visible by default. You can switch to the next layout with showNext(). Add calls to setInAnimation() and setOutAnimation() before that to enable the animations.

Categories : Android

Why sometimes the bars with bar or hist have no border?
I think if you change the color of your bar plots you'll see that there actually is a border it just doesn't show up very well. You can also change the width of the bars so that they are more distinct. % something to plot data = 100*rand(1000,1); edges = 1:100; hData = histc(data,edges); figure subplot(2,1,1) h1 = bar(edges,hData,'histc'); % change colors set(h1,'FaceColor','m') set(h1,'EdgeColor','b') % Change width subplot(2,1,2) h1 = bar(edges,hData,0.4,'histc');

Categories : Matlab

Line Plus Bar with Multi Bars?
The problem with the dates is that your data contains timestamps (i.e. in seconds), but Javascript expects milliseconds. This is easily fixed by multiplying the values by 1000: series.values = series.values.map(function (d) { return { x: d[0]*1000, y: d[1] } }); The tooltip problem is actually a bug in NVD3 -- it's not meant to be used this way. The problem boils down to the mouseover handler assuming that the first item of the data is representative of what you want. You can fix this for your case by selecting the item by data point number modulo 2 (because there're two bars): .on('mouseover', function(d,i) { d3.select(this).classed('hover', true); dispatch.elementMouseover({ point: d, seri

Categories : D3 Js

Action bars before Android 3.0
android has given a v4, v7, v13 package support. Putting those packages in your application, you can use those features in api level below 13. Have a lokk at this link: http://developer.android.com/tools/support-library/index.html

Categories : Android

Fixed box with scroll bars?
.fixed-box { position:fixed; top:5px; width: 100px; overflow:auto; height: 100%; } http://jsfiddle.net/uWY5S/3/

Categories : CSS

Disappearing nav links/bars
there is a problem of z-index in #nav write this style to the #nav #container { width: 900px; margin: 0 auto; position:relative; padding-top:50px; } #nav { height: 50px; background: #b7d84b; position:fixed; z-index:10; width:900px; top:0; } updated jsFiddle File

Categories : HTML

ONE controller with TWO navigation bars
Why are you pushing UINavigationControllers within each other? It's not a good iOS Programming practice. You can present second Nav Controller as modal controller on 1st Nav. controller, and dismiss it when you have done your task.

Categories : IOS

Overlapping bars with JQPlot
There is no such configuration in jqplot. However there is a hacky way to do it by setting the z-index. $('#chart .jqplot-series-canvas:first').css( "z-index", 99999); Demo

Categories : Javascript

Bars Charts & json
Your code has multiple problems. You reference names.length but names is undefined. I think you meant json.length You call chart.selectAll("rect").data(data) but data (the parameter) is undefined. I think you meant data(json) You are using scales directly where your data are not values in the domain they are expecting: chart.selectAll("rect") ... .attr("y", y) .attr("width", x) This only works if the data for the selection has values in the domain of the scale. In this case, your data are objects where the value and name properties are in the domain of the scales, so: chart.selectAll("rect") ... .attr("y", function(d) { return y(d.name); }) .attr("width", function(d) { return x(d.value); }) Similar issue for your text nodes: chart.selectAll("text")

Categories : D3 Js

Is there anyway to set a binding on ALL scroll bars?
Use on to bing all your div scrollbar, including the dynamically created div. $(document).on('scroll','.divClass', someFunction); The .divClass must be present on all your container where you want to execute the someFunction function.

Categories : Javascript

JQplot spacing between bars?
According to jQplot documentation about barRenderer, I think you can use barPadding and barMargin options to specify your needed space value (0px?) Edit : barMargin seems to be what you needed as it allows you to specify number of pixels between groups of bars at adjacent axis values. (while barPadding allows you to specify number of pixels between adjacent bars at the same axis value).

Categories : Jquery

Progress bars in Java
You could use a SwingWorker for this. This class enables allows the time-consuming work to be done in background thread and does not hold up the user-interface in the meantime. It also has the facility to divide the work up into 'chunks' and to update the user-interface on the completion of these chunks of work. This is what you would need for a progress bar, although it depends on your task being 'chunkable'. The link above takes you to the JavaDoc for this class which contains an example for both the simple and the 'chunked' usage.

Categories : Java

How to add pictures to navigation bars on the tab bar
Check that the info image is included in the target you are building by selecting the file in the project navigator in the left-hand sidebar and looking at the targets in the file inspector in the right-hand sidebar. Check that the case is correct - info.png and Info.png are different when running on iOS.

Categories : IOS

Bars in Bar graph are of different size
You may have too many data and the chart is too small. Try delete some data or make the chart bigger. I made an example. I created a c# project, put a chart in the form, randomly add some data and run the program. When the chart is big enough, it looks well. When the chart is smaller, not all the columns are the same width.

Categories : C#

Get height at which scroll bars will appear in javascript
I might be misunderstand the question. In general, if the window height is less than the document height you will get a vertical scrollbar. So in jQuery the check might look like this: if( $(document).height() > $(window).height() ){ /* There will be a scrollbar */ } You can perform this check within DOM changing and window resizing events to ascertain if a scrollbar has appeared. To preemptively determine if an event would cause a scrollbar to appear can be tricky and would likely require some understanding of the page and potential events to handle efficiently.

Categories : Javascript

How to stick bars to the bottom in this chart
here is your new CSS code : .clear {clear:both; line-height: 0; width: 0; height: 0} #chart { width: 100%; height: 220px; font-family: Arial,sans-serif; font-size: 12px; line-height: 17px; color: #777777; } #scale, #chartwrap, #description { float: left; margin-right: 7px; } #scale { margin-top: -7px; } #scale i { display: block; text-align: right; } #chartbox { height: 170px; display: inline-block; border: 2px solid #C7C7C7; border-right: 0; border-top: 0; } .thisday { display: inline-block; height: 170px; margin: 0 18px; width: 40px; vertical-align: bottom; position: relative; } .vbottom { display: block; position: absolute; bottom:0px; } .thisday .in, .thisday .out { width: 18px;

Categories : HTML

Bars on side of navigation bar when hovering over
Try removing all the space between your <li> elements. The spaces are creating extra, well, space between links. This adds to the 100% width 5 elements at 20% width should be creating. <li><a href="index.html">Home</a></li><li><a href="about.html">About</a></li><li><a href="contact.html">Contact</a></li><li><a href="services.html">Services</a></li><li><a href="biography.html">Biography</a></li> I hope that there is a more satisfying answer than this, but if you just want the quick and easy, this will work. JSFiddle

Categories : HTML



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