w3hello.com logo
Home PHP C# C++ Android Java Javascript Python IOS SQL HTML videos Categories
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

How to change url in address bar?
You can use the history manipulation api: //Change address to http://www.test.com/page.php: history.pushState('', '', 'http://www.test.com/page.php'); See How to do awesome refreshless page changes like GitHub or https://github.com/blog/760-the-tree-slider

Categories : Ruby On Rails

Primefaces how to change URL address
Use normal links or buttons instead of command links or buttons. E.g. <p:button value="Go to button1 page" outcome="button1" /> It'll open button1.xhtml and point to /myApp/button1.xhtml. To get rid of the file extension, consider PrettyFaces or FacesViews. See also: When should I use h:outputLink instead of h:commandLink? How to make URL reflect the current page (and not the previous one)

Categories : JSF

static address with gdb. change without gdb
By default gdb disable address space randomization (ASLR). To see randomization state in gdb: (gdb) show disable-randomization To enable it in gdb: (gdb) set disable-randomization To disable address randomization for your processes: sudo sysctl -w kernel.randomize_va_space=0 To disable address randomization for a specific program: setarch `uname -m` -R program [program_arguments]

Categories : C

change ip address for docker
from https://github.com/dotcloud/docker/issues/866#issuecomment-19218300: You could try to reset all the networking/iptables: pkill docker iptables -t nat -F ifconfig docker0 down brctl delbr docker0 docker -d It will force docker to recreate the bridge and reinit all the network rules.

Categories : Linux

Change c# WebReference url address
Create a CustomSoapHttpClientProtocol: public class CustomSoapHttpClientProtocol : SoapHttpClientProtocol { public string SoapActionUrl { get; private set; } public CustomSoapHttpClientProtocol(string soapActionUrl) { this.SoapActionUrl = soapActionUrl; } protected override WebResponse GetWebResponse(WebRequest request) { const string soapAction = "SOAPAction"; if (request.Headers.Count > 0 && request.Headers.AllKeys.Contains(soapAction)) { request.Headers[soapAction] = SoapActionUrl; } WebResponse response = base.GetWebResponse(request); return response; } Then in your proxy class replace SoapHttpClientProtocol with your CustomSoapHttpClientProtocol.

Categories : C#

Change IP address in ruby
You can connect through a proxy, and if you have a list of proxy addresses then you can tell ruby to change proxy every x minutes, this will result in a change of the IP that the website thinks you have. Here's a code to scrape google search results through a proxy, to use a proxy list just extend the code a bit. require 'rubygems' require 'mechanize' agent = Mechanize.new agent.set_proxy '', 8080 page = agent.get('http://www.google.com/') google_form = page.form('f') google_form.q = 'new york city council' page = agent.submit(google_form, google_form.buttons.first) page.links.each do |link| if link.href.to_s =~/url.q/ str=link.href.to_s strList=str.split(%r{=|&}) url=strList[1] puts url end end

Categories : Ruby

vsphere api to change ip address of VirtualMachine
VMware API don’t have a setting to set IP address on virtual machine guest OS, because the IP address setting depends on version guest OS. You could use two ways to do it: 1) You could use GuestOperationsManager from VMware vSphere API to launch the script of IP address setting on guest OS. Prerequisites: You should write scripts of IP address setting for each supported OS (Linux, Windows, etc.) VMware Tools must be installed on each supported VM (for use GuestOperationsManager). Update2. The following simplified example of running a script on the guest OS. This example does not include error handling, getting logs of the script, VM power on, etc. using System; using System.IO; using System.Net; using Vim25Api; namespace RunScriptOnGuestOsTest { class Program { st

Categories : C#

How to change ?
actually,the file "HelloWorld.wsdl" which you edit is just use to show the information.it can not effect anyother things of you project,you should edit by you code.like endpoint.publish("..."); see if this help

Categories : Java

How can I change the service reference address?
Take a look at web.config transforms. http://msdn.microsoft.com/en-us/vs2010trainingcourse_webdevelopment_topic4.aspx

Categories : Visual Studio

Sqlalchemy change decimal IP address to dotted
Get the decimal value from DB and do the conversion in Python code. Install IPy module and do the following: from IPy import IP ip_dotted = str(IP(ip_dec)) If you were using Python 3.3, there's ipaddress in stdlib: from ipaddress import ip_address ip_dotted = str(ip_address(ip_dec)) If RDBMS in use is PostgreSQL, conversion can be done at DB level: from sqlalchemy.sql import cast, func from sqlalchemy.dialects.postgresql import INET session.query(func.host(cast('', INET) + SomeTable.ip_dec)).scalar() Finally, you can do calculations yourself, so there won't be any dependencies on specific libraries, Python versions or RDBMS: segments = [] # From 3 to 0. for n in range(3, -1, -1): p = 256 ** n segments.append(str(ip_dec // p)) ip_dec %= p ip_dotted = '.'.join(s

Categories : SQL

Magento change email address of form
It should still be in that file, it will just be function serviceAction() inside of IndexController.php. If it's not there, see if there is a corresponding IndexController.php somewhere inside of the app/code/local directory. Often the forms pull from an email address set in the System configuration under Contacts. EDIT The line you're looking to change is Mage::getStoreConfig(self::XML_PATH_EMAIL_RECIPIENT), That address is pulled from the system configuration. You can hardcode the email address, or set it to another configured email address.

Categories : PHP

How can I change the class of an
  • when I click on an address inside that
  • This should work: <li class="{{a==1 && 'current'}}"><a href ng:click="a=1">A1</a></li> <li class="{{a==2 && 'current'}}"><a href ng:click="a=2">A2</a></li> <li class="{{a==3 && 'current'}}"><a href ng:click="a=3">A3</a></li>

    Categories : Angularjs

    Can I change the server address when committing using TortoiseSVN?
    You need to perform a relocate to point your WC at the correct server URL. For TortoiseSVN For the command-line But this will only work if your server at home is accessible from outside your home network.

    Categories : Svn

    why image address must change when controller changed?
    Use Url.Content to get the relative path: @Url.Content("~/files/mypic.bmp") The issue is that, when you use relative paths like those listed in the OP, the browser interprets them as relative to the current URL. Hence, they resolve to different places depending on whether the current URL is home or homeserver.

    Categories : Asp Net Mvc

    How to change font size of address bar in Chrome programmatically
    Generally, the font size of the address bar is determined by your OS's default font size. Read comments here: https://code.google.com/p/chromium/issues/detail?id=46472. So if you want to adjust it, change your OS default. If you build your own version of Chrome, you can change the look and feel of the browser, but you'll have to write different code for each platform you want to support. If you don't want to build your own version of Chrome, then on Windows, you can inject yourself into the Chrome process with SetWindowsHook or SetWindowsHookEx, find the window handle corresponding to the address bar, and then do anything you want to it. Similar idea on OSX. Not sure about Linux. This isn't a recommended approach; it's invasive and subject to breakage. As far as a Chrome API for an exte

    Categories : Google Chrome

    How can I programmatically change the IP address of an Azure Cloud Service or VM?
    You cannot programmatically change a deployment's IP address, aside from shutting down the deployment (which releases the IP address) and then re-starting it (and that you can do programmatically, or through PowerShell). Also note that if you have several Virtual Machines in the same deployment, each VM will share the same public IP address. Note that with Virtual Machines (vs. web/worker role cloud services), if you have a single Virtual Machine, you can stop the VM, then restart it, and you'll get a new IP address (ok, actually, there's no guarantee you'll get a different IP address, so more accurately you'll be assigned an IP address) while retaining the state of your VM. Shutdown and startup are not an instantaneous operatios however, and it's not going to provide you a per-minute IP

    Categories : Azure

    How to Change the IP Address List Order returned by gethostbyname?
    I have seen something similar. This doesn't totally answer your question, but this is what I have. remoteHost = gethostbyname(ac); int i = 0; if (remoteHost->h_addrtype == AF_INET) { //while (remoteHost->h_addr_list[i] != 0) //{ // addr.s_addr = *(u_long *) remoteHost->h_addr_list[i++]; //} addr.s_addr = *(u_long *) remoteHost->h_addr_list[0]; } I've commented out the while loop. That part just keeps looping over the list of adapters, eventually stopping on the last one (which in our case, is the VMware adapters). Using the h_addr_list[0] gives my physical adapter. However, I'm not sure how the order is actually determined, or how I can tell which is physical, and which is virtual. Hope that helps a little.

    Categories : Windows

    Program to check and change IP address ranges and not allow overlap
    Take a look at the Net::IP module on cpan, it has a procedural interface that enables you to specify ip ranges and determine whether they overlap. Ideally you would use its object implementation, but then you will need to know what object oriented programming is and how to do it in perl. Then that module will enable you to create subnet objects and determine whether any subnet objects have overlapping ranges.

    Categories : PHP

    Can't get MailChimp API listUpdateMember to change a user's email address
    It turns out the answer is very simple. https://twitter.com/MailChimp_API/status/351674145609748480 Apparently NEW-EMAIL isn't needed at all in the merge_vars - just EMAIL. So the working code in my case is: $member_details = array( // grabbed from config and working (also API key handled by bundle) 'id' => $id, // passed from function - corresponds to the old email address 'email_address' => $mailchimp_old_email, 'merge_vars' => array( // new email address 'EMAIL' => $mailchimp_new_email, ), 'replace_interests' => FALSE, ); $response = Mailchimp::listUpdateMember($member_details); This works straight out. Feels like "NEW-EMAIL" really isn't necessary (or EMAIL should be removed and just use "NEW-EMAIL" as it's

    Categories : PHP

    When receiving email's I only get my email address as "sent from." although it was sent from another email address. What should I add or change?
    Have a look at php:mail manual in the example#3 you can see, <?php mail('nobody@example.com', 'the subject', 'the message', null,'-fwebmaster@example.com'); ?> You can see The additional_parameters parameter can be used to pass an additional parameter to the program configured to use when sending mail using the sendmail_path.

    Categories : PHP

    How to change the default from address of email send by Linux root
    You should be able to use the -f flag of the sendmail command to specify the envelope from address, and you should me able to specify the meesage from address in headers of the message itself. For example: /usr/sbin/sendmail -f from@from.com to@to.com < message.txt

    Categories : Linux

    How do I redirect subdomain to subdirectory (with default folder) on htaccess without change address
    If they are on the same server and have the same document root, then you really don't want to proxy at all. Remove the host part of the rule and get rid of the "P": RewriteEngine On RewriteCond %{REQUEST_URI} !^/sd_ RewriteCond %{HTTP_HOST} !^(www). [NC] RewriteCond %{HTTP_HOST} ^([^.]+).domain.com.br$ [NC] RewriteCond %{DOCUMENT_ROOT}/sd_%1%{REQUEST_URI} -f [OR] RewriteCond %{DOCUMENT_ROOT}/sd_%1%{REQUEST_URI} -d RewriteRule ^(.*)$ /sd_%1/$1 [L,NC,QSA] RewriteCond %{REQUEST_URI} !^/sd_ RewriteCond %{HTTP_HOST} ^www.([^.]+).domain.com.br$ [NC] RewriteCond %{DOCUMENT_ROOT}/sd_%1%{REQUEST_URI} -f [OR] RewriteCond %{DOCUMENT_ROOT}/sd_%1%{REQUEST_URI} -d RewriteRule ^(.*)$ /sd_%1/$1 [L,NC,QSA] #Rewrite for my Framework RewriteCond %{SCRIPT_FILENAME} !-f RewriteCond %{SCRIPT_FILENAME} !-d R

    Categories : Htaccess

    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

    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

    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

    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#

    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

    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

    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++

    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

    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

    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

    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

    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

    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#

    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

    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

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