Hot answers tagged

34

Based on your statements that you can confirm during provisioning that the manufacturer MAC is in fact unique within the network of devices you are creating (which is not in and of itself a certainty, even though it should be), you are probably fine proceeding, but consider the following questions: Are you using the MAC for security checks (authentication, ...


9

MAC addresses are not unique There can be, and will be duplicates with MACs. There are several reasons for that, one being that they need not be (globally) unique. The MAC must be unique on the local network, so ARP/NDP can do its job, and the switch knows where to send incoming datagrams to. Usually (not necessarily) that precondition is fulfilled and ...


9

The "box" in your text snippet contains these Unicode characters that repeat a bunch of times: LEFT-TO-RIGHT MARK (U+200E) RIGHT-TO-LEFT MARK (U+200F) There are ordinary spaces interspersed to give the box some width. These marks, called control characters, don't take up any width and are practically invisible. Your mobile phone and/or the app involved ...


8

I know the question is older but wanted to let it be known that this is indeed possible. It is easy to indent just a selection of markup. Select the text Go to Menu item Markup > Utilities > Format Check the "Selection Only" option The keyboard shortcut for the command is Cmd + Shft + Opt + F.


8

So what in the world is wrong with my code? To check your shell scripts you can use ShellCheck. Here is the output from checking your code: You are missing a few fis. Adding the fis generates a new error: drivetest() appears to be missing a closing } Correcting this leaves you with a few warnings (which I will leave for you to fix): Corrected code: #!/...


8

If rounding is required, you can also try this formula =ROUND(A1,INT(2-LOG(A1))).


7

Try, In B2 formula copied down : =0+LEFT(A2,MIN(FIND({1,2,3,4,5,6,7,8,9},A2&1/17))+1) Edit : 1] 1/17 =0.0588235294117647 which is called Pandigital number that contains digits from 0 to 9 2] A2&1/17 is a short form of A2&1234567890 in which to shorten the formula length. 3] Other Pandigital number can also be used : A2&5^19 A2&7^18 A2&...


5

Gclid is a globally unique tracking parameter (Google Click Identifier) used by Google to pass information back and forth between Google AdWords and Google Analytics. If you enable URL auto tagging in Google AdWords, Google will append a unique? gclid parameter on your destination URLs at run-time. EDIT: BD? = is some form of url encoding. CM_MMC These ...


5

This can happen if your BCS is corrupt, try: Insert your install disc Click on Repair your computer after you go through language, time etc. Select your Windows installation drive, which is usually C:\, and click Next Choose Command Prompt when the System Recovery Options box appears Write the following command and press afterwards: bootrec /rebuildbcd ...


5

I believe you want this function! ShowFuncName() let cursor_pos = getpos('.') echohl ModeMsg normal! [[k echo getline('.') echohl None call setpos('.', cursor_pos) endfunction The normal command executes [[k in normal mode moving the cursor to the function definition. Then it prints the line the cursor is on. The cursor position ...


5

In cmd.exe scripts, comments are added using REM (or @REM to forcefully disable echoing). rem This is a comment. While not technically a comment prefix, :: can also be used the same way (it defines a "goto" label that remains unused): :: This is a comment. Caution: When labels are used as comments within a bracketed code block or for command, ...


4

Because of the way percents are used for variables it messes up what you are trying to do. One way around this is with delayed expansion. You also have to escape the percent by putting two of them in a row %%. Something like: Setlocal EnableDelayedExpansion set _name=s-t-r-i-n-g set _name=!_name:-=%%_%%! echo %_name%


3

Ctrl+Alt+B does that (shows in “Search” drop down also).


3

For html files I could find this functionality under Tools -> Filters -> Tidy HTML. Notice that you need HTML Tidy installed1. I personally prefer to also have the file auto-indented: Edit -> Preferences -> External filters -> Tidy XML: |tidy -i|. Additionally, for xml files you can add a new "Tidy XML" label with corresponding command |tidy -xml -i|. 1 In ...


3

There is no Application.WorksheetFunction.If() Even if there was you would still need to push extra quotes into the test part of the if. for example if the fx resolved to "test" and condition was "=test" the resultant string would be "test = test" Put that So use Evaluate instead. We need to parse the string in a certain format for Evaluate. we need ...


3

This sounds like a permissions error (oddly enough). Try running VSCode using administrator rights, and then update the program and see what happens upon restart.


3

Use ffmpeg -i video -vf drawbox=t=fill:enable='gt(mod(t,60),57)' -c:a copy out.mp4 The drawbox filter defaults to black color and a 3-pixel hollow box surrounding the whole frame. I've set the thickness parameter to fill so that a solid box is drawn. The enable option activates the filter only for times which are 3 seconds less than a multiple of 60 i.e. ...


3

You should have a look at the following references : #IfWin[Not]Active / #IfWin[Not]Exist The WinTitle Parameter & the Last Found Window SetTitleMatchMode According to your info the following three are all possible : SetTitleMatchMode, 2 #IfWinActive Avid Media Composer #IfWinActive ahk_class Qt5QWindowIcon #IfWinActive ahk_exe AvidMediaComposer ...


2

I just came across this extension for chrome, firefox, and thunderbird, Markdown here: http://markdown-here.com/ It gives markdown and latex support to writing emails in thunderbird or gmail in your browser. It also has support for syntax highlighting in a variety of languages. I tried it out with sending some Matlab code, and it worked really well! I ...


2

Although I'm still open to better suggestions, I've found some solutions myself. the thunderbird extension pasteCode If you're using vim, you can use :TOhtml, which will generate a coloured html-version of your code


2

What you search is the pipestatus: dpkg -i ... | dialog ... echo ${PIPESTATUS[0]} # this contains the exit code of the dpkg command. See that example: $ false | true | false | true $ echo ${PIPESTATUS[@]} 1 0 1 0


2

You can't do this with Stylish on YouTube; you need a userscript or extension, because it is a matter of javascript/page state, not (just) CSS. There's several extensions out there already. I use YouTube Center -- which is available as a userscript and/or an extension on most major browsers.


2

To use RGB you simply use Sheet1.Cells(i, 1).Interior.Color = RGB(0,255,0) You can then review this site, which shows you the color index, the HEX and the RGB equivalent of each http://dmcritchie.mvps.org/excel/colors.htm So, in the example above this is the same as Color.Index 4 (green)


2

Assuming you have SSH access, you can use grep: grep -r "text you're looking for" /path/of/your/website You can add the -i flag for case insensitive search. You can add -n to get the line number of that occurrence.


2

Don't be frustrated. It's "Passing by reference" Vs. "Passing by value". I just saw one of the best explanations at StackOverflow: Say I want to share a web page with you. If I tell you the URL, I'm passing by reference. You can use that URL to see the same web page I can see. If that page is changed, we both see the changes. If you delete the URL, all ...


2

Lock the cells to prevent Selection or Modify Protect the worksheet Have the UserForm code: a. unprotect the worksheet b. unlock the cell c. update the cell d. relock the cell e. reprotect the worksheet.


2

Figured it out. Setting "trim_automatic_white_space" to false (true by default) creates the behavior I want. Nice to know there was so much thought put into this editor as to include that option.


2

Look at schtasks.exe /? For example, to create a task that starts notepad five minutes after you log on, you can do this (only as an administrator, unfortunately): schtasks /create /tn "\Automatic Notepad" /sc onlogon /delay 0005:00 /ru YOU /it /tr notepad.exe Replace "YOU", of course. There is one problem: This will start the program when any user logs ...


2

It's some obfuscated PHP code. I didn't bother (and don't see a use) to look any further than that. You can execute it from command line under an unprivileged account (or even better - from a VM so you can deny it network access - potentially to a database - in case it has embedded credentials) and see what happens. Yet I suggest you to try to deobfuscate ...


2

Hope this helps: Dim nMyRes : nMyRes = 20 MsgBox "nMyRes before loop: " & nMyRes For i = 0 To nMyRes-1 If i = 5 Then nMyRes = nMyRes - 1 If i = 10 Then nMyRes = nMyRes - 1 Next MsgBox "nMyRes after loop: " & nMyRes This code snippet works fine. In your case you have an object (searchResult) and I'm not sure you can change it. That is why ...


Only top voted, non community-wiki answers of a minimum length are eligible