How do I get the Pin to change it's image?
Vote count: 0 I have the problem, that my A otation is still a pin! I want the Button and the picture, for the information displayed about the User and it works. But it doesn't change the look of the pin on the Map! This is my a otationView: func mapView(mapView: MKMapView, viewForA otation a otatio...
Creating friendly url in php using slim framework
Vote count: 0 I want to open profile page like www.website.com/slim/use ame (where use ame is unique) . I am currently using slim php framework for routing GET requests. So when I open " www.website.com/profile/use ame " it properly executes the route defined for '/use ame' and gives simple json res...
(): did not find expected node content while parsing a flow node at line 18 column 14 while running rake db:migrate
Vote count: 0 I am trying to run old Ruby on Rails project on my machine (Ubuntu). I installed rvm ruby 1.9.3-p551 and rails 2.3.2. After installing bundler, gems n etc; I run rake db:migrate. I am getting the following error, please help me out. user@iam:~/Desktop/practice/Application$ rake db:migr...
Custom HeaderView in listView
Vote count: 0 I have 2 views for an item ListView. So one is used as HeaderView for ListView and the other in the other. That is the second marking takes the data from the DetailsAdapter, which respectively are initialized fields. public class DetailsAdapter extends ArrayAdapter<TicketObjects> { pri...
how to remove this string
Vote count: 0 Hi I have an array and I want to remove this string x000D from the postaladdress how will I do it ? I have this in an array and I want to remove it. Please assist. [1] => MaatwebsiteExcelCollectionsCellCollection Object ( [title:protected] => [items:protected] => Array ( [email] => a22...
cluster no response due to replication
Vote count: 0 I found this log in my server.log. The offset of replication is larger than leader's, so the replication data will delete, and then copy the the data from leader. But when copying, the cluster is very slow, some storm topology fail due to no response from kafka. So: (1)How to avoid thi...
show count when user clicks/open a link
Vote count: 0 Hi OnClick I am getting the total count from the database using jquery If I am on Same Page(TeamPage).Now I am on Home Page and I am clicking on Link to reach on Teampage.after reaching on teampage it's not showing count but Now Again I am Clicking on team link now it's showing Fav Cou...
Get the Last Known Location
Vote count: 0 I read already a lot of code for an example, but I for some reason does not work. In onStart() method throws FATAL EXCEPTION: main java.lang.IllegalArgumentException: GoogleApiClient is not configured to use the API required for this call. It does not have to communicate with Google se...
Python-Import txt files
Vote count: -4 I have more experience with R-programming language for statistical analysis and I have recently started extending my skills via Python. My question is quite simple. I am trying to import a txt file into Python and read it in order to do some analyses without success. Usually, with RSt...
CSS select all, selecting some, but not all elements?
Vote count: 0 I'm building a site which will have no border radius on any element, and rather than using outline: 0; multiple times in my stylesheet I'm trying to use the * selector to apply outline: 0; to everything; * { -moz-appearance: none; -webkit-appearance: none; -webkit-tap-highlight-color: ...
Mysql division not having expected result
Vote count: 0 I have the following mysql query in which I want to convert a size in bytes to it's equivalent in KB. select *, (sum(size)/1024) as size_kb from data where date = '2015-09-30' group by date this outputs for 273547264 the value 2336064.0000, but this is not correct because the it is 267...
Javascript change object to custom array
Vote count: 0 I want to convert this object: "age": [ { "Under 20": "14", "Above 40": "1" } ] to this: {c: [{v: Under 20}, {v: 14}], c: [{v: Above 40} {v: 1}]} I know how to use $.map and arr.push but I can't get the key Under 20 and take the element value 14. How can I achieve that? edited 40 secs ...
activity is not being called from broadcast reciever
Vote count: -1 I am using an alarmmanger with broadcast receiver and when a specified time occurs, i need to update the MainActivity with extra parameter but its behaving randomly. here is code in the broadcast receiver public void onReceive(Context context, Intent intent){ //calculate time //check ...
python Time Series: how to operate the data by days?
Vote count: 0 I have a dataset: a.head() Out[18]: price volume w time 2010-04-16 09:15:00 0.122732 0.910239 0.000110 2010-04-16 09:15:30 0.122627 0.558111 0.000090 2010-04-16 09:16:00 0.122679 1.442695 0.000027 2010-04-16 09:16:30 0.122659 0.910239 0.000026 2010-04-16 09:17:00 0.122684 0.558111 0.00...
Request mapping based on Device Type in Spring
Vote count: 0 I am building a website that caters to mobile as well desktop clients. One general requirement is - mobile clients will display limited information .Also mobile site will have fewer functionality as compared to desktop site.This means business logic needs to be different based to devic...