All Questions
0
votes
0answers
2 views
Server Monitoring With Api
I want to creat a usercontrol for server resource monitoring that shows these items:
1. CPU Usage
2. Total Ram
3. Free Ram
4. I/O Wait
5. I/O Read/Write
6. Concurent User
7. Total Hdd Space
8. ...
0
votes
0answers
3 views
Static files (js, css) for app in Djangotr
I have a question about static files such as css, js in Django app.
Do you use these files together for all applications in the project?
0
votes
0answers
2 views
What is use of cordova.build command
Recently I made a simple mobile application using apache cordova documentation. I am using cli(command line interface) not using any eclipse.
I did everything,As per documentation. everything working ...
-1
votes
0answers
6 views
Java new operator keyword reserve words
In java the keyword new:
is sometimes described as an operator, yet in the language specs it is not listed with the other operators?
Is sometimes described as an operator and other time a java ...
0
votes
0answers
13 views
Interface relation with abstract class C#
I read that Interface is implicitly pure abstract. So why the methods of the class that implements interface does not prefix with override keyword?
interface IA
{
void Method();
}
...
0
votes
0answers
4 views
OutOfMemoryError in Image Loader, App getting crash in android
I am using universal image loader class and after sometimes app gets crash and giving the below error.
java.lang.java.lang.OutOfMemoryError: pthread_create (stack size 16384 bytes) failed: Try again ...
0
votes
0answers
2 views
Github Revert. Unsure about history
The project I'm working on has 2 main branches, develop and master. I had set up a pull request for my feature branch but by mistake forgot to choose develop as the base, and so the PR was for master ...
0
votes
0answers
2 views
SSL: error:0B080074:x509 certificate routines:X509_check_private_key:key values mismatch
I'm not able to setup SSL. I've Googled and I found a few solutions but none of them worked for me. I need some help please...
Here's the error I get when I attempt to restart nginx:
...
0
votes
0answers
4 views
c# RijndaelManaged decryption denied access to file
I am using the c# file encryption and decryption code from here, using the Ed's code, when I run the code in visual studio application it works fine but when I install my application using installer, ...
0
votes
1answer
12 views
When to use cerr and and when cout in C++?
I am looking for an example that differentiates between cerr and cout in c++ ? When do I need to use cerr ?
0
votes
0answers
11 views
Algorithm for a running harmonic mean?
I am trying to figure out how to write a running harmonic mean, that is: a harmonic mean that updates at each iteration.
It is easy to do it with the arithmetic mean...but I am struggling a lot on ...
0
votes
0answers
5 views
When i am trying to install phonegap through this command:“ C:\Users\Prajapati>npm install -g phonegap” i get following errors.How can i soled it?
C:\Users\Prajapati>npm install -g phonegap
npm ERR! fetch failed ://registry.npmjs.org/dep-graph/-/dep-graph-1.1.0.tgz
npm ERR! fetch failed ://registry.npmjs.org/glob/-/glob-3.2.11.tgz
npm ERR! ...
0
votes
0answers
8 views
Convert Json to Java Object
Here is my Json. I'm trying to convert it into a java class. So that I'll be able to parse this json using gson library. Please help me in writing java class equivalent to json below.
{
"A" : ...
0
votes
0answers
2 views
ngModel.$parsers's function is called twice when ngModel.$setViewValue is run
I have a parser in a directive assigned to an input that when ngModel.$setViewValue(res); is called the parse function is immediately called which I don't want because then res == inputValue and then ...
0
votes
0answers
3 views
Custom Keyboard: get selected text
From my Custom Keyboard I would like to know if the user has selected something in their text (and the range of it). Following the documentation I thought I can utilize the callbacks provided by the ...
0
votes
2answers
14 views
Removing/resetting element added to DOM
I have made this little cursor trail app, and have a small bug I can't figure out. When you select the settings and click 'Go', it adds a div to the DOM, and is working fine. However, if you then ...
0
votes
0answers
10 views
Sending different values of input with different buttons in php form
I have a form in my code
<form class="validate form-horizontal" role="form" id="formLogin" action='actions.php' method="post" enctype="multipart/form-data">
...
0
votes
0answers
4 views
How to control indeterminante ProgressBar which is not part of a ListView?
There is , indeterminate progressBar which rotates until ListView content is ready to be shown. Both progressBar and the listView are part of the same Fragment.
So I coded that this progressBar is ...
0
votes
0answers
7 views
ajasubmit and form validate submitting form multiple times
I have a wordpress installation and have different hierarchies of users to publish content. My wordpress version is 2.9 and I am stuck with an issue that is different authors(lowest level in the ...
0
votes
0answers
4 views
xCode auto refresh a WebView every 5 minuets
I have need to auto refresh a WebView every 5 minuets to update the data from a web server. I have read that I need to use "NSTimer" but I am not sure how or where to use it.
My code is:
if ...
0
votes
0answers
4 views
How to convert java (Android) crypto params to iOS crypto?
I am developing iOS app. Inside that app I have to call SOAP service and send encrypted data. To communicate with the SOAP service I have to use the same configuration that is already using Android ...
0
votes
0answers
5 views
Layout inflater exception when opening music player app
I have an music player app and when I launch it, I got layout inflater exception. Basically, I trid to implement visualiser to my app and now it doesn't work.
this is my code:
MediaPlayer ...
0
votes
1answer
5 views
How to insert map type into cassandra using cassandra-driver for python
Since, cassandra supports map type. I want to insert a python dict into cassandra. I tried this:
cql = "Insert into table_name (my_key, name, my_dict) values (%s, %s, %s)" % (my_key, name, my_dict)
...
0
votes
0answers
3 views
Entity Framework and Normalization
How to detect a database is well designed and normalized (with no probable anomalies) in entity framework?
sometimes I saw some database errors generated for browser during development and CRUD ...
1
vote
0answers
13 views
PHP redirect to onother page without blank page
I have this PHP function for redirect page:
function _IS_Redirect_($url) {
if(!headers_sent()) {
//If headers not sent yet... then do php redirect
header('Location: '.$url);
...
0
votes
0answers
8 views
“Multi-level” generics, with subclassing and interfaces
the intention is to allow any two types of classes to be "matched," provided they follow an interface. That is, if a class U is matchable to V, it implements this interface
public interface ...
-1
votes
0answers
6 views
Get the Content-Length of a web address file asynchronously
I am writing a Xamarin Android application and wish to get the content length of a web url asynchronously.
Here is what I have that is not async that does work:
public long ...
0
votes
2answers
14 views
HTML child wider than parent container
There is an outer div, and inner div element. Sometimes i see that the inner div is wider than outer div.
When does this happen? and how to overcome this issue?
<div id="outer">
<div ...
0
votes
0answers
3 views
I don't any splashscreen for ios - cordova
I am using Sencha Touch and have my own animated splash screen there. I don't want to have default Corodva splash screen. I am using all latest version of sencha-cmd, corodva etc.
I tried a lot of ...
0
votes
0answers
4 views
Handle multiple image resolutions in universal iOS app
I'm building an app which has about 300 images which I need to show in a gallery view.
I have the following constraints
1. The images need to be offline and fetching them from the internet is not an ...
0
votes
0answers
5 views
Disqus SSO login
I can't quite follow the Disqus documentation:
I have successfully created my auth and pubKey as described by their API
But now I can't figure out how to login the user with this auth key I have.
...
0
votes
0answers
7 views
my webapp can not find beans in context.xml
"No qualifying bean of type [org.hibernate.SessionFactory] found for dependency.." exception I'm getting when I'm trying to save my class User into database. Dao class:
@Repository
public class ...
0
votes
1answer
8 views
PHP XML looping throught nodes
<location id="1" parent_id="531" countryCode="IN"><name>Noida</name></location>
<location id="2" parent_id="531" countryCode="IN"><name>New ...
0
votes
0answers
3 views
Error with UINavigationController Animations when Returning from A Sub-view with No Status Bar
I am trying to create an ios 7 application that has a UINavigationController that navigates to a sub-view with no status bar.
The problem is that when the navigation controller pops back to a view ...
0
votes
0answers
5 views
Pushing image fullscreen causes crash when image's being downloaded
In my app I've got a sort of gallery without zoom. When the user taps on an image, the image goes fullscreen (I'm using IDMPhotoBrowser for that).
The images are dynamic and downloaded asynchronously ...
0
votes
0answers
4 views
CoreAnimatedPages hero-p attribute
While I was exploring core-animated-pages examples, I have noticed hero-p attribute in some elements.
I cannot find any mention in the documentation about it.
What does this hero-p attribute exactly ...
0
votes
0answers
9 views
Sort an array of optional items that holds yet another optional
How can I sort an array of optionals that holds an optional NSdate?
class HistoryItem {
var dateCompleted: NSDate?
}
let firstListObject = someListOfObject.last
let secondListObject = ...
0
votes
3answers
14 views
Enums with constructors and using it in switch JAVA
I have enum, for example:
public enum Type {
Type1(10),
Type2(25),
Type3(110);
private final int value;
Type(int value) {
this.value = value;
}
public int ...
0
votes
1answer
9 views
'Type or namespace definition, or end-of-file expected' error
I am trying to make an app for android that uses bubbles (like facebook's chat heads) and I get an error saying 'Type or namespace definition, or end-of-file expected'.
public class NewBubble
{
...
1
vote
0answers
6 views
What is the meaning of the third parameter in this dat.gui add function?
I am quite new with dat.GUI. I've been reading dat.gui's questions and answers in stackoverflow. I have one question from this one.
What is the meaning of the third argument in the gui.add function? ...
-1
votes
0answers
9 views
scrap value of webpage using simple html dom but not work in my case
I am new in scraping .
i am try to scrap http://goldprice.org/gold-price-malaysia.html
my code:
<?php
include 'simple_html_dom.php';
ini_set('max_execution_time', 10000000000);
$html = ...
0
votes
0answers
3 views
Can Someone explain what is KinectSensorManager and what he does?
enter <Window x:Class="Fizbin.Kinect.Gestures.Demo.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
...
0
votes
0answers
2 views
PREEMPT_RT Kernel in linux-sunxi for cubieboard compilation Errors
I am getting the following error while compiling the PREEMPT_RT patched Kernel for linux-sunxi. Any ideas to debug these errors?
The Kernel source is :
https://github.com/linux-sunxi/linux-sunxi.git ...
-1
votes
2answers
10 views
Creating activation code in input
How can I create a textfield in which the user would be redirected to specific page, only after he has entered the specific number created by me? And if the code is invalid he would get a red border ...
0
votes
0answers
9 views
validates_associated not working
My validation in associated model is not working.
class Role < ActiveRecord::Base
belongs_to :global_id
validates_associated :global_ids
validates :name, presence: true
Second model:
class ...
0
votes
1answer
6 views
jQuery auto update position of animated div
hi i want Create script in jquery which will be auto update position of animated div all the time
i have already this but this is not updating all the time
my code at this moment
function start(){
...
0
votes
0answers
3 views
SailsJS App running on Amazon Ubuntu EC2 web server
I just started to host my SailsJS app on EC2 and I'm struggling so much. I cannot get the app to run on port 80. So what I did was I changed the default apache listening port of 80 to 8080.
But still ...
0
votes
0answers
4 views
How To Check Response.statusCode in sendSynchronousRequest on Swift
How To check response.statusCode in SendSynchronousRequest in Swift
The Code is Below :
let urlPath: String = "URL_IS_HERE"
var url: NSURL = NSURL(string: urlPath)
var request: ...
0
votes
1answer
11 views
How to calculate count of particular day between two dates?
I want total count of particular day between two dates.I want to make one function that return total count of particular day.
For example: If i pass Monday , start date and end date then it will ...
0
votes
0answers
5 views
How to deploy DJango website in CPanel?
I am new to the world of website hosting, especially in CPanel platform. I have a website which is developed using Python language, which makes use of Django also. I have hosted this website in ...