w3hello.com logo
Home PHP C# C++ Android Java Javascript Python IOS SQL HTML videos Categories
zsh script launches Terminal.app instead of iTerm.app
I found that the code above was Applescript launched within zsh. So instead I wrote my own Applescript as an Automator task: tell application "Finder" set project_list to name of folders of folder ("your/projects/folder" as POSIX file) end tell (choose from list project_list with prompt "What project do you want?") set project to result as text tell application "iTerm" activate terminate the first session of the first terminal set myterm to (make new terminal) tell myterm set mysession to launch session "Default Session" tell mysession write text "website" write text project end tell set mysession2 to launch session "Default Session" tell mysession2 write text "website" write text project write tex

Categories : Ruby On Rails

Debian Wheezy : how to set noatime parameter for root FS?
You could remount it with the noatime option after the system has already booted. in my case to remount the root filesystem with noatime: sudo mount -o remount -o noatime / you can see the current options with the command mount and checking the line that say on / /dev/disk/by-uuid/3984fee6-c70a-4fee-96a0-6d4a4103abc6 on / type ext4 (rw,relatime,errors=remount-ro,data=ordered)

Categories : Linux

innobackupex restoring changes root and debian-sys-maint password. mysql restart failed
I believe you are using this tool from Percona. Then the only helpful option I can find is --databases. I will assume you do not want to maintain a list of databases in your script, you can build the list dynamically with a command like this: shell > mysql [options] -NBe "SELECT schema_name FROM information_schema.schemata WHERE schema_name NOT IN ('mysql', 'information_schema')" You should be able to integrate this call in something like this: shell > innobackupex --databases=`mysql [options] -NBe "SELECT schema_name FROM information_schema.schemata WHERE schema_name NOT IN ('mysql', 'information_schema')"` (some extra double quotes may be required, sorry, I do not have access to the tool at this time)

Categories : Mysql

Set a environment variable and make it effective in all opened terminal
It depends on the type of shell you use. For example, in bash, you can create a file ~/.env which will contain the settings. in your ~/.bashrc, tell each terminal to source the file at each prompt: PROMPT_COMMAND='. ~/.env' If you change the .env file (e.g. try echo TEST=1 > ~/.env), then after pressing Enter in any terminal that uses the new .bashrc, echo $TEST will produce 1.

Categories : Linux

How to run AT commands in Android terminal as root user?
You can use the program atinout which will allow you to easily send AT commands from the commands line. Example to hang up a call: $ echo ATH | atinout - /dev/ttyACM0 - ATH OK $ You need to find the name of the serial device for android (on desktop linux it is typically /dev/ttyACM0 but Android use something different as far as I remember).

Categories : Android

What is changelog.Debian.gz file during debian packaging?
When packing in debian, inside your project directory there's a directory named debian, which is where we keep files regarding instructions of how to pack your software, as well as relations with other packages, etc. We can call it you package control files. Among them, there's one called changelog, which looks like this: mypackage (version-revision) unstable; urgency=low * Changelog messages -- Your Name <your@email.com> Mon, 13 Aug 2012 14:09:01 -0300 (...) This file is used by the packaging software (dpkg-buildpackage) to know the name and version of your package. It also has info like the mantainer, changelogs, etc. After you build the package and install it, this file will be located at /usr/share/doc/mypackage/changelog.Debian.gz compressed in gzip format. You can che

Categories : C++

Simile Timeline displays when opened directly but not when opened by servlet
/timeline.xml refers to your webapplication context root location. are you placing the xml file in the root location. For example , if you have your webapp called myapp deployed in webapps/myapp , then '/' refers to myapp directory. So /timeline.xml refers to myapp/timeline.xml

Categories : Java

Links when opened in a new tab or window opened a blank page
if you add link as LiteralControl - is HTML Tag <a href="http://google.com" target="_blank">fly to google</a> if you add link as asp control HyperLink link = new HyperLink(); link.NavigateUrl = "http://google.com"; link.Text = "fly to google"; link.Attributes.Add("target", "_blank"); this.Controls.Add(link);

Categories : C#

Pseudo-terminal will not be allocated because stdin is not a terminal ssh bash
You seem to assume that when you run ssh to connect to a server, the rest of the commands in the file are passed to the remote shell running in ssh. They are not; instead they will be processed by the local shell once ssh terminates and returns control to it. To run remote commands through ssh there are a couple of things you can do: Write the commands you want to execute to a file. Copy the file to the remote server using scp, and execute it with ssh user@remote command Learn a bit of TCL and use expect Write the commands in a heredoc, but be careful with variable substitution: substitution happens in the client, not on the server. For example this will output your local home directory, not the remote: ssh remote <<EOF echo $HOME EOF To make it print the remote home directory

Categories : Bash

Skype Video Call URI
You can't use the &video=true - IOS doesn't like it. Just use the ?call and it will work the same way it should (as if you appended the &video=true to it) and place a video call if video is available. The skype stuff is pretty flaky - and my only success has been to use the skype buttons (using the skype-uri.js file and associated javascript for creating the buttons under HTTP (NOT HTTPS). HTTPS tends to break things in Chrome, and a few others. What I did was sniff for IOS and remove the video=true accordingly so it works fine for all the other browsers too. End of the day, Skype really needs to clean up their act.

Categories : IOS

Creating a Skype Web Client
Skype web client is not possible to create by anyone except Microsoft. Skype offers scriptable API, but this is inside the desktop client. The Skype protocol is highly guarded secret. The only way to accomplish native "web skype" would be to run one Skype application + full desktop environment for each web users (basically start a virtual machine per use). This is too heavy for any service to scale. My guess is that web clients use older MSN chat protocol to discuss with Skype (after Microsoft acquisition Skype started to support it). http://news.en.softonic.com/skype-integrated-with-msn-messenger

Categories : Misc

Skype button is not visible
What have you added in the doGet() is more important. Can you please post that. You should be doing something like function doGet(){ var string = 'your html code'; return HtmlService.createHtmlOutput(string); } Remember that despite doing the above, all of your code may not work since HTML code is sanitized by Caja so you should test your code in the Caja playground before deploying it.

Categories : Google Apps Script

CombineFileInputFormat launches only one map always Hadoop 1.2.1
If a maxSplitSize is specified while using CombineFileInputFormat, then blocks on the same node are combined to form a single split so in your scenario all the files appears to be on same node hence they are constituting to a single split only. Hence a single Mapper. you can refer to CombineFileInputFormat Doc for more details https://hadoop.apache.org/docs/current/api/org/apache/hadoop/mapred/lib/CombineFileInputFormat.html

Categories : Hadoop

Monitoring app launches on android
try this code ActivityManager activityManager = (ActivityManager) this.getSystemService( ACTIVITY_SERVICE ); List<RunningAppProcessInfo> procInfos = actvityManager.getRunningAppProcesses(); for(int i = 0; i < procInfos.size(); i++){ if(procInfos.get(i).processName.equals("com.android.browser")) { Toast.makeText(getApplicationContext(), "Browser is running", Toast.LENGTH_LONG).show(); } } find the package name using download package name viewer https://play.google.com/store/apps/details?id=com.gijoon.pkgnameviewer&hl=en

Categories : Android

Wix launches application when uninstalling
After reviewing the answer given by @Vinoth I have changed the 'CleanUpUserData' custom action to this: <Custom Action="CleanUpUserData" After="InstallInitialize">INSTALLED OR UPGRADINGPRODUCTCODE OR REINSTALL</Custom> And this has now resolved the problem.

Categories : Wix

generate skype links with angular
Try following code: var app = angular.module("yourApp", []); app.config(['$compileProvider',function($compileProvider) { $compileProvider.aHrefSanitizationWhitelist(/^s*(https?|ftp|mailto|chrome-extension|skype):/); } ]); As well you can edit protocol list by using '|' in $compileProvider.aHrefSanitizationWhitelist() method.

Categories : Angularjs

skype 4 android, call intent
Well, After a few researches and a look at the syntax of the skype uri ( http://dev.skype.com/skype-uri ), I realized a part of the link was missing in my code. So the data to send is now: skypeIntent.setData(Uri.parse("skype:" + contactUserName + "?call"));

Categories : Android

c# simple skype app throws COM exception
The issue is that you're trying to debug in Visual Studio. Unfortunately, according to Skype themselves, they do not support using this API & debugging in VS: Per the link: The most comment cause for this is you are trying to debug the program in Visual Studio. Going forward we will not be able to support using the visual studio hosting process for debugging. You can turn it off by: Open your project in VS Open your projects properies click the debug tab untick "use visual studio hosting process" rebuild your application and begin debugging and it should work ok.

Categories : C#

Skype Call Listener For Android
I think you should listen and monitor ports that use these protocols.. http://en.wikipedia.org/wiki/Voice_over_IP#Protocols

Categories : Android

Change Skype Button Image
Making custom Skype status buttons Skype has very nice looking buttons but there is one fault: it is not possible to select transparent background although the buttons are in png-format. In the wizard, there is "Transparent" - option but it is set to be inactive. Let's make transparency possible by using the Skype status API. We'll use an Ajax request to fetch the status since we don't want browser to lock up while requesting the status. A fade-in effect is also a nice one to have. We'll be using jQuery for easy Ajax and DOM handling functionality. 1) take screencaps from the Skype buttons page when the icons are automatically changing (see the "Skype buttons with status" - section of the page). Using the fuzzy selection tool (like "Magic Wand" in Gimp) select the button content and sav

Categories : PHP

How to make an Android app that launches one certain website?
You can use WebView. Or If you want to show custom gui for the data You can get the data using HttpRequest and show them in Custom design

Categories : Android

How to monitor a process that launches "dllhost.exe"?
If all other doesn't work, you can look into WMI: http://msdn.microsoft.com/en-us/library/aa394582(v=vs.85).aspx - this will require you to do some wrapping work (or use a wrapper, like the one here: http://www.codeproject.com/Articles/21971/WMI-Interface-for-NET) Another option you can use as last resort and as a workaround only is polling for the process state, but this is really not recommended for most project, and it certainly doesn't sound like something you want to do in your project.

Categories : C#

JFileChooser close launches new window
Well, that's what your code does: it creates a JFrame with "FileChooseExport" as title, and makes it visible. Why does the code do that if you don't want to show a frame? The code of the ActionListener of your button should simply be: JFileChooser fcExport = new JFileChooser(); int returnValExport = fcExport.showSaveDialog(thePanelContainingTheButton); if (returnValExport == JFileChooser.APPROVE_OPTION) { ... } You don't need another ExportFileChooser panel, placed in another JFrame made visible, just to open a JFileChooser. The javadoc of JFileChoose contains example usage, BTW.

Categories : Java

subprocess.Popen() launches two process instead of one
You are using squeezelite's -z option, which daemonizes the process. This explains why an additional process is being created. I think the best solution is to use the OS daemonizing tools (eg. start-stop-daemon), simplifying the calls you do with Python. There is a guide about daemonizing squeezelite in Debian squeeze, which can help get you started. You need to start the process and save its PID in a file, so you can stop it later. One approach might be to use a daemon script that takes two parameters: start/stop and an identifier for your button.

Categories : Python

How to store array of integer between app launches?
Plists and NSCoding are used for the simple integers as well. However, you could just use the NSUserDefaults - that is the simples way: [[NSUserDefaults standardUserDefaults] setObject:myArray forKey:@"AppData"]; Makes it easy to retrieve later from anywhere as well.

Categories : Iphone

gnome-terminal font resize (zoom in, zoom out), but adjust terminal height and width contrariwise for getting a "lock in" of window dimensions
I can’t tell you for sure, but since this is GNOME and moreover GNOME 3, it’s unlikely that the Terminal has this kind of customization built-in. But in Linux, you can always improvise. How about the following. Find a program that can send keys to an X11 window. Maybe xdotool. Find a program that can control an X11 window’s geometry. Maybe xdotool. Write a short script that locates the terminal window (probably just the focused one), sends it Ctrl-Plus / Ctrl-Minus, waits a tiny bit, then sets its geometry to the one you like (or to whatever it was initially, which you can also query with xdotool). Bind this script to a keyboard shortcut of your choice, say Win+Plus / Win+Minus. No idea how to do this in modern Ubuntu / GNOME 3, but GNOME 2’s Metacity used to have GConf keys f

Categories : Misc

Linux terminal input: reading user input from terminal truncating lines at 4095 character limit
I do not have a workaround for you, but I can answer question 2. In linux PIPE_BUF is set to 4096 (in limits.h) If you do a write of more than 4096 to a pipe it will be truncated. From /usr/include/linux/limits.h: #ifndef _LINUX_LIMITS_H #define _LINUX_LIMITS_H #define NR_OPEN 1024 #define NGROUPS_MAX 65536 /* supplemental group IDs are available */ #define ARG_MAX 131072 /* # bytes of args + environ for exec() */ #define LINK_MAX 127 /* # links a file may have */ #define MAX_CANON 255 /* size of the canonical input queue */ #define MAX_INPUT 255 /* size of the type-ahead buffer */ #define NAME_MAX 255 /* # chars in a file name */ #define PATH_MAX 4096 /* # chars in a path name including nul */ #define PIPE_BUF

Categories : Linux

Cocoa File Opened Event - Detect if a file was opened
It's possible with DTrace so it should be possible (with likely a great deal of work) from the high level of your Cocoa app (but your question is too broad to answer without writing such an app for you). Unfortunately no convenient API exists to do what you request.

Categories : Osx

How I can make an intro logotype animation like skype app?
I hope below link will help you to start with http://www.vogella.com/articles/AndroidAnimation/article.html

Categories : Android

How can I load Skype user information into a ListBox?
You can do like this .. but Do not sort ListBox2 !! Private Sub Form1_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load Dim lstHandle as New List(Of String) Dim lstSex as New List(Of String) Dim lstPhone as New List(Of String) Dim lstAlias as New List(Of String) Dim lstBDay as New List(Of String) '--> you can change to date Dim lstCity as New List(Of String) Dim lstCountry as New List(Of String) Dim lstLang as New List(Of String) Dim lstFriend as New List(Of String) '--> you can to integer For Each hmm As SKYPE4COMLib.User In Skype.Friends 'ListBox2.Items.Add("<>-----------------------------------------<>") ListBox2.Items.Add(hmm.FullName) lstHandle.Add(hmm.Handle) lstSex.Add(hmm.Sex) lstPhone.Add(hmm.PhoneHome + hmm.PhoneMobi

Categories : Vb.Net

Getting Finished Running on phone, but no app launches
If you are seeing and empty black screen in the simulator than you should check your rootViewController. Possibly you are using a navigation controller and the rootViewController is not set. So the app is not aware that it should go to a specific view controller that you want to.

Categories : Iphone

How should I count the number of launches of an applications in android
Its very simple to get the count by using "SharedPreferences". Put the below code under OnCreate method. //Declaring the necessary variables SharedPreferences sharedPreferences; int count; sharedPreferences = getPreferences(0); int count = sharedPreferences.getInt("numRun", 0); count++; sharedPreferences.edit().putInt("numRun", count).commit();

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

Can Android app launches be dynamically controlled or censored?
There is no way to catch an app being launched and redirect that. If you think about all the horrible things people could do with this it's easy to see why. I think you're going about this in the wrong way. Instead of trying to enforce these rules with a custom launcher you should look into one of the Mobile Device Management options that are available for Android or work on creating your own.

Categories : Java

ios Permission Denied" prompt after app launches successfully
after my app launches Any alert shown after your app launches indicates it is originating from your code. Search for that string in your code base, or any alerts and look for where you may be displaying overly generic or non-specific error messages.

Categories : IOS

Creating an android app that simply launches a URL in the browser
For Your reference, i tried this code, import android.app.Activity; import android.content.Intent; import android.net.Uri; import android.os.Bundle; import android.view.Window; public class MainActivity extends Activity { @Override protected void onCreate(Bundle savedInstanceState) { requestWindowFeature(Window.FEATURE_NO_TITLE); super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); Intent browserIntent = new Intent(Intent.ACTION_VIEW, Uri.parse("http://www.google.com")); startActivity(browserIntent); } } In Manifest.xml <uses-permission android:name="android.permission.INTERNET"/>

Categories : Android

PHP - get a page content with fsockopen (skype username check)?
If you have openssl in your php, you should be able to prefix the hostname or ip with 'ssl://' or 'tls://' with a proper port number and php should handle the rest. So simply like this: fsockopen('ssl://78.141.177.180', 443, $errno, $errstr); and use the returned resource as usual. I myself use the function bellow when no curl available (code salvaged from php.net comment and massaged a little). call it like not_curl_get('login.skype.com/json/validator?new_username=foo', 'ssl://', 443) The function itself: function not_curl_get($url, $protocol = '', $port = 80, $options = array()) { $options = array_merge(array( 'follow_location' => true, 'return_response_part' => 'body', 'referer' => false, 'user_agent' =>

Categories : PHP

Where can I find a more or less complete list of XML tags that Skype supports?
Check out the Skype Developoer site: http://developer.skype.com/skypekit/reference/dotnet/html/class_skype_kit_1_1_skt_message.html Detailed Description -> "To strip the XML"

Categories : Xml

How to handle different Birthday Formats? Skype returns Jan 1, 1970
I don't think it's possible to parse any kind of date without specifying its format first but a good idea to make your parsing more extensible, would be to create an array or list of SimpleDateFormat objects and iterate all of them, until one of them parses the string successfully. In your case: private final static SimpleDateFormat[] formats = new SimpleDateFormat[] { new SimpleDateFormat("yyyy-MM-dd", Locale.US), new SimpleDateFormat("--MM-dd", Locale.US) }; Calendar signCal = Calendar.getInstance(); boolean dateParsedSuccessfully = false; for(SimpleDateFormat format : formats) { try { signCal.setTime(format.parse(birthday)); dateParsedSuccessfully = true; break; } catch (ParseException e) { } } if(!dateParsedSuccessfully) { th

Categories : Android

program in C launches correctly but printf doesnt show anything
Infinite loop: while(cel<=200); because of trailing ; it is equivalent to: while(cel<=200) {} which means the printf() is never reached and cel is never modified. Remove the ; to correct.

Categories : C



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