199,114 Archived Topics
Remove Filter ![]() | |
I have this point in (x,y) : ([27.266378342786531], [1.9505463431334713]) Now I want to use this point(I have many points,I want to know how can I use this point first ) to put it in the function below insted of x :(I have tried to make an array put i don't … Programming python | |
I want to set cron job using codeigniter, in godaddy shared hosting i used the following code to execute `movies` controller's `cool` method. /web/cgi-bin/php5 "$HOME/html/MOVIESDOM.COM/index.php" movies cool Problem is it always execute default controller. Pls tell me how to execute `movies` controller's `cool` method | |
`l(x)` is my shortcut to `console.log(x)`. `item.php` has text "EYES!!", just that. var session = $.get("item.php", function(data) { session = data; }) l(session); // *all XHR flags in an object, responseText ("EYES!!"), status (200) etc. $.get("item.php", function(data) { session = data; }) l(session); // undefined $.get("item.php", function(data) { l(data) }) … ![]() | |
Hello, so here is the program that I am trying to create: write a program to read a collection of exam scores, ranging in value from 0 to 100, until a sentinel of -1 should display the numer of outstanding scores (90-100), the number of satisfactory scores (60-89), and the … Programming java ![]() | |
Guys I recently discovered that char array can also be printed in java without for loop and the output is a string.But when i tried the same for int array, I got some gibberish value which i though to be memory address pointed by array as it contains reference to … | |
Hey guys,now I have a listbox I need to add in it name of day and time and the program read each item in listbox auto and if the first item = my pc day and time show message and so on... But I got dat error when the program … | |
I've updated the attendance.sql and the attendance form (index.php) by adding the time in and time out of the attendance. The time in and time out values are still blank even it is assigned in the database. (Lines 65 - 66) And when I tried to update the values (e.g. … | |
how to save that text boxes data into database ,by using this button evet,please tell me iam fresher. < protected void Page_Load(object sender, EventArgs e) { if (!Page.IsPostBack) Session.Remove("clicks"); } protected void Button2_Click1(object sender, EventArgs e) { int rowcount = 0; rowcount = Convert.ToInt32(Session["clicks"]); rowcount++; Session["clicks"] = rowcount; for (int … | |
Need help fixing python program: I keep getting the following when I try to add students to the list: line 72, in add_student entry = students_lab10.Students(name, idn, gpa, grade, hours) NameError: name 'students_lab10' is not defined ######################################################## Create a class named Student that holds the following data about a student: … | |
I am doing a simple program to calculate the first 15 fibonacci numbers and also placing an asterisk next to even numbers. My output should look like this: 1 1 2* 3 5 8* 13 21* 34* 55 89 144* 233 377 610* I can calculate the numbers easily enough … | |
Hi all. I am new in C language. I am learning to program by using C for my first step. Now I am reading a chapter about looping (while, for, do.. while, nested loop). In my exercise book, the question is about to: Using nested loop to print out this … | |
Please see attachment. Any help is appreciated! :D | |
cmd = New SqlCommand("INSERT INTO temp_balance ( debit, credit, accname ) SELECT Sum(temp_sheet.debit) AS debit, Sum(temp_sheet.credit) AS credit, IIf (debit < credit ,'loss','profit') AS expr1 FROM temp_sheet group by temp_sheet.debit,temp_sheet.credit ;", con) there an error i dont know the error incorrect syntax near ' ) Programming vb.net | |
This is essentially a really long question **If I were to create a function without calling it's execution. Does PHP initialize it anyhow or is the entire function ignored entirely without even bothering to read it?** Another way to put it: **Is there any execution difference between code that does … | |
I am having trouble implementing a solution using a binary search tree that returns the key of the node based on it's rank in O(N) worst case running time. Every idea i have (listed below) results in O(N^2) or sends me to a dead end. This almost seems impossible. i … | |
I saw someone getting an assignment to implement the Vigenere Cipher, so I decided, just for the frig of it, to implement the Caesar Cipher. The algorithm below, however, doesn't account for spaces and punctuation. How can I account for those without redoing the whole thing? from random import choice … Programming algorithm encryption python | |
i have created a recursive method that returns the size of a binary search tree, i would like to analyze the running time of my implementation but i dont know how. I know the best case is O(1) if node is null but what about worst case? my researches online … | |
Hello , I am new to javascript and I have the following code in c : #include <stdio.h> #include <stdlib.h> int main() { int height = 8, width = 8; for ( int i = 0; i < height; i++ ) { for ( int j = 0; j < … | |
Hi, I cant check combo value below. Where is the mistake? Thanks [code] <script Language="JavaScript"> function validateR(){ var selectedCombobox=(form2.selectCombo.value); if (selectedCombobox=='All') { alert("Please select something"); return false; } return true; } </script> [/code] [code] <select name="selectCombo"> <option value="All">All</option> <option value="Other">Other</option> </select> [/code] | |
IS IT BETTER TO MOVE TO SWIFT OR STAY WITH OBJECTIVE-C? | |
I have a problem that I am really having a hard time with. I have a textbox in my form that I am trying to add into autocomplete so when I get back into that form I can just type the first letter and have it populate. I have a … | |
I've updated the attendance.sql and the attendance form (index.php), but when I tried to update the values (e.g. present and late), it cannot work. And also, the checkbox says it's all ticked even the values are different (lines 61 - 63 of index.php) Can help me? Download: https://drive.google.com/open?id=0B07_pOHhTox3bTN1Z21HRlR2TEE Inside there … | |
**I have to created my scruct and function but i have to do this in my .cpp file HELP? 1. Open the file 2. Set up an empty CDS struct 3. Start going through the file until EOF (Loop 1) 4. Read in CD Artist, title, year, rating and numSongs … Programming | |
I have a question regarding user membership of groups in Active directory and grabbing such memberships with PHP. My big question/situation is that I have a site I am making and essentially I am trying to assign administrators based off of groups in Active directory and I know how to … | |
Help me sir for this error, Connect Error (2002) No connection could be made because the target machine actively refused it. my connection //my database class class Db { // make sure we dont connnect database to every function public $mysql; function __construct(){ $this->mysql = new mysqli('10.100.2.234','sa','P@ssw0rd','PLAZATOYOTA_MSCRM'); if (mysqli_connect_error()) { … | |
Hello, I would like to create a chess game GUI but I have a problem with my code. When I run my programm, at the beginning, my code is supposed to read a ".lvl" file to place pieces on the chessboard (same method as in Mario Sokoban). However, it doesn't … | |
// Example program #include <iostream> #include <string> int main() { int i=1; int x; x = ++i + ++i + ++i; std::cout<< x; return 0; } ////////Why am I getting 10 and not 9 ? /* if i starts at 1, increment operator takes precedence so that means 2 3 … | |
![]() | Hi all, I'm using CodeIgniter with MSSQL and works ok for basic queries. But then I do the following: Add a varbinary(max) column to my table (new_col) Change the query in the model: `$this->db->get_where('user_stats_backup',array('new_col' => "0xD9E6762DD1C8EAF6D61B3C6192FC408D4D6D5F1176D0C29169BC24E71C3F274AD27FCD5811B313D681F7E55EC02D73D499C95455B6B5BB503ACF574FBA8FFE85")` When I load the page, it doesn't seem to be returning anything. I created … ![]() |
Hello guys i am doing a archived page and i have added option to restore all but after that every newly deleted product doesn't show up here's the script //php to get update data upon click of button <?php if (isset($_GET['all'])) { $allSql = "UPDATE products SET deleted = 0 … | |
I have a admin folder where various .html files are there what happening is when i type http://mydomain.com/index.html it opens up a page and various other page but i want to put restrictions that if user is logined then only he can open other pages otherwise not. What i know … | |
Hi Everyone I hope I find you well this beutiful day. I have two dialog modal popups that I want the webpage to refresh on when the dialogs are closed. The code I am using looks something like this: <div data-role="dialog" id="dialog1" class="padding20" data-close-button="true" data-overlay="true" data-overlay-color="op-dark" width="1000px" height="400px"> <h2>Heading</h2> <div … | |
![]() | Hi all, I will be building a web application that does a personnel data lookup, unfortunately using SSN. So I’ve been searching for how encrypt this data so that I do not use plaintext SSN in the application to accomplish this. I found this article: http://dotnetslackers.com/articles/sql/IntroductionToSQLServerEncryptionAndSymmetricKeyEncryptionTutorial.aspx . Does this mean … ![]() |
Hi i have a shell script named script .sh that create maven project having parent pom and multiple modules under it as follows: #!/bin/bash mvn archetype:generate -DgroupId="com.low.co" -DartifactId="tool-release" -DarchetypeGroupId=org.codehaus.mojo.archetypes -DarchetypeArtifactId=pom-root -DarchetypeVersion=RELEASE cd yeti-release mvn archetype:generate -DgroupId="com.low.cp" -DartifactId="tool-api" -DarchetypeGroupId=org.apache.maven.archetypes -DarchetypeArtifactId=maven-archetype-quickstart -DarchetypeVersion=RELEASE mvn archetype:generate -DgroupId="com.low.cp" -DartifactId="tool-impl" -DarchetypeGroupId=org.apache.maven.archetypes -DarchetypeArtifactId=maven-archetype-quickstart -DarchetypeVersion=RELEASE mvn archetype:generate -DgroupId="com.low.cp" … Programming apache api java shell-scripting | |
I am new to coding and im having trouble with arrays in javascript. I want to be able to compare stuff inside an array but only if the three values match up to one of the sets of three values in the array var array = [[1,2,3][4,5,6][3,6,7]] if(array.indexOf([1,2,3]) === 1){ … Programming java javascript | |
Hi, I'm quite new to PHP and MySQL and the attendance form (index.php) is messed up. Can help me? Download the attendance form system in zip file: https://drive.google.com/open?id=0B07_pOHhTox3RnM2bFRNczhOeDA Inside there is the database table called attendance.sql. You need xampp and you must import the table (attendance.spl) in phpmyadmin. | |
private void button1_Click(object sender, EventArgs e) { SalesTransaction s1 = new SalesTransaction(0.06); listBox1.Items.Add(s1.ToString()); SalesTransaction s2 = new SalesTransaction("John Doe: ", 170000, 0.07); // 11900 // s2.SalesAmount = 210000; //The commission should be automatically adjusted. 14700 listBox1.Items.Add(s2.ToString()); SalesTransaction s3 = new SalesTransaction("Jane Doe: ", 200000); // 0 listBox1.Items.Add(s3.ToString()); SalesTransaction s4 = … | |
hi there guys! how can i add textbox using button? i know that it can be done using javascript but i was required to use php. Is it possible to do it in php? thanks | |
I have main PHP file, and dozen of less files, something like modules, they work this way (imaginary file): if ($_GET["action"] == "login") { require_once("login.php"); return login_something($_GET["credit"]); } That `require_once();` and `return function(data);` recur a lot in my code. It looks kinda nasty, is there no way to make this … | |
Hi all, Actually, this question is not related to some coding or logic from my project. But, as I am doing hard and harder projects (acc. to me & my exp.), I am focussing more on design part of my projects. When I present my design to team members for … | |
Hello Friends I am having issue with sizes option on my page this is the form of sizes <!-- Sizes And Quantity [Onclick Modal]--> <div class="form-group col-md-3"> <label>Sizes & Quntity<span class="required">*</span>:</label> <button class="btn btn-default form-control btn-info" onclick="jQuery('#sizesModal').modal('toggle'); return false;">Sizes & Quantity</button> </div> <!-- Sizes & Quantity Preview --> <div class="form-group … | |
I wrote this code : #include <stdio.h> int main() { int a,b = 10,c,d; a = printf("b is %d\n",b); c = printf("a is %d\n",a); d = printf("c is %d\n",c); printf("d is %d\n",d); // lose a null terminator in the previous strings ?? c and d // are 7, but a … | |
hello, i have this assignment but i got stuck on number 2. Question 1: Create a 3x3 array, each filled with a digit 1-9 so that the array resembles a num pad. Use for loops and construct 3 different, correct ways to print the elements of this array. **Question 2**: … | |
My Application is acting as server as well as client. Server as recieving data from other clent and sending data to another server. Current scenario is while m sending message to server i am crreating and closing socket after sending. But the Requirement is to keep the connection of that … | |
It's a simple script, giving me an error. I'm running it from a command line: scott$ python VerifyAboutPage.py chrome any And the error is: AttributeError: 'module' object has no attribute 'chrome' The relevant portions of the script should be: from selenium import webdriver import unittest, time, re, reporting, sys class … | |
Hi guys, I am a computer science major and I have been asked to complete a task for someone working in the school of public health at my university. Basically I have to go to this website: ///////////////////////////////////////////////////////////////////////////// [Click Here](https://www.healthcare.gov/find-premium-estimates/#results/&aud=indv&type=med&state=PA&county=Allegheny&age0=35&employerCoverage=no&householdSize=1&income=100000) ///////////////////////////////////////////////////////////////////////////// and gather all the information which displays after the … | |
Hello, I ask information to you that you are much more experienced than me that I am learning. I would like to create an administrative panel with the only possibility to be logged in to the admin. Your wisest thing which is to carry out safely login? Let me explain, … | |
Hello, I would like to create image gallery with jquery which could show an image and if I place a cusor on top of it a shadow with a caption will appears on top of the image. And if someone click the image the image will enlarge a larger image … | |
I'm trying to create a navigation menu that is a table of 4x5 boxes. The top 4 should have radio-style behavior that brings up a different set of 16 boxes below it when clicked. I'm also trying to have a default set of boxes that display pictures when the page … | |
I have four array of strings. I would like to print out the strings with this formatting: printf(" %d \t %s \t %s \t %s \t %s.\n", quadruples_line_counter, strings_quadruples1_action[0], strings_quadruples2_variable1[0], strings_quadruples3_variable2[0], strings_quadruples4_temp_variable[0]); It gives this output: 17 func sub int 3. 17 param (null) (null) (null). 17 alloc 4 (null) … | |
I have a pictures website and I want to be able to add impressions to the database when a visitor scroll down the images. Each image viewed equal to 1 impression. This feature can be found in Facebook post impressions. This is what I have come up with so far: … |
The End.