thewrongstuff95

u/thewrongstuff95


r/freebsd•

Hi all, I have been having issues when using Firefox with my mouse. As a little background, I use compton and bspwm.

When I use my mouse in Firefox, the action only occurs after I move my mouse. For example, if I right click a link, and click "Open in new tab", the new tab will only be opened after I move my mouse. Same thing occurs when I click the new tab button or the tab close button.

Any ideas on how to fix this or find the root cause?

20

r/esp8266•

Hi all, I was hoping that I could get your opinions on errors that I have been encountering while developing using the Arduino SDK.

Right now I have a project that sets up provisioning using the WiFiManager library and then sends POST and GET requests to a server using WiFiClientSecure. Now this program is becoming sizeable and as it grows in size, I am running into more and more CPU exceptions such as Exception 3 and Exception 9 when accessing 2D arrays of C strings which according to this table indicates that I am incorrectly accessing memory. I am wondering if this is a user error or just a side effect of

54

r/learnjavascript•

NOTE: I don't know if this post belongs here

I am connecting an IoT device to an Android device over WiFi to provision it and while the provisioning process is under way it won't have internet access through WiFi.

I provisioning is done through a web page hosted by the IoT device. The problem I am having is that I want to send some GET requests to a public API using XMLHttpRequest and I keep getting the error ERR_CONNECTION_REFUSED (I am assuming because it is trying to use my WiFi connection.

Is there any way in JavaScript to force this GET request to use the Cell data connection instead of WiFi?

22

r/esp8266•

Hey guys, I am using the Adafruit HUZZAH and I am trying to setup the device to use soft AP mode and send a webpage to a client to provision it.

So far I can access the webpage, but I am having trouble getting the POST/GET requests to work when the form is submitted and I was hoping someone new of some example code that implements this feature.

EDIT: I will be using https://github.com/tzapu/WiFiManager as it has all the functionality I need.

36

r/freebsd•

The version of arduino in ports is rather old and doesn't support a board I am working on. I tried building and running Arduino (using this guide) after cloning it from GitHub but due to the fact that it bundles Linux binaries, I couldn't get it to work. Is it within a reasonable amount of effort to get it working on FreeBSD or should I just use Linux?

14

r/archlinux•

Hi guys, I hope that you guys could come up with an easy fix for this or some steps I could take in resolving this.

I am using pkgbuilder to install the arduino package from the Arch AUR. The problem is that upon checking the dependencies, I get the following error:

==> ERROR: Failed to fulfill package dependency requirement: java-runtime=8 (Package: arduino-1:1.6.12-1)

I do have the java runtime installed because if I type java --version, I get

openjdk version "1.8.0_102"
OpenJDK Runtime Environment (build 1.8.0_102-b14)
OpenJDK 64-Bit Server VM (build 25.102-b14, mixed mode)

How is it checking if I have the runtime installed and what would be the best way to

02


r/linuxquestions•

I have 8 GB of RAM installed on my laptop as well as an SSD installed if that matters. I never setup swap space because the arch linux install guide argued that it's not very useful with 8 GB of RAM. I have a headless vm running on my machine with 2 GB of RAM allocated for that. I also have firefox and Spotify running. Anyway over time my ram gets all eaten up and xorg crashes. I found this solution: http://www.hskupin.info/2010/06/17/how-to-fix-the-oom-killer-crashe-under-linux/

Is that the recommended way to deal with the problem?

If I can't find a good solution in software, I will probably just buy more RAM.

023



r/learnjavascript•

Hey all, I am running into an issue that I hope can be solved in a reasonable manner.

I created a popup tooltip in JavaScript which is displayed when text on a page is highlighted. The problem I am having is that when the tooltip is clicked, the highlight disappears which I want to prevent. Things I have tried (and failed):

  • Saving the selection with document.getSelection()
  • Using Event.stopPropogation() in the tooltip to stop the click from propogating
  • Using an iframe for the tooltip (this worked but I couldn't successfully add child elements to the iframe in Firefox)

I want to know if there is either a better way to solve my problem, or learn how to create and modify iframes prope

44

r/learnjavascript•

I am trying to dynamically change the styling of a Selection element and I know that I can use the following:

::selection {
    background: yellow;
}
::-moz-selection {
    background: yellow;
}

At least in Firefox, I cannot modify either of these in JavaScript. Instead I had to either insert an inline CSS rule in the <head> element or use CSSStyleSheet.insertRule(). The problem is that these methods don't seem to modify any existing highlight when the new rule is added. Instead they only affect future highlights.

Is there any way to modify the styling of an existing highlight?

EDIT: Here is a codepen illustrating my issue: http://codepen.io/anon/pen/Myjw

22


r/MotoX•

This might be a stupid question, but when calling someone, I can't hear anything (the audio is muted) unless I put the phone on speaker mode or I connect headphones to it. The other person can hear me fine regardless. Is there some setting I screwed up or is this some sort of bug?

10