w3hello.com logo
Home PHP C# C++ Android Java Javascript Python IOS SQL HTML videos Categories
How to setup debugging Qt apps on OSX Mountain Lion with Qt-Creator?
How can you tell that Qt Creator is compiling in debug mode? Have you got -g flag in the Makefile? If you create the project in Qt Creator, it should be enough to choose the Debug option as in this image:

Categories : Xcode

Show image in fullscreen
use this code on getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN, WindowManager.LayoutParams.FLAG_FULLSCREEN); and use this code in android manifest for FullImageActivity android:theme="@android:style/Theme.Black.NoTitleBar" or else try this in xml like android:layout_width="fill_parent" android:layout_height="fill_parent" for full_image_view

Categories : Android

How can I show a ViewPager in fullscreen mode?
Maybe you could set an onClickListener on the ViewPager to do something like this: if flag == 0 { set the other Views surrounding the ViewPager layout_width and layout_height to 0dp; set the ViewPager layout_width and layout_height to 0dp AND layout_weight to 1; flag = 1; } elseif(flag == 1) { set other Views layout_width and layout_height to their normal values; set the ViewPager layout_width and layout_height to their normal values also; flag = 0; } Maybe this helps, not sure if it's the most correct way to do it but I think it will work. Also, this is pseudo code, just to explain the idea, it's not proper Java code (obviously) :)

Categories : Android

Show status bar in Android in PhoneGap app (ie prevent fullscreen)
// Hide status bar getWindow().addFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN); // Show status bar getWindow().clearFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN); The default behavior should be NOT fullscreen, have you modified your theme in xml? Some other code I have found, just in case: private void toggleFullscreen(boolean fullscreen) { WindowManager.LayoutParams attrs = getWindow().getAttributes(); if (fullscreen) { attrs.flags |= WindowManager.LayoutParams.FLAG_FULLSCREEN; } else { attrs.flags &= ~WindowManager.LayoutParams.FLAG_FULLSCREEN; } getWindow().setAttributes(attrs); }

Categories : Android

Displaying elements other than fullscreen element (HTML5 fullscreen API)
It seems that browsers (Chrome 28, Firefox 23) set the z-index of fullscreened elements to 2147483647 (the largest 32-bit signed number). According to tests, setting the z-index of other elements to the same z-index will cause them to show, but the z-index of the fullscreened element can not be changed (it can, but the browser just ignores the value — even with !important). Maybe the only reference I could find to this: https://github.com/WebKit/webkit/blob/master/LayoutTests/fullscreen/full-screen-zIndex.html Also, in Chrome dev tools: So either set elements to the maximum z-index, or, the better solution would be to just create a container element, make it so that all elements you want to display are children of the container element, and fullscreen it.

Categories : HTML

How to show detail view controller from split view in fullscreen mode?
mgsplitviewcontroller has the necessary features for you - (IBAction)toggleMasterView:(id)sender; // toggles display of the master view in the current orientation.

Categories : IOS

Show only messaging apps on "tell a friend" sharing intent
Intent i=new Intent(android.content.Intent.ACTION_SEND); i.setType("text/plain"); i.putExtra(android.content.Intent.EXTRA_SUBJECT,"Subject test"); i.putExtra(android.content.Intent.EXTRA_TEXT, "extra text that you want to put"); startActivity(Intent.createChooser(i,"Share via"));

Categories : Android

How do I show busy window when button click in winform apps
It is total nonsense to start a thread and invoke everything back to the GUI thread. And DoEvents is a indicator for code smell. Bundle your invokes as invokes create a large Overhead Change your code to something like this: private void btnSearch_Click(object sender, EventArgs e) { this.btnSearch.Enabled = false; this.Cursor = Cursors.WaitCursor; this.wfrm.Show(); Thread t = new Thread(this.Search); t.Start(); } private void Search() { while (isWorking) { DoHeavyWork(); this.Invoke(new Action(ReportToWaitForm); } this.Invoke(new Action(() => { this.btnSearch.Enabled = true; this.Cursor = Cursors.Default; this

Categories : C#

How to hide/show the icon button from the application bar in windows phone 8 apps?
We can't access direclty the visibilty propety of application bar,and so other way is remove icon when u no need it and add it again when you need it. To Remove first appicon, ApplicationBar.Buttons.RemoveAt(0); To Add, ApplicationBarIconButton b = new ApplicationBarIconButton(); b.Text = i.ToString(); b.IconUri = new Uri("/Images/icon1.png", UriKind.Relative); ApplicationBar.Buttons.Add(b);

Categories : C#

CSS menubar ul li
I have updated your code. li a{ display:block; padding:5px 10px; background:#ccc; border-right:1px solid #fff; } li a.last{ border-right:none; } Check the jsfiddle

Categories : CSS

GWT MenuBar SubMenuBar align
Try giving CSS as below : MenuBar manageMenuBar = new MenuBar(true); manageMenuBar.setStyleName("dropdownMenu"); .dropdownMenu { background-clip: padding-box; background-color: #FFFFFF; border: 1px solid #CCCCCC; border-radius: 6px 6px 6px 6px; box-shadow: 0 5px 10px #CCCCCC; float: right; left: -126px; // This will set the position of the menubar at left by 126px. list-style: none outside none; margin: -6px -18px -20px -5px; min-width: 120px; padding: 5px 0; position: absolute; z-index: 1000; }

Categories : Java

GWT change menuBar position
Be careful because if you change this rule, all the elements which are using they´ll change their position as well. So, I recommend you in your GWT´s code, get this element and apply your css rule. About the css, under my opinion maybe changing the text-align is enought for your requirements. Something like: text-align: right; If you are happy working with JS, you can have a look into GQuery, because is quite fast have access to your element. I have just checked in the GWT´s Showcase and is working...

Categories : Java

Kill OSX menubar process
Thanks @Jeroen the answer at http://superuser.com/questions/648696/how-to-stop-and-start-dropbox-app-in-apple-terminal did work for me. osascript -e 'tell application "Dropbox" to quit' Just substitute in the application to quit.

Categories : Osx

CSS - Menubar changes width while hover
You can position the submenu below the main menu button by setting the main menu button to position: relative and placing the (absolute) submenu inside it. You then show/hide the submenu by toggling overflow: hidden and visible. Here is a demo: http://codepen.io/seraphzz/pen/osGnh

Categories : CSS

Edit MenuBar with Css in JavaFx
Make: .menu .label{ -fx-text-fill: black;} Reference: https://forums.oracle.com/message/10402062

Categories : Java

How can I align MenuBarItem far right of a MenuBar?
Add a style float: right; to the domNode of the 'Logout' MenuBarItem var lo = new MenuBarItem({ label: "Logout" }); domStyle.set(lo.domNode, 'float', 'right'); http://jsfiddle.net/cswing/6Lzdg/

Categories : Javascript

missing menubar in android 2.3.5
If you mean ActionBar, it's available only from Android 3.0: http://developer.android.com/guide/topics/ui/actionbar.html You can control the behaviors and visibility of the action bar with the ActionBar APIs, which were added in Android 3.0 (API level 11). If you want to add an ActionBar to your 2.3.5 application you should take a look at http://actionbarsherlock.com/ Regards

Categories : Android

Two versions of PHP - Mountain Lion
Your Apache is including libphp5.so of the wrong/the other installation. Option 1: See if you can find a libphp5.so file for your other PHP installation and point the Apache config to it (just put the whole path in the LoadModule line and restart Apache). If you cannot find such a file, the Apache module wasn't compiled for that PHP version. Compiling that may be a bit complicated, so in that case: Option 2: Figure out which PHP you're executing on the command line using which php and then just use the other one using the full path, e.g. instead of $ php ... use $ /usr/bin/php .... Note that you may still have different PHP configuration files for Apache and the CLI.

Categories : PHP

Will it be possible to upload to App Store from Lion?
Your Lion will be just fine as stated here: https://developer.apple.com/support/ios/ios-dev-center.html "To develop with the iOS SDK and Xcode, you must have an Intel-based Mac running Mac OS X Snow Leopard or later and you must be registered as an Apple Developer." Update July 2015 https://developer.apple.com/support/enrollment/ You must have an Intel-based Mac running OS X Yosemite (v10.10) or later.

Categories : IOS

SublimeClang OSX Mountain Lion C++11
It may be too late, but I found how to do it. This matter is because clang uses headers for gcc-4.2, which is quite old and doesn't support C++11. To complete C++11 code, you have to get newer gcc and copy the include path it uses. If you have homebrew, open terminal and type brew tap homebrew/versions brew install gcc48 You can install gcc-4.8 and new libstdc++ with these two lines. Now, create some c++ file and try to use g++-4.8 with -v option. g++-4.8 -v example.cpp -v option tell gcc to show detailed log. In the output, there should be some lines like this. #include <...> search starts here: /usr/local/Cellar/gcc48/4.8.1/gcc/lib/gcc/x86_64-apple-darwin12.4.1/4.8.1/../../../../include/c++/4.8.1 /usr/local/Cellar/gcc48/4.8.1/gcc/lib/gcc/x86_64-apple-darwin12.4.1/4.8.1/

Categories : C++

Mac OSX Lion/X11/CImg Library
The header file Xlib.h is in /opt/X11/include, so add that path to the Header Search Paths in Xcode: You'll probably need to add libraries from /opt/X11/lib as well...

Categories : Xcode

TideSDK Notifications in OSX Lion 10.7.5
Harry, I'm not too familiar with CoffeeScript, but the following code works for me in 10.7.5 and 10.8.4 - it seems similar to what you have: function showNotify(title, message) { var notification = Ti.Notification.createNotification({ 'title': title || 'No Title', 'message': message || 'No Message', 'timeout': 10 }); notification.show(); } showNotify("The Title", "The Message"); Hope it helps.

Categories : Misc

MAC OSX LION: gcc on mac not compiling wget
Honestly, even though it appears that gcc exists; but does it point to a valid install? It still sounds like it is not installed properly and with an upgrade to Mountain Lion, all your open source tools have been scrubbed away and pushed to Xcode and must be manually installed if necessary.

Categories : C++

Installing JDK on OSX Lion for Scala
Scala is a popular enough of a language for there to be plenty of information on how to get started from scratch. For example, googling for "scala installation" gave me (amongst other stuff) http://www.tutorialspoint.com/scala/scala_environment_setup.htm —they talk about JVM versions, how to install Scala, etc; i.e. all you need. If that page won't do, I'm sure you'll find many more.

Categories : Scala

R - OSX Mountain Lion and CPU Limit
Tried ulimit... Appears I do not have access, even via sudo. I get the same output from ulimit -a -H before and after giving ulimit -t 12000 # sets cputime limit to 12000 seconds from 600 seconds SOLVED via Debian Virtual Machine. If someone has a Mountain Lionic solution, please let us know.

Categories : R

how to create menu with menubar in grails
There's the Platform Core API plugin Documentation here I've not used it myself though

Categories : Grails

Java MenuBar cuts into my applet
Instead of a JMenuBar, just do a MenuBar. It will show a menu bar that is above the GUI and will allow your full screen of the GUI to be shown...it acts as a JMenuBar in every way.. MenuBar mB = new MenuBar(); Menu menu = new Menu("Menu"); MenuItem mI1 = new MenuItem("Menu Item 1"); // setting the bar this.setMenuBar(mB); //adding the menu onto the bar mB.addMenu(menu); // adding the menu item into the menu menu.addMenuItem(mI1); //adding action listener mI1.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { // do whatever } }); You can see much more here: MenuBar, Menu, and MenuItem help

Categories : Java

Flex menuitem from menubar disable
Here is my solution and the working example: In order to take control over a submenu item you need to navigate to it using XML expressions and then point to the first element of the List. It is so because your XML-expression delievers a XMLList in a common case. <?xml version="1.0" encoding="utf-8"?> <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:s="library://ns.adobe.com/flex/spark" xmlns:mx="library://ns.adobe.com/flex/mx" minWidth="955" minHeight="600"> <fx:Script> <![CDATA[ [Bindable]public var menuAgroApp:XMLList = <> <menuitem label="ADMIN"> <menuitem label="Option 1"/> <menuitem label="Option 2"/> <menuitem labe

Categories : Actionscript

PyQt -- Create a menuBar outside of MainWindow
QMenuBar actually just a typical widget. You can specify any object as a parent. As for C++ this code works fine: #include "widget.h" #include <QMenuBar> Widget::Widget(QWidget *parent) : QWidget(parent) { QMenuBar *mb = new QMenuBar(this); mb->addAction("Hello"); } Widget::~Widget() { }

Categories : Python

Menubar hidding div when using anchor linking
You could apply the padding to each of the sections instead of the body, and then add a negative bottom margin to close the gap between sections: http://jsfiddle.net/TUy7C/2/ #home, #about, #contact { padding-top: 80px; margin-bottom: -80px; }

Categories : CSS

In IE 7 primefaces p:accordionPanel over laps p:menubar
It can solved by giving greater z-index to <p:menubar /> then <p:accordionPanel /> In my example changes i have done is <p:menubar style="z-index:2000"> <p:accordionPanel style="z-index:1000"> However if there are multiple components it can be solved by using jquery. The component declared first will have z-index greater then later one $(document).ready(function(){ var zIndexNumber = 1000; $('div').each(function() { $(this).css('zIndex', zIndexNumber); zIndexNumber -= 10; }); });

Categories : Internet Explorer

menubar at the top (Div element) remains while you scroll down
You only need CSS. You merely have to give it a fixed position: #topBar { position:fixed; top:0px; } That will scroll with the page. See also this SO Question.

Categories : Javascript

jQuery: Strange behavior in my menubar
I added some CSS: #menu > li { display: inline-block; } #cat1 { display:none; } #menu a:hover { color: #dc692e; } and simplified the Javascript: $('#menu > li').hover(function(){ $('#cat1').slideDown('slow'); },function(){ $('#cat1').stop().slideUp('slow'); });

Categories : Jquery

tkinter - Change menubar location
You can't, if you're talking about the native menubar you get when you set the menu attribute of the root window. You can create your own menubar that behaves a little bit like a menubar by using a frame and one or more menubuttons, and place that at the bottom.

Categories : Python

Does anybody know how to sniff in promiscuous mode on OS X Lion?
I recall having to setup a script on terminal to "tweak the permissions" of some files / drivers That's probably referring to the permissions on the /dev/bpf* devices. That's not something necessary to sniff in promiscuous mode, it's something necessary to sniff at all unless you're running as root. Recent versions of Wireshark, going back at least to Wireshark 1.8.0, install a script to do that automatically. Open up a Terminal window and do ls -l /dev/bpf*; it should report the /dev/bpf* devices, e.g. /dev/bpf0, /dev/bpf1, etc. as having permissions rw-rw---- and as being owned by root and group access_bpf. In addition, the id command should report you as being a member of group access_bpf. If that's all the case, Wireshark should show an en0 device and possibly an en1 device.

Categories : Osx

Mono Program Crashes on OSX Lion
This might be a problem of where you built it: try building it in Lion instead to see if that makes a difference. I've seen problems before when trying to execute a program on an older OS than where it was built.

Categories : C#

Tesseract and dylib on OSX Mountain Lion
Done by cleaning my installation of both the softwares and re-installing them through brew. Mind that if there is some linking problem, you have to execute brew link --overwrite tesseract to solve them.

Categories : Misc

Which Python architecture provided on Mac (Lion)?
Use platform.architecture(): >>> import platform >>> platform.architecture() ('64bit', '') Run on my Mac OS X 10.8.4. Note that your Python executable may be a universal binary, in which case you could get the wrong architecture quoted: Note: On Mac OS X (and perhaps other platforms), executable files may be universal files containing multiple architectures. You can also test sys.maxsize: >>> sys.maxsize > 2**32 True The above would return False if you were running a 32-bit platform.

Categories : Python

How do I create a .conf file in Mac osx Lion?
Open TextEdit's Preferences, and switch to the Open and Save section. Under the When Saving a File panel, uncheck the Add '.txt' extension to plain text files option.

Categories : Osx

Where are the files generated with Xcode 4.5 in Lion?
This has nothing to do with Lion. Xcode puts generated files in: ~/Library/Developer/Xcode/DerivedData where ~ is your home directory. Keep in mind that the ~/Library directory is hidden by default in Lion (and later).

Categories : Xcode



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