w3hello.com logo
Home PHP C# C++ Android Java Javascript Python IOS SQL HTML videos Categories
The screen of ios phonegap application dont show completly in iphone 5 device
I finally found the solution to this problem. The HTML5 framework I was using (DHTMLX), has a problem that the new iphone5. In this forum it is solved: http://forum.dhtmlx.com/viewtopic.php?f=22&t=27550

Categories : Iphone

Gnome-shell panel shadow
...ok, I've found out where the problem is. Unlikewise HTML, the shadow alpha is also affected by panel background alpha. So a black shadow (alpha=1) on a transparent background panel, would result in a transparent (thus insvisible) shadow. So by setting background-color: rgba(0,0,0,0.5); font-weight: bold; height: 1.86em; box-shadow: 0px 3px 10px rgba(0,0,0,0.5); It would result on a 0.25 alpha shadow (0.5 * 0.5 = 0.25). That's why the box-shadow effect from my question above is not shown. As said, that's a different behaviour than HTML where a transparent background div would not affect its box-shadow effect. Perhaps some gnome-shell developer passing by here might want to consider this implementation.

Categories : CSS

How to get Empathy contact list in GNOME shell extensions?
The Empathy-IM tool is a reference-implementation of the "Freedesktop Telepathy"-specification. From Wikipedia: How Telepathy works Protocol implementations provide a D-Bus service called a connection manager. Telepathy clients use these to create connections to services. Once a connection is established, further communication happens using objects called channels which are requested from the connection. A channel might be used to send and receive text messages, or represent the contact list, or to establish a VoIP call. Applications Empathy [...] Therefor, you can use the DBus interface to communicate with it. Gnome-Shell offers a Gjs/GnomeShell-Extension binding, which is explained nowhere, but example code is available: Mailgroup post Test-file f

Categories : Misc

How to show facebook login screen in my app?
This screen will be shown only if the native application is installed in phone. Try this code public void connectToFacebook() { this.activeSession = Session.getActiveSession(); if (activeSession == null || activeSession.getState().isClosed()) { activeSession = new Session.Builder(this).setApplicationId( this.getString(R.string.app_id)).build(); Session.setActiveSession(activeSession); } Session.OpenRequest openRequest = null; openRequest = new Session.OpenRequest((Activity) this); if (openRequest != null) { openRequest.setDefaultAudience(SessionDefaultAudience.FRIENDS); openRequest .setLoginBehavior(SessionLoginBehavior.SSO_WITH_FALLBACK); openRequest.setPermissions(Arrays.asList("publish_st

Categories : Android

How to show login screen only for the first time when app launches
Try this... if ([[NSUserDefaults standardUserDefaults] boolForKey:@"firstLaunch"]) { [[NSUserDefaults standardUserDefaults] setBool:NO forKey:@"firstLaunch"]; [self.window addSubview:[splitViewController view]]; LoginViewController *targetController = [[LoginViewController alloc] initWithNibName:@"LoginViewController" bundle:nil]; targetController.modalPresentationStyle = UIModalPresentationFullScreen; [self.splitViewController presentViewController:targetController animated:YES completion:nil]; } else { [self.window addSubview:[splitViewController view]]; }

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

Running a login shell using sudo inside a shell script on Mac OSX
Your shell is interpreting the $HOME variable in the heredoc, before the input reaches the su shell. You need to escape the $: bash-3.2$ sudo su -l root <<EOF > echo $HOME > echo $HOME > EOF /Users/kevin /var/root The real question is why does it work on your Linux box.

Categories : Osx

How can I default to a login shell for Jenkins shell execution
You could work around by creating a wrapper around bash: #!/bin/sh # for ex.: /usr/local/bin/login-bash exec /bin/bash -l "$@" If you want to use the default ruby just use the rvm-shell, which comes with rvm. Login as the jenkins user and type: $ which rvm-shell /home/jenkins/.rvm/bin/rvm-shell to get the path of the rvm-shell. Use this path for the "Shell executable" option.

Categories : Bash

How to spawn a new application from Gnome/GTK to a CLI application and read its output back into Gnome/GTK application?
top and tail -f are long-running programs (in fact, they never exit), so your strategy of reading the whole output and populating the the textbuffer with it obviously won't work. Instead, you need to create an IO channel that watches what's going on with the pipe, hook the channel into the event loop, and append it to the text buffer as new output arrives. The minimalistic change to your program would be to rewrite the prepare function like this: static gboolean data_ready(GIOChannel *channel, GIOCondition cond, gpointer data) { FILE *fp = data; char line[256]; if (fgets(line, sizeof line, fp)) { gtk_text_buffer_get_end_iter (buffer, &iter); gtk_text_buffer_insert (buffer, &iter, line, -1); return TRUE; } else { fclose(fp); re

Categories : C

changing activities with a login screen if login is correct
I think your architecture should separate the log-in functionality from the welcome functionality by separating activities i.e. Login activity + Welcome activity. Before you decide which one to use create a Splash activity and check the persistent data SharedPreferences. This way you separate the modules and call each one as needed.

Categories : Android

input fields in jquery mobile dont expand to fill the screen
jQuery Mobile has a buggy implementation of box-resizing CSS3 rule. To fix this problem use this CSS: @media all and (min-width: 28em){ .ui-input-text { box-sizing: none !important; -moz-box-sizing: none !important; -webkit-box-sizing: none !important; width: 100% !important; display: inline-block !important; } } Fist box-sizing: none don't exist but it will override default value and it is better to override it like this then to remove it manually from a css file. Working example: http://jsfiddle.net/B8JDt/3/

Categories : Jquery

making my site show mysite.com/login/ instead of mysite/login.php?action=login&var=1234
Put this code in your .htaccess under DOCUMENT_ROOT directory: Options +FollowSymLinks -MultiViews # Turn mod_rewrite on RewriteEngine On RewriteBase / # specific rule to handle these URLs RewriteRule ^login/?$ /login.php [L,NC] RewriteRule ^index/?$ /index.php [L,NC] # OR a generic once to forward all /foo to /foo.php RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{DOCUMENT_ROOT}/$1.php -f RewriteRule ^(.+?)/?$ /$1.php [L]

Categories : Apache

Unity Android black screen
This is the problem with untiy on Mac OS X. When I build my apps using unity on Windows, there is no fade-in effect in the beginning of the game, but after I port it to unity on Mac OS X, the fade-in effects appears. I assume you are using Mac OS X, try to build your app on windows, if thats the case. And, yes. There is no work around for this on Mac, I don't know why thay put this effect for Mac version.

Categories : Android

4/40 pngs dont show up?
Looks like a compatibility issue similar to this one I had used PS to make all the images but when I open them and resave in PaintBoard then they seem to get picked up now? Upon further inspection it looks like the size has reduced greatly as well now as PS was saving a whole heap of other information with each image. I will go through them all now and resave them just to make the program more economical.

Categories : IOS

Eclipse dont show to ADT and SDK
There are many possibilities for this query: 1) First of all please check whether you have installed it correctly: Help --> Install New Software then add this link adt - http://dl-ssl.google.com/android/eclipse/ and read this too 2) try Window > Customize perspective > Command Groups Availability tab. Check the "Android SDK and AVD Manager" option and hit the OK button. If "Android SDK and AVD Manager" hasn't shown up, I think there may be some kind of file miss match in the eclipse. 3) If so, It would be better to start fresh: You can find the step by step guidance here

Categories : Android

Unity-Android Plugin (Black Screen)
1.you should put the xml layout file under eclipse project to Unity project 2.you should register the Activity in manifest, and the manifest should be put to Unity project too. 3.make sure your operation is in UIThread.

Categories : Android

ng-include dont work on ng-show
I'm not able to recreate this issue. Take a look at this plunker that loads two different templates. (The both look odd, since they're templates stolen from other plunkers to allow for xss). Maybe this issue is caused by the two incomplete div ending tags, that are .

Categories : Javascript

ImageControl dont show in execution
Make sure image build action is set to Resource. (right click on an image and then go to properties, set build action to resource) Also, instead of siteoforigin use application authority - Source="pack://application:,,,/Resources/Trophy-Gold-icon11.png"

Categories : Wpf

why dont show me the data ? WINRT
Okay, so what's happening is your GridView is getting the ListaPersonasAgrupada, and then you are changing it, but your GridView doesn't know that it was changed. You need to have your ViewModel tell your GridView that ListaPersonasAgrupada has changed. You can do this with INotifyPropertyChanged. Or, if you're using MvvmLight, you can use RaisePropertyChanged. The other option is to re-set the ItemsSource of the GridView, but that will break the binding.

Categories : C#

Dont show keyboard when textfield is tapped
Just set the UIDatePicker as the inputView of your UITextField. This wil repalce the keyboard as the input view when the user clicks on the UItextField with the UIDatePicker. self.dateTextField.inputView = self.datePicker;

Categories : Objective C

Highchart Bar on big range data dont show
I dont think anything is wrong. $(function () { $('#chart1').highcharts({ chart: { type: 'column', margin: [ 50, 50, 100, 80] }, title: { text: 'Sum of User' }, xAxis: { categories: [ 'A','B','C','D','E','F','G' ], labels: { rotation: -20, align: 'right', style: { fontSize: '13px', fontFamily: 'Verdana, sans-serif' } } }, yAxis: { min: 0, title: { text: 'Total' } }, legend: { enabled: false }, tooltip: { formatter: func

Categories : Javascript

Facebook Like box in Android dont show post
//Facebook use javascript to show feeds you have to enable javascript in your code. Try this. @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); WebView wv = (WebView)findViewById(R.id.webView1); WebSettings webSettings = wv.getSettings(); webSettings.setJavaScriptEnabled(true); webSettings.setUseWideViewPort(true); webSettings.setLoadWithOverviewMode(true); wv.setWebViewClient(new WebViewClient(){ @Override public boolean shouldOverrideUrlLoading(WebView view, String url) { //view.loadUrl(url); return super.shouldOverrideUrlLoad

Categories : Android

Fragment dont show content of TabHost in second time
For me, the problem was in my TabsAdapter. The single constructor looked like this: public TabsAdapter(FragmentActivity activity, TabHost tabHost, ViewPager pager) { super(activity.getSupportFragmentManager()); mContext = activity; mTabHost = tabHost; mViewPager = pager; mTabHost.setOnTabChangedListener(this); mViewPager.setAdapter(this); mViewPager.setOnPageChangeListener(this); } It's calling getSupportFragmentManager which returns the FragmentManager associated with our FragmentActivity. Bad. We need the FM that our current Fragment manages. Creating an alternate (overloaded) constructor that used getChildFragmentManager did the trick. public TabsAdapter(Fragment fragment, TabHost tabHost, ViewPager pager) { super(fragment.getChildFragmentManager());

Categories : Android

Why dont netty logs show proper class and package information
Try to use %c instead of %F in your pattern. %F - Outputs the file name where the logging request was issued and %c prints logger name. In Netty all logging goes through the wrapper classes in your case it's Slf4JLogger.class Your pattern should look like: log4j.appender.toLogFile.layout.ConversionPattern= %d [%c:%L][%p]:%m%n EDIT due to comment: Yes there is a way to print only filename: %c{1} See documentation: http://logging.apache.org/log4j/2.x/manual/layouts.html#Patterns

Categories : Java

Show unity 3D in xcode project
load unity project from web What do you mean by that? If you mean a compiled unity webplayer application, forget it. If you mean a standard non compiled Unity project, note that with the iOS plugin you can compile for mobile Apple hardware. This used to cost a lot of money but now they're giving it out for free (included in Unity free). Also, unity must handle touch events. The standard Input Unity class handles touch events with methods such as GetTouch() and variables like touchCount or touches. Unity is a very big and complex package: integrating it into an existing project may be overwhelmingly difficult. I really don't think there are natives way to do so. Rather, I'd advise you to port your current XCode project into Unity (which sounds a really strange thing to do if y

Categories : IOS

android: webview show blank screen when i show pdf file from dropbox link
WebView Can't open pdf You need to use google doc for View Pdf or you can use AdobeReadr Pdf protected void onCreate(Bundle savedInstanceState) { // TODO Auto-generated method stub super.onCreate(savedInstanceState); setContentView(R.layout.activity_wbview); mWebView=(WebView) findViewById(R.id.web_view); String weblink="https://dl.dropboxusercontent.com/u/107860028/Publishing%20an%20Application%20on%20Google%20Play.pdf"; mWebView.getSettings().setJavaScriptEnabled(true); webview.loadUrl("http://docs.google.com/gview?embedded=true&url=+weblink"); }

Categories : Android

In login shell but rvm is not a function
I was sourcing the ~/.rvm/bin/rvm script twice. In the process of uninstalling and reinstalling, it once happened to not modify ~/.bash_profile. I then did this manually. A second uninstall/re-install dance then produced a ~/.bash_profile of: source ~/.bashrc # (lines added by me) if [ -f /ubuntu/.rvm/bin/rvm ]; then source '/ubuntu/.rvm/bin/rvm' > /dev/null fi # (lines added by RVM installer using: curl -L https://get.rvm.io | bash -s stable --auto-dotfiles) [[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm" # Load RVM into a shell session *as a function*

Categories : Shell

Windows 8 Grid Template JS App, CSS manipulations dont show on all selected items in groupedItems view
First, here is why this might be happening - WinJS is using single page navigation for the app experience. This means that when you navigate to a new page, actually you don't. Instead the content is removed from the page and the new content is loaded in the same page. It is possible that at the moment you press the button not all elements have been loaded in the DOM and therefore they cannot be manipulated by your function. This is why when you call it from the ready() function it works - all contents are loaded in the DOM. It is generally better to do things in the ready() function. About the behavior when you slide back left and the items are again reloaded with titles - for some reason the listView items are reloading. Maybe you are using live data from the news site and they are refre

Categories : Javascript

Merge a branch, but dont fill gitk with noise BUT dont lie about where it came from
Have you already pushed the dev branch and thus shared it with others? If not, an interactive rebase will do an excellent job git checkout devbranch git rebase -i master Git rebase will give you the opportunity to clean up your history by edit commits, squash them together, split them or even skip some. The above will end up putting the commits of devbranch in a straight history after master. If you feel that is too much "lying" then you can rebase devbranch on its own base, so you can rewrite history but still keep it as a branch starting at the same place as before git merge-base master devbranch git rebase -i <hash output of previous command>

Categories : GIT

How to use the function exec to start a login shell(csh)?
Try to run it this way instead: execl("/bin/sh","sh","-l","-c","exec csh -l",NULL); By the way, how did you know that -l for other shells was the solution? ;)

Categories : C

Vim: blank screen on subsequent shell commands
If you mean that when the previous external command output is still visible, and Vim shows the "Press ENTER or type command to continue" prompt, :! will indeed clear the output. That is because Vim's command line (which you enter with :) is always at the bottom of the screen. There's no way around this. To help you with your problem, many people will recommend using a terminal multiplexer like screen or tmux, and use a split of Vim and a separate shell in two windows. You can then use the multiplexer's commands to move to / from Vim and resize the corresponding windows based on your needs. Without that, using just Vim, a workaround would be to capture the command output in a scratch buffer: :new | 0read !ls is the basic command; there are more elaborate implementations in plugins or o

Categories : Vim

Executing shell program in Python without printing to screen
If subprocess.check_ouput is not working for you, use a Popen object and a PIPE to capture the program's output in Python. prog = subprocess.Popen('./myprog', shell=True, stdout=subprocess.PIPE) output = prog.communicate()[0] the .communicate() method will wait for a program to finish execution and then return a tuple of (stdout, stderr) which is why you'll want to take the [0] of that. If you also want to capture stderr then add stderr=subprocess.PIPE to the creation of the Popen object. If you wish to capture the output of prog while it is running instead of waiting for it to finish, you can call line = prog.stdout.readline() to read one line at a time. Note that this will hang if there are no lines available until there is one.

Categories : Python

Django Unittests Client Login: fails in test suite, but not in Shell
A test user should be created. Something like: def setUp(self): self.client = Client() self.username = 'agconti' self.email = 'test@test.com' self.password = 'test' self.test_user = User.objects.create_user(self.username, self.email, self.password) login = self.client.login(username=self.username, password=self.password) self.assertEqual(login, True) In your shell test the user is probably already present in your db, whereas in your unittest there might not be a user...

Categories : Python

PhpMyAdmin login screen
Go to WAMP folder. And search config.inc.php file. When you open that file, the file will have something like this: <?php /* Servers configuration */ $i = 0; /* Server: localhost [1] */ $i++; $cfg['Servers'][$i]['verbose'] = 'localhost'; $cfg['Servers'][$i]['host'] = 'localhost'; $cfg['Servers'][$i]['port'] = ''; $cfg['Servers'][$i]['socket'] = ''; $cfg['Servers'][$i]['connect_type'] = 'tcp'; $cfg['Servers'][$i]['extension'] = 'mysqli'; $cfg['Servers'][$i]['auth_type'] = 'cookie'; $cfg['Servers'][$i]['user'] = 'root'; $cfg['Servers'][$i]['password'] = ''; $cfg['Servers'][$i]['AllowNoPassword'] = true; /* End of servers configuration */ $cfg['DefaultLang'] = 'en-utf-8'; $cfg['ServerDefault'] = 1; $cfg['UploadDir'] = ''; $cfg['SaveDir'] = ''; ?> Search for this line: $cfg['

Categories : Mysql

One time login screen on ios
First you set stoyboardId for login and home view controller in storyboard - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { NSString *identifier; BOOL isSaved = [[NSUserDefaults standardUserDefaults] boolForKey:@"loginSaved"]; if (isSaved) { identifier=@"home"; } else { identifier=@"login"; } UIStoryboard * storyboardobj=[UIStoryboard storyboardWithName:@"MainStoryboard" bundle:nil]; UIViewController *screen = [storyboardobj instantiateViewControllerWithIdentifier:identifier]; [self.window setRootViewController:screen]; return YES; }

Categories : Iphone

Bypassing Login screen
Not sure if it possible to skip splash screen (also, don't see any good reason for doing so), but you could skip showing the login dialog, if you would split it from the splash screen. Create your dialog on application startup, somehow like that: Application implements IApplication { /** * {@inheritDoc} */ @Override public Object start(IApplicationContext context) throws Exception { Display display = PlatformUI.createDisplay(); try { LoginDialog dialog = new LoginDialog(); if (dialog.open() == Dialog.CANCEL) { return EXIT_OK; } int code = PlatformUI.createAndRunWorkbench(display, new WorkbenchAdvisor()); // Exit the application with an appropriate return code. return code == PlatformUI.RETURN_RESTART ? EXIT_RES

Categories : Java

Blank Screen during facebook login
You can set the theme to no display to Facbook Login Activity as shown below in your AndroidManifest.xml <activity android:name="com.facebook.LoginActivity" android:theme="@android:style/Theme.NoDisplay" />

Categories : Android

Login screen before masterview/navigation
The problem is not really inside your login screen, but in the MasterViewController. With some breakpoints, you should see that your present controller is allocated, it's viewDidLoad is probably called. But inside some method of the tableView's delegate implementation (probably cellForRowAtIndexPath:) your code crashes. Make sure to have a correct implementation of the tableView's methods, using a identifier for cell in your XIB/Storyboard (or registering with registerClass:forCellReuseIdentifier: method ,etc. This link should help you with the problem: Why am I getting an error about being unable to dequeue when my UITableView tries to load?

Categories : IOS

Login screen issiue with c# webservice
The error is clear: the login provided in the connection string for the database you're trying to connect to is not valid. The user does not exist, or they don't have rights applied to the catalog, or the password is incorrect, etc. The way to solve this is to check your database, confirm the user details, and apply them in the connection string accordingly.

Categories : C#

Blank screen on login to TestLink 1.9.7
I fixed a similar problems with a fresh installation of TestLink 1.9.8. Removing the module php5-adodb fixed it for me - post I wrote about it

Categories : Misc



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