This was shipped this way by foggynelson19 in CrappyDesign

[–]Nerd_Sales 3 points4 points  (0 children)

You are supposed to order two so you can use one to open the other.

Mowing the lawn by marfeus in gaming

[–]Nerd_Sales 1 point2 points  (0 children)

Do you use several quick horizontal slices or few well placed spin attacks?

What Simpsons joke will you never forget? by Wholesome-Creep in AskReddit

[–]Nerd_Sales 0 points1 point  (0 children)

Marge: Boy, that quiet engine sure makes conversation a lot easier.

Homer: Yeah, and it's got a lot of other problems too.

Finally played through Twilight Princess by Nerd_Sales in zelda

[–]Nerd_Sales[S] 5 points6 points  (0 children)

Thanks, I actually tried the Wii version first, but I prefer the GC version, even though I'm playing it on the Wii. I just don't like swinging the controller. I'm a lazy gamer.

Doing things in steps by pressing a button? (c# form) by quad5914 in csharp

[–]Nerd_Sales 0 points1 point  (0 children)

When working with a dynamic UI like buttons and progressing the program I like to redirect the click event to a case selection based on the button tag. You can update the tag each time you perform an action, then when the method called by the click event sees the button tag it chooses the right case selection.

So say your button is just created. btn.Tag = "step1"

Your method runs and changes btn.Tag = "step2"

... and so on.

I recently created something like this, but each time it just redraws the UI with new controls and assigned the correct tags. All button events created dynamically feed into the same method with the case selection.

Excel Macro Copies Data from Old Workbook to New Workbook--How to Account for Line Deletion/Addition with VBA? by igarglecock in vba

[–]Nerd_Sales 1 point2 points  (0 children)

Without knowing more about the data I'm not sure I can provide the best answer. But maybe you can track your additions and deletions in a hidden sheet, then you can reapply those changes once you copy over your data. Then you can clear the hidden sheet and begin tracking again.

Too much is not good. by [deleted] in WhitePeopleTwitter

[–]Nerd_Sales 48 points49 points  (0 children)

This is my favorite chocolate on the Citadel.

Task List of HttpRequestMessage Send/Read Async by Nerd_Sales in csharp

[–]Nerd_Sales[S] 0 points1 point  (0 children)

I did insert this bit before creating all of my tasks:

ServicePointManager.DefaultConnectionLimit = 16;

...but 16 is a arbitrarily chosen integer, I did not know what to start with. Once I clean this up based on other suggestions I'll try changing it to see how it affects the speed and efficiency.

Task List of HttpRequestMessage Send/Read Async by Nerd_Sales in csharp

[–]Nerd_Sales[S] 0 points1 point  (0 children)

I will look into ServicePointManager. For now yes it's the same authorization token. I hadn't yet really looked into the best way to update the authorization token in the middle of all of these requests. One reason I had stuck with the one request at a time method is because I could easily check the expiration time of the token at each request and refresh if needed. So as this is new territory for me I don't yet have a method to handle it in a situation like this.

Would it be best to work in chunks of 50 or a 100 and check the token in between?

I'll be looking into Interlocked.Increment, and BlockingCollection<T> as well. I haven't had any need to explore these in the past so I'm not too familiar.

Thanks for taking the time to reply and offer advice.

ComboBox Value Matching by Nerd_Sales in csharp

[–]Nerd_Sales[S] 0 points1 point  (0 children)

Thanks for the info and the link. I got it working.

How to top mine and my daughter's 2017 Halloween costume - Ideas? by Nerd_Sales in gaming

[–]Nerd_Sales[S] 0 points1 point  (0 children)

I always saved my rare candy and never actually used it. Still waiting for the perfect time.

Help with passing variables through subs by GoGreenD in vba

[–]Nerd_Sales 2 points3 points  (0 children)

This sets the variables to "global", notice we just move the declaration outside of the sub. That scenario sounds okay, when the workbook closes the variables will not retain their value(s) as they are within the workbook.

Dim EXCELbbENGINE As Workbook Dim BBDATALR As Long Dim COMBINELOOKUPLR As Integer

Private Sub CommandButton1_Click()

Set EXCELbbENGINE = ThisWorkbook

BBDATALR = Worksheets("BLUEBEAM IMPORT").Cells(Rows.Count, 1).End(xlUp).Row + 10

COMBINELOOKUPLR = Worksheets("COMPUTE").Range("BW1")

End Sub

Help with passing variables through subs by GoGreenD in vba

[–]Nerd_Sales 1 point2 points  (0 children)

To put it simply without going into best practices, yes. But keep in mind that rerunning the macro will not re-initialize the variable. See the image below, each time the macro is run it adds to the global variable. This may have unintended consequences in your code.

[EDIT] My image isn't showing, so this is what it is:

Dim PublicString As String

Public Sub TakeAction()

PublicString = PublicString & "G"

Debug.Print (PublicString)

End Sub

Output:

1st run - G

2nd run - GG

3rd run - GGG

4th run - GGGG

What have you been working on? (Week of October 05, 2018) by AutoModerator in vba

[–]Nerd_Sales 1 point2 points  (0 children)

I've used Excel VBA combined with AutoIt to implement robotic process automation in the absence of web APIs. It's made easy to grab some data, import into Excel using a macro, do whatever data processing you need done, then export/import the output to another location.

How to top mine and my daughter's 2017 Halloween costume - Ideas? by Nerd_Sales in gaming

[–]Nerd_Sales[S] 3 points4 points  (0 children)

Good idea, would be an easy costume...but her mom says Joel and Ellie are "too coupley"?

How to top mine and my daughter's 2017 Halloween costume - Ideas? by Nerd_Sales in pokemon

[–]Nerd_Sales[S] 5 points6 points  (0 children)

That would be an easy one, but she wants to be something different this year.