w3hello.com logo
Home PHP C# C++ Android Java Javascript Python IOS SQL HTML Categories
I am testing my android application on my phone,and i want to access my camera and see the logs as well
Logcat is always available. And if you are opening Camera from your app then you can see Logcat messages so may be there are few reason as follows :- check if connect your device as usb debug mode. your device should not be connect as a media device. hope it will solve this issue

Categories : Android

Elastic beanstalk not displaying Web Application
Sounds like to you need to navigate to whatever you set as your start page. Something like, www.mysite.com/Default.aspx If you haven't set up a start page you can right click on your default aspx page in Visual Studio and select "Set as Start Page". If this still doesn't work I recommend you RDP into your instance, open IIS, and make sure your site files are actually being deployed to the server.

Categories : Visual Studio

What does 'application' mean in the context of AWS Elastic Beanstalk?
The web application (think web site) would be your final solution to be hosted. It would contain everything you've deemed necessary for the application (php files, html, png, .htaccess etc.). So in short, yes! Also that first sentence in the documentation is boilerplate. A web application is going to have the same context across the board when it comes to development and hosting with Elastic Beanstalk.

Categories : Amazon

Restrict HTTP Access to Elastic Beanstalk
I have restricted HTTP access to an Elastic Beanstalk application to only certain IP addresses. Following is my procedure. Create new beanstalk environment in the VPC(Amazon Virtual Private Cloud). Please read following documents. Using AWS Elastic Beanstalk with Amazon VPC Example: Launching an AWS Elastic Beanstalk Application in a VPC note: I tried to create a new beanstalk environment(Tomcat) in the VPC using AWS Tookit for Eclipse last month. But I could not create a new beanstalk environment due to the bug of AWS Toolkit for Eclipse. Finally, I could create a new beanstalk environment using a elastic-beanstalk-create-environment command. Therefore I recommend to use elastic-beanstalk-create-environment command. Create a new Network ACL(VPC's function) and open the inbound tab and

Categories : Security

How do I access servlets after deploying to AWS Elastic Beanstalk?
Actually I think you don't need to export your project to a .war file. Are you using Eclipse IDE? Because I could deploy my web application easily through eclipse. Here is the reference link Suggestion: Use Java 1.6 version for you web application. I think EB support JAVA 1.6 pretty good, while I'm not sure whether it works for Java 1.7. Because while I use JAVA 1.7 it works well locally, but I cannot deploy that version on EB.

Categories : Java

Web Deploy Command Line Logs in Event Logs (Updated / Inserted / Deleted Files) in event logs
I don't believe you can log the activities to the event log, but what you can do is use the -xml parameter to output the changes in XML format. You could then use this to log to the event log via a Powershell script, for example.

Categories : Iis

rails application elastic beanstalk timeout
Your db migration failed to run: [root directoryHooksExecutor info] Executing script: /opt/elasticbeanstalk/hooks/appdeploy/pre/12_db_migration.sh 2013-07-10 14:25:20,500 [INFO] (1759 MainThread) [directoryHooksExecutor.py-29] [root directoryHooksExecutor info] Output from script: Rake task failed to run, skipping database migrations. The easiest way to figure this out, is to deploy again, ssh to the server and manually run the command to see why it failed. This could be because of a number of reasons, including e.g. by default rejecting git repositories in your gemfile (bundle install I recall will run but db:migrate will fail). There are ways around all of this, we just need more information to help.

Categories : Ruby On Rails

How can I deploy my zend framework 2 application to AWS elastic beanstalk?
Okay this was solved with some help in the #zftalk IRC. I was never successful in uploading using the AWS beanstalk web interface, so instead I used the AWS eb tool and the AWSDevTools. The best bet is to go into the root of your project. I followed the linux instructions here: http://docs.aws.amazon.com/elasticbeanstalk/latest/dg/GettingStarted.GetSetup-devtools.html Then moved on to the deploy instructions here: http://docs.aws.amazon.com/elasticbeanstalk/latest/dg/create_deploy_PHP.sdlc.html This still didn't work. So, I went to the web interface of my environment on elastic beanstalk and had to edit the configuration so that the document root in the container pointed to /public. Following this, the server was returning a 500, so I looked in the logs and saw it was having problems wi

Categories : PHP

Writing file to bucket fails on Elastic Beanstalk application
I was getting same error during zip file upload on S3 and finally this worked for me: zip_data = File.read(zip_file_path) means, zip_data will be the object at the zip file path that is located in your tmp directory. Hope, this will work for you also.

Categories : Ruby

Access browser logs in Selenium?
You could inject javascript and override the log function (as reading the log is not permitted from JS). See http://tobyho.com/2012/07/27/taking-over-console-log/ for an example and there are many SO questions on this topic. The problem with this is that it still can't get the logs which happened prior to injection. It gets easier if you override this in the test deployment directly.

Categories : Python

Application logs out when the mobile screen is tilted
Your activity restarts on orientation change, you can do one of the following 1) Add this code to your manifest (Corresponding activity) android:configChanges="keyboardHidden|orientation" It tells the Android system, hey mate I am going to handle the orientation change please do not interfare. 2) Use a bundle to save your state variables and thus prevent user from log out!

Categories : Android

Implementing Audit Logs inside my Asp.Net web application
I would try to move your Auditing logic into an Action Filter that takes parameters. That way you could re-use it on all your actions. A great article on Action Filters can be found here

Categories : Asp Net Mvc

Tomcat access logs - are failed requests included?
It is more likely that your Tomcat process is leaking memory until it got no more free memory. Try to log the heap size with each request, and then notice if it keeps growing. The tomcat class loader can leak memory, especially if you use the "automatic deploy" feature. long freeMem=Runtime.getRuntime().freeMemory(); long maxMem=Runtime.getRuntime().maxMemory(); long totalMem=Runtime.getRuntime().totalMemory(); And then log freeMem/MaxMem and totalMem. If max keeps growing you got a leak. Edit: And to answer your question. That depend on exactly how tomcat fails, and how you have set up logging. But with our system(A rather default apache mod_proxy=>tomcat, there are some fatal tomcat errors which are only logged in catalina.out

Categories : Java

Unable to see access logs in my Google Storage Bucket
cloud-storage-analytics@google.com needs to have write permission for your LogBucket as described here: https://developers.google.com/storage/docs/accesslogs

Categories : Rest

Send C# Application Logs to Linux Syslog Server
try using log4net, it offers a RemoteSyslogAppender https://logging.apache.org/log4net/release/framework-support.html below an example of configuration <appender name="RemoteSyslogAppender" type="log4net.Appender.RemoteSyslogAppender"> <facility value="Local6" /> <identity value="MyApp[%level][%property{log4net:HostName}]" /> <layout type="log4net.Layout.PatternLayout" value="%-5level %logger [%ndc] - %message" /> <remoteAddress value="yourAddressHere" /> </appender>

Categories : C#

Import old apache access logs to webalizer - ignoring records
I ran into the same problem. I had just installed webalizer, and changed it to incremental mode (here are the relevant entries from my /etc/webalizer/webalizer.conf): LogFile /var/log/apache2/access.log.1 OutputDir /var/www/htdocs/w Incremental yes IncrementalName webalizer.current And then I ran webalizer by hand, which initialized the non-gz files in my logs directory. After that, any attempt to manually import an older gz logfile (by running webalizer /var/log/apache2/access.log.2.gz for instance) resulted in all of the entries being ignored. I suspect this is because the entries found in the gz logs were older than the last import- I had to delete my webalizer.current file (really I cleared the whole dir- either way should work). Finally, in reverse order (oldest first), I cou

Categories : Apache

Access variable between different applications
The only thing I can think of is writing a Service in one of the Apps providing an interface to the variable. The second app could bind to that service. If only one app is changing it, you could send broadcasts on every change and listen in the other app for a specific intent.

Categories : Android

Spring Logs cannot be viewed in console or log file(Application deployed in WAS)
I believe you're just missing the configuration file parameter you need to set in JVM: Servers > Application servers > [app server name] > Process definition > Java Virtual Machine Than point Log4J configuration file: -Dlog4j.configuration=$POINT_TO_LOG4J_CONFIG_FILE

Categories : Apache

Create an application that can contain other applications in iOS
There is an API: http://amitay.us/ihasapp/index.php , and a good solution to return a dictionary with app name, identifier and icon: http://www.iphonedevsdk.com/forum/iphone-sdk-development/37103-finding-out-what-apps-installed.html Best regards.

Categories : IOS

Check to see what applications are using an Access database
By examining the lock file you can find who (which machine) is accessing the database. This KB article describes this in detail, including a sample program.

Categories : C#

How c++ applications access hardware directly?
In general, desktop applications have to go through the OS to access any resources, from extra memory to hard drives and sound chips. In an embedded system, the hardware can be accessed directly, usually through a pointer. So to write to a UART register, one would assign the address of the register to a pointer and dereference the pointer. Many compiler libraries provide support for various platforms and embedded systems. I'm using an IAR compiler for an ARM embedded system and programming with C++. We don't use streams since we don't have terminal I/O. Edit 1: cout example For example, to print to the console, via cout or printf, the compiler provides a library that calls Operating System functions to display the text. The Operating System function may send the text directly t

Categories : C++

Setting up logs using log4j for a scheduled batch program (console application)
For automatic configuration the log4j configuration file should be on the root of the classpath, e.g. packaged in your .jar on the top level. There is also a environment variable to specify the location -Dlog4j.configuration=.... This answer may help you further. If your application is exclusively used standalone, putting the config inside the .jar should be ok. But note, that this causes trouble and hard to find misconfigurations if that .jar is used in context of another application, e.g. a web application. I would suggest to distribute the console application as a bundle with a starting script and the log config outside the .jar.

Categories : Java

Python correctly finding and reading windows application event logs
You are using a 32bits python on a 64bit install of windows. In most cases, whenever a 32-bit application attempts to access %windir%System32, the access is redirected to %windir%SysWOW64 You can use os.listdir("c:windowssysnativewinevtlogs") as a workaround to read from the real system32 dir from a 32bit python interpretter runing on a 64bit windows... Sources: http://msdn.microsoft.com/en-us/library/windows/desktop/aa384187(v=vs.85).aspx http://support.microsoft.com/kb/942589

Categories : Python

GST_DEBUG: How to save logs in a separate file for a thread inside an application
GST_DEBUG_FILE=/tmp/gst.log will put all the logging into that file, but for separate log for separate threads you will need to write your own loghandler. Have a look in gstinfo.c, and gst_debug_add_log_function. As for your Q2, again, you will need to write your own loghandler if you want it to start from GST, since these other fields (timestamp, process-id, thread etc.) are included in the default loghandler. (again see gstinfo.c, gst_debug_log_default)

Categories : C++

Rails: Make application internal logs accessible via admin interface
You can take a look at the log_me. It's not a gem (yet), but you could simply clone it or copy/paste it, since it's not that big...

Categories : Ruby On Rails

Passing data between two applications via third application
At least two methods I can think of could be used: Passing the data to a cookie, then reading it on the other tab Sending the data to the ASP.NET host app using ajax and downloading it on the other tab

Categories : Asp Net

symfony1.x functional testing: access different applications
From the link you stated, I can see from test/bootstrap/functional.php that the application you try to test in your php file is guessed from its filepath. So my guess is that your test file should be in a repertory with the name of your application. In other words, your test filepath should be in test/functional/your_app/your_test_file

Categories : PHP

Access Cloudant database from multiple applications
Yep! Perfectly OK. As Kim mentioned, the only thing to worry about with multiple asynchronous connections comes from when different applications / clients try updating the same doc. When this happens, Cloudant will create a conflict, storing both updates so you can sort out which is correct. Check out Conflict Management in CouchDB for why this occurs and how to deal with it, and the Cloudant docs on conflicts for methods to examine conflicts.

Categories : Misc

Several applications needs to access "a central server-program"
You just sound like you want a webservice... where you some some inputs to it and it does some business logic and return a result. You can make web services using MVC, WCF, ServiceStack and many more frameworks, you dont even have to use .net if you dont want to. Assuming you do though, and are familiar with MVC then just look into model binding, so you would basically do something like: public class MyController { [HttpPost] public ActionResult MakeAnInvoice(Order theOrderObject) { // Do your invoice making magic } } I would generally just store the actual invoice elsewhere and pass back an ID to retrieve it or something, but if you want to just fudge the data into the response header as pdf data or something you could.

Categories : C#

Is it possible to access the same Ehcache object from two different java applications?
The short answer is : Yes, possible but not straightforward, you will need some work. What you are looking for in your case is cache replication, check out details here If both the applications one in your JAR file and the one in WAR file are running constantly and synchronously (i.e. only one of them will NOT be down at any given point) then RMI can be your choice. If one of application is expected to be down while other is up, then you will need to hold the cache object/data somewhere and JMS is one of natural choices. If they are on same machine or not does not really matter. What you are basically wanting to do is JVM to JVM communication - and it can be for any object not necessarily for Ehcache. Some of other options are discussed here Understand that the "Objects" in a JVM are t

Categories : Java

Yii - How do I access a view from a module in the applications SiteController?
By this you can access modules/mymodule/views/profile/changepassword view $this->renderPartial('application.modules.mymodule.views.profile.changepassword',array('model'=>$model));

Categories : PHP

How to store application data / resources in .net Applications
You should be able to store resources inside the program itself. Access your project's Resources section [Project menu => "PROJECT NAME" Properties... => Resources(left side)], and add the files there. You can also edit the resources by double-clicking on them. In your code, you should have these resources available under the My namespace (My.Resources."RESOURCE NAME"). The resource's type (in code) depends on which kind of resource you add it as (See drop-down list at top-left corner): Images become System.Drawing.Bitmap Icons become System.Drawing.Icon Strings become System.String Text files become System.String Non-text files become an array, System.Byte()

Categories : Dotnet

How to conveniently store common logs and client specific logs
I would have an xml file that contain the appenders to specify what packages go into what log file. You can then load the xml file in your application entry point. Below is an example I have used in my current project <log4j:configuration xmlns:log4j="http://jakarta.apache.org/log4j/"> <!-- appenders --> <appender name="console" class="org.apache.log4j.ConsoleAppender"> <param name="Target" value="System.out" /> <param name="threshold" value="error" /> <layout class="org.apache.log4j.PatternLayout"> <param name="ConversionPattern" value="[%t] %p %c - %m%n" /> </layout> </appender> <appender name="codebaseXAppender" class="org.apache.log4j.RollingFileAppender"> <

Categories : Java

Cannot get access token from OAuth Google API for installed applications
See edits above for the answer to this. Essentially it boiled down to Socket objects in ExtendScript not supporting SSL. The solution above shows a workaround by using ExtendScript system.callSystem() method to get at cURL on OSX and a VBScript on Windows.

Categories : Javascript

How to use token generated at login time, for security, when user logs in a php web appliction from mobile application?
When device login with email & password, Generate a token, create a session for the user and store the token in session. for all further request from the device, that token has to be passed as header, so that you can validate it against the stored token.

Categories : PHP

SLF4J - Bindings are overwritten by other applications on the same application server
I finally figured out an acceptable solution. GlassFish loads the Connector Module before the EAR/WAR, see "Update 2". By providing the SLF4J implementation BEFORE the connector module is being loaded, my provided SLF4J implementation is used. To do this I've copied the following JARS to the directory domains/<myDomain>/lib (see "Update 3"). logback-core-1.0.13.jar logback-classic-1.0.13.jar slf4j-api-1.7.5.jar Unfortunately logback didn't find its own configuration file (logback.xml) anymore, which must be on the classpath (which it is, as I packed it inside a JAR). The solution is to manually configure logback. I've done this using the following CDI producer: package com.example; import ch.qos.logback.classic.LoggerContext; import ch.qos.logback.classic.joran.JoranConfigur

Categories : Java

Programmatically adding IIS Application Pool/Applications using IIS Express rather than IIS
By default Microsoft.Web.Administration is version 7.9.0.0 which is valid only for IIS Express. Add the Microsoft.Web.Administration 7.0.0.0 and you'll be able to manage IIS server. You'll find it easily with NuGet.

Categories : Vb.Net

How to add application.conf files for akka multi-jvm applications
I suggest that you define the configuration in code in the test using ConfigFactory.parseString and use that in MultiNodeConfig.commonConfig. Note that you can use define specific config per node with MultiNodeConfig.nodeConfig.

Categories : Scala

Running embedded Jetty : How to access hosting applications' methods?
One possible way is to share interfaces so that your web application is built against the interfaces and to use JNDI to obtain the implementing objects from the server. On server side you only have to publish the implementing instances via JNDI.

Categories : Java

android external applications are not able to access file from internal location
If you want to open the file in another application you have to store (copy) it to a public location first and then send the URI of this public location to the other application. See Data Storage.

Categories : Android



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