How to use PHP criterion to reject decimal
◷
تاریخ انتشار: 1395/3/22 | ساعت: 22:04
Vote count: -3 I am trying to write a code for a Math sum. I want the answer to be whole number only. How do I reject decimal answers? Eg if ($ans == ???) break asked 5 mins agorisraeraro Let's block ads! (Why?)
Second Bootstap Modal ajax result to show in first modal
◷
تاریخ انتشار: 1395/3/22 | ساعت: 22:04
Vote count: -2 I want to display form 2 data (which is a bootstrap modal) to show in form 1 (which is also a bootstrap modal) When i save form 2 data it save in db but reload page but i want to display with in form 1. First question is, am i trying something impossible? form 1 and + sign to open sen...
Scrapping data which loaded when you select something
◷
تاریخ انتشار: 1395/3/22 | ساعت: 22:04
Vote count: 0 I need to scrape car makes and model. Now I can scrape car makes select option list but can't scrape car models select option list because it is loaded when you select car make. Maybe you have any ideas how I could get car models select options list which is loaded when you select car ...
hibernate the computer from c# windows forms application
◷
تاریخ انتشار: 1395/3/22 | ساعت: 20:59
Vote count: 0 I want to Hibe ate my computer by clicking on a button in C# Windows Forms Application. private void Button1_Click(object sender, EventArgs e) { //Hibe ate the computer } asked 1 min agoKhuram Nawaz Let's block ads! (Why?)
Can't run CUDA + OpenGL program on Mac OS X El Capitan
◷
تاریخ انتشار: 1395/3/22 | ساعت: 20:59
Vote count: 0 i am writing a program that includes OpenGL and CUDA codes at the university and i can run it with Ubuntu Linux. The program has got many dependencies so i use a makefile and when i'm at the university with Linux i have no problems. Yesterday i tried ru ing it on my MacBook at home and...
inheritance from int and increase in python
◷
تاریخ انتشار: 1395/3/22 | ساعت: 20:59
Vote count: 0 I try to inherit from int and write the increase() function for it. import math class Counter(int): def increase(self): self += 1 # it should be less then 2**32 maximum = math.pow(2, 32) if self > maximum: self -= maximum counter = Counter(10) print counter counter.increase() print cou...
Camera moves incorrectly
◷
تاریخ انتشار: 1395/3/22 | ساعت: 19:06
Vote count: 0 I try to a camera pa ed by touch on the Android devices. It works but the camera moves differently. On one touch movement it follows too quickly, on another touch movement - too slowly.Where I took a bug. How to fix it?It's my code for sensor screen: private void updatePDA() { if(Input...
React - Is there a better way to use conditionals inside jsx?
◷
تاریخ انتشار: 1395/3/22 | ساعت: 19:06
Vote count: 0 I've been lea ing how react for the past few weeks and one thing that I don't like is that I have to use te ary operator for if else inside the render function. Something like : function render() { retu ( {x==="Let's go" ? <Go /> : <Hold on />} ) } Is there a way I can use traditional ...
Need a vertical mega menu like http://www.lynda.com/
◷
تاریخ انتشار: 1395/3/22 | ساعت: 19:06
Vote count: 0 I have a WPLMS site at http://edudelight.in/ I need to have a vertical mega menu under the "All Courses" menu similar to http://www.lynda.com/ > "Library" menu. At first I tried with Max Megamenu plugin, but there a mega menu can only be created at the top level. As I said, I need the ...
PHP MySQL SSL certificate
◷
تاریخ انتشار: 1395/3/22 | ساعت: 17:28
Vote count: 0 I have a vb.net software and I shall use php code on my website to make a user for the customer. I have tried many codes but I always get the same error: Wa ing: mysqli_ssl_set() expects parameter 1 to be mysqli, null given in xxxxxxxxxxx/makeuser/insert.php on line 12 Wa ing: mysqli::...
Refresh page when script is triggered
◷
تاریخ انتشار: 1395/3/22 | ساعت: 17:28
Vote count: 0 I use URL to remove products outside a cart. For this I use the following HTML: <button type="button" class="btn btn-link btn-xs btn-remove-from-cart" onclick="removeItem('p','{$num}')"><i class="fa fa-times"></i></button> When clicking on the button, the following script is triggered:...
Windows forms editor keeps recreating an event method
◷
تاریخ انتشار: 1395/3/22 | ساعت: 17:28
Vote count: 0 I have a C# application with a custom control. The custom control class looks like this: public partial class DetNumericUpDown : UpDownBase { public event EventHandler ValueChanged; /* some public methods */ public DetNumericUpDown() { /* ... */ } } Then I have several instances of Det...
TypeError: 'NoneType' object is not iterable. Why do I get this error?
◷
تاریخ انتشار: 1395/3/22 | ساعت: 16:27
Vote count: 0 The function compute_root uses Newton's method of successive approximation to find good enough approximations of the zeroes of polynomials (herein lies the problem). The function evalPoly computes the value of a polynomial at a particular x value, and the function ddx2 computes the der...
sum of columns no fetching from database
◷
تاریخ انتشار: 1395/3/22 | ساعت: 16:27
Vote count: 0 Here i want to get the sum of balance of selected customer_id.for example here the customer_id of 19 is having an sum of 120 but the result is not fetching. here is my controler public function make_payment() { $data['active_mn']=''; $data['active_mn']=''; $data['result']=$this->Accoun...
Why does mysqli_fetch_assoc generate an error
◷
تاریخ انتشار: 1395/3/22 | ساعت: 16:27
Vote count: 0 This question has already been asked, and I've followed the answers but I'm still getting the error 'mysqli_fetch_assoc() expects parameter 1 to be mysqli_result' My code $host = "localhost"; $user = "my_user"; $user_pass = "my_password"; $dbase = "my_database"; $co = mysqli_co ect($ho...
kafka on kubernetes cannot produce/consume topics (ClosedChannelException, ErrorLoggingCallback)
◷
تاریخ انتشار: 1395/3/22 | ساعت: 15:26
Vote count: 0 I run 1 kafka and 3 zookeeper-server in docker on kube etes following this instructioninstruction. I ca ot produce/consume topics outside pod(docker container). bin/kafka-console-producer.sh --broker-list 1.2.3.4:9092 --topic [2016-06-11 15:14:46,889] ERROR Error when sending message t...
Storing pairs in Multiset ,following a specific condition
◷
تاریخ انتشار: 1395/3/22 | ساعت: 15:26
Vote count: 0 I want to store co-ordinates of points in a multiset.I know that multiset stores them in sorted order but I want to specifically store them as (x1,x2 are x co-ordinates of 2 points) if x1>x2 then x2 should go before x1 and if they are equal then store them based on y co-ordinate. How c...
Unable to connect to device with Marshmallow for wireless debugging. Getting (10061) error
◷
تاریخ انتشار: 1395/3/22 | ساعت: 15:26
Vote count: 0 I am trying to co ect to android device with Marshmallow for wireless debugging. C:...sdkplatform-tools>adb co ect 192.168.1.103:5555 unable to co ect to 192.168.1.103:5555: ca ot co ect to 192.168.1.103:5555: No co ection could be made because the target machine actively refused it. (...
Slick+h2: db.run( ) to create table and insert record but nothing happend
◷
تاریخ انتشار: 1395/3/22 | ساعت: 12:11
Vote count: 0 class DbInstrument(tag : Tag) extends Table[(Int, String)](tag, "instruments") { def id = column[Int]("id", O.PrimaryKey) def symbol = column[String]("symbol", O.PrimaryKey) def * = (id, symbol) } class DB { val instruments = TableQuery[DbInstrument] def init() = { try { val db = Datab...
Active Code Generators: which popular open source projects use them?
◷
تاریخ انتشار: 1395/3/22 | ساعت: 12:11
Vote count: 0 Which popular open source projects you know use Active Code Generators? Is there any statistics on how ubiquitous usage of Active Code Generators is? An Active Code Generator - the one that generates code during build, the generated code is not edited and not put in source control. As ...