199,114 Archived Topics
Remove Filter ![]() | |
Dear all, I have a small script wich is supposed to process two images passed as arguments in commandline, but I don't know how to handle these arguments when they are with non latin characters. Here is an example of command python.exe myscrit.py --first=xvalue "image1.png" "οισξφσιο.png" If I isolate the … | |
A program that uses hooks to detect keypresses and write them to a file. | |
Good morning, I've been around a number different sites trying proposed solutions both in C and VB but have not been successful. Most solutions give only those devices connected to my computer. Am I missing something, my router can do (but it's a pain to extract all the MACs and … | |
Please don't laugh at my newbieness, this is an 11th grade CS assignment. Constructive feedback would be higly appreciated Ok, so I have an assignement due for next week. It's fairly straight forward. **Task 1** A school keeps records of the weights of each pupil. The weight, in kilograms, of … | |
Hello, I am trying to place pdf link in CI: http://www.gsa-constructionspecialist.com/articles/article/detail/tugas-lpjk-ke-5 I wonder why I cannot link it. I already place the file address name, yet it comes back to the original file when I click it. Try another file which I copy exactly from the cpanel: http://www.gsa-constructionspecialist.com/articles/article/detail/visi-dan-misi-training-names-gsa It has … | |
Hello i got a wierd problem, when am opening my website on a PC the site loads well and its best of all websites (`:D`).. but when i try to open it on phone or tablet the front page of the website which is meant to show the featured pictures … | |
#include <iostream> using namespace std; void enterData(double firstMatrix[][10], double secondMatrix[][10], int rowSecondFirst, int columnCountFirst, int rowCountSecond, int columnCountSecond); void multiplyMatrices(double firstMatrix[][10], double secondMatrix[][10], double result[][10], int rowCountFirst, int columnCountFirst, int rowCountSecond, int columnCountSecond); void display(double mult[][10], double rowFirst, double columnSecond); int i, j, k; int main() { double firstMatrix[10][10], secondMatrix[10][10], … | |
Hi, I want to get into python programming opportunities. i'm gone through few python tutorial. have knowledge of python basic. I can rate my self in python as begineer. Please help me or guide me how can i implement my python skills to any project so that i can get … | |
Update has been successful. Setting has been successfully updated! A PHP Error was encountered Severity: Warning Message: Invalid argument supplied for foreach() Filename: views/settings.php Line Number: 68 Backtrace: File: C:\Program Files (x86)\EasyPHP-DevServer-14.1VC9\data\localweb\companygiondaci\application\views\settings.php Line: 68 Function: _error_handler File: C:\Program Files (x86)\EasyPHP-DevServer-14.1VC9\data\localweb\companygiondaci\application\controllers\Cpages.php Line: 683 Function: view File: C:\Program Files (x86)\EasyPHP-DevServer-14.1VC9\data\localweb\companygiondaci\index.php Line: 315 … | |
i have an array $value=array (2,4,6,3,2,4,3,8); and i need only the values thar are repeating it self in the array that would be 2,4,3 i have this code written <?php $value=array (2,4,6,3,2,4,3,8); $arrlength = count($value); for($x=0; $x<$arrlength; $x++){ $value[$x]; for($y=0; $y<$arrlength; $y++){ $value[$y]; if($value[$x]==$value[$y] ){ echo $value[$y]; } } echo … | |
| |
Hi, Daniweb. I have this hobby project I'm playing with where I need to generate data for a MonteCarlo simulation. The data needs to fit within a bell-curve around a given mean with a standard-deviation. I'm trying to figure out which random distribution system I need to use and how … | |
Trying to remove the autocomplete in this https://jsfiddle.net/59rphg1h/9/ and replace it with the autocomplete in this https://jsfiddle.net/mhxwcj7u/1/ and retain the ability to print the way the fist fiddle prints (Airshow's excellent work). The reason is that the second fiddle has the ability to change the data (addins), and be be … | |
Hi all. I'm reading about SOLID way of coding and am only looking at single Responsibility of objects (S). I will be creating a string helper class and I'm wondering if I have two methods or more in the class, if I am still adhereing to SR if the methods … | |
Hello, I am trying to insert link with TinyMCE in Codeigniter web program. I use Roxyfilemanager as my filemanager. I store the pdf file in upload folders in root folders. Whenever I try to click the link nothing opens up to show the pdf file instead it shows me the … | |
iPhone and more can automatically recognize phone numbers and make them an active link to click and initiate a call to that number. I can do this on many webpages, but not in myTinyTodo task list. Anyone know what might be preventing the phones from being able to recognize the … | |
How can I take a path such as what you see below and have Javascript make a visible circle or dot based on the path class ? As well output the points based on a canvas coordinates, canvas name being irrelevent, I hope ? ;-) <path class="st0" d="M73.3,73.1"/> | |
My code is here https://jsfiddle.net/yqjuy3m1/1/ .. I know my print html is out dated (could be my issue) so any updated approach is welcome. What I am trying to do is, when the print button is clicked, 1. Keep the selected value in the search box at print, along with … | |
Hello i want to make SEO friendly links but i dont know how can you please help me doing that? I have this code: <?php $sql = array('ID', 'post_title', 'post_content', 'post_header_image', 'post_category', 'post_date'); $outputSQL = selectSQL($sql, 'news'); $count = count($outputSQL); for ($i=0; $i < $count; $i++) { /* Loop Throught … | |
Sir I have these codes <?php session_start(); if(!isset($_SESSION['user'])) { header("location: admin/login.php"); } include_once("includes/connectsql.php"); $date1=date('Y-m-d'); $t_date1=isset($_POST['t_date1'])?$_POST['t_date1']:$date1; $t_date1=date('Y-m-d',strtotime($t_date1)); //----------------------------------------------------- // find if(isset($_POST['btn_find'])) { $acc_code1='2310001'; $mybalance=0; $mydrcr=''; $query = "select vou_no,acc_code,acc_name,dr_amount,cr_amount,qty,circle from crsalp where date='".$t_date1."' and (SUBSTRING(acc_code,1,2)='32' or SUBSTRING(acc_code,1,2)='33') order by vou_no,acc_code"; } ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"> <head> <title>Sales … ![]() | |
My intention is to delete file from folder But Here in above script is not working properly can any one please suggest me about this function deleteFile() { var myObject; myObject = new ActiveXObject("Scripting.FileSystemObject"); myObject.DeleteFile("D:\\WEBSITE_FILES\\docs\\OTR\\"+db_unicid+"\\passportImage.jpg"); return true; } <input type='Button' value='Click to Delete File' onClick='return deleteFile()'> | |
So... I've slept since college - meaning I've forgotten a few things. I need to do an inner-join on two large-ish sorted vectors. Thought about converting them to unsorted sets and walking through "find-ing", but I'm pretty sure this is the fastest way to do it - and still accurately. … | |
Hi hope you can help me. I have studied a lot to make my website using php and mysql and I know how to insert data in a table from a form, how to select and display data on page etc. Lately I got involved with wordpress which is a … | |
How do you access a variable inside a function without placing the variable inside of the function in Javascript ? Programming javascript | |
Im creating a social network site and i was able to create a user folder each time a new user signs up but my problem is copying a default image from a folder to that user folder how can i do that? I've searched the web on solutions like using … | |
Hey, Just a simple question really, i was looking through the documentation for python and i couldn't find anything that did basic cd drive things, like ejecting it and stuff. The one module i did find 'cd' was only compatible on IRIX systems. After failing miserably on google i was … | |
Friend Module Program Public Declare Function SetConsoleTitle Lib "kernel32" Alias "SetConsoleTitleA" (ByVal lpConsoleTitle As String) As Long Declare Function ShellExecuteA Lib "shell32.dll" ( _ ByVal hWnd As IntPtr, _ ByVal lpOperation As String, _ ByVal lpFile As String, _ ByVal lpParameters As String, _ ByVal lpDirectory As String, _ ByVal … | |
Hello i want to make a statement that increases a row on a table on MySql every time one visits the page. The $_GET['ID'] its ok dont waste your time with that. This is the statement require 'config.php'; $db = getDB(); $ID=$_GET['ID'] ; mysqli_query($db, "UPDATE table SET count = count … | |
I have made two windows startscreen=tk() and FirstScreen=tk() I want to make a button on **startscreen** that opens up the window **FirstScreen* This is the code for the startscreen startscreen=Tk() ##Photo Car## PhotoCarRed = PhotoImage(file="D:\Python Projects\Parking Management System\Photos\Best-High-Resolution-Photos-For-Cars.png") PlacementPhotoCarRed = Label(startscreen, image = PhotoCarRed) PlacementPhotoCarRed.pack(side="top", fill=X ) ###ToolBar on the … | |
How to find array values is present in a string of shuffled letters. $string = "ankegsrdib"; $words = array("ask","bird","egg"); which function should I use to find this.? Also the result should be like this array("ask"=>"Yes","bird"=>"Yes","egg"="No") please suggest some ideas. ![]() | |
I am trying this paging simulation but I have not yet successful. models/name_model.php <?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); class Name_model extends CI_Model { public function __construct() { parent::__construct(); } public function get_name($num, $offset) { $query = $this->db->get('name', $num, $offset); return $query->result(); } } controllers/cwelcome.php public … | |
Hi all, I'm working on a SQL procedure to insert a row for new clients based on a template account that already exists in the database. I thought about Declaring a variable and selecting the value from the table one at a time, but with many columns needed, this seems … | |
![]() | Hello, I built a website on my personal server and everything work fine. But when I uploaded it on the production server there is a problem with the database - the character encoding is wrong so the text is unreadable (users submit greek words). The collation of the tables is … |
Hello, i want to put a Share Button with og:title, description and photo of the post. Also i want to make a invite your friends from facebook script. What item permissions do i need to submit on my developer app page to make them work? | |
Hi All, I have to implement string class and write a program to perform string manipulation in Mystring class. input: "he is going to school" output Case 1: (n=1) He school to going is Case 2: (n=2) He is school to going Case 3:(n=5) No changes Case 4 n<=0 school … | |
Hi all, I am trying to compare data from $_POST['Net'] which has 6 elements to check to see if the data has changed in the form when submitted. Below is the Post array from form. array(16) { ["Submitted"]=> string(4) "true" ["NetValue"]=> string(1) "0" ["ProductID"]=> array(6) { [0]=> string(5) "76458" [1]=> … | |
Have you ever wanted to develop a math parser and evaluator? Are you in such a quandary or just have curiosity or interest in the matter? If so, you may download the complete source version 8.3.48 or later, but be warned there is almost no comment; or instead, follow versions … | |
Hey guys! Working on a project that I am stuck on at the moment! Any help would be really appreciated! I need to get my JLabel to display a count of the three differnet shapes my RandomShapesGenerator program. I know I need to use a String.format but just dont know … | |
The issue I am having has to do with not being able to show different OrderDate for the same Unit Unit OrderDate ShipDate ReceiptDate Robot 20160101 20160102 20160103 Robot 20160102 20160103 20160104 Robot 20160103 20160104 20160105 What is happening instead is that it is showing the same OrderDate for all … | |
public static void sentencesChecker(String essay) { int count = 0; int countcap = 0; int i , j; for ( i = 0; i < essay.length(); i++) { if (essay.charAt(i) == '.') { count++; } for ( char e= 'A'; e<='Z';e++) { if (essay.charAt(i)==e){ countcap++; } } } System.out.print("\n\t\t" + … | |
Trying to get just the search results (inside and outside the search box). Everything else on the page, which is NOT involved with the search box and its results, should not print. Tried many types of @media and css but can't seem to find the answer. I may be doing … | |
![]() | I'm just trying to insert some more informations to mysql table. I used recently methods. But it won't help me. so if you can help me ? my code is below : Try Dim mstream1 As New System.IO.MemoryStream() Add_House.pic1.Image.Save(mstream1, System.Drawing.Imaging.ImageFormat.Jpeg) Dim arrImage1() As Byte = mstream1.GetBuffer() mstream1.Close() Dim mstream2 As … |
Need on the best way to going about programming this in c#. I'm trying to do an if record exists update statement else insert statement: OracleConnection con = new OracleConnection(strConnection); con.Open(); OracleCommand check_RID = new OracleCommand("SELECT COUNT(*) FROM CONTRACT_INFO WHERE (rid = @rid)", con); check_RID.Parameters.Add("@rid", labelRID.Text); OracleDataReader reader = check_RID.ExecuteReader(); … | |
From below html code I need to get text between tr,th,td tags and display it in datagridview using vb.net <div id="flArrTime"><table class="table table-striped arr_dep_table_parent"><thead class="arr_dep_table_head_landing font_panton_bold"><tr><th>FLIGHT NO</th><th>ORIGIN</th><th>VIA</th> <th>STA</th><th>TERMINAL</th><th>ETA</th><th>STATUS</th></tr></thead><tbody class="arr_dep_table_body"><tr><td>AI 216 D</td><td>Kathmandu</td><td></td><td>16:50<br>02/01/17</td><td>T3 </td><td> 16:10<br>03/01/17</td><td>Delayed</td></tr><tr><td>9W 567 </td><td>Dammam</td><td></td><td>05:40<br>03/01/17</td><td>T3 </td><td> 19:25<br>03/01/17</td><td>Delayed</td></tr><tr><td>ET 686 </td><td>Addis Ababa</td><td></td><td>08:05<br>03/01/17</td><td>T3 </td><td> 11:29<br>03/01/17</td><td>Arrived</td></tr><tr><td>AI 156 </td><td>Moscow</td><td></td><td>08:55<br>03/01/17</td><td>T3 </td><td> 11:18<br>03/01/17</td><td>Arrived</td></tr><tr><td>WY 241 </td><td>Muscat</td><td></td><td>09:25<br>03/01/17</td><td>T3 </td><td> 12:03<br>03/01/17</td><td>Arrived</td></tr><tr><td>AI 120 D</td><td>Frankfurt</td><td>Jaipur</td><td>09:35<br>03/01/17</td><td>T3 </td><td> 12:19<br>03/01/17</td><td>Arrived</td></tr><tr><td>RA 205 </td><td>Kathmandu</td><td></td><td>09:40<br>03/01/17</td><td>T3 </td><td> 14:10<br>03/01/17</td><td>Delayed</td></tr><tr><td>ZM 1025 </td><td>Bishkek</td><td></td><td>09:50<br>03/01/17</td><td>T3 </td><td> 15:25<br>03/01/17</td><td>Delayed</td></tr><tr><td>AI 142 </td><td>Paris</td><td></td><td>10:00<br>03/01/17</td><td>T3 </td><td> 11:32<br>03/01/17</td><td>Arrived</td></tr><tr><td>AI 348 </td><td>Mumbai</td><td></td><td>10:30<br>03/01/17</td><td>T3 </td><td> 11:58<br>03/01/17</td><td>Arrived</td></tr><tr><td>9W … | |
I was doing my login access with ms access database (accdb), supposed can work but after i upgrade to java 8, it no longer able to support odbc and i was struggled to solve this problem, and it gave me the ClassNotFoundException list of library i have in my netbean … | |
My compiler says the Declaration syntax error is at (88,2) which is one of the brackets? I don't really know what could be wrong. Help please. I'm really new at this. [CODE] #include <stdio.h> #include <stdlib.h> #include <windows.h> #include <conio.h> #define STD_HOURS 40.0 #define OT_RATE 1.5 int clock[5] = {98401, … | |
Hello, I have this error "Arithmetic operation resulted in an overflow." I have no mathematical operations in my code. Why would that error come up? This is code: Public Sub Check_Record() Try SQLCon.ConnectionString = "Data Source=10.138.26.38; Initial Catalog = Safety_Database; User ID=sa; Password=spd" SQLCon.Open() 'change the data fields names and … | |
Hi All, I am trying to get tooltip to work when I hover text in a table. It does work but it produces an extra data table column. If you have any idea how I can stop this, please let me know. Thanks David <script type="text/javascript"> $(document).ready(function(){ $('[data-toggle="tooltip"]').tooltip(); }); </script> … | |
I got this error "object variable or with block variable not set" Below is my code Module 1 Public Function tracePackageError(Optional oPackage As DTS.Package) As String Dim ErrorCode As Long Dim ErrorSource As String Dim ErrorDescription As String Dim ErrorHelpFile As String Dim ErrorHelpContext As Long Dim ErrorIDofInterfaceWithError As String … Programming | |
i have this line in my Web.Config <add key="localhost2" value="http:\\0.0.0.0\export\" /> in vb Code: <a href='" & ConfigurationSettings.AppSettings("localhost2") & TransactionNo & "\" & fi.Name & "' target='_blank' >" & fi.Name & "</a>" the Publish URL : http://0.0.0.0/export/803/SingleResult.pdf How i can encrypt the 803 value or prevent the user from change … |
The End.