I recently acquired a Lantronix UDS1100 telnet-> serial converter. It came without a wall wart / power supply.  I have an extra power supply from an old modem that I think might work, but I want to be certain.  The Lantronix's stated specs are 9-30VDC, 9-24VAC, 1.5 watt max. It doesn't mention current.  My potential replacement lists output of +12V, 2.2A.  How does one determine if this is okay or not?
Power supplies are available in a wide range of voltage and current ratings.  If I have a device that has specific voltage and current ratings, how do those relate to the power ratings I need to specify?  What if I don't know the device's specs, but am replacing a previous power supply with particular ratings?  Is it OK to go lower voltage, or should it always be higher?  What about current?  I don't want a 10 A supply to damage my 1 A device.
Converting a pointer into an integer I am trying to adapt an existing code to a 64 bit machine. The main problem is that in one function, the previous coder uses a void* argument that is converted into suitable type in the function itself. A short example:  void function(MESSAGE_ID id, void* param) {     if(id == FOO) {         int real_param = (int)param;         // ...     } }   Of course, on a 64 bit machine, I get the error:  error: cast from 'void*' to 'int' loses precision   I would like to correct this so that it still works on a 32 bit machine and as cleanly as possible. Any idea ? Which expressions can be used to close an email? At the end of written communication like emails and letters, it is customary to use a closing . Which formal and informal expressions can be used to end emails? Atheros AR9462 WiFI very unstable & package loss I'm having severe issues w/ package-loss and a generally bad connection w/in a WiFi-network at my uni. I'm usually encountering a package loss of ~50% and aborting connections which makes working w/ SaaS impossible.  I'm using Ubuntu 13.04 and my network-adapter is an Atheros AR9462.  Applying the nohwcrypt=1-option doesn't change anything.  Also very noticable: The connection works as intended in other networks; the problematic network uses WPA2 w/ MSCHAPv2.  Anyone can help my out here?  $ sudo lshw -class network  *-network UNCLAIMED             description: Ethernet controller        product: NetLink BCM57780 Gigabit Ethernet PCIe        vendor: Broadcom Corporation        physical id: 0        bus info: pci@0000:04:00.0        version: 01        width: 64 bits        clock: 33MHz        capabilities: pm msi pciexpress bus_master cap_list        configuration: latency=0        resources: memory:d3500000-d350ffff   *-network        description: Wireless interface        product: AR9462 Wireless Network Adapter        vendor: Atheros Communications Inc.        physical id: 0        bus info: pci@0000:09:00.0        logical name: wlan0        version: 01        serial: e0:06:e6:76:ba:89        width: 64 bits        clock: 33MHz        capabilities: pm msi pciexpress bus_master cap_list rom ethernet physical wireless        configuration: broadcast=yes driver=ath9k driverversion=3.8.0-22-generic firmware=N/A ip=131.173.74.130 latency=0 link=no multicast=yes wireless=IEEE 802.11abgn        resources: irq:19 memory:d3400000-d347ffff memory:9fb00000-9fb0ffff Disable storage of invisible files "._" on my cfs or smb network storage How to solve configure: error: readline library not found? I have an Ubuntu 10.04 LTS server with a minimal install that I want to compile postgres on. With the minimal install the server did not have gcc so I had to do an apt-get install gcc but now I keep getting this error from the postgres ./configure.  configure: error: readline library not found   I can't seem to find the name of the package that contains the readline library. So I have two questions.   What is the name of the package that contains readline? Is there some way given the error message above for me to find the associated package from its standard name? I may be visiting the US soon for both work (conference) and leisure (sight-seeing) but was wondering whether it is possible to pay a visit to Cuba, as I see that direct commercial flights have been restarted. From what I can tell, it is still not permitted for US citizens to travel to Cuba as tourists (from the ).  What is the legal status of European citizens - would it be permitted for me to travel as a tourist from, say, Florida to Cuba on a commercial flight? Would this cause problems for me on my return to the US?  I understand that the question has been asked before () but the situation has changed and I believe it warrants asking again. Are estimates of regression coefficients uncorrelated? Consider a simple regression (normality not assumed): $$Y_i = a + b X_i + e_i,$$ where $e_i$ is with mean $0$ and standard deviation $\sigma$. Are the Least Square Estimates of $a$ and $b$ uncorrelated? Maximum log level exceeded in Developer Console Recently I have regularly been getting the error message below when opening the Developer Console:     The Developer Console didn't set the DEVELOPER_LOG trace flag on your   user. Having an active trace flag triggers debug logging. You have 316   MB of the maximum 250 MB of debug logs. Before you can edit trace   flags, delete some debug logs.   It happens in sandbox and scratch orgs. Haven't tried in production.  This only started happening recently. It goes away after clearing the logs but comes back after a few test runs.  Also: the Debug->Clear->Log Panel action is not working for me -- the logs stay put. I can remove them using the Query Editor as described , but it's pretty tedious.  Two questions:   Does anyone know a way to prevent the logs from exceeding the max level? Perhaps by having old logs cleared out automatically? Is there a known issue with the Clear Log Panel action? I am using Chrome btw.   Thanks! I navigate with Ctrl-n,p,f,b (readline/ keys), so that I don't have to move my hands too much and get  again. Is there a way to disable Ctrl-b being hotkey for bold?  Note that this is not just an Emacs thing. Standard web browsers, like Firefox and Chrome, use things like  Ctrl + K and Ctrl + L to navigate to the Google search bar and address bar respectively. VS Code Salesforce plugin deploy does not provide an error message VS Code plugin for salesforce seems to be broken yesterday, It does not provide proper error message in case of failure.  Tried this in a developer org as well as scratch org. Neither deploy code or push gives an error message, and every time we need to go to Salesforce setup -> Deployment Status to view the details.  Is anyone aware of any workaround? I'm buying a bus ticket to get to Boston 23 hours before my flight to ensure I reach my departure airport on time.  If I didn't arrange bus transport well in advance, what legal remedies would I have if a delayed bus caused me to miss my flight? I recently switched from Windows to Mac. Steam says I have fewer Mac specific games than total games and it should be an equal amount unless you can only download, install, and play once from your account. I thought I bought it so that it would work across all operating systems. If this is true, is there a work around or a discount for re-purchasing for the other OSes? \includegraphics optional argument not resolved if macro Plot x=3 in PGFPlots How to add current date to cell if the rest of the cells (or some cells) in that row are edited, but only the first time? Chain wire methods together in Lightning Web Components According to the documentation  in order to retrieve a list of picklist values for an object we need to pass in a Record Type Id which can be retrieved using the getObjectInfo method.   The issue is that these are both wire functions and I cannot figure out how to chain these methods.  If I try code like the following:  getObjectInfo({ objectApiName: ACCOUNT_OBJECT })             .then(result =&gt; {                 return getPicklistValues({recordTypeId: result.defaultRecordTypeId, fieldApiName: TYPE_FIELD});             })             .then(result =&gt; {                 this.picklistValues = result.data             })             .catch(error =&gt; {                 this.error = error;             });   I get an error      render threw an error in 'c:getpicklistexample' [Imperative use is not   supported. Use @wire(getObjectInfo).]   If I try something like   @track rtId;      @wire(getObjectInfo, { objectApiName: ACCOUNT_OBJECT })     handleResult({error, data}) {         if(data) {             this.rtId = data.defaultRecordTypeId;         }     }      @wire(getPicklistValues, {recordTypeId: this.rtId,fieldApiName: TYPE_FIELD})     picklistValues;   Then it throws an internal server error. Anybody have an idea as to how I could retrieve the record type Id and then call to get the pick list values like the documentation suggests?  FYI my imports are:  import { LightningElement, wire, track } from 'lwc'; import { getPicklistValues, getObjectInfo } from 'lightning/uiObjectInfoApi'; import TYPE_FIELD from '@salesforce/schema/Account.Type'; import ACCOUNT_OBJECT from '@salesforce/schema/Account'; Why did the first Linux developers choose to implement a non-preemptive kernel? Is it to save synchronization?  As far as I know, Linux was developed in the early '90s, when PCs had a single processor. What advantage does a non-preemptive kernel give in such PCs? Why, however, the advantage is reduced by multi-core processors? How to prove that there exist no functions $f,g:\Bbb{R}\to\Bbb{R}$ such that $f(g(x))=x^{2018}$ and $g(f(x))=x^{2019}$? I have tried a little bit to solve the problem which goes as follows:   My intuition says that there exist no $f:\Bbb R\to\Bbb R$ such that $$f(g(x))=x^{2018}\text{ and }g(f(x))=x^{2019}.$$  Note that $$f(g(f(x)))=f(x)^{2018}\implies f(x^{2019})=f(x)^{2018}$$  Similarly, $$g(x^{2018})=g(x)^{2019}$$ Putting $x=1$ in $f(x^{2019})=f(x)^{2018}$, we get $f(1)=f(1)^{2018}$ and thus $f(1)=0$ or $f(1)=1$.  Similarly, putting $x=1$ in $g(x^{2018})=g(x)^{2019}$ we get $g(1)=g(1)^{2019}$ and thus $g(1)=0,1,-1$.  Now, I can't proceed further. Can anybody solve it? Thanks for assistance in advance. Why square the difference instead of taking the absolute value in standard deviation? How to receive sms from our android app?