199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for PerplexedB

When I execute this progammatically, I get a table with row heights much larger than when I do this manually. Note : Sel is the Word.Selection object and the Clipboard contains an Excel Table. public void AddClipboard() { Sel.PasteExcelTable(false,false, false); var t = Sel.Tables[Sel.Tables.Count]; t.AutoFitBehavior(Word.WdAutoFitBehavior.wdAutoFitContent); }

Member Avatar for PerplexedB
0
650
Member Avatar for Ala'a99

I have a 2d matrix with dimension (3, n) called A, I want to calculate the normalization and cross product of two arrays (b,z) (see the code please) for each column (for the first column, then the second one and so on). the function that I created to find the …

Programming python
Member Avatar for Xavier_5
0
1K
Member Avatar for f.krueger

Hi all, I would like to know if this is an appropriate forum to ask these questions. Website Example: http://www.shoparc.com I would like create a similar site in WordPress. I have some experience with WordPress but would like to know: What theme is this site using? How would I create …

Member Avatar for f.krueger
0
880
Member Avatar for Geethu_2

import urlparse import urllib import urllib2 from bs4 import BeautifulSoup from collections import Counter import re import Tkinter from Tkinter import * import ttk from tkFileDialog import askopenfilename import logging import tkMessageBox import tkFileDialog import csv import json import os import time import collections import shutil import thread from PIL …

0
210
Member Avatar for nadiam

Hi. I have a form with list box : lst_product, datagridview : grd_order and button: btn_addline. lst_product has a list of product ids selected from database (MS Acess 2013) , grd_order is by default empty except for 2 headers and btn_addline adds rows to grd_order. btn_addline : Private Sub btn_addline_Click(ByVal …

Member Avatar for nadiam
0
630
Member Avatar for janicemurby

hi im attempting to update a script and i have come across the following error PHP Warning: mysqli_real_escape_string() expects parameter 1 to be mysqli, null given in so here was the orginal $sql = "select * from chat where (chat.to = '".mysqli_real_escape_string($_SESSION['usernamechat'])."' AND recd = 0) order by id ASC"; …

Member Avatar for diafol
0
9K
Member Avatar for patk570

Hey guys, I have a code on excel, that will count the critera if there is more than one box filled out. =COUNTIF(C5:D14,"<>0") But now i am converting this code to jquery and i cannot figure it out. on my page, there is a toggle button, yes/no selector for autopay, …

Member Avatar for Airshow
0
528
Member Avatar for sireiz

Is there a way to develop a GUI which has graph data structure at the backend so that if we want to have information about a particular node or edge, we just tap its corresponding GUI representation and the app gives us the required info?

Member Avatar for JamesCherrill
0
317
Member Avatar for AssertNull

OK, so HostGator for some reason no longer allows gcc/g++ access unless you have a Designated Server account, which is a lot of money to spend just to compile my "Hello World" program. Thus I figured I'd compile at home, then upload. Program is your regular old bare-bones Hello World …

Programming c c# c++
Member Avatar for AssertNull
0
2K
Member Avatar for PerplexedB

Hi have this code that runs well for me. It's part of my WordWrapper where Sel is defined as the Selection object. I tried to save `Sel.Font to a var f` variable, and reset `Sel.Font = f`before exit, but that does not work. "Value out of range". /// <summary> /// …

Member Avatar for PerplexedB
0
428
Member Avatar for visualmonk

Hi Daniweb Community, I'm having a small problem. I am unable to get the size of an uploaded file from the server to run a max size check. When I use the following command as specified in any example of file upload I can find on the web: if ($_FILES["r_recommend"]["size"] …

Member Avatar for cereal
0
224
Member Avatar for Violet_82

Hi, as I was told that my code doesn’t scale well at all, I thought perhaps I’d try to get a better understanding of interfaces/abstract classes and classes and the relationship between them. I don’t want at this stage work on a big separate project as I've already got plenty …

Member Avatar for JamesCherrill
0
1K
Member Avatar for Julian_5

Fiirst of all thanks in advance for any help. I uploaded a test page so you can see the problem: http://senoranabogados.com.ar/test1.html And this is the php code i'm using: <?php require_once('phpmailer/PHPMailerAutoload.php'); $toemails = array(); $toemails[] = array( 'email' => 'Your email', // Your Email Address 'name' => 'Your Name' // …

0
169
Member Avatar for Lukas_2

Hey, so I wanna ask how I need to create a method who will remove word if in that word is 2 same chars. Example: "Potato" in this word there is a 2 "o" chars so this word will need to be removed. "Forum" in this word there is no …

Member Avatar for tinstaafl
0
477
Member Avatar for phphp

Sir, I have these PHP codes while($res = sqlsrv_fetch_array($result)) { echo "<tr>"; $sno=$sno+1; echo "<td align='center'>$sno</td>"; echo "<td align='center'>".($res['acc_code'])."</td>"; $partycode=($res['acc_code']); $query1 = "select code,desc1 from master where code='".$partycode."'"; $result1 = sqlsrv_query($con,$query1) or die ("Error". sqlsrv_errors($con)) ; while($res1 = sqlsrv_fetch_array($result1)) { echo "<td align='left' class='color1'>".($res1['desc1'])."</td>"; } echo "<td align='right'>".($res['dr_amount'] != 0 …

Member Avatar for phphp
0
705
Member Avatar for rchawdhari

Hi everyone, I have to integrate SOAP api using SAVON gem When I am calling url it gives reponse and operations too But When I call methods and posting data it gives me error client = Savon.client(wsdl:"http://netconnect.bluedart.com/Demo/ShippingAPI/WayBill/WayBillGeneration.svc?wsdl") client.operations => [:generate_way_bill, :import_data, :cancel_waybill] client.call(:generate_way_bill, message: data) => The server was unable …

0
425
Member Avatar for chrisschristou

hello i'm just training myself on web development so i wanted to create a drop down menu wich i have post before about it! so i get the html code and css and the javascrip code of the bootstrap header menu and i want to customize it for my website …

0
215
Member Avatar for manutd4life

Hello i had a datagridview with data in it and i wanted to display the selected row in textboxes here's the code i tried by i think its totaly wrong [code=vb.net] Private Sub DataGridView_CellClick(ByVal sender As System.Object, ByVal e As System.Windows.Forms.DataGridViewCellEventArgs) Handles DataGridView1.CellClick Dim i As Integer i = DataGridView.CurrentRow.Index …

Member Avatar for Muhammad Nauman_1
0
14K
Member Avatar for mark_59

/* initialize the calendar -----------------------------------------------------------------*/ var date = new Date(); var d = date.getDate(); var m = date.getMonth(); var y = date.getFullYear(); /* selects the events to load in the calendar -----------------------------------------------------------------*/ $.ajax({ url: 'process.php', type: 'POST', data: 'type=fetch', async: false, success: function(response){ json_events = response; } }); $('#calendar').fullCalendar({ //events: …

0
188
Member Avatar for Dani

I'm working on building a Swagger JSON file for my API and I'm looking for a free tool online to test and validate it. Perhaps even an online tool that lets me upload my swagger JSON and builds out documentation from it where I can test it out ... as …

Member Avatar for Dani
0
299
Member Avatar for Ric-Albert

Help! I want to create a java program that finds the highest even integer among the values entered by the user. Stop asking values when a value less than 1 have been entered. If no even integer is entered, display "No Even Integer" Here is the sample output that I …

Member Avatar for brothman01
0
254
Member Avatar for rahimrazak

Hello everyone.. pls I'm new to programming. I'm trying to develop a dictionary application with voice recording for each word in VB 2010 which should have a database probably Mysql. I've started with the interface. I want it to be something similar to Cambridge Advanced Learner's Dictionary. Will appreciate your …

Member Avatar for Reverend Jim
0
189
Member Avatar for hallianonline

Hello I am facing a problem while creating a view in MySQL, I tried all the possible solutions I got from internet but was failed. actually I have two **tables 1** is for installment schedule which contains a planned schedules and the **table 2** contains all installment payment which has …

Programming mysql
0
153
Member Avatar for Salem_2

Hello All ... Iam Getting An Error With try to excecute the stored procedure . I have Have Sql database , the stored procedure like so : USE [MPRS] GO /****** Object: StoredProcedure [dbo].[Search_Licenses_By_Number] Script Date: 26-Nov-16 8:06:52 AM ******/ SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO ALTER PROCEDURE …

Member Avatar for Xavier_5
0
323
Member Avatar for Violet_82

Hi guys, I just don't seem to get this right at the moment...say I want to create an array of objects, I'd do it this way of course: arrayOfWords[ { "SearchTerm":"mySearchTerm1", "Syn":"synonym1", "Syn":"synonym2", "Syn":"synonym3" }, { "SearchTerm":"mySearchTerm2", "Syn":"synonym1", "Syn":"synonym2", "Syn":"synonym3" } ] That's all OK but I'm now in a …

Member Avatar for Violet_82
0
324
Member Avatar for Violet_82

Hi guys, I'm a git first time user, and I followed this guide to set it up and get it up and running https://git-scm.com/documentation. So I'm now using git from the console (at the moment I'm logged in windows, so let it be the windows console). My question is - …

Member Avatar for Violet_82
0
554
Member Avatar for antonioS

Hello friends. Please help me to solve my problem. I am using sql server 2008. When I try to access it recieve the following error: "Cannot connect to localhost ". So my question is, how to repair sql server? Hopefully someone will be able to help me with this.

Member Avatar for Raj_21
0
1K
Member Avatar for newbee_jv

Hello all, I have the following code. Connection connection = getMySQLConnection(); try { Statement st = connection.createStatement(); String SQL = "SELECT ID, NAME FROM STUDENT WHERE ID=5"; ResultSet rs = st.executeQuery(SQL); System.out.println("SQL =" + SQL); while (rs.next()) { // do something... } } catch (SQLException se) { se.pringStackTrace(); } From …

Member Avatar for newbee_jv
0
400
Member Avatar for Stefce

Hello, how do i escape passing parameters to page where you need to give two parameters `ID and category`? my sql is like this `SELECT ID, Image, imageID, Category FROM gallery WHERE imageID={$imageID} AND Category='$category'` but i have a button which should show all pictures no matter what category they …

Member Avatar for jkon
0
241
Member Avatar for Mayank_6

when i upload image in form using cakephp at that time the image is insert but other data will not inserted...??

Member Avatar for Mayank_6
0
256
Member Avatar for amvx86
Member Avatar for Xavier_6

Hello I'm new to python so I was thinking on building a simple neural network...I think I'm almost there and got an error, so I would really need a help right now. from PIL import Image from scipy.misc import imread import matplotlib.pyplot as plt import matplotlib.image as mpimg from pybrain.tools.shortcuts …

Programming dataset python
Member Avatar for Gribouillis
0
2K
Member Avatar for nadiam

Hi. Im using vb 2010. I want to dynamically add textboxes to my form by clicking on a button. I've google searched and so far this code worked: Private Sub btn_addline_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btn_addline.Click Dim txtB1 As New TextBox Dim i For i = …

Member Avatar for Xavier_5
0
582
Member Avatar for jjones0150

I am working on a report that is requesting to count the total number of errors per element in the total row of the report for a given County. When I use the COUNT function it is taking the max value from the number of reads complete column for that …

0
197
Member Avatar for Mr.M

Hi Dw. Long time ago I think late last year my computer was infected and I had installed a VM from Oracle and had a number of OS(VMs) installed one of them was with Win7 but I don't know what happened one day, when I open the VM it was …

Member Avatar for Mr.M
0
395
Member Avatar for Nova6112

Hi guys i am getting the following exception `java.lang.NullPointerException: Attempt to invoke virtual method 'android.content.res.Resources$Theme android.content.Context.getTheme()' on a null object reference --------- Stack trace --------- android.app.AlertDialog.resolveDialogTheme(AlertDialog.java:222) android.app.AlertDialog$Builder.(AlertDialog.java:452) com.skyvin.numr.scanreceipt.ReceiptDetail$convertCurrency.onPostExecute(ReceiptDetail.java:2309) com.skyvin.numr.scanreceipt.ReceiptDetail$convertCurrency.onPostExecute(ReceiptDetail.java:2199) android.os.AsyncTask.finish(AsyncTask.java:651) android.os.AsyncTask.access$500(AsyncTask.java:180) android.os.AsyncTask$InternalHandler.handleMessage(AsyncTask.java:668) android.os.Handler.dispatchMessage(Handler.java:102) android.os.Looper.loop(Looper.java:158) android.app.ActivityThread.main(ActivityThread.java:7229) java.lang.reflect.Method.invoke(Native Method) com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1230) com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1120) ------------------------------- --------- Cause --------- ------------------------------- ` My code is as follows …

Member Avatar for rproffitt
0
2K
Member Avatar for nathan_8

/DROP TABLE STATEMENTS/ DROP TABLE BRANCH CASCADE CONSTRAINT PURGE; DROP TABLE SCREEN CASCADE CONSTRAINT PURGE; DROP TABLE SESSIONS CASCADE CONSTRAINT PURGE; DROP TABLE MOVIE CASCADE CONSTRAINT PURGE; /CREATE TABLE STATEMENT/ CREATE TABLE BRANCH( BRANCHID CHAR(2)NOT NULL, BRANCHNAME VARCHAR2(20), BRANCHSUBURB VARCHAR2(15), BRANCHPOSTCODE CHAR(4), CONSTRAINT BRANCH_PK PRIMARY KEY(BRANCHID)); CREATE TABLE SCREEN( SCREENID …

Member Avatar for Alec_2
0
491
Member Avatar for Saboor880

Hi to all! I am using sql server 2008 enterprise edition. My instance name is "saboor-pc/ SQLSERVERENT". I am using this server for many months and i am satisfied but today an unexpected error occured when i clicked on "connect" button in sql server management studio. The error was: "Cannot …

Member Avatar for Alec_2
0
463
Member Avatar for Maria_21

How coul I compare 2 strings, one that is given by a use and the other one from data segment in memor, in assembler? for exemple: assume cs:code,ds:data data segment parola db 'mananca$' introdu db 20,?, 20 dup (?) gresit db 'Mai incearca$' corect db 'Ai ghicit$' linieNoua db 10,13,'$' …

Member Avatar for Taywin
0
452
Member Avatar for gentlemedia

I've noticed the last couple of weeks that a hard-refresh won't clear the cache anymore in Chrome... well to me and two clients of mine (we're all on a Mac by the way). Not sure either if there was an update to Chrome recently which might cause this now. Did …

Member Avatar for rproffitt
0
575
Member Avatar for fayyaz

Hi I have writen a web service. this web service has a method that returnes a Table as XML format and I need to use it as a table. how can i use this web service as a table. is any way to convert XML format to Table format Thank …

Member Avatar for pritaeas
0
2K
Member Avatar for poifull

Hi, I need to draw lines on a web application using Visual Studio 2008 C#. But i could only find drawing lines on a windows application. :sad: Can i convert the codes from windows application to a web application? Below is the code for windows application. I need guidances. Thanks! …

Member Avatar for pritaeas
0
1K
Member Avatar for Stefce

Hello i have a problem putting margin between the images i have this html code <div class="row"> <div class="col-lg-12"> <h2 class="page-header">Featured Posts</h2> </div> <div class="col-md-4 col-sm-6"> <a href="portfolio-item.html"> <img class="img-responsive img-portfolio img-hover" src="http://placehold.it/700x450" alt=""> </a> </div> <div class="col-md-4 col-sm-6"> <a href="portfolio-item.html"> <img class="img-responsive img-portfolio img-hover" src="http://placehold.it/700x450" alt=""> </a> </div> <div …

Member Avatar for Stefce
0
510
Member Avatar for Aeonix

https://jsfiddle.net/n0260s1L/3/ Is what I have. Text of `div.summary` goes outside of it's planned content. Even when told not to. The only solution to this is `overflow: none;` in "super-parent" `div.mail`. But it ignores: `text-overflow: ellipsis;`. How can I limit content of this div (`div.summary`) **and** have `text-overflow: ellipsis` working at …

Member Avatar for Aeonix
0
653
Member Avatar for emmstarr

The problem asks: Write a program that prompts the user to enter an integer from 1 to 15 and displays a pyramid, as shown in the following sample run: Enter number of lines: 7 [CODE=text]......1 .....212 ....32123 ...4321234 ..543212345 .65432123456 7654321234567[/CODE] (except the example given shows spaces in between the …

Member Avatar for Jorge_12
0
5K
Member Avatar for iso_1

Hello, if any body can help me , why in the code bello the results is always null or 0? because when i want to change the password it always shows me this message "The current password you entered is not correct!" <?php @session_start(); include("./pg_connect/pgdb.class.php"); $db = new PQDatabase(); // …

Member Avatar for iso_1
0
245
Member Avatar for ogo'

Hi, I'm trying to insert some values to database based on how many values are clicked but currently it only takes the last clicked field. I have tried hard coding with mysql_real_escape_string and the dreamweaver way. Both still give me the same last picked value instead of several values separated …

Member Avatar for diafol
0
274
Member Avatar for Aeonix

I've been Googling this one, and I've come across solutions, but they don't seem to work for me. The code is as follows: <?php $name1 = "Jack Random"; // true $name2 = "JackRandom"; // true $name3 = "Jack;Random"; // false $name4 = "JackRand;om"; // false // Accept only A-Z, a-z, …

Member Avatar for pritaeas
0
394
Member Avatar for Mayank_6

i try to redirect one controller page to another controller page using cakePHP but it not working so please help me to solve this query....

Member Avatar for cereal
0
333
Member Avatar for WebDevGuy32145

Hey everyone, So I've got some some code for creating a directory (folder) but forgot to implement the option with creating another folder within a folder that was already created and then displaying that hierarchy on the same page. Here is what I have so far but I can post …

0
219

The End.