1,430 Recommended Topics

Remove Filter
Member Avatar for
Member Avatar for Freaky_Chris

Hey, im having a problem retrieving information about some files due to the fact either the file name or the extension is too long. For example i want to retrieve the size of a file only i call [CODE=Python]os.path.getsize("somelongfilename.txt")[/CODE] Note that it may not be a .txt extension, but it …

Software Development python
Member Avatar for rory jackson
2
4K
Member Avatar for nalb4242

Hello , I have question regarding visual studio , I have a console application that uses some data from Linux server , how can I run my application remotely from my windows on Linux without having to add the application on the Linux server .. for the sake of debugging …

Software Development asp.net visual-studio
Member Avatar for michealaso
0
70
Member Avatar for complete

Using the Microsoft.SharePoint.Client namespace in a C# code, I am trying to access a SharePoint List but I am getting a 403. Is it because the Microsft List I am trying to access is on a different computer on the internet and the program has to be on the same …

Software Development c# sharepoint
Member Avatar for complete
1
80
Member Avatar for Hanginium65

I wrote a Python script that included the python-swiftclient module to connect to the OpenStack Object Storage and upload some files to the OpenStack Object Storage container It works great if I upload a file that ends with the extension .gz however, I’m getting an error regarding the ‘TarFile’ object …

Software Development python
Member Avatar for Salem
4
164
Member Avatar for Hanginium65

I wrote the Python code to upload the .gz file from my local machine to the OpenStack object store using the following documentation: https://docs.openstack.org/python-swiftclient/latest/client-api.html. Below is the code I wrote. from keystoneauth1 import session from keystoneauth1.identity import v3 from swiftclient.client import Connection, logger from swiftclient.client import ClientException import gzip # …

Software Development python
Member Avatar for rproffitt
0
79
Member Avatar for Tuấn_4

hi guy! I started learn python with pandas , but now, i get the trouble so i cant understand what i should do with this trouble File "C:\Users\Administrator\site-packages\Ver6.py", line 3, in <module> abc = pd.read_csv('book2.csv') AttributeError: module 'pandas' has no attribute 'read_csv' Plz , someone help me coz i cant …

Software Development microsoft python
Member Avatar for toneewa
0
28K
Member Avatar for fx.eko

hi.. I have a problem when compiling the program created in VB6, an error message suddenly appears visual basic has stopped working the condition of the laptop that I use with 4GB memory specifications does this correlate directly while executing the process compile, while if I compile the program with …

Software Development visual-basic windows-10
Member Avatar for pyeri
0
196
Member Avatar for baranoya

Hi, I'm trying to start learning C++ on "Sublime Text" an error came out "file not recognized: File format not recognized collect2.exe: error: ld returned 1 exit status" what can I do about it

Software Development c++
Member Avatar for baranoya
0
55
Member Avatar for shane1961

I have a parameter in a RDLC report named "allocated_jobs" There are no Available Values assigned. It has 1 Specify Values: RTrim(Allocated = "True") ie; Only rows with field name Allocated and it's contents equal "True" are to be in the report. Me.JobsDataReportViewer.LocalReport.ReportEmbeddedResource = "Data_Reporting.JobsList.rdlc" *Data_Reporting is the stored report …

Software Development vb.net
Member Avatar for trueframe
0
50
Member Avatar for R_4

Hi What is wrong in my this backup code it always not working and gives me an error SqlConnection con = new SqlConnection(@"Data Source=(LocalDB)\MSSQLLocalDB; AttachDbFilename=D:\repos\mysales\WindowsFormsApp4\Database1.mdf; Integrated Security=True; "); string database = con.Database.ToString(); if (textBox1.Text == "") { MessageBox.Show("Please Enter Backup File Location"); } else { string cmd = "BACKUP DATABASE …

Software Development c# sql
Member Avatar for Salem
0
62
Member Avatar for li_049

![图片1.png](https://static.daniweb.com/attachments/5/081db9c666339d60f2cf91f9b3413e60.png) The value of the Class variable is '0' 'I' '0' 'H' '0' '4' I hope the value of the Class variable is A' 'T' '0' 'H' '6' '9' I tried using sort_region to sort SelectedRegions1, but it still didn't work read_image (Image1, 'C:/Users/29185/Desktop/图片1.png') get_image_size (Image1, Width, Height) dev_close_window () …

Software Development c
Member Avatar for rproffitt
1
49
Member Avatar for pritaeas

Anyone here that wants to share if they use AI Code Assistants professionally, which one and why? I'm looking for experiences with backend .NET development in Visual Studio to be specific.

Software Development artificial-intelligence-llm asp.net
Member Avatar for antwanlee
1
142
Member Avatar for cambalinho

heres my RayCasting code on VB2010(it can be another programming language, i will get the same bug): Private Function GetPositionMap(ByVal Position As Double) As Integer Return fix(Position / ObjectSize) End Function Private Sub DrawRays() Dim StepX As Double Dim StepY As Double Dim VertX As Double Dim VertY As Double …

Software Development vb.net
Member Avatar for cambalinho
0
182
Member Avatar for SoniyaJonas
Member Avatar for simhakidsden
4
440
Member Avatar for Olive34

This is not really a question, since I can make it work. It's just something I have not seen before and I think it is odd. I'm writing some unit tests. One test works fine, but when I change a parameter for another test, it gives an error. The parameters …

Software Development c#
Member Avatar for Ellsaheranny
1
196
Member Avatar for Seema_7

What's the best cloud accounting software for small businesses that handle multiple sales tax rates? Or is there an affordable web-based small business accounting software?

Software Development finance
Member Avatar for pyeri
2
463
Member Avatar for samzz

Hello, I would like to wrap (surround) all words "flyer" (case insensitive) in the HTML text content, not those in the link. My RegEx works fine on Regex101: https://regex101.com/r/NVmXd1/1 Attached, my HTML file to test my (non working) JS RegEx. Thank you and regards.

Software Development html-css regex
Member Avatar for Dani
0
99
Member Avatar for Nina0X

Anyone is building Uniswap V4 Hooks? Would love to learn more about what you are working on, looking for developers' pain points to contribute through Uniswap V4 Hook Developer's assistant chatbot!

Software Development python seo
Member Avatar for Dani
0
74
Member Avatar for Julius_10

Resolution of error "Run-time error '3709'" at make-table from sql select statement

Software Development visual-basic
Member Avatar for rproffitt
0
98
Member Avatar for zidan
Member Avatar for trueframe
0
95
Member Avatar for Airlike

Hello everybody I'm a student and having problems with an assignment - I have at the moment no idea how to achieve an appropriate solution. I'm aware that you shouldn't help me by showing some code. That's okay for me since I want to solve it by myself but I …

Software Development c++
Member Avatar for trueframe
0
7K
Member Avatar for Fergus_1

ok so i have a page with a gridview on it and it displays rows from sql table. i have also a link assigned to each row: <asp:GridView ID="GridViewMatters" runat="server" AutoGenerateColumns="False" OnRowDataBound="GridViewMatters_RowDataBound"> <Columns> <asp:BoundField DataField="client_ref" HeaderText="Client Reference" /> <asp:BoundField DataField="our_ref" HeaderText="Our Reference" /> <asp:BoundField DataField="client_name" HeaderText="First Name" /> <asp:BoundField DataField="section_name" …

Software Development asp.net
1
36
Member Avatar for jprog1000

Hello, I have a program which creates multiple balls and bounces them off when they collide. This works fine. import java.awt.Rectangle; public class Ball{ private int x = 0; private int y = 0; private int radius; private int panelwidth = 500; private int panelheight = 500; private int xDx …

Software Development java
Member Avatar for aishamushtaq
2
197
Member Avatar for arcon

I think I can record but I can't read with the option button checkbox I don't know if I do the recording procedure correctly

Software Development visual-basic
Member Avatar for SCBWV
0
93
Member Avatar for Thomasio

I want to figure out what Windows does when you right-click a video file and check properties and I would like to write a similar piece of code in C++. I should be able to figure out how to read the file type and size, but I'm lost in how …

Software Development c++
Member Avatar for Thomasio
0
288
Member Avatar for cambalinho

these is the VB6 function for RayCasting: Private Sub DrawRays() Dim StepX As Double Dim StepY As Double Dim VertX As Double Dim VertY As Double Dim HorizX As Double Dim HorizY As Double Dim MapX As Long Dim MapY As Long Dim HorizDist As Double Dim VertDist As Double …

Software Development vb.net visual-basic
1
44
Member Avatar for SHWOO

Hi, I am trying to get a cat walking back and forth between the screen using a left and right tileset of bitmaps. Also, I am supposed to be able to control two caveman sprites that appear to walk left and right as you press the left and right keys. …

Software Development c++
Member Avatar for Pavel_11
0
339
Member Avatar for Audun

Hi I downloaded Tkinter Designer, but there´s no exe there. I´ve used Thonny as a "compiler" for running scripts, and I used it to "make" a a simple program, but I don´t know how to save as an exe, and I don´t know how I would put these files into …

Software Development python
Member Avatar for Reverend Jim
1
48
Member Avatar for Mike Askew

There has been a noticeable increase in people asking where to start C# recently. So I have been across a couple of forums and pulled together a list of some useful links and resources. # Web Tutorials # [Home and Learn Tutorial](http://www.homeandlearn.co.uk/csharp/csharp.html) [CodeProject Tutorial P1](http://www.codeproject.com/Articles/219869/Object-Oriented-Programming-in-Csharp-NET) [CodeProject Tutorial P2](http://www.codeproject.com/Articles/222295/Object-Oriented-Programming-in-Csharp-NET-Part-2) [CodeProject Tutorial …

Software Development c#
Member Avatar for Shahzad111
17
3K
Member Avatar for vegaseat

Using PySide's QAbstractTableModel allows you to easily customize a widget like QTableView and make it more generic in its application. Here we use it to present solvent data in tabular form and sort each column content by simply clicking on the header. You can feed it any data as long …

Software Development python
Member Avatar for Mark_94
5
6K
Member Avatar for Tom_45

I am trying to extract three values from the td tags in an html downloaded file. <tr align="right"><td>236</td><td>Roy</td><td>Allyson</td> <tr align="right"><td>237</td><td>Marvin</td><td>Pamela</td> <tr align="right"><td>238</td><td>Micah</td><td>Kristine</td> <tr align="right"><td>239</td><td>Collin</td><td>Raquel</td> I am using the pattern match = re.findall(r'<td.?>([\d+])([.?])*<\/td>', file) The file is created with a read() statement. The output should look like (236, "Roy", "Allyson") (237, …

Software Development python regex
Member Avatar for Tom_45
1
177
Member Avatar for cambalinho
Member Avatar for cambalinho
1
113
Member Avatar for Tom_45

I am working on an exercise from Google's Python class dealing with popular baby names. I have the program running properly when using only one filename, but when I try to use the wildcard to get all files with baby####.html files I get differing errors every time I run the …

Software Development python
Member Avatar for Tom_45
2
64
Member Avatar for Tom_45

I am trying to extract three values from the td tags in an html downloaded file. <tr align="right"><td>236</td><td>Roy</td><td>Allyson</td> <tr align="right"><td>237</td><td>Marvin</td><td>Pamela</td> <tr align="right"><td>238</td><td>Micah</td><td>Kristine</td> <tr align="right"><td>239</td><td>Collin</td><td>Raquel</td> I am using the pattern match = re.findall(r'<td.*?>([\d+])([.*?])*<\/td>', file) The file is created with a read() statement. The output should look like (236, "Roy", "Allyson") (237, …

Software Development python
Member Avatar for Tom_45
1
149
Member Avatar for cambalinho

how can i convert these C line: (py>>6)<<6) to VB6?

Software Development c++ visual-basic
Member Avatar for pritaeas
1
115
Member Avatar for cambalinho

how can i convert cursor files to image? i need see the cur\ani on picturebox?(just for learning) Private Sub btnChooseImage_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnChooseImage.Click If (ofdChooseFile.ShowDialog = Windows.Forms.DialogResult.OK) Then If (ofdChooseFile.FilterIndex = 6) Then Dim cur As New Cursor(ofdChooseFile.FileName) PicShowImage.Image = cur 'error yes Else …

Software Development visual-basic
Member Avatar for cambalinho
1
66
Member Avatar for nikk8a

Hello friends, I am stuck at a point in downloading multiple files as a single zip such that - the generated zip by my code for user download seems to be not a properly formed one. While trying to open the generated zip, I get an error as - "Cannot …

Software Development file-system java
Member Avatar for Sachin_41
0
10K
Member Avatar for cored0mp

I was thinking that one way that a coding team could work would be that coders would be rotated through several roles. This would prevent people from getting too comfortable towards the goal of preventing problem areas (code quality wise) from developing in the department. * Architecture * Production Coding …

Software Development developer-tools software-architecture
Member Avatar for chuckc
1
143
Member Avatar for amrutraj

I am building a crawler+parser in Python. It has to be run for, like 20 hours. How can I modify the code such that the code execution pauses (before next urllib2.urlopen) when the internet is disconnected, and AUTOMATICALLY resumes with the same variable values, when the internet connection is back …

Software Development python
Member Avatar for musawir_2
0
293
Member Avatar for JModak

The server threw an exception. (Exception from HRESULT: 0x80010105 (RPC_E_SERVERFAULT)) My Code is Private Function GetXlUsedRange(ByVal filePath As String) As Object(,) Dim xlApp As Excel.Application Dim xlWorkbooks As Excel.Workbooks Dim xlWorkbook As Excel.Workbook Dim xlSheets As Excel.Sheets Dim xlWorkSheet As Excel.Worksheet Dim xlRange As Excel.Range xlApp = New Excel.Application xlWorkbooks …

Software Development listview microsoft-office vb.net
Member Avatar for tinstaafl
0
52
Member Avatar for cambalinho

heres my RayCasting function: Private Sub DrawRays2() Dim AY As Double Dim AX As Double Dim StepX As Double Dim StepY As Double Dim VertX As Double Dim VertY As Double Dim HorizX As Double Dim HorizY As Double Dim MapX As Long Dim MapY As Long Dim HorizDist As …

Software Development visual-basic
Member Avatar for cambalinho
1
80
Member Avatar for abdallah_adiga
Member Avatar for Emanuil23
0
581
Member Avatar for cambalinho

i'm using CreateDIBSection(): Public Function NewImage(ByVal ImageWidth As Long, ByVal ImageHeight As Long, Optional color As ColorConstants = vbBlack) As Long If (Width > 0 Or Height > 0 Or hBitmap > 0 Or PointerPixelData > 0) Then DeleteImage Width = ImageWidth Height = ImageHeight 'Criar HDC MemoryHDC = CreateCompatibleDC(0) …

Software Development visual-basic
Member Avatar for rproffitt
0
35
Member Avatar for ddory8843

**What is e-commerce software development?** The term eCommerce was coined in 1972 and it has slowly gained popularity as a buzzword since then. Today, we understand it as an umbrella term that covers all online buying and selling, including everything from selling physical products to providing digital services. There are …

Software Development microsoft-access pascal
Member Avatar for Emanuil23
0
74
Member Avatar for Lius

Need help with JTable header group : Exception in thread "AWT-EventQueue-0" java.lang.ClassCastException: javax.swing.table.JTableHeader cannot be cast to id.co.aal.common.GroupableTableHeader this is the part of table drawing ..... if(tabledraw) { tabledraw=false; for (int k = 0; k < m_data.getColumnCount(); k++) { TableCellRenderer renderer; if (k==Kehadirantable.COL_ALOKASI) renderer = new CheckCellRenderer(); else { DefaultTableCellRenderer …

Software Development java java-netbeans
Member Avatar for Jan_315
0
900
Member Avatar for cambalinho

how send parameters on CreateThread()? on a class: Option Explicit Private Declare Function CreateThread Lib "kernel32" (lpThreadAttributes As Any, ByVal dwStackSize As Long, ByVal lpStartAddress As Long, lpParameter As Any, ByVal dwCreationFlags As Long, lpThreadID As Long) As Long Private Declare Function TerminateThread Lib "kernel32" (ByVal hThread As Long, ByVal …

Software Development visual-basic
Member Avatar for rproffitt
0
85
Member Avatar for cambalinho

i have tried several ways, but i always get an overflow error :( how can i combine the ARGB color elements? Public Function ARGB(ByVal alpha As Byte, ByVal red As Byte, ByVal green As Byte, ByVal blue As Byte) As Long Dim color As Variant color = CDec(alpha) * 256 …

Software Development visual-basic
Member Avatar for cambalinho
0
131
Member Avatar for brooklyn1991

Hello, everyone!:) I am new to Daniweb and I would like a little help in implementing Binomial Heap subroutines in C, especially insertion in Heap. For my application it is necessary to implement max-heaps(i.e., roots storing the maximum value) in stead of min-heaps(i.e., root storing minimum value) in ANSI C. …

Software Development c data-structure
Member Avatar for DGPickett
0
322
Member Avatar for Alicia_14

what unique characters are there in c? So far, I've found these: ¦ ¯ • | ÷ ¶ £ ¢ € ¥ © ® ™ › » « ‹ ‰ % ˜ 8 §

Software Development c
Member Avatar for DGPickett
0
103
Member Avatar for cambalinho

see these 'for' loop: Public Function SetTransparentColor(color As Long) Dim X As Integer Dim Y As Integer Dim c As Long Dim h As Long Dim w As Long Dim temp As BGRAQUAD ' substitua BGRColor pelo tipo de dado correto usado em bDibBGRA h = Height - 1 w …

Software Development visual-basic
Member Avatar for Reverend Jim
0
111

The End.