Search:

Type: Posts; User: InertiaM

Search: Search took 0.05 seconds.

  1. Replies
    0
    Views
    3,530

    Holt-Winters Triple Exponential smoothing

    I am trying to code Holt-Winters Triple Exponential smoothing in VB.NET.

    http://www.itl.nist.gov/div898/handbook/pmc/section4/pmc435.htm

    The part I am struggling with is "alpha, beta and gamma...
  2. Replies
    4
    Views
    723

    VS 2010 Re: Calculating numbers

    It's actually possible in 2005, and may be possible in other versions as well :-


    Dim TextBoxText As String = "5 4.1 6.23 0 0 7 7.924"

    Dim Formula as String =...
  3. Replies
    16
    Views
    1,973

    Re: Punch Holes out of a Rectangle

    Draw the circles, then draw the rectangle? :D
  4. Replies
    2
    Views
    2,409

    Re: GDI Matrix transformations

    Thanks boops, I'll give that a try :)
  5. Replies
    2
    Views
    2,409

    GDI Matrix transformations

    I am drawing on the screen with Y direction as up the screen, rather than down, using the following code :-


    Private mYFlip As New Matrix(1, 0, 0, -1, 0, 0)

    With e.Graphics
    ...
  6. Replies
    0
    Views
    720

    UDP Multicasting

    I am trying to send messages to multiple PCs using UDP MultiCasting. The code I am using is essentially the same as this UDP chat

    The problem I have is that I only ever seem to receive four...
  7. VS 2008 Re: network program with access works on PC but not on Thin Client?

    My notes appear to suggest a Caspol issue, with the Ole not being allowed access to the shared drive where the database is stored.

    In the example below, F and O are the shared drive letters. ...
  8. VS 2008 Re: network program with access works on PC but not on Thin Client?

    I have the same problem with my t5730s. It's either a caspol, or a gacutil issue.

    All my code is at work - if you havent solved it by Monday, I'll send it to you.
  9. Replies
    1
    Views
    1,969

    GDI+ Mirrored Text

    I am trying to draw on the screen, with Y being positive from the bottom up - like a normal graph.


    Private mYFlip As New Matrix(1, 0, 0, -1, 0, 0)

    Private Sub frmMain_Paint(ByVal sender As...
  10. Replies
    47
    Views
    2,101

    Re: F1 Predictions !

    Pity Toyota arent competing this year. It would have been great to see them flying past whilst everyone else braked :) :)
  11. Replies
    8
    Views
    631

    Re: Educating the Public

    So is it enough to change to WPA as my router doesnt support WPA2?
  12. Re: Whats the secret, for the high concentration level ???

    I find coffee helps to avoid:-

    http://ircamera.as.arizona.edu/NatSci102/images/brain_full.gif
  13. Replies
    5
    Views
    6,742

    Re: Cutting Stock problem

    Thanks jemidiah :)

    I think I have found a solution by approaching it from the opposite direction. Assuming 9 is the shortest length, and 1 is the longest length :-

    9,9,9,9 - fits
    9,9,9,8 -...
  14. Replies
    5
    Views
    6,742

    Re: Cutting Stock problem

    In the example:-

    there are 13 lengths
    the longest length 1 (2200mm) fits 2.54 times
    the shortest length 13 (1380mm) fits in 4.05 times

    So the maximum number of pieces is 4, and the minimum is...
  15. Replies
    5
    Views
    6,742

    Cutting Stock problem

    http://en.wikipedia.org/wiki/Cutting_stock_problem

    There is an example in this article. In summary, assume you have a bar 5600mm long. You must cut various sizes from the bar, ranging from 22 @...
  16. Thread: Delegates

    by InertiaM
    Replies
    1
    Views
    562

    VS 2005 Delegates

    I've only ever used delegates before when trying to update a ProgressBar etc.
    Unfortunately, I now have to write an application that communicates with a third party DLL written by a coder who has no...
  17. Replies
    49
    Views
    3,777

    Re: Improving Tyres for winter

    Precisely. Try it sometime. Find out where the limit is, and get used to what happens when the car breaks away from you - but at low speed, not at high speed. Drive round like that for a couple of...
  18. Replies
    49
    Views
    3,777

    Re: Improving Tyres for winter

    Some simple cheap solutions that I have found seem to work for me:-

    1. Check the tread depth on your tyres. Assuming you have the same tyre size front to back, put the tyres with themost tread...
  19. Replies
    5
    Views
    1,179

    VS 2008 Re: How to perform a DNS query

    Would this help?
  20. Replies
    2
    Views
    447

    VS 2005 Re: SUM of Textboxes

    I would also suggest turning Option Strict On, as


    Dim rc As Integer = CType(FormView1.FindControl("rental_chargeTextBox"), TextBox).Text

    is technically not a valid line.
  21. Replies
    14
    Views
    2,120

    Re: Barcoding Procedures

    @Jenner - It was probably this site

    PDF417 isnt really a genuine 2D barcode, it's more like a multiple-stacked 1D. DataMatrix (and others) are proper 2D barcodes.
  22. Replies
    11
    Views
    875

    Re: (Serious) Coach is home from the Hosp

    Look on the bright side - if you break another vertebra, you already have a spare one for them to install :)
  23. Replies
    35
    Views
    2,269

    VS 2008 Re: insert into statement

    I may be barking up the wrong tree, but the field names that you are saving to, do not appear to match the values you are trying to assign to them (eg you are trying to save Students into Activities,...
  24. Replies
    10
    Views
    1,170

    Re: Some Co-ordinate help

    Yes, it's easy. This code should get you started :-


    Option Explicit On
    Option Strict On

    Imports SYSTEM.Drawing.Drawing2D

    Public Class Form1
  25. Replies
    10
    Views
    1,170

    Re: Some Co-ordinate help

    Create a GraphicsPath for your Double 13 shape using the coordinates as listed - call it say gpDouble13. You can then use gpDouble13.IsVisible (571,260)
  26. Replies
    21
    Views
    1,682

    Re: NullReferenceException

    Random thought (I've had my coffee now :D) - try splitting the connection definition line down into individual parts


    Dim cmd As New SqlCeCommand
    cmd.Connection = con
    cmd.Commandtype =...
  27. Replies
    21
    Views
    1,682

    Re: NullReferenceException

    Not that it helps much (if at all), but I have just tried an ExecuteScalar on a SQLCE database with a COUNT (and no GROUP ;)) and it worked fine.

    I would check how the connection is set up.
  28. Replies
    21
    Views
    1,682

    Re: NullReferenceException

    *edit* : forget me, I obviously need coffee :)
  29. Replies
    7
    Views
    2,489

    Re: Rectangle "best fit" optimisation

    Thanks for that :thumb: Seems like your pallets are smaller than ours ;)

    One point. If I take out my first step and just rely on yours, it wont find any solutions with only portrait or landscape...
  30. Replies
    7
    Views
    2,489

    Re: Rectangle "best fit" optimisation

    Brute force may be possible, because there will be a fairly limited number of combinations.

    I've written the first step (simple row and column checking), but I'd still like suggestions.


    ...
  31. Replies
    7
    Views
    2,489

    Rectangle "best fit" optimisation

    I need suggestions :blush:

    Imagine a cardboard box 1200 x 1000. You have to place smaller boxes (325 x 225) inside the larger one. The smaller boxes can only be rotated in multiples of 90...
  32. Replies
    5
    Views
    1,096

    Re: Writing and reading a PLC

    I'd choose a Beckhoff BC9000 PLC. I've built libraries for doing most functions via Ethernet. Let me know if you need any help with this :)
  33. Re: [2005] Whatever happened to 'last position'

    Yup, it's still there. You may have to customise your IDE popups as required to give you the same effect as VB6, but it still works :)
  34. Replies
    3
    Views
    3,867

    Re: [RESOLVED] Linear regression

    I didnt actually start from the nearest point - I found a better way. Here's how I achieved it.

    Starting from the left point, I kept adding points to a list and performing a linear regression on...
  35. Replies
    3
    Views
    3,867

    Re: Linear regression

    MeasuredPoints(2).Distance = 1855
    MeasuredPoints(3).Distance = 1855
    MeasuredPoints(4).Distance = 1855
    MeasuredPoints(5).Distance = 1917
    MeasuredPoints(6).Distance...
  36. Replies
    3
    Views
    3,867

    [RESOLVED] Linear regression

    Has anyone done any linear regression algorithms in VB.NET?

    I have a laser sensor which streams distance measurements via TCP. The minimum dimension is 700mm and the maximum is 3000mm. It takes...
  37. Replies
    3
    Views
    559

    Re: [2008] Barcode scanning application

    As FastEddie said, MOST barcode scanners are keyboard based.

    To do what you want, you would be best to change to a Serial based scanner. You can then use an event when data is received, and force...
  38. Re: [RESOLVED] how to calculate EAN8 barcode checksum

    Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
    MessageBox.Show(EAN8_Checksum("5512345"))
    End Sub

    Private Function...
  39. Replies
    2
    Views
    913

    Re: Graphics Drawline Scale

    Try looking at the ScaleTransform method. Your Paint method would then look something like this :-



    If Me.rbtn25.Checked = True Then
    e.Graphics.ScaleTransform (0.25, 0.25)...
  40. Re: Database updating too late.

    I think you've missed :-



    TJ_Ida.InsertCommand.Parameters.AddWithValue("@Tjoperationid", ......)
Results 1 to 40 of 40



Click Here to Expand Forum to Full Width