Click here to Skip to main content
15,890,512 members
Home / Discussions / Algorithms
   

Algorithms

 
QuestionTrying to get additions, deletions and changes between 2 file versions Pin
Christopher Cote26-Sep-16 2:56
Christopher Cote26-Sep-16 2:56 
AnswerRe: Trying to get additions, deletions and changes between 2 file versions Pin
Peter_in_278026-Sep-16 17:41
professionalPeter_in_278026-Sep-16 17:41 
GeneralRe: Trying to get additions, deletions and changes between 2 file versions Pin
Christopher Cote5-Dec-16 3:12
Christopher Cote5-Dec-16 3:12 
QuestionCompress items of size based on width and height Pin
jkirkerx20-Sep-16 13:59
professionaljkirkerx20-Sep-16 13:59 
SuggestionRe: Compress items of size based on width and height Pin
Maciej Los26-Sep-16 4:44
mveMaciej Los26-Sep-16 4:44 
AnswerRe: Compress items of size based on width and height Pin
Maciej Los26-Sep-16 12:01
mveMaciej Los26-Sep-16 12:01 
GeneralRe: Compress items of size based on width and height Pin
jkirkerx27-Sep-16 7:46
professionaljkirkerx27-Sep-16 7:46 
QuestionRe: Compress items of size based on width and height [Modified] Pin
Maciej Los27-Sep-16 8:39
mveMaciej Los27-Sep-16 8:39 
jkirkerx[^] wrote:
I should just hire someone to write this for me.


Jim, never give up! There's a ton of members ready to help you (at least me).

Seems, you forgot to use loop!
VB.NET
If (item.Qty>2) Then
    Do While (item.Width > item.Height)
        'You have to have at least 3 units to do this
        item.Width -= p.Width * 3
        item.Height += p.Height;
    Loop
End If

Am i right?

modified 28-Sep-16 2:03am.

AnswerRe: Compress items of size based on width and height [Modified] Pin
jkirkerx27-Sep-16 10:42
professionaljkirkerx27-Sep-16 10:42 
GeneralRe: Compress items of size based on width and height [Modified] Pin
Maciej Los27-Sep-16 21:41
mveMaciej Los27-Sep-16 21:41 
GeneralRe: Compress items of size based on width and height [Modified] Pin
jkirkerx28-Sep-16 6:36
professionaljkirkerx28-Sep-16 6:36 
GeneralThis is what I released today for production testing Pin
jkirkerx30-Sep-16 7:26
professionaljkirkerx30-Sep-16 7:26 
GeneralRe: This is what I released today for production testing Pin
Maciej Los4-Oct-16 9:22
mveMaciej Los4-Oct-16 9:22 
GeneralRe: This is what I released today for production testing Pin
jkirkerx4-Oct-16 9:30
professionaljkirkerx4-Oct-16 9:30 
GeneralRe: This is what I released today for production testing Pin
Maciej Los4-Oct-16 9:34
mveMaciej Los4-Oct-16 9:34 
GeneralRe: This is what I released today for production testing Pin
jkirkerx4-Oct-16 9:37
professionaljkirkerx4-Oct-16 9:37 
QuestionJoin lines text file using binary difference Pin
muttleychess1-Sep-16 5:34
muttleychess1-Sep-16 5:34 
AnswerRe: Join lines text file using binary difference Pin
Gerry Schmitz1-Sep-16 6:13
mveGerry Schmitz1-Sep-16 6:13 
GeneralRe: Join lines text file using binary difference Pin
muttleychess1-Sep-16 6:38
muttleychess1-Sep-16 6:38 
GeneralRe: Join lines text file using binary difference Pin
Gerry Schmitz1-Sep-16 6:50
mveGerry Schmitz1-Sep-16 6:50 
GeneralRe: Join lines text file using binary difference Pin
muttleychess1-Sep-16 7:49
muttleychess1-Sep-16 7:49 
GeneralRe: Join lines text file using binary difference Pin
Gerry Schmitz1-Sep-16 8:43
mveGerry Schmitz1-Sep-16 8:43 
QuestionConsesus algorithms Raft and Paxos comparison question Pin
Member 1270735628-Aug-16 1:40
Member 1270735628-Aug-16 1:40 
AnswerRe: Consesus algorithms Raft and Paxos comparison question Pin
Richard MacCutchan28-Aug-16 1:45
mveRichard MacCutchan28-Aug-16 1:45 
GeneralRe: Consesus algorithms Raft and Paxos comparison question Pin
Member 1270735628-Aug-16 3:14
Member 1270735628-Aug-16 3:14 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.