473,537 Members | 2,805 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

General Forum

For Miscellaneous Answers and Insights that don't fit in existing topics
1
3,924
thread by: TokyoYokohama | last post May 18 '21 by: Banfa
I know a number of programming languages, including Basic (etc...), C (etc...), HTML/Javascript/CSS/Java/PHP among others. I am learning for self-pleasure, but obviously I can and do put it for use towards financial gain sometimes. Essentially, starting a fairly simply language such as Python from the basics is incredibly unstimulating. I was thinking of diving head first by creating my own program (any suggestions as to complexity?) and learning it that way. Does anyone else have any experience or input?
1
3,925
thread by: Pantheras | last post Sep 22 '21 by: dev7060
How can I open a browser in fullscreen with PHP
4
3,926
DeMan
thread by: DeMan | last post Nov 23 '09 by: Dheeraj Joshi
I know I'll cop flak for these but......... What's RED and looks like a bucket? [code] ----------------------------------------------> A Red Bucket [/code] What's BLUE and looks like a bucket? [code] ----------------------------------------------> A Red Bucket holding it's breath [/code] What's GREEN and looks like a bucket? [code] ----------------------------------------------> A Sick Red Bucket [/code] What's YELLOW and looks like a bucket? [code] ----------------------------------------------> A Red Bucket in disguise [/code]
0
3,933
thread by: SchreiberKugel | last post Nov 14 '21 by: SchreiberKugel
Hello, First of all, I am not an native English speaker so I apologize if there are any mistakes. I am very new to programming, especially in Delphi Pascal. Now I have to do the Sieve of Eratosthenes as school-homework. I am in the process of learning the basics so please forgive me, if I´m just struggling with a simple problem. The code I wrote is able to list all prim numbers from 2 to 200, but how do I change it to being able to list all prim numbers of the number I type into the edit? Also is there a way to make a text show up, if there is an error? Help would be very appreciated. [CODE]type TForm1 = class(TForm) Berechnen: TButton; Label1: TLabel; Edit1: TEdit; Label2: TLabel; Memo1: TMemo; procedure BerechnenClick(Sender: TObject); private { Private-Deklarationen } public { Public-Deklarationen } end; var Form1: TForm1; implementation {$R *.DFM} procedure TForm1.BerechnenClick(Sender: TObject); const n = 200; var zahl : array [2..n] of boolean; p,i,v : integer; weiter : boolean; begin for i := 2 to n do zahl[i] := true; p := 2; while p <= n do begin v := 2*p; while v <= n do begin zahl[v] := false; v := v+p; end; p := p+1; if p <= n then weiter := true; while weiter do if (p<=n) and (zahl[p] = false) then p := p+1 else weiter := false; end; for i := 2 to n do if zahl[i] then memo1.Lines.Add(IntToStr(i)) end; end.[/CODE]
4
3,947
nikpreek
thread by: nikpreek | last post Jun 25 '07 by: bartonc
Hi All, Another strange and one-off problem. I have an class library (written c#) having code for loading DTS pkg (saved on HDD as structured file) (from SQL 2000) and then executing it with a parameter of source text file name. It works fine on development PC. My destination app server or testers PCs doesn't have SQL server or any of its components installed. Hence, I referred a column from this site ([url]http://www.sqldts.com/225.aspx[/url]) and I could build a setup program with all the required files and SQL DLLs. Now, when I run this setup on test server (Win 2K Server, no SQL component installed earlier) it is installed with no errors and runs fine. Same with one test PC. BUT, when I try to install it on our tester's PC it fails to register only 1 DLL from the SQL DLL set (axscphst.dll). The error I get is: ------------------------------------------------------------------------------------------------ Module \axscphst.dll failed to register. HRESULT -2147024770. Contact your support personnel. ------------------------------------------------------------------------------------------------ If I continue installation, it continues with registering all other DLLs and finishes successfully. Obviously, it doesn't work. So, I tried to re-register it using regsvr32. When I try to register all DLLs, all of those gets registered successfully except this (axscphst.dll). The error message I get is: ------------------------------------------------------------------------------------------------ --------------------------- RegSvr32 --------------------------- LoadLibrary("C:\Program Files\\DistributedDTS\axscphst.dll") failed - The specified module could not be found. --------------------------- OK --------------------------- ------------------------------------------------------------------------------------------------ I tried to Google and can get only one URL: [url]https://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=1120805&SiteID=1[/url] But, the solution suggested here is something I'm already doing. Can anyone tell me what I should do to find why its not getting registered only on this PC. If there is any workaround, kindly let me know that too. It has become urgent issue now, so, please, please reply ASAP. Thank you to all in advance. (If required, please move it to correct forum) Cheers, Nikhil
1
3,960
thread by: Wgtmggejg | last post Jul 15 '21 by: priti9525
Hi, I trying to make a message box appear if field of exceeds the field, I would also need that the quantity entered is allowed. intention is to show that user has exceeded the required quantity...but still allows him to do so. Using Access and VBA to do this, but the below will not accept number higher than the boxes remaining. Private Sub Quantity_Change() If [Quantity] > [Boxes_remaining] Then Cancel = True MsgBox "Quantity greater than remaining boxes", vbInformation End If End Sub
6
3,962
ashitpro
thread by: ashitpro | last post Aug 14 '07 by: jkmyoung
From a book, a number of pages are missing. The sum of the page numbers of these pages is 9808. Which pages are missing?
0
3,966
thread by: Rajaganesh | last post May 9 '23 by: Rajaganesh
Hi Guys, Getting error while creating import-snapshot with VHD from AWS S3 to EC2 I have a VHD file with Windows OS, it was uploaded to the AWS S3 bucket. So I'm trying to create an import-snapshot of the VHD file from AWS S3 to EC2 by using AWS CLI with the below Linux command. [CODE]aws ec2 import-snapshot --disk-container "Format=VHD,UserBucket={S3Bucket=,S3Key=}" --output json [/CODE] When I'm trying to execute the above Linux command, getting the following error, and also attached a role to the EC2 with the below permissions/policies. [B]Error:[/B] [CODE]An error occurred (AuthFailure) when calling the ImportSnapshot operation: AWS was not able to validate the provided access credentials[/CODE] [B]Attached Policies:[/B] [LIST=1] [*]S3 Full-access [*]EC2 Full-access [*]KMS Full-access [*]STS [*]VM Import/Export [/LIST] Is need to attach any more policies? please can anyone help with this issue to get resolve. Thanks Rajaganesh
7
3,971
thread by: goe | last post Dec 31 '08 by: RedSon
Hi All, The software I'm working on uses the CODE39 barcode font to converts regular strings into the barcode labels. However we're now in the process of internalization and we need to add support for double byte characters for example Chinese. Everything is encoded in UTF8 but for some reason when try to convert a string that holds both Latin and Chinese characters only Latin gets converted to barcode lines and the Chinese characters popup up in the middle without any change. Does anybody know a solution to that? Thanks, goe
2
3,973
devaka
thread by: devaka | last post Mar 8 '07 by: AricC
Hi developers! I want to introduce you an [URL=http://marqueetool.net]DHTML Rectangular Marquee Tool[/URL] That tool allow you to select rectangles on your picture, calculate coordinates and something other actions... Here is an [URL=http://marqueetool.net/?example]example[/URL]: [IMG]http://marqueetool.net/images/example.jpg[/IMG] sample of usage: [CODE] ... HTML Document ... ... HTML Document ... [/CODE] If you are interested - [URL=http://marqueetool.net/?comments_add]leave some comments[/URL] for me. Thanks. Regards, Sergey Koksharov.
10
3,979
thread by: jay123 | last post Jun 9 '09 by: Markus
hi guys, i am struck in a bit of problem. whenever i open my IE, it takes ages to open as it always tries to open "http://uk.msn.com/?ocid=iehp". what should i do that a blank page open initially. i know everyone will be thinking about ( tools--> internet optons) and change home page option but it doesnot work, its already blank in there. please help, its driving me nuts. thanks
3
3,983
thread by: walex | last post Oct 29 '07 by: numberwhun
Hello guys, I'm trying to install devsec an application for ffpeg for camera,but on,is a c programme,after compilation ,i now type make, then this two error are generated.common.h:67: error: array type has incomplete element type common.h:71: error: array type has incomplete element type make[2]: *** [common.o] Error 1 make[2]: Leaving directory `/root/devsec-3.0.6/ffmpeg/libavcodec' make[1]: *** [lib] Error 2 make[1]: Leaving directory `/root/devsec-3.0.6/ffmpeg' make: *** [install-recursive] Error 1 Can anybody solve this challenge I'm using fedora core 5, php-5.1.2-5 mysql-5.0.18-2.1 httpd-2.2.0-5.1.2
6
3,986
thread by: mollymop123 | last post Feb 17 '09 by: Markus
when I am installing roller coaster tycoon 3 half way through it it comes up with component transfer error and then automaticly cancels the installation any ideas thank you
0
3,997
thread by: ComPDFKit | last post Dec 16 '22 by: ComPDFKit
CSV is one of the most popular file formats when it comes to storing tabular data. If you want to manipulate or analyze data in PDF documents, you can convert PDF to CSV format, storing information in the form of tabular rows and columns. [B]What Is CSV[/B] A Comma Separated Values (CSV) file is a plain text file, containing a list of data. And they may sometimes be referred to as Character Separated Values or Comma Delimited files. They mostly use the comma character to separate or delimit data, but sometimes use other characters like semicolons. You can infer these meanings from the filename. Since multiple applications can recognize records separated by comma, it’s very convenient to import CSV files. That’s why CSV files are commonly used for exchanging data between different applications, especially when there is a great deal of data to be sent. CSV files can be opened by a wide variety of programs, including Microsoft Excel, Google Sheets, Notepad, etc. [B]CSV vs Excel[/B] When it comes to data, we usually think of Excel. What CSV and Excel have in common is that they both help store data in tabular format. And there are lots of differences between them. Let’s have a deeper look at the differences. - Performance: CSV files are just text files, they store data but do not contain formatting, formulas, macros, etc. The data in Excel files can be calculated and you can access formulas, macros, etc. - Memory: Importing CSV files can be much faster, and it also consumes less memory. Excel files consume more memory when importing data. - Storage Format: CSV files cannot store the data in charts or graphs format, while Excel files can do that. - Supported Platforms: CSV files can be opened with any text editor in Windows, while Excel files only can be opened with Microsoft Excel. - External Data: You cannot connect the CSV files to external data sources to fetch the data, like local workbooks, databases, web, etc. While Excel files can do that. [B]Convert PDF to CSV[/B] ComPDFKit supports extracting only tables from PDF accurately and converting them to CSV, and one table is converted to one CSV file. [B]Objective-C[/B] // Get the path of the PDF file. NSString *pdfPath = @"..."; // Get the path to the PPT file. NSString *outputPath = @"..."; CPDFConverterCsv *converter = [[[CPDFConverterCsv alloc] initWithURL:[NSURL fileURLWithPath:pdfPath] password:nil] autorelease]; [converter convertToFilePath:outputPath pageIndexs:nil options:nil]; [B]Kotlin[/B] val cPDFConvert = CPDFConverterCsv(context, uri, "") val params = CPDFConvertCsvOptions() val result: ConvertError = cPDFConvert.convert(outputDir, outputfilename, params, pageArrays, onHandle = onHandleCal, onProgress = onProgressCal, onPost = onPostCal) [B]C#[/B] string resPath = "***"; string inputFilePath = "***"; string outputFolderPath = "***"; string outputFileName = "***"; CPDFConverter.Init(resPath); CPDFConverterCsv converter = new CPDFConverterCsv(inputFilePath); int pageCount = converter.GetPagesCount(); int[] pageArray = new int[pageCount]; for (int i = 0; i < pageArray.Length; i++) { pageArray[i] = i + 1; } CPDFConverterError error = CPDFConverterError.C_UNKNOWN; converter.Convert(outputFolderPath,ref outputFileName, pageArray, ref error, getPorgress); [B]Conclusion[/B] In this blog, we introduced a new file format — CSV. Hope you have a clear understanding after reading the blog. And you can contact us to get a free trial of converting PDF to CSV.
0
4,020
thread by: Alpenk | last post Aug 17 '05 by: Alpenk
I'm trying to update an empty field in a table using the update statment. The table has a number of joins and the update statement comes up with an error when I enter the main table to update. should i be including the joins here as well? I get the following error: Server: Msg 208, Level 16, State 1, Line 178 Invalid object name 'TD_EXTRACT'. Server: Msg 208, Level 16, State 1, Line 178 Invalid object name '#Neil.Mortgage'. The code im using... DECLARE Alpen_Cursor CURSOR FOR SELECT TDE.Merged_Fund_Desc, TDE.MORTGAGE, TDE.Client_Main_Surname, HAT.[Last_Delq_Bucket], HAT.[Current_Balance], HAT.[Possession_Date], M56.ASSNAM AS [Possession Agent], TDP.REGION, HAT.Litigation_Status, HAT.MORTGAGE_STATUS, A34SC.PROGCLOSE, Cast('space' AS VARCHAR(100)) AS Prog_Point_list FROM REPT_SOURCE_ME_01.dbo.TD_EXTRACT TDE INNER JOIN REPT_SOURCE_ME_01.dbo.TD_ARREARS HAT ON TDE.MORTGAGE = HAT.MORTGAGE INNER JOIN REPT_SOURCE_ME_01.dbo.[ACM41] ACM ON TDE.MORTGAGE = ACM.MORTGAGE INNER JOIN REPT_SOURCE_ME_01.dbo.[MAM56] M56 ON ACM.LITPOSSAGENT = M56.ASSCDE INNER JOIN REPT_SOURCE.dbo.[ACT34StageC] A34SC ON ACM.MORTGAGE = A34SC.MORTGAGE INNER JOIN REPT_SOURCE.dbo.[MAM16] M16 ON ACM.LITSOLICITOR = M16.SOLCDE INNER JOIN REPT_SOURCE_ME_01.dbo.TD_PROPERTY TDP ON TDE.MORTGAGE_NO = TDP.MORTGAGE_NO WHERE A34SC.PROGPNT IN ('AUC','AUO','MPS','NRC','OLP','ORC','POS','RAR','RCO','REC','RMP','ROF','ROS','ROW','RPO','TIC','VPO') AND HAT.Litigation_Status = 'possession' AND HAT.MORTGAGE_STATUS = 'live' AND A34SC.PROGCLOSE IS Null GROUP BY TDE.Merged_fund_Desc, TDE.MORTGAGE, TDE.Client_Main_Surname, HAT.[Last_Delq_Bucket], HAT.[Current_Balance], HAT.[Possession_Date], M56.ASSNAM, TDP.REGION, M16.SOLNAME, HAT.Litigation_Status, HAT.Mortgage_Status, A34SC.PROGCLOSE, ACM.LITSOLICITOR HAVING (((HAT.Litigation_Status) = 'Possession') AND ((HAT.MORTGAGE_STATUS) = 'Live') AND ((A34SC.PROGCLOSE) IS Null)); OPEN Alpen_Cursor FETCH NEXT FROM Alpen_Cursor CLOSE Alpen_cursor DEALLOCATE alpen_cursor UPDATE SET TD_EXTRACT.Prog_Point_list = #neil.PROGPNT + ',' FROM TD_Extract INNER JOIN #Neil.Mortgage ON TD_Extract.Mortgage = #Neil.Mortgage AND #Neil.PROGPNT = Alpen_Cursor.PROGPNT
0
4,026
thread by: MarkWatson381 | last post Apr 4 '21 by: MarkWatson381
Are there any linters for the Go language?
8
4,043
hsriat
thread by: hsriat | last post Jun 12 '09 by: Markus
I had a .htaccess file for Rewrite on my server and was working fine. Now when I used the same code in 1and1 hosting, its not working. May be something is wrong or unexpectedly good happening inside 1and1 servers. [code]Options +FollowSymLinks RewriteEngine on RewriteRule /id/(.*)/name/(.*) index.php?id=$1&name=$2[/code] If anyone knows what's required to be changed to make it work on 1and1, please let me know. Thanks
1
4,049
thread by: dwforrest | last post Apr 24 '06 by: Banfa
Hi all, I am hoping that someone can help me with the following problem that I am having at the moment. I am trying to show on my page the data from mysql table accountgroup through a while loop using the output in php. I have place the code that I have below to show you what I have done, and the output that I also get when i run the page. I have also provided the table that I am getting the information from. Am hoping someone out there is able to help me with this problem as I am completely stuck. Thanks, Dave. ----------CODE------------ [PHP]include('./connect_to_db.php'); //get an instance $db = new Connection(); //connect to database $db->connect(); //query the database $mysql_query = mysql_query( $query ); print (""); print (""); print (""); print (""); print (""); print (""); print (""); print (""); print (""); print (""); print (""); print (""); while($row = mysql_fetch_row($mysql_query)) { print (""); print (""); print (""); print (""); print (""); } print ("
"); print ("LATEST NEWS"); print ("
"); print ("
"); print ("
"); print ("Group Name"); print (""); print ("Group Type"); print (""); print ("Group Description"); print ("
"); print ($row[0]); print (""); print ($row[1]); print (""); print ($row[2]); print ("
"); //close once finished to free up resources $db->close(); ?> [/PHP] ---------OUTPUT--------- [CODE]LATEST NEWS Group Name Group Type Group Description groupname grouptype groupdescription groupname grouptype groupdescription groupname grouptype groupdescription groupname grouptype groupdescription groupname grouptype groupdescription groupname grouptype groupdescription[/CODE] ----------TABLE DATA-------------- CREATE TABLE GROUPACCOUNT( groupname VARCHAR(23) NOT NULL, grouptype VARCHAR(11) NOT NULL, groupdescritpion VARCHAR(65) NOT NULL, grouplist1 VARCHAR(30) NOT NULL, grouplist2 VARCHAR(30), grouplist3 VARCHAR(30), grouplist4 VARCHAR(30), grouplist5 VARCHAR(30), grouplist6 VARCHAR(30), grouplist7 VARCHAR(30), grouplist8 VARCHAR(30), PRIMARY KEY (groupname)) TYPE=InnoDB; INSERT INTO GROUPACCOUNT VALUES ('group1', 'Research', 'group1', 'user', 'user2', 'user3', 'user4', 'user5', 'user6', 'user7', 'user8'), ('group2', 'Department', 'group1', 'user', 'user2', 'user3', 'user4', 'user5', 'user6', 'user7', 'user8');
1
4,055
BarryA
thread by: BarryA | last post Jul 14 '22 by: Willjoe
Thrashing is linked to memory management in an operating system. What causes thrashing? How can we avoid it? I looked on [URL="https://www.scaler.com/topics/thrashing-in-os/"]Scaler topics[/URL] and [URL="https://en.wikipedia.org/wiki/Thrashing_(computer_science)"]Wikipedia[/URL] but I need more info regarding thrashing, Can someone help me out?
1
4,064
thread by: Solo | last post Apr 3 '21 by: cactusdata
I have a byte array loaded with hex bytes read from a device on a com port. I need to convert the bytes into a string, but without doing any conversion to decimal, integer. etc. In other words, when I have a hex value of &H37, I need to convert it to a string of "37". Sounds simple, but has me puzzled so far.
48
4,114
thread by: Mickster | last post May 5 '06 by: Mickster
Hi all, I am currently working on a form that will allow a user to tick off certain medication errors. A user can select up to five errors, there are around 15 listed. I was wondering if Checkboxes woudl be the best solution for this or is their a better approach? If checkboxes is the best approach coudl someone please tell me how to get the value that is stored in the label to appear in the table? Example "Medication ordered for wrong patient" is a label for a checkbox, how do i get that value stored in the table.
8
4,115
thread by: jumi | last post Mar 3 '08 by: acoder
Produce an E-R diagram, which documents the entities, attributes, relationships and cardinality involved in the Life Insurance Management System. Create a relational schema to hold the necessary information. Identify the tables and perform normalization to the tables to the required normal forms.
0
4,115
thread by: Curious27 | last post Sep 1 '22 by: Curious27
Back again... I'm trying to calculate two TextBoxes which contain a values from a ComboBox Columns. TextBox1 - txtQty (Control Source: equals [cboCaliber].[Column](3) TextBox2 - txtPicked (Control Source: equals [cboCaliber].[Column](4) TextBox3 - txtActQty (Control Source: equals [txtQty]minus[txtPicked] When Form loads txtQty and txtPicked have the right values but txtActQty just shows #Error. I don't know if you can calculate the results of a ComboBox Columns.
1
4,135
thread by: saturn | last post Jan 15 '09 by: juanriccio
Hi Guys.. Here is a link.. http://www.incident.net/works/miseanu/nues.swf I have been trying to download the swf media in this page.. downloaded neus.swf file..So whats the problem..? Problem is the DOWNLOADED swf file does not contain the content shown on the PAGE.. :-) and No other media on the page..No external references. Can anyone download the real contents of the said page..? How.? SAT
0
4,154
thread by: sukhdeep | last post Aug 17 '07 by: sukhdeep
hello, i do not have any idea about usb port programming. please tell me how i can read the usb joystick data by using Visual Basic. if any body have idea.please inform me at sukhdeepmanku@gmail.com. i will be grateful for your kindness.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.