Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x

Programming

52K

Solutions

40K

Contributors

Programming includes both the specifics of the language you’re using, like Visual Basic, .NET, Java and others, but also the best practices in user experience and interfaces and the management of projects, version control and development. Other programming topics are related to web and cloud development and system and hardware programming.

Share tech news, updates, or what's on your mind.

Sign up to Post

Hello,

My customer wants a software which recognizes registration plate number of the cars and store them in database.
I use Delphi Seattle.

How can I do that?

Thank you very much.
0
What does it mean to be "Always On"?
LVL 4
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

i have multiple options on my combobox and i want, if someone chooses one, then it takes the person on the for suitable for that option.
0
Hi ,
Please help me to create excel marco for attached excel sheet.
test.xlsx
0
For a prarticular value say DOB to insert into database table say CUSTOMER some
xYZMain calls---XYZOrchestrator class ----which calls ----XYZDAO ---where some jdbc call happens with callble statments with ?,? as arguments to insert.

Now my question is how to trace in eclipse which method of which class calls which method of which class starting from main upto DAO.

call hierarchy in eclipse control+alt+h on particular method just gives details of who is calling particular method.

please advise
0
Hello Experts,

We have a multiple folders in d drive these all folders have sub folder which name is LogFiles, we need to forcefully delete all LogFiles folders only from a batch file.

Example:-
D:\1101\Client_4.1.1.1\LogFiles
D:\Arista\4.2.5.1\LogFiles
D:\SampleType\Zone\LogFiles

Please suggest
0
In eclipse when i selected a method and do control+alt+H i get
An internal error occurred during: "Fetching children of orchestrate".
GC overhead limit exceeded

how to resolve this error. please advise
0
Hello,

I was hoping to get some feedback on an Apex trigger I have written on the Salesforce platform. I have two custom objects (SalesOrder__c and Sales_Order_Line__c) that is a master/detail relationship.

On an edit of the line, I'm iterating over all the lines, running a check to see if the lines have been fully fulfilled and if so, then setting a fully fulfilled Boolean field on the master record to true. The check on the lines is looking at a custom formula field and the record type of the lines.

I'm interested in any feedback on the code I have written (see below) regarding best practices on bulkification, code logic, error handling, appropriate DML usage and governor limits.

For example, is it better to use standard DML operation or the database DML methods and use partial success? Should try/catch be used in triggers? I've read differing opinions on using error handling in triggers. Would a different loop be more efficient (do/while)? Should limit checks be added into the code? Any feedback on improvements and best practices would be welcome.

Please note, I'm using a trigger framework that uses a handler interface. The trigger calls the framework class, passing in the event to fire the trigger and the handler class to dispatch. The code below is the handler class that runs the logic on trigger after update event.

global class SalesOrderLineFullyFulfilled implements ITriggers.HandlerInterface {

	Sales_Order_Line__c[] newCollection = 

Open in new window

0
Hello,
How can i convert this functon compatible to listview
 Private Sub ListBox1_MouseDown(ByVal sender As Object, ByVal e As System.Windows.Forms.MouseEventArgs) Handles ListBox1.MouseDown
        If e.Button = MouseButtons.Left Then
            Dim pt As New Point(e.X, e.Y)
            startIndex = ListBox1.IndexFromPoint(pt)

            If startIndex >= 0 Then
                Dim itemRc As Rectangle = ListBox1.GetItemRectangle(startIndex)
                startPoint = ListBox1.PointToScreen(New Point(ListBox1.Width, itemRc.Top + (itemRc.Bottom - itemRc.Top) / 2))
                endPoint = startPoint
                lastIndex = -1
                ListBox1.DoDragDrop(ListBox1.Items(startIndex).ToString(), DragDropEffects.Move)
            End If
        End If
    End Sub

Open in new window



  Private Sub ListBox2_DragOver(ByVal sender As Object, ByVal e As System.Windows.Forms.DragEventArgs) Handles ListBox2.DragOver
        Dim lbPoint As Point = ListBox2.PointToClient(New Point(e.X, e.Y))
        Dim index As Integer = ListBox2.IndexFromPoint(lbPoint)
        If index >= 0 Then
            ListBox2.SelectedIndex = index
            Dim itemRc As Rectangle = ListBox2.GetItemRectangle(index)
            Dim key As String
            If lastIndex <> index Then
                If lastIndex <> -1 Then
                    key = startIndex & "|" & lastIndex
                    If Not connections.ContainsKey(key) Then
                        ControlPaint.DrawReversibleLine(startPoint, endPoint, Panel1.BackColor)
                    End If
                End If
                key = startIndex & "|" & index
                If Not connections.ContainsKey(key) Then
                    endPoint = ListBox2.PointToScreen(New Point(0, itemRc.Top + (itemRc.Bottom - itemRc.Top) / 2))
                    ControlPaint.DrawReversibleLine(startPoint, endPoint, Panel1.BackColor)
                End If
                lastIndex = index
            End If
        End If
    End Sub

Open in new window


  Private Sub ListBox2_DragDrop(ByVal sender As Object, ByVal e As System.Windows.Forms.DragEventArgs) Handles ListBox2.DragDrop
        Try

            Dim endIndex As Integer = ListBox2.IndexFromPoint(ListBox2.PointToClient(New Point(e.X, e.Y)))
            If endIndex >= 0 Then
                connections.Add(startIndex & "|" & endIndex, Nothing)
            End If
            Panel1.Refresh()
        Catch ex As Exception
            Exit Sub
        Finally
            Panel1.Refresh()
        End Try

    End Sub

Open in new window


ListBox2.GetItemRectangle(index)
GetitemRectangle,IndexFromPoint is not a part of listview
0
What is the answer for this question
0
rest web services Standard vs business exception differences not clear. when to use which one and how. Both seems almost same to me in terms of error handling
 please advise​
0
Concerto Cloud for Software Providers & ISVs
LVL 4
Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Hi,
I am reading below link

https://docs.oracle.com/cd/E19798-01/821-1841/6nmq2cp1v/index.html

I was not very clear when we use content type application/xml  and when we use application/x-www-form-urlencoded and when we use json. what is importance of content type and practical uses of it. How media type is different from content type or mime type. what is the meaning of payload. please advise
0
Using VB6 and stepping through a file sequentially that has been opened for random access I am getting bad record length errors.

However if I close the file then reopen it and start reading the records from 1 before the one that gave the error then it continues sometimes to the end of the file without error or sometimes it will error later with another bad record length error.

I have been using the same code without error on the same files for 20 years.
These errors have only started since Windows 7,8,10.
What is causing the problem?
It is happening on a number of different files with different record lengths.
0
I use Adobe acrobat XI Pro version 11.0.22 extensively

Have vba code that edits (E) acrobat files adding headers and footers and shrinking file sizes

I understand that Adobe will stop supporting this software on October and they recommend an upgrade

Any advice on the upgrade - how will it affect my code applications?

Examples are

--------------------------------------
Option Compare Database
Private Declare PtrSafe Function GetWindowText Lib "user32" Alias "GetWindowTextA" (ByVal hwnd As LongPtr, ByVal lpString As String, ByVal cch As LongPtr) As Long
Private Declare PtrSafe Function GetNextWindow Lib "user32" Alias "GetWindow" (ByVal hwnd As LongPtr, ByVal wFlag As LongPtr) As Long
Private Declare PtrSafe Function GetTopWindow Lib "user32" (ByVal hwnd As LongPtr) As Long
Private Declare PtrSafe Function FindWindow Lib "user32" Alias "FindWindowA" (ByVal lpClassName As String, ByVal lpWindowName As String) As Long
Private Declare PtrSafe Function PostMessage Lib "user32" Alias "PostMessageA" (ByVal hwnd As LongPtr, ByVal wMsg As LongPtr, ByVal wParam As LongPtr, ByVal lParam As LongPtr) As Long

Private Const GW_HWNDNEXT = 2
Private Const WM_CLOSE = &H10

Public Function MakeEvenPageCount(ByVal SourcePath As String, ByVal SourceFileName As String, ByVal DestPath As String, ByVal DestFileName As String, ByVal FrstPg As Double, ByVal MaxNoPgs As Double, ByVal FileNo As Double, ByVal DoYouWantToSendToPrinter As Integer, ByVal FontSize As Integer, ByVal 

Open in new window

0
It is possible to select range of node using start node and end node.
Below is sample code.

            <w:body>
               <w:p w:rsidR="009F72A0" w:rsidRDefault="00C14A8B" w:rsidP="00D80B27">
                  <w:pPr>
                     <w:pStyle w:val="Heading1" />
                  </w:pPr>
                  <w:bookmarkStart w:id="0" w:name="Page_1" />
                  <w:bookmarkEnd w:id="0" />
                  <w:proofErr w:type="spellStart" />
                  <w:r>
                     <w:t>Microsof</w:t>
                  </w:r>
                  <w:proofErr w:type="spellEnd" />
               </w:p>
               <w:p w:rsidR="00472CBA" w:rsidRDefault="00472CBA" w:rsidP="00472CBA">
                  <w:pPr>
                     <w:spacing w:after="0" />
                  </w:pPr>
               </w:p>
               <w:tbl>
                  <w:tblPr>
                     <w:tblStyle w:val="GridTable5Dark-Accent6" />
                     <w:tblW w:w="0" w:type="auto" />
                     <w:tblLook w:val="04A0" w:firstRow="1" w:lastRow="0" w:firstColumn="1" w:lastColumn="0" w:noHBand="0" w:noVBand="1" />
                  </w:tblPr>
                  <w:tblGrid>
                     <w:gridCol w:w="3116" />
                     <w:gridCol w:w="3117" />
                     <w:gridCol w:w="3117" />
                  </w:tblGrid>
                  <w:tr w:rsidR="00E317D5" w:rsidRPr="00531C77" w:rsidTr="00531C77">
        …
0
I have written a big C# program, (like 84 pages long), and I want to use GNU grep to compile a list of all of the C# symbols, such as variable and class names into a .csv file for the purpose of creating a "data dictionary" that accompanies the program so that I can continue to maintain programming it effectively.

Somebody please tell me how to compose the pattern expression that does that. Or if there is a tool expressly for doing that, please tell me what the name of that tool is. (preferably a free tool).
0
Hi,
I have projhejct with name restweb which i imported as maven project

i hen imported another project with restweb with enhanced code in it by renaming at the named template section to xyz as attached.
when i try to start tomcat server within eclipse server wont start?
what is the work around so that i can start both projects at the same time even in future 10 more projects with same name with enhnaced code.
please advise
if not named template is there better approach to get these enhanced code projects and import to eclipse.
0
right click on that imported project and properties and target run times selected that fixed the issue
The superclass "javax.servlet.http.HttpServlet" was not found on the Java Build Path
how

right clicking on the project --->and going to properties --->changing target run time--> to tomcat 8 etc different from



windows -->preferences--->server-->run time environment--->Add-->tomcat 8 etc here
0
Hi-

I want to Delete Word Bookmarked Text and paragraph Data using OpenXML in .Net.

I have below code using OpenXML and "Content controls". But my plan is to do the same using "Bookmarks".
I haven't found OpenXML solution to edit and delete text and paragraphs using bookmarks.

using (WordprocessingDocument myDoc = WordprocessingDocument.Open(destFilename, true))
            {
                MainDocumentPart mainPart = myDoc.MainDocumentPart;
                DocumentFormat.OpenXml.Wordprocessing.Document bodyDoc = mainPart.Document;
                IEnumerable<SdtBlock> ccBlocks = bodyDoc.Descendants<SdtBlock>();
                IEnumerable<SdtRun> ccRuns = bodyDoc.Descendants<SdtRun>();

                foreach (var item in cBO.map)
                {
                    
                    SdtBlock myBlock = ccBlocks.FirstOrDefault(ccb => ccb.Descendants<SdtAlias>().FirstOrDefault().Val == item.Key);
                    SdtRun myRun = ccRuns.FirstOrDefault(ccb => ccb.Descendants<SdtAlias>().FirstOrDefault().Val == item.Key);
                  
                    Text textContent=new Text();
                    if (myBlock != null)
                    {
                        textContent = myBlock.Descendants<Text>().FirstOrDefault();
                    }
                    if(myRun != null)
                    {
                        textContent = myRun.Descendants<Text>().FirstOrDefault();
                    }
                
                    if

Open in new window

0
I am trying to sum up a total of minutes, divide it by 60, and get an actual HOURS:MINUTES result.

I have a total of 315 minutes. Divided that by 60 and the result is 5.25. The .25 is a quart of an hour and I need to get the actual 15 minutes. Does that make sense?

So a total of 315 is actually 5 hours and 15 minutes. That is the result I'm trying to come up with, not .25 as a quarter of an hour.

C'mon, time formula's are fun!
Thanks folks!
Ken
0
Build and deliver software with DevOps
Build and deliver software with DevOps

A digital transformation requires faster time to market, shorter software development lifecycles, and the ability to adapt rapidly to changing customer demands. DevOps provides the solution.

I have a project to enrol my students  using biometric fingerprint scanner. my app is develop in php. how can achieve that?
0
How to display the size of tblmountertrace_1 (to) 9 to text box? Please see picture:

database table
Im using this code but I dont know how to query. I put it on the Timer (timSERVERSIZE) to update every 4 Hours a day.

        Private Sub timSERVERSIZE_Tick(sender As Object, e As EventArgs) Handles timSERVERSIZE.Tick
        Dim cmd2 As New MySqlCommand
        Dim myDA2 As New MySqlDataAdapter(cmd2)
        Dim myDT2 As New DataTable
        cmd2.Connection = conn
        cmd2.CommandText = "SELECT * FROM esd_reco ?????????????????????????????????????"
        myDA2.Fill(myDT2)
        TextBox1.items.add(myDA2)  <<<<<<<<<<<<??????????????????????????


    End Sub

Open in new window


Thanks for the help
0
hi,

I am loking for free open source tool for drawing  flow diagram, class diagram component diagram high level design digram low level design diagram sequence diagram etc.

any good eclipse plugin which is free available to this. Any online tools for this. please advise
0
I am currently setting up a training room where I want everything to be automated. I have door style windows on a slanted roof that currently needs to be opened manually. The problem is that the windows are very high, and it is not practical to try and open them manually.

They are side hung escape windows with wooden frames and dimensions 660x1180mm.

I want to convert the windows so they can open automatically, preferably using a remote or voice commands using my SmartThings hub or Amazon Alexa. Would this be possible?

Would you be able to guide me to the type of window opener/actuator that would best suit my window and what else I would need to get to be able to use my SmartThings hub or IFTTT event triggering.

Any solutions would be much appreciated.

Regards,
Robbie
1
Hi, any help please with this problem.
I used this code
Dim chos2 As String
        chos2 = Val(TextBox2.Text) & ".jpg"
        PictureBox3.ImageLocation = "file://192.168.6.252/pasa/esdcheck/res_pic/" & chos2

Open in new window

But when I remove credential to that computer the image does not appear, I need a code to programatically enter the "user" and "password"
Like SQL, This code works:
conn.ConnectionString = "server=192.168.6.252;userid=user;password=123!@#;database=msd"

Open in new window

But how to do that with the computer users and password?

If I enable/check the remember my credential, the user of the program can also access the shared folders of the computer w/ PI 192.168.6.252, or the server let's say,. I want to restrict that, Please any help.

Thanks
0
Hi

I am looking for  a VB script that would search full name or user name in the Excel spreadsheet.
It would be great if I could type user name or full name in the search box and scan against Excel Spreadsheet
The output should be exported to csv file and display on the page.

Can you please help me?

Thx, M
Test-groupname.xlsx
0

Programming

52K

Solutions

40K

Contributors

Programming includes both the specifics of the language you’re using, like Visual Basic, .NET, Java and others, but also the best practices in user experience and interfaces and the management of projects, version control and development. Other programming topics are related to web and cloud development and system and hardware programming.