Encoder running on a server but not on another server

I have developed a web application using codeigniter. In my localhost it works properly. But while i am hosting it to the live server (shared server) it's not working. I am getting the home page while calling the main URL on live server, but any URL

NSXMLParser with a search bar

I tried to find some ressources for creating an XML parser with a searchBar. Any Idea? Thanks a lotThat's a pretty generic question. You're likely to get alot more answers by asking something more specific about what you want to accomplish. Developer

Use the string in the list of lists

I have an ArrayList where I add Strings like [string1 string2 string3 code]. This code is just a number I give to each string. But this code is what I have to use to delete or use a string. So lets suppose I have a arrayList with the next strings: St

Virtual and non-virtual inheritance mix

while trying to analyse in greater depth inheritance mechanism of C++ I stumbled upon the following example: #include<iostream> using namespace std; class Base { public: virtual void f(){ cout << "Base.f" << endl; } }; class Le

Web API Validation Error

I have a View Model called SignUp with the EmailAddress property set like this: [Required] [DuplicateEmailAddressAttribute(ErrorMessage = "This email address already exists")] public string EmailAddress { get; set; } and the custom validator loo

SQL Server 2012 join the performance features?

Consider a simple 3 table database i SQL Server 2012. Table A AId Name Other1 Other2 Table B BId Name Table A_B BId AId Simple example query: SELECT TOP(20) A.Aid, A.Name, B.Bid, B.Name FROM A INNER JOIN A_B ON A.AId = A_B.Aid INNER JOIN A as AA ON A

Magento: Bulk Product Store ID

I've just imported ~800 products into Magento before realising I had store_id set to 0 when it should have been 1. Does anyone know an easy way to update this? I've tried changing the store_id to 1 in the spreadsheet and importing it again to update

Defining the custom action title of the fragment

In my Main FragmentActivity, I setup my custom ActionBar title like this: LayoutInflater inflator = (LayoutInflater) this .getSystemService(Context.LAYOUT_INFLATER_SERVICE); View v = inflator.inflate(R.layout.custom_titlebar, null); TextView tv = (Te

Python 3: get the second at the last occurrence string index

I have a string abcdabababcebc How do I get the index of the second-to-last occurrence of b? I searched and found rfind() but that doesn't work since it's the last index and not the second-to-last. I am using Python 3.Here's one way to do it: >>>

Problem with list.groupBy ()

I have a list as below def qresultList = [ [location: 'a', txs: 10], [location: 'b', txs: 20], [location: 'a', txs: 30] ] I want to get distinct list of locations with sum of txs for same location.. so I am doing groupby on location like this: def to

AutoMapper IDataReader Mapping Default to Entity

im using AutoMapper for map entity and DataSet AutoMapper.Mapper.CreateMap<IDataReader, Home>(): and i have a property call MobileNumber in Home entity and want to map static value for this property in entity so how can i add static value when entit

Why different behaviors for list concatenation?

What is the difference between a ::: b and a.:::(b) ? scala> val a = List(1,2,3,4) a: List[Int] = List(1, 2, 3, 4) scala> val b = List(5) b: List[Int] = List(5) scala> a.:::(b) res6: List[Int] = List(5, 1, 2, 3, 4) scala> a ::: b res7: List[In

How to configure EasyMock Class Extension 3.1?

I want to add EasyMock Class Extension 3.1 to my project and I have a problem with dependencies of EasyMock 3.1 CE. I add dependencies : cglib-2.2.2.jar and asm-4.0.jar and throws exception : java.lang.VerifyError: class net.sf.cglib.core.DebuggingCl

The best way to set up a push notification system

We would like to make a realtime price change system to be able to see difference with competitor prices against our product prices. We have no experience with Push notification / COMET system by Javascript and PHP. If you don't mind, I would like to

Clojure: How to get a docstring function?

I am trying to get ONLY the docstring of a function in Clojure, nevertheless I have encountered several problems as all the functions that I find actually print the function signature + docstring. So for example (doc map) will actually print somethin

OOP Events Javascript

I want to create an object that can parse a certain filetype. I've looked at some of the files in the File API and I want my object to work about the same. So basically, what I want is this: A function, called CustomFileParser. I want to be able to u

Symfony and PhpUnit memory leak

We have issues with memory leak when loading Doctrine in our phpunit tests Starting for Symfony's documentation : http://symfony.com/doc/2.7/cookbook/testing/doctrine.html we have written this test : use Symfony\Bundle\FrameworkBundle\Test\KernelTest

Ispconfig nginx redirects to https

I've deployed a CentOS server with ISPConfig and Nginx. Also I was able to configure Nginx, manually (by editing /etc/nginx/sites-available/mysite.com.vhost), to redirect http requests to https: server { listen 80; server_name mysite.com; return 301

How do I add all this in an NSLog

I have everything working but how would I make it all in one line. Is there a place holder? NSLog(@"The value of myFraction is: " [myFraction print], [myFraction divide] ); // [myFraction print]; // [myFraction divide]; Print i have it set that

How do I access the (multi) index of a data frame?

I have a data frame and use some of its columns to group by: grouped = df.groupby(['col1', 'col2']) Now I use mean function to get a new data frame object from the above created groupby object: df_new = grouped.mean() Now I have two data frames (df a

Choose a specific item in XPath

I got 2 elements under the same name "reason". When i'm using //*:reason/text() it gives me both of the elements, but i need the first one. (not the one inside "details"). please help.. <xml xmlns:gob="http://osb.yes.co.il/Gobl

ZfcUser installation problem

I am trying to setup ZfcUser as described in README.md on the github page. I understand all but this step in Post-Install: Zend\Db; 2. Now, specify the DI alias for your PDO connection in ./configs/autoload/module.zfcuser.config.php, under the 'pdo'

How to submit names for your namespaces?

I'll preface this by saying that I usually work in C#/.Net. Normally, I use a naming scheme that puts common, reusable components into a namespace that reflects our organization and project-specific components into a namespace tied to the project. On

Visual C ++ copy char array in char array

Need help with copying array object to a temp array object using a for loop (see code + comments below)..... Thanks in advance!!!! int counter; char buffer[] = "this is what i want 0 ignore the rest after the zero"; // char command[sizeof(buffer

MAX_HEAPIFIER the implementation

I wrote JavaScript code to build a max heapify which maintains the max-heap property, but I have many questions regarding the implementation: array I test on: [1, 2, 3, 4, 7, 8, 9, 10, 14, 16] When I test on the array when it is sorted I got: [ 16, 1