w3hello.com logo
Home PHP C# C++ Android Java Javascript Python IOS SQL HTML Categories
While Sending Html Mails from my web application Recieved Mails contains Symbols like &ldquo,&rdquo, ‘
Check with another constructor for htmlView: ContentType mimeType = new System.Net.Mime.ContentType("text/html"); var htmlView = AlternateView.CreateAlternateViewFromString(bodyMessage, mimeType);

Categories : Asp Net Mvc

Rails/Uberspacify: 503 Service Temporarily Unavailable
I am the author of Uberspacify. It seems that Passenger with your Rails app hasn't started (yet). This is why Apache reports "Connection refused" on port 44477 -- which is the port that uberspacify chose randomly for internal communication between Passenger and Apache. To debug this, you might want to check out the log files in /var/www/virtual/< your username>/rails/<your app>/shared/log. Also, please be sure to "undo" any configuration changes you did according to the instructions by Uberspace. Their instructions are intended for an FCGI-only deployment and have nothing to do (and are most likely incompatible) with Uberspacify. The only preconditions for using Uberspacify are a regular Rails app and an Uberspace account.

Categories : Ruby On Rails

Jboss5.1.x---Apache 2.2.22 Integration-Service Temporarily Unavailable(503 304) -Response
I think that error occurs because of mod_jk. Although that error occurs, you can call your web application via apache server. Usually, we use AJP connector to integrate Apache to Jboss with port(8009). So, you have to pass your web application address at etc/httpd/conf.d/proxy_ajp.conf like ProxyPass /mywebapp/ ajp://jbossserverip:8009/mywebapp/ From your browser, type your apache server address apacherserveripaddress/mywebapp/

Categories : Apache

Apace proxy caching "service temporarily unavailable" response when target is down
You need to add retry=0 to ProxyPass directive. So it will be something like: ProxyPass /example http://backend.example.com retry=0 Check some info here: http://httpd.apache.org/docs/current/mod/mod_proxy.html#proxypass

Categories : Apache

HTTP request failed! HTTP/1.1 503 Service Temporarily Unavailable
503 means the functions are working and you're getting a response from the remote server denying you. If you ever tried to cURL google results the same thing happens, because they can detect the user-agent used by file_get_contents and cURL and as a result block those user agents. It's also possible that the server you're accessing from also has it's IP address blackballed for such practices. Mainly three common reasons why the commands wouldn't work just like the browser in a remote situation. 1) The default USER-AGENT has been blocked. 2) Your server's IP block has been blocked. 3) Remote host has a proxy detection.

Categories : PHP

Facebook Ads: relations between adgroup and adcreative?
The same diagram says "One Ad Creative may be used in multiple ad groups" Each adgroup has a single adcreative active at any given time, you can change the creative for an adgroup but there's only one allowed at any time.

Categories : Facebook

Jenkins Phing Plugin - Resource Temporarily Unavailable
I've managed to resolve this issue by removing all of the path details in the Phing configuration section within Jenkins. This makes absolutely no sense to me as to why it's working without these details as I definitely only have one Phing install, so it's not as if it was picking up the wrong one or something. However, by not specifying anything in the Phing section of the Jenkins project config so it picks up the default path, default build target etc. and this is working flawlessly now!

Categories : Jenkins

Why STRACE shows EAGAIN (Resource temporarily unavailable)
poll woke up with revents = POLLOUT, which means that the socket is ready to write, not ready to read. The code is apparently not checking this flag, and trying to read anyway. This might be intentional. Even though poll didn't say the socket is ready to read, it might have become ready while it was writing. So it calls ready just in case something has shown up. If not, it will go back into poll to wait again. This allows it to process incoming data more quickly, since it can get it in one call rather than two.

Categories : Linux

Python: Receiving Data through Sockets - [Errno 11] Resource temporarily unavailable
This works for me using the same scope. Set setblocking(True) and add a to the *IDN? command. import socket import sys import time class Tek_scope(object): def __init__(self, IPaddress, PortNumber = 4000): self.s = socket.socket(socket.AF_INET , socket.SOCK_STREAM) self.s.connect((IPaddress, PortNumber)) self.s.setblocking(True) print "Scope opened Successfully" scope1 = Tek_scope("10.1.10.15") #Connects to the scope scope1.s.send('*IDN? ') #Sends the *IDN? command to the scope. print scope1.s.recv(1024)

Categories : Python

Plesk 11.5 php-fpm.sock failed - resource temporarily unavailable & 502 Bad Gateway NGINX errors
Just to try localize the issue: Switch pm = ondemand to pm = dynamic increase pm.start_servers and pm.min_spare_servers to 4 add pm.max_requests = 500 add pm.status_path - read docs what is it and how it can be used. restart php-fpm service and observe for a while. This changes can be overwritten by plesk, so be aware.

Categories : Nginx

how can I create simple web page to display jersey web service results?
Jersey 1.x / 2.x offers a way how to achieve this (via it's MVC extensions). Refer to the documentation/samples for more information: Jersey 1.x MVCJ blog entry discussing template processing bookstore sample that uses this feature Jersey 2.x MVC chapter in documentation same bookstore-webapp sample migrated to Jersey 2.x

Categories : Web Services

Windows 8.1 breaks my ASP.NET / IIS : "Service unavailable"
It looks like a simple uninstall and re-install of the rewrite module will do the trick. It doesn't look like the Microsoft Web Platform Installer is able to uninstall it so just go to Programs and Features to uninstall it. You'll find it listed as IIS URL Rewrite Module 2 and just click the Uninstall button on top. Then reinstall it from here: http://www.iis.net/downloads/microsoft/url-rewrite Make sure your App Pool is started - or just restart IIS and it should all work again.

Categories : Misc

NetworkError: 503 Service Unavailable - on hitting the url from browser?
The 503 Service Unavailable error is an HTTP status code that means the web site's server is simply not available right now. Most of the time this is because the server is too busy. Note: Sites that use Microsoft IIS may provide more specific information about the cause of a 503 Service Unavailable error by suffixing a number after the 503 as in HTTP Error 503.2 - Service Unavailable which means Concurrent request limit exceeded.

Categories : Java

Deliver a 503 Service Unavailable at specific times
The SSI Module has a variable called $date_gmt that you get the time out of. A few if statements with that variable might be able to help. Alternatively, you can write something in Lua by compiling in HTTPLuModule. Lua will provide you with a lot more flexibility doing more complicated stuff in Nginx. The downside is you'd have compile the module in. I haven't tested this code, but something like it will might help get you started. location ~ / { set_by_lua $between_three_and_four ' local time = os.date("*t") local between_three_and_four = false if time.hour == 3 then between_three_and_four = true end return between_three_and_four ' if ($between_three_and_four) { return 503; } }

Categories : Nginx

Site unavailable while service status is 'running'
Visual Studio and Azure Management Portal only report that the server is up and running. They have no way of knowing if there is an actual issue with the code or deployment. Webpage not available is not the same as 404 nor is it the same as dns not found. Webpage not available usually means a server error of some kind. Most likely some .DLL's are missing from deployment If you are running on WebRoles, you can RDP into the server and look into the Windows Event viewer to see if any errors occur Alternatively, you can turn off custom errors via web.config (check this link out for sample directions: http://www.serverintellect.com/support/programming/custom-errors.aspx ) At the end of the day, you need to find out what is the real cause of the issue

Categories : C#

Why does Azure give me an intermittent Error 503. The service is unavailable?
503 error is simply shows that your application pool was inaccessible, it was intermittent because your application pool is restarting because the lack of resource (processor, memory, etc). Scale up your instance (Cloud Services or VM) to get more resource for the application pool.

Categories : Azure

Xmpp FileTransnfer in Android giving 503-service unavailable Error
Add service discovery to your code. You can use below code for file transfer. ServiceDiscoveryManager sdm = ServiceDiscoveryManager .getInstanceFor(kXmppConnection); if (sdm == null) sdm = new ServiceDiscoveryManager(XmppConnection); sdm.addFeature("http://jabber.org/protocol/disco#info"); sdm.addFeature("jabber:iq:privacy"); FileTransferNegotiator.setServiceEnabled(kXmppConnection, true); FileTransferManager manager = new FileTransferManager( kXmppConnection); final OutgoingFileTransfer transfer = manager .createOutgoingFileTransfer(jid + "/Smack"); File file = new File(file_path); try { transfer.sendFile(file, "test_file"); } catch (XMPPException e) { e.printStackTrace(); }

Categories : Android

Maven project create option unavailable in categories on netbeans
I've had a similar problem when I've upgraded from 7.3 to 7.4. In 7.3 I had the "Groovy and Grails" module but I haven't installed it in 7.4, although I clicked to import settings from 7.3. My solution was to remove the folder under C:UsersaAppDataRoamingNetBeans7.4configTemplates (in particular there was a folder named C:UsersaAppDataRoamingNetBeans7.4configTemplatesProjectGroovyMaven2 )

Categories : Java

Need to create a batch file to keep on the desktop to empty a folder we keep files in temporarily
I hope I have understood your question right. With this batch script written into a .bat file you can delete the content of the tmpFolder specified between the two double-quotes. It is a little workaround to make the code easier: first the folder is deleted with all content and then a new is created. SET tmpFolder="" REM for example: SET tmpFolder="C:UseruserDesktop mpfolder" rd /s /q %tmpFolder% mkdir %tmpFolder% Just open notepad and save this code with the inserted tmpFolder var on the desktop. Important is the extension of the file: name it for example "deleteTmp.bat". Don't forget to change the filetype (under the textbox for entering the name) into "all (*.*)".

Categories : Misc

How Do I Create Facebook Tab on My Fan Page that links to a facebook group
You can add some Javascript redirect on the tab page itself. <script language="javascript"> top.location.href = "https://www.facebook.com/groups/bettyrockyourlife/" </script> Also, sometimes it's best from a UX standpoint to tell the user what is going on. Like setting a timer of a few seconds on the JS and placing a message on the page telling the user that the page will be redirecting elsewhere.

Categories : Facebook

Make "CREATE EXTENSION" not fail if extension is unavailable
A few functions that might be handy: http://www.postgresql.org/docs/current/static/view-pg-available-extensions.html In addition to checking before issuing the statement, you could wrap the code in a do statement and catch errors: do $$ begin ; -- do something exception when ... ; -- do something different end; $$ language plpgsql; http://www.postgresql.org/docs/current/static/sql-do.html http://www.postgresql.org/docs/current/static/plpgsql-control-structures.html http://www.postgresql.org/docs/current/static/errcodes-appendix.html

Categories : SQL

Adding service reference for WF4 workflow service doesn't create client (ClientBase)
For anyone caught in this one, here's the issue. I had generated the web references for a console service app. By default, these are implemented as workflow activities, not as part of a client wrapper. Once I realized my misunderstanding, instantiating was simple.

Categories : Visual Studio 2012

Unable to create requested service [org.hibernate.service.jta.platform.spi.JtaPlatform]
I can try to answer your problem, but your question should include more information: You should include a full stacktrace. There is not enough information in the error you put in your question. The full stacktrace will add some necessary information to help us figure out what's going on. You post one configuration file, but it refers to other files, like hibernate.properties. You should include these files so that we can check the correct configuration of your application. Without this information, I can just suggest the following: You are using Atomikos as transaction manager. You must include a Maven dependency to Atomikos (you say in your post that you are using Maven). In the declared bean usermanagementSessionFactory, you should have properties in relation with Atomikos, as it i

Categories : Spring

Create C# client consumes SOAP service without using built-in 'Add Service Reference...'
You can do it by creating SOAP message and sending web request Like in this SOAP client web request

Categories : C#

Ruby: gem win32-service: Create a service with Admin privileges
The underlying CreateService Windows API function requires an account domain on the lpServiceStartName field, so you probably need to set the :service_start_name field to 'domainAdministrator', where the account domain is usually the computer name.

Categories : Ruby

How to create osx service that passes its service name to shell script?
"Basically my aim is to open a browser with an URL which is different for each of the menu item." Something like the following AppleScript can be used to open a URL in the default web browser, using AppleScript: tell application "Finder" to open location "http://learnbymac.com" Something like the following shell script can be used to open a URL from the shell: open -a "Finder" "http://learnbymac.com" Using the Finder to open URLs is better than using Safari because when you use the Finder to open URLs, you get the default browser rather than always getting Safari. " i will launch an app / exe from the shell script by passing path to the file & service name so that the app can construct url based on the service name by reading the file details from the data base and loads

Categories : Osx

How to create facebook app to sell products of Magento store in Facebook Store from scratch?
Hello First You need to make a site on your on host. After that go to facebook developer section and create developer ID. Now simple you can do like :- <body> <div id='fb-root'></div> <script src='http://connect.facebook.net/en_US/all.js'></script> Select a Facebook Page(<a href="http://www.facebook.com/pages/create.php" target="_blank">create now?</a>): <p><a onclick='addToPage(); return false;'>Add to Page</a></p> <p id='msg'></p> <script> FB.init({appId: "App_ID_passhere", status: true, cookie: true}); function addToPage() { // calling the API ... var obj = { method: 'pagetab', redirect_uri: 'URL of Your Store', };

Categories : PHP

facebook js sdk deauthorizing app still results as connected in FB.getLoginStatus
That's because the 'FB.getLoginStatus' response object is cached by the SDK. If you want to solve this problem, just call FB.getLoginStatus with the second parameter set to true. FB.getLoginStatus(function(response) { // this will be called when the roundtrip to Facebook has completed }, true); https://developers.facebook.com/docs/reference/javascript/FB.getLoginStatus/

Categories : Javascript

How to join results from Facebook api query with my own MySQL table
Filter your table using the SQL IN() operator, as shown in Compare Facebook array of friendslist to MySQL table; or Push the Facebook resultset into a temporary table, then join that to the existing data within the RDBMS as normal. As documented under CREATE TABLE Syntax: Temporary Tables You can use the TEMPORARY keyword when creating a table. A TEMPORARY table is visible only to the current connection, and is dropped automatically when the connection is closed. This means that two different connections can use the same temporary table name without conflicting with each other or with an existing non-TEMPORARY table of the same name. (The existing table is hidden until the temporary table is dropped.) To create temporary tables, you must have the CREATE TEMPORARY TABLES privileg

Categories : Android

Error in Hibernate Tool in Eclipse Unable to create requested service [org.hibernate.service.jdbc.connections.spi.ConnectionProvider]
I write here as in comments is difficult to be clear. In the class org.hibernate.service.jdbc.connections.internal.ConnectionProviderInitiator put a breakpoint in the method below, in the return statement. It causes the exception thrown in your runtime. In debug mode we will understand what is happening and ,hopefully, complete this reply: private ConnectionProvider More ...instantiateExplicitConnectionProvider( String providerClassName, ClassLoaderService classLoaderService) { try { LOG.instantiatingExplicitConnectionProvider( providerClassName ); return (ConnectionProvider) classLoaderService.classForName( providerClassName ).newInstance(); } catch ( Exception e ) { throw new HibernateException( "Could not instantiate connect

Categories : Java

Push notifications service like ios facebook app
Here you can found some useful things about iOS push notification: http://www.raywenderlich.com/32960/apple-push-notification-services-in-ios-6-tutorial-part-1 Here you can see how to create server side: http://www.raywenderlich.com/2941/how-to-write-a-simple-phpmysql-web-service-for-an-ios-app

Categories : PHP

Downloading of Facebook IDs within terms of service?
It is okay to do so, as long as it is strictly for the functionality for your app and your users that will be downloading the lists of ids have agreed to keep them confidential. These are the specific items from the Facebook platform policy which address what you cannot do with user ids: II 6) You will not directly or indirectly transfer any data you receive from us, including user data or Facebook User IDs, to (or use such data in connection with) any ad network, ad exchange, data broker, or other advertising or monetization related toolset, even if a user consents to such transfer or use. By indirectly we mean you cannot, for example, transfer data to a third party who then transfers the data to an ad network. By any data we mean all data obtained through use of th

Categories : Facebook

Facebook’s iOS app: sharing via feed dialogue using a ‘web app’ results in cropped image
We are having the same issue at the moment. Not sure where you got 1500x1500 from as the recomended size. The docs say The URL of a picture attached to this post. The picture must be at least 50px by 50px (though images larger than 200px by 200px are preferred) and have a maximum aspect ratio of 3:1 We have tried at 90x90 and 200x200 and iPhone app will still crop it. Everywhere else works fine though.

Categories : IOS

When to give up on getting results from an external web service?
Sounds like you want to adjust sleep timeout and number of attempts parameters. There is no absolute values suitable for each case, so you should pick some which are most appropriate for you application. Unfortunatelly the gem code have both this parameters (3 seconds delay and 4 attempts) hardcoded so you don't have an elegant way to change them. So you can either fork the gem and change its code or try to monkey-patch the value of TIMEOUT constant with http://apidock.com/ruby/Module/const_set . However you won't be able to monkey-patch the delay between attempts value without rewriting method .run of the gem. FYI. Net::HTTP has their own timeouts - how much time to wait for ideone.com connection and response. If they are exceeded Net::HTTP raises Timeout exception. The setters are htt

Categories : Ruby On Rails

Php web service - results are not showing right on Android
O.k. found the solution: After reading Marc B comment, I've re-examined my code and found out that one of my text view combined between preset English word with a web service response in Hebrew.. This caused the view to be corrupted for some reason...

Categories : PHP

is there a way to partially return results from Python web service....?
There are a few ways to do this. The simplest would be to return the initial request via flask immediately and then use Javascript on the page you returned to make an additional request to another URL and load that when it comes back. Maybe displaying a loading indicator or something. The additional URL would look like this @app.route("/linkedin-data") def linkedin(): # make some call to the linked in api which returns "data", probably in json return flask.jsonify(**data) Fundamentally, no. You can't return a partial request. So you have to break your requests up into smaller units. You can stream data using websockets. But you would still be sending back an initial request, which would then create a websocket connection using Javascript, which would then start streaming data

Categories : Python

PHP google geocoding service returns zero results
The address 1456 sok. no: 10/1 kat:8 Alsancak is not valid. If you try it in google maps you get zero results, too. Try it with: 1456 sok. 10/1 Alsancak and uncomment the line $address = urlencode($address); and clear the line $address = str_replace(" ", "%20", $address);. The url should look like: http://maps.google.com/maps/api/geocode/json?address=1456%20sok.%2010%2F1%20Alsancak&sensor=true

Categories : PHP

Set Query results from WCF service to MVC3 controller
One way of doing that could be to create a Student class in your service. Say ServiceStudent. public class ServiceStudent { //your student properties... } then from your method : GetAllStudents(), you can fill up List. public List<ServiceStudent> GetAllStudents() { SqlConnection con = new SqlConnection(ConfigurationManager.ConnectionStrings["StudentCon"].ConnectionString); SqlCommand cmd = new SqlCommand(); cmd.CommandText = "select * from Student"; cmd.Connection = con; con.Open(); SqlDataReader studentReader = cmd.ExecuteReader(); //Fill List of ServiceStudent from reader... con.Close(); } then on client side: ServiceStudentClient client = new ServiceStudentClient(); List<Service.ServiceStudent&

Categories : C#

Using oauth2 service (like facebook) to authorize my app access to third party app
You can use Facebook SDK's getLoginStatus method to determine if the user has already authorized your app and is currently logged in. If, user logs in to your site using FB, he will not have to log in again. FB.getLoginStatus(function(response) { if (response.status === 'connected') { // the user is logged in and has authenticated your // app, and response.authResponse supplies // the user's ID, a valid access token, a signed // request, and the time the access token // and signed request each expire var uid = response.authResponse.userID; var accessToken = response.authResponse.accessToken; } else if (response.status === 'not_authorized') { // the user is logged in to Facebook, // but has not authenticated your app } else { // the user isn'

Categories : Facebook

ASP.NET REST service without escape characters in JSON results
If you can't pass the output directly to the response, your best bet is to go back to traditional methods, and return a type-safe object from your method. You've got the JSON that the original service passes you, and your end-goal is to return that exact object back to your caller. Assuming you've got a complete JSON object in your example - you can first go to json2csharp to take your JSON and create classes out of it. It uses C#, but you can easily convert it to VB using something like Telerik's Code Converter. If you follow these steps, you'll end up with several classes, including one called RootObject, which contains properties for responseHeader and response, and the other classes needed. You can rename the classes as you see fit, and put them into proper namespaces - just leave th

Categories : Asp Net



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