Robert Moore

1

votes
0

answer
7

views

How do I setSelection after a text search?

I am attempting to add a search feature to Quill and want to highlight the text that it finds. I am having trouble getting the range index for the text it finds, and it is likely that I am not using the correct approach. So far, I get the text using getContents() and can find matches by iterating th...
Robert Moore
1

votes
4

answer
1.8k

views

Powershell Errors out correctly in ISE but doesnt in Command line execution

I am running a command in powershell ISE that was exiting out how I expected, but when I moved the code to command line to execute in different environments, I wasnt receiving the error anymore. The error only happens in ISE. I have tried to use -sta on the command line like others posted, but have...
Robert Moore
1

votes
2

answer
130

views

Python percent operator for strings not working

I have this code but it says TypeError not enough arguments for format string even though I gave it a tuple with the RIGHT amount of arguments. Can anybody help me on this? I have looked all over stack overflow and the python docs don't seem to help either. image_urls = { 'horse.jpg': 'a.jpg', 'bis...
Robert Moore
3

votes
1

answer
21.4k

views

List ALL devices on local network?

I have tried arp -a a lot and it has listed some devices, but not all of them. ifconfig shows my ip address and mac address and some other useful information, but it doesn't show all of the devices on the local network. Is there a command that shows all IP addresses?
Robert Moore
1

votes
3

answer
86

views

Concatenate two functions into one in C

How can I concatenate (or merge) two functions that take no arguments and return nothing into one function? In JavaScript I would do this: function f1() { console.log('f1 called'); } function f2() { console.log('f2 called'); } function function_concat(fa, fb) { var final = function() { fa(); fb(); }...
Robert Moore
2

votes
5

answer
104

views

Element getting unnecessary margin

As you can see, the nav element has a bit too much top padding. The links' outlines are in the right spot though, there's just that extra annoying space. Here's my code: '''+title+''' @import url(http://fonts.googleapis.com/css?family=Merriweather:400,700); html, body { margin: 0; background: #33333...
Robert Moore