how to save votes with user id in this tutorial
Vote count: 0 I want to add this simple voting system to my wordpres theme. But it's saving votes by user IPs . I would like to save with user id . and only logged users will vote the posts. This is the post like function function post_like() { // Check for nonce security $nonce = $_POST['nonce']; i...
Running a Service forever in background - Android
Vote count: 0 I have created a Service in my android application which starts automatically on BOOT_COMPLETE through BroadcastReceiver. And That is working perfectly fine. But this service performs the task that I have define inside onCreate() method, only once. On the Other hand I want to run the S...
Openstack Heat - separate templates
Vote count: 0 I am looking for the best way of creating a stack, in a number of separate steps. I would like in the first template, to only get up the compute nodes and the network configuration. In the second template, I would like to create the storage nodes and attach them to the already existing...
Using radio buttons to change a calculation
Vote count: 0 I've been lea ing Shiny and R for a few days, but I've run against a wall. My problem is as follows: I want to use radioButtons (input$relStat) so if an option each option runs a different calculation for textOutput. The inputs come from a slider for basicIncome and numeric for childNu...
push notifications for wordpress by delite studio doesn't work
Vote count: 0 i have a website that uses wordpress. recently i bought a push notifications plug-in from delite studios and i am making a simple app to show my website and get push. i am working on the android version now and i have a problem i need help with. i did everything in their website and my...
ssh find command and store
Vote count: 0 im trying to capture a find outcome within a batch script it works fine until i add another word example alien (works) alien 1 (not working) found201=$(ssh root@192.168.1.201 find "${folder201[@]}" ! -path "*/.wdmc/*" -type f -iname "*$ffind*" | sort) if i run ssh root@192.168.1.201 'f...
Sending a GCM via PHP not shows data onMessageReceived
Vote count: 0 I start using GCM on a android device when i send data via CURL and PHP from my server to the GCM on my android app only get a null on the onMessageReceived i think that it was my code on the app but if i call the curl via terminal it shows the data hope you can help me with my php scr...
Fetching user data using Facebook Android SDK
Vote count: 0 I want to fetch user data from Facebook using my app. I've written the code and it logs in the user but fails to fetch user data. Here's the code: public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); AccessToken accessToken = AccessToken.getCurrentAcces...
jQuery: Use variable for wildcard prefix
Vote count: 0 I found this (JQuery removeClass wildcard) neat solution to remove class based on prefix... however I want to use it in with a function where I can change the prefix with a variable. How do I write in the variable between the... whatever you call them ^_^ function remClass($prefix) { $...
Google plus and facebook login using asp.net
Vote count: 0 I am working on asp.net application where i am using facebook and google plus login with c sharp code. Everything working fine for both social platforms. I am using the following code: CS: GoogleProfile profile = new GoogleProfile(); FaceBookUser faceBookUser = new FaceBookUser(); prot...
chartjs pie chart do not show on production server
Vote count: 0 I have a number of ChartJS charts in my application. It works well on my development computer (Win8). But problem come when moving to production server (Win2008 R2 Entr.). Bar charts works well, but pie chart do not show. No error messages on console. I do know even were to look for th...
how to remove duplicated results of date in sql
Vote count: 0 ID DATE 1 2006-01-01 1 2007-01-01 2 2008-01-02 2 2007-01-02 2 2012-01-03 2 2011-02-20 The rule is to count number of dates of different ID in Jan, where duplicated date shouldn't be counted twice. (date in DATE format) The output should like this: ID num_date 1 1 2 2 I tried DUPLICATE ...
How EDM model generated in Code-First
Vote count: 0 I created Code-First project and noticed that there is no more .edmx file in the project. As i understand, EDM cunstructed at runtime and somehow cached. Where this cache is stored and does it dispose after DbContext scope ends? Thanks in advance. asked 2 mins agoDmitrijs Rjazanovs Let...
Reccommended IDE for STM32F4 Discovery
Vote count: 0 I'm working on a project that models a dynamic control system in Simulink. My plan is once it is complete, i will use a STM32 extension of MATLAB embedded coder to produce C code which i can then compile and run. I have purchased an STM32F407 Discovery development board to run the code...
Does Realm DB Support Recursive Elements
Vote count: 0 I know Realm DB does not support inheritance, but does it support Recursive classes. For example: public class FileItem{ private String name; ArrayList<FileItem> elements; } I am getting error Type ArrayList<com.example.FileITem> elements is not supported .. If I ca ot do this I don't ...
Unbox data in type which is known only at runtime
Vote count: 0 In my programm i need to serialize different classes. I want to create only one instance of saverclass (class that contains serialize/deserialze methods) and serialize all classes in this instance. Problem is in Deserialize method, when I need to unbox formatter.Deserilize into ending ...