No results returned by MySQL query
Vote count: 0 I am testing an application which co ects to database and retrieve results. It uses PHP, and Joomla framework. The thing is that if I put a query as $query = "SELECT * FROM #__coupon_member_details"; $this->_db->setQuery($query); $result = $this->_db->query(); $number = mysql_num_rows(...
Read questions from txt file c#
Vote count: -1 I want read from txt file questions.. string a = question1; string b = question2; read from question until the next question.. TxtFile asked 1 min agoTaGi Asadullazadeh Let's block ads! (Why?)
Angular 2 - rc.2 packages not installing correctly
Vote count: 0 I am trying to update to Angular 2 rc 2 using the command npm install --save @angular/core @angular/compiler @angular/common @angular/platform-browser @angular/platform-browser-dynamic rxjs@5.0.0-beta.6 zone.js@0.6.12, but it not installing correctly it seems. In node_modules/@angular/...
Facebook Like button prompt with URL only and not the display
Vote count: 0 I have added facebook like button using javascript sdk . It is working fine and i am also getting the success callback , but whenever confirm link appears it opens up a prompt in which i am expecting the post url should display some content but instead it display only the url with ? in...
Why can't I increment std::unordered_map iterator?
Vote count: 0 std::unordered_map<int, int> _cache; std::vector<std::unordered_map<int, int>::iterator> _lruList; this works std::rotate(_lruList.begin(), _lruList.begin() + 1, _lruList.end()); but this doesn't std::rotate(_cache.begin(), _cache.begin() + 1, _cache.end()); // error occurs on _cache.b...
Resetting a div to load new json/ajax information?
Vote count: 0 Alrighty. So it's been a while since i've worked with Ajax/json/jquery/javaeverything and I ca ot for the life of me remember how to "reset" a div/wipe the buffer after ru ing a json/ajax function. Case in point: I've got a button that is effected by ajax function, the code is below. f...
Call multiple modal popups from webform in asp.net and c#
Vote count: 0 I'm trying to call multiple modal popups from a same webform, but I don't want to write them all in the same aspx file, so that's why I thought about using a masterpage. This is part of the code so far: <%@ Master Language="C#" AutoEventWireup="true" CodeFile="Trabajadores.master.cs" I...
Dynamically change file name of pdf in WP thickbox
Vote count: 0 I'm trying to dynamically set the file name based on user inputs not yet submitted to the db. This was what I was attempting, but I'm not sure hwo I can grab this data, manipulate it and process further the new file name (script on maing plugin page): if(bv_product_num) { tb_show('', '...
sndio sio_onmove not calling back.
Vote count: 0 I'm trying to write a fullduplex test that copies audio in to audio out. sio_onmove does not get called. I have no idea why. Here's my code so far: #include <stdio.h> #include <stdlib.h> #include <sndio.h> unsigned char buf[0xffff]; struct sio_hdl *hdl; void cb(void *arg, int delta) { ...
Java Swing Tree with Streaming Updates
Vote count: 0 I have a Swing tree that is changing as a result of a background thread that receives updates to the tree, in a streaming fashion. Updates can come quite fast and they can be complex. And they can come fast enough that previous updates have not yet been rendered. I would like the tree ...
What attributes can Epplus read from the model?
Vote count: 0 In Epplus, I am used to defining column headers in my model with the DisplayName("") attribute as they appear in Excel when exporting a collection. For example, if the code block shown at the bottom is my View Model, I use [DisplayName("some string")] from the System.ComponentModel nam...
hibernate one-to-many without DB relation mapping
Vote count: 0 Will my code work if I apply one-to-many relation in hibe ate- only to entities side in Java and not to DB side (there will not be foreign key between tables and I dont want to modify tables) ? Thanks in advance. asked 27 secs agoNikita R Let's block ads! (Why?)
How to prevent onCreate when application is resumed?
Vote count: 0 I've made a music player usim MediaPlayer. When I close the app the song keeps playing but when I resume, onCreate is called everything starts again and previous song also keeps playing. So if now I start new song, both the songs play even though there's only one MediaPlayer variable. ...
IF Then statement in VHDL
Vote count: 0 if(clock'event and clock='1')then if(part_done='0')then if(part_count>=0)then partialq(1 downto 0) <= A_cap_temp_k((part_count*2)+ 1 downto part_count*2); part_done <= '1'; else A_cap_k <= result(3 downto 0);end if; Can somebody please explain If-then statement in VHDL? asked 56 secs a...
Error java IO total size of folder
Vote count: 0 my program counts and prints out the number of files of folder and the total size in bytes of all files but i have error ("Exception in thread "main" java.lang.NullPointerException") import java.io.*; public class Ex5 { public static void a(String s) throws IOException{ long size=0; Fi...
Adding video to my website
Vote count: 0 Alright so I'm at a loss right now. Ive got my website doing most of the things I want. uploading pictures and profile pages and what not. I just can't get video to work. So I'm curious if anyone is out there that has used paperclip av/transcoder lately that can help me out. Ive been s...