Jump to content

JohnQSmith

Active Members
  • Posts

    276
  • Joined

  • Last visited

  • Days Won

    2

JohnQSmith last won the day on June 22 2013

JohnQSmith had the most liked content!

About JohnQSmith

  • Birthday July 22

Profile Information

  • Location
    Home of the Sooners

Recent Profile Visitors

355 profile views

JohnQSmith's Achievements

  1. Letting @Melba23 handle this, but off-topic about the app in the image. If you picked "B", which answer would it select?
  2. Here it is using WinHTTP as suggested by @mLipok $oHTTP = ObjCreate("winhttp.winhttprequest.5.1") $oHTTP.Open("GET", "http://api.github.com/repos/github/linguist/commits?per_page=1") $oHTTP.Send() $header = $oHTTP.Getresponseheader("Link") $numCommits = StringRegExpReplace( $header, '.*page=([0-9]+)>; rel="las.*', '$1' ) ConsoleWrite($numCommits)
  3. I'm guessing you're using CURL because you have either Cygwin or are using Windows 10's Subsystem for Linux. Here's a quick solution using that... curl --silent -I https://api.github.com/repos/github/linguist/commits?per_page=1 | grep "^Link" | sed -e 's/.*page=\([0-9]*\)>; rel=\"last.*/\1/'
  4. There is no issue with nested switch statements. You just need to use the correct syntax. You need to tell the switch command "what" you are wanting to switch. switch $A                                              ; I want to check variable $A     case "apple"                                       ; does variable $A = "apple"?         msgbox(0,"","","It's an apple")                ; tell me it's an apple     case "banana"                                      ; does variable $A = "banana"         msgbox(0,"","","It's a banana")                ; tell me it's a banana     case "car"                                         ; does variable $A = "car"         switch $B                                      ; I want to check variable $B             case "audi"                                ; does variable $B = "audi"                 msgbox(0,"","","Your car is an audi")  ; tell me it's a car and an audi             case "bmw"                                 ; does variable $B = "bmw"                 msgbox(0,"","","Your car is a bmw")    ; tell me it's a car and a bmw         endswitch                                      ; finish testing variable $B endswitch                                              ; finish testing variable $A
  5. I can't see your images, but am pretty sure your issue is sub-pixel font rendering. Try turning off "ClearType" in your display settings while running your script to make the text stay the same color.
  6. Multiply the fractional part by 60 to get minutes, then the fractional part of that to get seconds. .81818 * 60 = 49.0908 ~ 49 minutes .0908 * 60 = 5.448 seconds
  7. Take a look _PathSplit() from the File.au3 UDF. Edit: You'll have to use two iterations to first grab the RAR and then grab the PARTxx afterwards.
  8. The code provided by mikell only makes it easier to create your character array; it does not help with your problem. Perhaps you could clarify what you are trying to do and what exactly is not working as expected. From what I see, you are trying to get the raidcall program to scroll your name in some space of it's display by repeatedly updating the name field. I'm not going to install the program to try it, but your reproducer code works fine if I change your three lines of window access with a ConsoleWrite. Maybe JLogan3o13 can look at your code and "read and figure it out" and possibly provide a helpful suggestion.
  9. Try http://lmgtfy.com/?q=convert+midi+file+to+notes. Or if you are feeling adventurous, try http://cs.fit.edu/~ryan/cse4051/projects/midi/midi.html, combined with FileOpen()
  10. A year and a half later and you're still doing it.
  11. No. It's an autoincrement field that remembers the last value. So, if you start from a new database and add 100 records and then delete all of them, the next ROWID will be 101. See here... http://www.sqlite.org/autoinc.html Edit: After reading down on that page, this is not "exactly" true. Quoting from there... Which sounds pretty much exactly like what you are trying to do.
  12. Thanks for that. I didn't know about the automatic ROWID.
  13. If there is no schema, then it's really not a database; it's just a file with a .sqlite extension. How large is this "logs.sqlite" file and are you sure that it was located in the "sqlitebrowser_200_b1_win" folder that you tried opening it from? If you run sqlite3 against a file that doesn't exist, it will create a new file in the current location with the filename provided. Edit: Also, like @jchd said, try opening it in SQLite Expert or Database Browser for SQLite. They're much friendlier than the command line.
×
×
  • Create New...