w3hello.com logo
Home PHP C# C++ Android Java Javascript Python IOS SQL HTML videos Categories
Only one usage of each socket address (protocol/network address/port) is normally permitted. - bind(2) (Errno::EADDRINUSE)
You can run rails server with specified port by console instead of NetBeans IDE. I think NetBeans also can set ports, but I didn't used this IDE for long time and forgot it.... In your project folder first. If you are using Rails 2.* > ruby script/server -p 3001 If you are using Rails 3+ > rails s -p 3001 -p XXXX is the port you will use, you can specify a port that is different with another user's. Hope it helps.

Categories : Ruby On Rails

Apache + WSGI: Address already in use: make_sock: could not bind to address
If you get: Invalid command 'WSGIDaemonProcess', perhaps misspelled or defined by a module not included in the server configuration Action 'configtest' failed. then it means you haven't enabled the mod_wsgi module in Apache and so it isn't loaded. That or you are running an ancient Apache 1.3 version, although that is highly unlikely as don't think you can even get mod_wsgi binary packages for such an old Apache version now. As to port usage, you obviously can't have Apache and uWSGI using the same one, so you need to set them up with different ports.

Categories : Apache

Tomcat server IP address restriction methods?
You can dynamically register Tomcat's Remote Address Filter. http://tomcat.apache.org/tomcat-7.0-doc/config/filter.html#Remote_Address_Filter It looks like this: @WebListener public class MyServletContextListener implements ServletContextListener { @Override public void contextInitialized(ServletContextEvent sce) { // Get IP addresses from the DB or text file. ... ServletContext sc = sce.getServletContext(); FilterRegistration fr; fr = sc.addFilter("RemoteAddrFilter", "org.apache.catalina.filters.RemoteAddrFilter"); fr.addMappingForUrlPatterns(EnumSet.of(DispatcherType.REQUEST), true, "/*"); fr.setInitParameter("allow", "127\.0\.0\.1"); fr.setInitParameter("denyStatus", "403"); } }

Categories : Tomcat

wso2 carbon bind address
In <CARBON_HOME>/repository/conf/carbon.xml there are 2 commented elements as: <!--HostName>www.wso2.org</HostName--> <!--MgtHostName>mgt.wso2.org</MgtHostName--> Uncomment these two and add correct host names/ip addresses.

Categories : Wso2

nginx: [emerg] bind() to [::]:80 failed (98: Address already in use)
Skype uses port 80,443 by default, those are EXACTLY the http and https ports. Try shutting down skype and restarting nginx. If you are using the 'desktop version' of Skype you can change this setting by the way of tools>options>advanced>connections > untick use port 80 and 443 as alternatives. If you are using the win8 app, the only option seems to be shutting down skype completely or removing it completely. Someone has to confirm the win8 app though, I use linux.

Categories : PHP

apache make_sock: could not bind to address [::]:8989
something is using port 8989. May be a previous instance of Apache itself. In your shell/cmd enter Windows: (you may need to run as administrator) netstat -anb Linux: sudo netstat -tulpn By the way, do you have multiple Listen directive in httpd.conf? make sure you have one.

Categories : Apache

How can i avoid mulitple raw socket bind to the same ip address?
No. The mere fact that its RAW means there's no other protocol except RAW Internet Protocol. Without TCP or UDP, there won't be any port to distinguish which application this packet gets sent to, so instead, everything will have to be filtered through the IP packet's payload. You'd have to do this manually. Best way is to make a program that forwards these packets after inspection to wherever you want it to go.

Categories : C

Does the Oracle DB listener bind to private ip address only?
You just need to configure Oracle Listener with hostname, in case your dns server resolves ip addresses correctly you should have no problem accessing Oracle with hostname. As for public ip address access, after configuring Oracle with hostname your network's router should be configured to forward a port to Oracle Listener hostname:port. Then you will be able to access Oracle publicly. Of course firewall configuration should be done accordingly.

Categories : Database

How to check if address is contained in a continent or close to another address in android google maps api v2?
For the start I assume you are familiar with the GeoCoder and / or GeoCoding API to get the addresses for your locations. If you use the GeoCoder you will get a List of Address objects. The Address class provides some methodes to get the country or city name f.e. These methods you can use for your filter. The Location class includes the methods distanceBetween() and distanceTo(). These you can use to check the distance between your locations.

Categories : Android

Access Voilation at address 00407518 read of address C3EF9FFE on form close?
Your stomping on your strings...change to move(arr1[ind],user[1],length(user)); ind:=ind+length(user); move(arr1[ind],s1[1],length(s1)); ind:=ind+length(s1); move(arr1[ind],ip[1],length(ip));

Categories : Delphi

DNS lookup failed: address 'your.proxy.com' not found: [Errno -5] No address associated with hostname
**Error that I get** - scrapy crawl Linkedin **2013-07-29 11:37:10+0530 [Linkedin] DEBUG: Retrying <GET http://www.linkedin.com/nhome/> (failed 1 times): DNS lookup failed: address 'your.proxy.com' not found: [Errno -5] No address associated with hostname.** **To see if the Name space was resolved, I tried -:** nslookup www.linkedin.com #works nslookup www.linkedin.com/uas/login # I think the depth of pages within a main website, does not resolve, and is normal right ? Then I also tried to see if the error could have been due to Name Server not resolving and appended the Nameservers as below . echo $http_proxy #gives http://username:password@your.proxy.com:80 You have a proxy set: http://username:password@your.proxy.com:80. Obviosly, it doesn't exist in Internet: $ nslookup y

Categories : Python

What could cause Magento to change new address back to default address on Paypal redirect?
I had a similar bug and maybe its the same with you. If you select an address as your default address in the address book it screws up the one page checkout. Say I have 3 people in my address book: John, Suzy and Bill. One day I happen to be in my address book and I select John as my default billing and shipping address. Then I go to my cart, order some items, select John as billing, and select ship to a different address. On the next step I select Suzy as my ship to address. I click next to go to the shipping method step, but whoa, wait! Suzy's address has been overwritten and replaced with Johns address. Its exactly the same issue posted about here (although I dont think the guy understands what happened, but the screenshots are the same result): http://www.magentocommerce.com/boards/

Categories : Magento

Is the memory address returned by malloc/calloc from virtual address space?
All addresses you see in user space applications are virtual addresses. Physical addresses are only of concern to the kernel. The mapping from virtual to physical addresses is complex, given that: Not all virtual addresses have physical addresses at all. (For instance, pages that are unmapped, lazily zero-filled, or swapped out have no physical address.) Physical addresses may change without warning (e.g, if a page is swapped out and back in, or if a shared page is copied). Outside of some very unusual situations (mostly having to do with messing around with hardware), you should not care about physical addresses.

Categories : C

Display webpage address in browser address field which is loaded into iframe
You can't. What if http://fakebanksitewithrealbanksiteiniframe.com could just display http://yourbank.com?

Categories : Asp Net

Get User's IP Address in a Share Point Web Part not giving valid IP address
Use this, string ip = HttpContext.Current.Request.ServerVariables["HTTP_X_FORWARDED_FOR"]; if (string.IsNullOrEmpty(ip)) { ip = HttpContext.Current.Request.ServerVariables["REMOTE_ADDR"]; } Or use string ipAddress = Request.UserHostAddress

Categories : C#

what 's the difference between application's enter point address and excuteable start address
Terminology is fuzzy but I think I know what you are talking about. A language needs runtime support. Standard for C and the C++ languages is the CRT. The CRT needs to be initialized before the program can start running. Opening stdout and stdin, initializing static objects, setting up signals, that sort of thing. Two basic ways that's done, the compiler can inject a call to the initialization code in the main() entrypoint of the program. Before the rest of the code inside main(). That's typical for simple operating systems that don't have a fancy loader. Both the entrypoint and the executable start address are the same. Also the reason why the language standard forbids recursing main(). Or it can be done by setting the executable start address to the runtime initialization funct

Categories : C++

Address and Address Range Syntax search memory when using windbg to do debug
The L refers to the length of the range to search so using 0012ff40 as starting range, plus 32 bytes would give end address of 0012ff5f (remember it includes the starting address). To answer your second part the -d flag tells WinDbg the type of the object, in this case DWORD which will be 32-bit unsigned integer

Categories : Debugging

How do you parse a street address from a single cell in Excel into individual cells when the address format isn't consistent?
I guess you can do a combination of MID & FIND to extract parts of the address, e.g. =IF(IFERROR(MID(A1,1,FIND(",",A1,FIND(",",A1)+1)),1)=1,MID(A1, 1, FIND(",",A1)-1),MID(A1,1,FIND(",",A1,FIND(",",A1)+1)-1)) will extract the address from cell A1, depending of the number of commas it finds (1 or > 1). ZIP and state won't be too difficult following the above mentioned pattern. I think the problem is extracting the city as you don't know where to set the limit between the city name and the street unless you have a finite set of street types, e.g. ct, st, way etc.

Categories : Excel

windbg:Getting source code file at give address like "u address"
If You have the source code of debugging code why would You like to browse/view it from windbg? Source mode makes debugging very simple but windbg is not a "code browser". If You want to see the source code at the given address simply check what function "covers" this address e.g.: kd> uf fffff800`02be05d0 nt!NtOpenFile: fffff800`02be05b0 4c8bdc mov r11,rsp ... fffff800`02be05d0 458953e0 mov dword ptr [r11-20h],r10d Then ctrl-o and open your source code that contains this function(your func ofc unless You work for microsoft :D) and browse it in windbg.

Categories : Debugging

Find Computer Name,Operating System name of a given IP address or MAC address In java
import java.util.Map; public class EnvMap { public static void main (String[] args) { Map<String, String> env = System.getenv(); for (String envName : env.keySet()) { System.out.format("%s=%s%n", envName, env.get(envName)); } } } I guess you need the following properties: COMPUTERNAME OS regarding MAC Addrss and IP Address you have 2 options: use InetAddress ip; try { ip = InetAddress.getLocalHost(); System.out.println("Current IP address : " + ip.getHostAddress()); } catch (UnknownHostException e) { e.e.printStackTrace(); } or use ipconfig/ifconfig output but I'll leave the choice it to you

Categories : Java

How to pass address of BOOL to a method accepting address of VARIANT_BOOL?
The solution is that you should not use a cast for this because BOOL is typedefed to int and VARIANT_BOOL is typedefed to short and so they most likely will have different sizes. Declare a VARIANT_BOOL variable and pass its address, then interpret the result.

Categories : C++

how is virtual address translated to its physical address on backing store?
This is OS-specific, but many implementations share logic with memory-mapped file features (so that anonymous pages actually are memory-mapped views of the pagefile, flagged so that the content can be discards at unmapping instead of flushed). For Windows, much of this is documented here, on the CreateFileMapping page

Categories : C

Set local bind address for client socket in java
The documentation of the abstract SocketFactory.createSocket() method you speak of in your question, points to this constructor that offers what you need; public Socket.Socket(InetAddress address, int port, InetAddress localAddr, int localPort) throws IOException Docs found here If you need to change the localAddress of an existing socket you should use the bind(SocketAddress bindpoint) method, however that will throw an IOException if the socket is already bound. You should pass an InetSocketAddress to that method as SocketAddress is abstract. If your having trouble finding the internal IP addresses of each of your interfaces this guide explains how to retrieve a collection of them.

Categories : Java

Email Support section with the users address as "From address"
You cannot do what you are doing, because the SMTP server is not allowing you to "impersonate" the user's email address for sending to the system. And thank goodness this is the case or else people would be spamming/spoofing the heck out of everyone under someone else's name. Why are you trying to have it appear that the user is sending an email to the application? Why not just have a support section of your application where users can "submit" requests for support to the system and then if you want to send emails out to the users, then your scenario will work, but just in reverse (where the system is the From address and the user is the To address).

Categories : C#

SVN Changed IP Address - External files pointing to old IP Address
Ok, I managed to solve the problem. The issue was actual that SVN_EDITOR was not set up. So I to set it up I used the following command: export SVN_EDITOR=nano and then I was able to edit the reference using the following command: svn propedit svn:externals .

Categories : Svn

Is anyone get Address-Sanitizer (known as asan or -fsanitize=address) work for iOS?
I finally get the asan work for me with my friend's help. move all c/c++ code to a new target (cocoa lib target) of xcode project. make the project build and run normally as it was a single app before separate c/c++ codes to a lib. build llvm. ref http://blog.wadetregaskis.com/tot-clang-llvm-in-xcode/ add a clang option to xcode. for convenient you can use this template: http://blog.wadetregaskis.com/tot-clang-llvm-in-xcode/ . change clang path to the clang just build in the previous step. change the lib target in the xcode to use the new clang/llvm, add a cflag -fsanitize=address. then build, if some api (such as opengl/system video function) is reported not supported, then you can put it into the app project, your clang doesn't support compiling it. if you pass the compile, it will rep

Categories : IOS

Excel: Search for a cell address, then use that address in a function
I wrote it down a bit quickly, so there might be something shorter ^^; =IF(ISNUMBER(SEARCH("Successful",VLOOKUP("*"&A1&"*",Sheet1!A:A,1,0))),"Success","Fail") The innermost function is VLOOKUP and will look for the corresponding cell in Sheet1 containing 'dog' (case insensitive). It will return the value The dog failed. Now, the next formula is SEARCH (a case insensitive version of FIND) and will look for Successful. The rest should be relatively easy to understand :)

Categories : Excel

Get real url address that user typed in address bar in browser
RawUrl only contains the server path, without the domain, which seems to be the most interesting part for you. In that case, it seems like a duplicate of What's the best method in ASP.NET to obtain the current domain? Here the solution was to use Request.Url.Host

Categories : C#

Amazon Route 53 to map an address like https://my-elb-address:88888/my-app-name
There's a few problems with that: First, DNS cannot include port numbers. Second, DNS cannot include a path. Third, the maximum port number is 65535, so even if DNS did let you add a port number, that port number is too high. You'll probably want to just send your domain directly to the server. Use apache to reverse proxy 80/443 to 8080/8009 (glassfish default ports for http/ajp), and just add a mod_rewrite rule that redirects / to /my-app.

Categories : Amazon

IPv6 address as the domain portion of an email address
You are right to look at RFC4291 for the IPv6 address format. However, for SMTP (and thus for any other email software handling addresses) you should also look at Address Literals in RFC5321. The one you want is probably "IPv6-address-literal".

Categories : Email

How to save postal address and address that are similar using hibernate?
You don't have to care about if these addresses are the same or not. Once you save an entity by using session.save(), that entity becomes managed. So the second save() won't do anything if the entity has already been saved. EDIT: Address addr = new Address(); user.setAddress(addr); user.setPostalAddress(addr); I am setting the same address to both address and postalAddress. Then if you do this: session.save(user.getAddress()); session.save(user.getPostalAddress()); or do this (after defining cascade="persist" on the association): session.save(user); then Hibernate will insert only one row to address table and set the same id to user.address and user.postalAddress columns.

Categories : Hibernate

Validating IP address and ip address ranges delimited by semicolon
Explode them by ;, and then trim the array values to remove the spaces. That way, you can make sure both the spaced-version and non-spaced versions of the user input is treated equally. $parts = explode(';', $text); $parts = array_map('trim', $parts); //or $parts = array_map('trim', explode(';', $text)); //check if IP is valid For validating the IP, you don't need a regular expression. PHP already has a built-in function filter_var() which does exactly what you want. $parts = array_map('trim', explode(';', $text)); foreach ($parts as $ip) { if(strpos($ip, '-')) { list($range1, $range2) = explode('-', $ip); // validate IP range here } elseif (filter_var($ip, FILTER_VALIDATE_IP) ) { echo "$ip is valid<br/>"; } } That should get you s

Categories : PHP

WCF Service Base Address vs endpoint address
baseAddress is just that, the base address for your endpoints (unless specified explicitly). So every <endpoint> will inherit from <baseAddress> (which is why they are usually "" and "mex"). e.g. <baseAddresses> <add baseAddress="" /> </baseaddresses> ... <endpoint address="" contract="MyService.IMyContract" ... /> <endpoint address="mex" contract="IMetadataExchange" ... /> You now have two endpoints: - service endpoint - metadata endpoint By exempting the <baseAddress> you're requiring the <endpoints> to both be fully qualified (including the mex (which is not)). e.g. <baseAddresses></baseaddresses> ... <endpoint address="net.tcp://

Categories : C#

Physical address of the address returned by kmalloc
You're right, kmalloc is returning a virtual address, not a physical one. The memory map you linked to is describing the virtual memory map, not the physical memory map. A virtual address typically is translated to a physical address by the MMU when you access data at the address. What the virtual address translates to depends on the memory map specified by the kernel. The memory map you linked to shows how Linux does the mapping. It is saying, if you have a virtual address between 0xffff880000000000 and 0xffffc7ffffffffff, it is mapped to somewhere in physical memory (we don't know where exactly nor do we care unless we're doing DMA).

Categories : Linux

Could not find a base address that matches scheme net.tcp for the endpoint with binding NetTcpBinding. Registered base address schemes are [http]
You can't host net.tcp under IIS 6, it supports only HTTP(s). So you are limited with HTTP bindings only (basic, ws or 2007). In order to provide net.tcp and other protocols, WAS is required. You can activate it standalone, but I advice you to install it both with IIS 7 (it is installed as a part of it), because IIS 7 gives a convinient service management platform in addition. Another solution it so change the hosting environment to make it self-hosted or service-hosted, using ServiceHost class instance, which supports tcp protocol.

Categories : Wcf

How do I set an ip address for TUN interface on OSX (without destination address)?
By default, tun devices operate in the layer 3 mode, aka point to point. You're asking for layer 2 mode which more closely resembles a generic Ethernet device. Linux calls these tap devices. In OpenBSD you can switch a tun device into layer 2 mode with "ifconfig tun0 link0". The Macintosh tuntaposx driver mimics Linux' device schism; open a tap device instead. You might want to review https://community.openvpn.net/openvpn/wiki/BridgingAndRouting to determine if you really want tap devices. They add a little overhead. If you just need two boxes to pass IP packets between each other and no bridging or broadcasting to a larger subnet, point to point should be sufficient. For example, if you have two machines, one we label "local" with a LAN IP address like and another we

Categories : Networking

Getting address parts out of address string
Google Reverse Geocoding API if you have the coordinates. Google Geocoding API if you have the address.

Categories : Algorithm

Given return address, how to get the address of the function?
One approach would be to obtain the return address that foo will return to, and get the address from the opcode of the call instruction that calls foo. Eh? That will give you the address of bar, not foo. All you need is the highest procedure entry point that is lower than the return address.

Categories : C

ArgumentError: An SMTP To address is required to send a message. Set the message smtp_envelope_to, to , cc, or bcc address
The error message is not about the SMTP envelope, but about the sender: An SMTP To address is required to send a message the rest is just a generic message. Something in your testmail@mymailaddress.com is not working. Do you use a real, working address? If not, try with one.

Categories : Ruby On Rails

Sending form data to my email address and address entered in form by user
$to = "diysoakwells@hotmail.com;" . filter_var($emaile, FILTER_VALIDATE_EMAIL); You may also want to try this.... $to = "diysoakwells@hotmail.com;<" . filter_var($emaile, FILTER_VALIDATE_EMAIL) . ">";

Categories : PHP

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