ML
    • Recent
    • Categories
    • Tags
    • Popular
    • Users
    • Groups
    • Register
    • Login
    1. Topics
    2. thwr
    3. Posts
    • Profile
    • Following 1
    • Followers 5
    • Topics 65
    • Posts 3,360
    • Groups 0

    Posts

    Recent Best Controversial
    • RE: VBA Hint Needed - Change Way An Existing Project Grabs Data

      Easier to read:

      Sub IMPORT_ALL_INFORMATION()
          REM Set variables
          Dim file_in As Long
          Dim strInput As Variant
          Dim i As Integer
          Dim j As Integer
          Dim l As Integer
          Dim sTmp As String
          Dim sJob As String
          Dim sSchedPath As String
      
          REM end setting variables
          Sheets("REPORT").Select
          Range("C2").Select
      
          sSchedPath = "C:\Temp"
          Call apiCopyFile("\servername\Applications\Schedule\schedule-s\schedule, S.xls", "C:\Temp\schedule, S.xls", 0)
          dteStart = Application.Sheets("Report").Range("$G$27").Value
          dteEnd = Application.Sheets("Report").Range("$J$27").Value
          
          REM    First data row of schedule, S.xls
          l = 4 
          
          REM    First job row of Plate & Bar Spreadsheet
          j = 2 
      
          Do Until CDate(GetDate(GetValue(sSchedPath, "schedule, S.xls", "LOG (2)", "N" & CStr(l)))) >= dteStart
              l = l + 1
              
              REM    Changed from 754 to 854...may be total jobs for year...went close to 800 jobs this year . BAW
              If l = 854 Then
                  MsgBox ("Hello")
              End If
      
              sTmp = Trim$(GetValue(sSchedPath, "schedule, S.xls", "LOG (2)", "N" & CStr(l)))
      
              If sTmp = "0" Or Len(sTmp) = 0 Or sTmp = "HOLIDAY" Then
                  l = l + 1
              End If
          Loop
      
          Do
              sJob = ParseJob(GetValue(sSchedPath, "schedule, S.xls", "LOG (2)", "B" & CStr(l)))
              REM    Debug.Print sJob
              vJobFolders = Split(FindJobDir(strpathtofile & sJob), ",")
              For i = 0 To UBound(vJobFolders)
                  On Error GoTo ErrorExit
                  Application.Sheets("report").Range("C" & CStr(j)).Value = vJobFolders(i)
                  j = j + 1
                  
                  REM file number
                  file_in = FreeFile 
                  
                  strFileToOpen = strpathtofile & vJobFolders(i) & strFilename
      
                  If Dir(strFileToOpen) <> "" Then
                      Open strFileToOpen For Input As #file_in
                      Put_Data_In_Array (file_in)
                      Organize_Array_For_Print
                      Close #file_in REM    close the file
                  End If
                  ErrorExit:
      
              Next i
      
              l = l + 1
              sTmp = Trim$(GetValue(sSchedPath, "schedule, S.xls", "LOG (2)", "N" & CStr(l)))
              If sTmp = "0" Or Len(sTmp) = 0 Or sTmp = "HOLIDAY" Then
                  l = l + 1
              End If
              
          Loop Until CDate(GetDate(sTmp)) >= dteEnd
          Sheets("REPORT").Select
      
      End Sub
      
      Function GetValue(path, file, sheet, ref) As String
          REM    Retrieves a value from a closed workbook
          Dim arg As String
          Dim pos As Integer
          
          REM    Make sure the file exists
          If Right(path, 1) <> "" Then 
              path = path & ""
          End If
          
          If Dir(path & file) = "" Then
              GetValue = "File Not Found"
              Exit Function
          End If
          
          REM    Create the argument
          arg = "REM " & path & "[" & file & "]" & sheet & "REM !" & _
          Range(ref).Range("A1").Address(, , xlR1C1)
          REM    Execute an XLM macro
          GetValue = ExecuteExcel4Macro(arg)
          REM    Strip Any time from beginning of Date string
          pos = InStr(GetValue, ":")
          If pos <> 0 Then GetValue = Mid$(GetValue, pos + 3)
      End Function
      
      posted in IT Discussion
      thwrT
      thwr
    • RE: SOB, my TV died, and the new one isn't here yet.

      It's very unlikely a single IC died. Everything around it like capacitors is what I would check. Anyway, that sucks 😉

      My now 6 years old Toshiba 42" suddenly stopped decoding DVB-C exactly 1 week after the end of the extended 5Y warranty period. I was really p*ssed....

      posted in Water Closet
      thwrT
      thwr
    • RE: Terminals & VNC

      @BBigford Features: http://mobaxterm.mobatek.net/features.html

      MobaXterm will support that, and much more. Macros, SSH tunnel (local and remote port forwarding), a handy SFTP browser which always points to the current directory in your sh session, PuTTY keygen, X11 forwarding and even simple things like arranging and undocking windows (something very simple I'm missing from most other clients)

      I think they are using PuTTY behind the scenes, but thats just a wild guess. IMHO, that tool is far superior compared to mRemoteNG (which isn't bad at all).

      posted in IT Discussion
      thwrT
      thwr
    • RE: What Are You Doing Right Now

      @travisdh1 Agree on knowing history.

      But do you still pickle all your meat because it was done this way in the past? Or are you using a fridge today? PIC isn't bad at all, I do just prefer something else today. The PIC in the example above wasn't my choice and the project suffered from it. Took me two or three more weeks to hack (and __inline) around some issues like the very limited stack size. Here's some good reading about it: http://embeddedgurus.com/stack-overflow/2009/04/pic-stack-overflow/

      posted in Water Closet
      thwrT
      thwr
    • RE: Protocol of choice (AMQP, MQTT, STOMP, ...)

      @tonyshowoff said in Protocol of choice (AMQP, MQTT, STOMP, ...):

      XMPP too can be used for this, but it's verbose, and in fact I pretty much hate XML with a passion. Anyway, to answer the question I like MQTT because of how light weight it is, but it is a binary protocol so "light weights" need not apply 😉

      Though AMQP and STOMP are easier to deal with, if you can do XMPP or HTTP, you can do those with little effort.

      You are not alone 😉 Wouldn't say "hate", but still PITA. But there's no real alternative when it comes to exchanging complex and strongly typed data. JSON is OK most of the time.

      I'm using AMQP - which is awesome IMHO - with JSON/XML payload and / or a custom command interface most of the time. Simple example: To get a temperature reading from a DS18B20 attached to a Pi it would look like "get|temperature|sensorid|degreecelsius" (just an example for pulling data, normally they are posting readings without getting asked first).

      Are you still able to use subscriptions and exchanges with MQTT? Haven't tried MQTT yet, but I like the concept and it seems to be much more lightweight compared to AMQP.

      posted in IT Discussion
      thwrT
      thwr
    • RE: Unable to install .Net 3.5 on a new Windows 10 install

      @JaredBusch yeah, sorry, realized it the second after hitting "submit".

      Still not able to install? Any errors in the event log?

      posted in IT Discussion
      thwrT
      thwr
    • RE: Unable to install .Net 3.5 on a new Windows 10 install

      dism sxs fails? That's ugly...

      Have you seen this (blocking GPO)? http://superuser.com/questions/946988/cant-install-net-3-5-on-windows-10#comment1449644_947660

      Edit: Won't help I think. GPO is about loading additional dependencies directly from Windows Update. Shouldn't relate to offline sxs.

      posted in IT Discussion
      thwrT
      thwr
    • Protocol of choice (AMQP, MQTT, STOMP, ...)

      For a robust and stateless network of sensors and actors, what is your preferred platform agnostic protocol of choice - and why?

      This is just for discussion. I'm not looking for something specific myself but would like to hear your opinions.

      posted in IT Discussion iot protocols amqp mqtt
      thwrT
      thwr
    • RE: What Are You Doing Right Now

      @MattSpeller PIC too. Can't talk about the project due to NDA. Was something in civil avionics.

      I don't like PICs anyway, bugs here and there and the design is a bit ugly, IMHO. I think Atmel's are generally better.

      Renesas (former Mitsubishi Electronics)
      R8C/M16C/M32C's on the other hand are great uC's. But you can't compare uC 's to Linux on ARM, they serve different purposes.

      posted in Water Closet
      thwrT
      thwr
    • RE: What Are You Doing Right Now

      @travisdh1 let me know pls. I'm playing around a lot with odroids, cubox, pandaboards, bananapi's, beagleboards and others, depending on requirements. My preferred generic platform is the Raspberry Pi 2/3 at moment.

      posted in Water Closet
      thwrT
      thwr
    • RE: Random Thread - Anything Goes

      @dafyre yeah, probably 😉

      posted in Water Closet
      thwrT
      thwr
    • RE: Random Thread - Anything Goes

      @dafyre said in Random Thread - Anything Goes:

      @thwr said in Random Thread - Anything Goes:

      @MattSpeller said in Random Thread - Anything Goes:

      @dafyre said in Random Thread - Anything Goes:

      @DustinB3403 said in Random Thread - Anything Goes:

      @coliver ~2 for me.

      Same here. Campus has been dead quiet today.

      Exams at our campus, students need to chill out. Bathrooms are full of puke.

      I'm quite sure I don't want to use a translator for "puke"...

      Of course you do! Nothing helps a Friday go by faster than learning yet another way to say fun things!

      0_1464375959780_Screenshot_2016-05-27-21-05-00.jpg

      Thanks, I don't know how I could have survived for so long without knowing that word...

      posted in Water Closet
      thwrT
      thwr
    • RE: Random Thread - Anything Goes

      @MattSpeller said in Random Thread - Anything Goes:

      @dafyre said in Random Thread - Anything Goes:

      @DustinB3403 said in Random Thread - Anything Goes:

      @coliver ~2 for me.

      Same here. Campus has been dead quiet today.

      Exams at our campus, students need to chill out. Bathrooms are full of puke.

      I'm quite sure I don't want to use a translator for "puke"...

      posted in Water Closet
      thwrT
      thwr
    • RE: Random Thread - Anything Goes

      @dafyre It's Friday, what do you expect? 😉

      posted in Water Closet
      thwrT
      thwr
    • RE: What Are You Doing Right Now

      Playing with Raspberry Pi's, video streaming and software defined radio (SDR)
      0_1464373106546_DSC_0023.JPG

      posted in Water Closet
      thwrT
      thwr
    • RE: What Are You Doing Right Now

      Just flashed another Raspbian Jessy...

      0_1464347513540_win32diskimager.png

      TO MY USB THUMBDRIVE, not the microSD card. Still have backups, but that sucks. Stupid me. Has been a long week.

      posted in Water Closet
      thwrT
      thwr
    • RE: Weekend Plans

      Probably visiting family and hopefully my 7 weeks old niece

      posted in Water Closet
      thwrT
      thwr
    • RE: Linux Junior Needed in Bucharest

      @scottalanmiller So I should better not tell anyone about my 30 paid days per year? 😉

      posted in Job Postings
      thwrT
      thwr
    • RE: What Are You Doing Right Now

      @scottalanmiller said in What Are You Doing Right Now:

      How can so many not know SAN when every thread on the community is about it!!!

      That's what I thought...

      posted in Water Closet
      thwrT
      thwr
    • RE: What Are You Doing Right Now

      What does SAN stand for?
      70% of IT pro's got this right

      I think you should have at least heard about that...

      posted in Water Closet
      thwrT
      thwr
    • 1
    • 2
    • 161
    • 162
    • 163
    • 164
    • 165
    • 166
    • 167
    • 168
    • 163 / 168