121 Topics

Member Avatar for
Member Avatar for drichird

import os def a(): print("A") def b(): print("B") # I want to sometimes skip the main body if os.path.isdir("C:\\Blender\\mainbody"): print("main body of module_A") Is there a way to control whether or not the main body of a module gets executed by passing in arguments to the import command, such as …

Member Avatar for drichird
0
8K
Member Avatar for VengefulToast

Hi forum, I just need a little help on one thing, how can I import this text document and make it usable in a JList object for my GUI application? I Did It Your Way, 11.95 The History of Scotland, 14.50 Learn Calculus in One Day, 29.95 Feel the Stress, …

Member Avatar for NormR1
0
134
Member Avatar for jade_91

so heres my code [CODE] import java.awt.*; import java.text.*; import java.util.*; import java.util.List; // Explicit import required import javax.swing.*; public class Sort { public static void main(String args[]) { Runnable runner = new Runnable() { public void run() { String words[] = {"Sean", "Beth", "Ryan", "Bree", "Jim", "Bob"}; List list …

Member Avatar for NormR1
0
257
Member Avatar for jade_91

So basically I have to import a file of names and then be able to sort them alphabetically I've managed to import the file using the followig code [CODE] import java.io.*; public class Name{ public static void main(String[] args)throws IOException{ String contents; File f = new File("names.txt"); FileReader fr = …

Member Avatar for NormR1
0
503
Member Avatar for dimitros

I have a project in visual studio 2010 and i use c# and asp.I want to use a part of code that uses dll files.I don't know to import the dll to my project. I do know for example,how to use css and javascript: But i think for dll is …

Member Avatar for thines01
0
135
Member Avatar for xopenex

Hello Everyone! So ive done some searching and havent been able to find what i need. Partly because i'm not sure exactly what words i should be googling! I am wanting to download gmail emails, and then display them in a spreadsheet like format. I know that emails have unique …

Member Avatar for xopenex
0
205
Member Avatar for dwlamb

I am using a CMS as a basis for a website. There are some special articles I wish to add and they require custom css. To keep things tidy, I want to have unique css files for each of these special articles and invoke them using [CODE=css]@import url('filename.css')[/CODE] However, the …

Member Avatar for weekendrockstar
0
150
Member Avatar for jbutardo

Hi, I have attached a printscreen version of my excel template here, Now I just want to know, using vb.net code, on how can I import this data from a specific cell, including the header itself so I can insert it into mysql database. Thanks

Member Avatar for jbutardo
-1
146
Member Avatar for jbutardo

I have this question. I have already imported all the excel data in the datatable, but now I want them stored in a 2 dimensional array, meaning I want to have this kind of thing in the array, something like array[x][y], where x is the row and y is the …

Member Avatar for Oxiegen
0
145
Member Avatar for rgudgeon

I have a masterpage and a default page in a project in VS2010. I am trying to import a javascript file. If I import the .js file the project compiles and loads but the whole browser screen is blank. If I comment out the javascript import line the page displays …

Member Avatar for rgudgeon
0
173
Member Avatar for Lemony Lime

I'm making an RPG, and am trying to split things up into multiple files to organize things better. (I mean, character creation alone was over 2000 lines.) But this is something that I've never done, and I'm really not sure how to do it. So, if I could get some …

Member Avatar for ret801
0
284
Member Avatar for Cenchrus

Hey guys and gals, I'm just starting Python, and I was wondering if someone could translate this code into english ? from sys import argv script, first, second, third = argv print "The script is called:", script print "Your first variable is:", first print "your second variable is:", second print …

Member Avatar for Cenchrus
0
5K
Member Avatar for kingofnothing

hi everyone when i tried to import my web site database to local sql server myphpadmin show me this errors i dont know why ?? please help me [QUOTE]Error SQL query: -- -- Database: `hakaek10_alqemaalhakaek` -- -- -------------------------------------------------------- -- -- Table structure for table `rafia_admin_menu` -- CREATE TABLE IF NOT …

Member Avatar for kingofnothing
0
208
Member Avatar for peterson624

I have to ask the user for a filename (that exists in the programs father file) and open that .gif file in order to play with the colors of the image... I am really new as programming and need help! I will be asking for more answers soon as well!! …

Member Avatar for peterson624
0
210
Member Avatar for jdm3

Hello everyone, I'm working on an assignment that requires a game that drops multiple objects that need to be caught. I'm using multiple classes and the current one is raising a type error. " File "C:/Users/Joe/Documents/School/I-210/Final/game.py", line 118, in main gift = Present() TypeError: __init__() takes at least 2 arguments …

Member Avatar for jdm3
0
826
Member Avatar for twazzer

Hi there, I have been asked to import a text file into java, the file contains a series of 1's and 0's which draw a picture. The 1's will be drawn as a dot where as the 0's will be a blank space. I was wondering if anyone could show …

Member Avatar for NormR1
0
208
Member Avatar for newvbnetuser

I am trying to write a windows application in vb.net to import data from excel to sql server. I got "object not set to an instance of an object" error. The data actually have been inserted into the sql. The following is my code. I have a button when the …

Member Avatar for bluehangook629
0
319
Member Avatar for Start4me

Color custom cursor appears to be black when I run the program. The color custom cursor is imported from desktop by using Resources in vb.net. When I run the program the cursor turns out to be black. HOW DO I FIX IT? [CODE]Dim ms As New System.IO.MemoryStream(My.Resources.Cursor1) Button1.Cursor = New …

Member Avatar for Start4me
0
836
Member Avatar for paresh_thummar

Hi friends I am learning GOOGLE API I got error : Invalid Signature Here my code Any body have idea And thx in Advance [CODE] function GetRequestToken() { $consumer = 'MY_CONSUMER KEY'; $secret = 'MY_COSUMER_SECRETE'; $callback = 'http://localhost/Gcontacts/welcome/redirection'; $sign_method = 'HMAC-SHA1'; $version = '1.0'; $scope = 'https://www.google.com/m8/feeds/'; $path = "/accounts/OAuthGetRequestToken"; …

Member Avatar for paresh_thummar
0
264
Member Avatar for TheComputerGuy

So when I compile, everything will compile just fine. When I go to run the program, I get this error [CODE]Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: 0 at ClientForNoDupCollection.main(ClientForNoDupCollection.java:20)[/CODE] I go to look at line 20(actually 19-21) [CODE]public static void main(String args[]) { File file = new File(args[0]); Scanner cReader = …

Member Avatar for masijade
0
194
Member Avatar for pepyrs

Hello guys, I've been to a lot of forums and discussions about this but I never found precise solution. I'm having a WEB application in ASP.NET written in C# and a MySQL database behind. I made a button "Import from Excel" which has SQL command: "LOAD DATA INFILE 'importTest2MorePads.csv' INTO …

0
76
Member Avatar for giancan

Hi guys, I'm having problems with wxPython. If I put in the header of my files from wxPython.wx import * it works fine, even if I see a DeprecationWarning about it. If I write import wx (as also wxformbuilder would do) I get errors like name wxPySimpleApp is not defined …

0
97
Member Avatar for acakaliman

Hey all, I'm new-ish at MySQL and Navicat. I'm trying to import a file with about 1.16 million records and Navicat keeps "working" (I see the timer moving) but it actually stops processing records at 850,825 records. The log shows no errors whatsoever but I know there are many more …

Member Avatar for smantscheff
0
435
Member Avatar for maydhyam

[B]Good Morning, I have a CSV file with thousands of rows of data, and I want to have this data uploaded into a table in a MySQL database. I also want an area where the file could be selected from the computer for the data to be uploaded. Could this …

Member Avatar for shailendra2614
0
504
Member Avatar for Paul Norris

I've seen a lot of posts over time relating to importing and exporting CSV. Most of the answers involve using TextReader.readline and String.split, [B]which will not work[/B] with any but the simplest data. When you are writing for users who have the expectation that your application will work with anything …

Member Avatar for Paul Norris
0
322
Member Avatar for jlrafli

could you help me, please ! ... because i am newbie, sorry :) at form vb net 2005, i can browse file .mdb (C:\my documents\db1.mdb), I have created a table in sql server database, where table is the same as the access table that will be imported, after that when …

Member Avatar for debasisdas
0
115
Member Avatar for Tremillian

I took an intro python class and learned some about jython. Unfortunately, what I have in mind is far too complicated for my level of training. Is it possible to use jython to import pictures from a scanner? If so, what module would I start with/use? The scanner is an …

Member Avatar for FALL3N
0
130
Member Avatar for kurogumo

Trying to import a flat file into SQL Server using SSIS. The file format is like this: [CODE] Image: C:\folder1\1234\5678.jpg ColHead1 ColHead2 ColHead3 Data1 Data2 Data3 [/CODE] I need a result that looks like this: [CODE] ColHead1|ColHead2|ColHead3|ColHead4 ----------------------------------- 5678 |Data1 |Data2 |Data3 [/CODE] So the idea is that we extract …

Member Avatar for kurogumo
0
602
Member Avatar for jay.barnes

Hello! I am working with an Access Database (Access 2002) that contains a form that is supposed to import a CSV. However, because some of the integers contained in the CSV are too large for Access to handle (regardless of the number format I select for the field), I'm going …

Member Avatar for AndreRet
0
747
Member Avatar for axman1000

I have an XLS file. Let's assume that it has 1000 rows in all, with 10 columns. I would like to import rows 5 through 995 (say), and columns 1 though 7 and 10. How can I do this using an SQL query, either though OPENROWSET or BULK INSERT? I …

Member Avatar for Momerath
0
134

The End.