Parallel construction
Does this parallel structure need coordinated prepositions to avoid being a faulty parallelism?
Penalized models can be used to estimate models where the number of parameters is equal to or even greater than the sample size. This situation can arise in log-linear models of large sparse tables of categorical or count data. In these settings, it is often also desirable or helpful to collapse tables by combining levels of a factor where those levels are not distinguishable in terms of how they interact with other factors. Two questions:   Is there a way to use penalized models such as LASSO or elastic net to test for the collapsibility of levels within each factor? If the answer to the first question is yes, can, and should, this be set up in such a way that the collapse of levels and the estimation of model coefficients occurs in a single step? In my cover letter I want to write that I am a graduate student in statistics. But I am not sure about the "in". So what is correct?     I am a graduate student in statistics.      I am a graduate student of statistics. Alright, when I run certain commands the wrong way, (misspelled, etc.) The terminal outputs this: &gt; instead of computername:workingfolder username$, and when I type enter it goes like this:  &gt;  &gt;  &gt;   That would be if I pressed enter 3 times. Why won't vertical-align: middle work?  And yet, vertical-align: top does work.   span{   vertical-align: middle; } &lt;div&gt;   &lt;img src="https://via.placeholder.com/30" alt="small img" /&gt;   &lt;span&gt;Doesn't work.&lt;/span&gt; &lt;/div&gt; Duplicate typeset index entries Is there a canonical way to typeset such quantities in equations and inline math?  \documentclass{article} \begin{document} $Re$, $Nu$ are clearly not an option. $\mathit{Re}$, $\mathit{Nu}$ appear ok to me. \end{document} I was writing test classes for my apex Rest Service that I had built for an Ipad app.  I noted some very interesting things while experimenting. Before doing anything, I just did a google search and found an interesting blog post by Jeff.    @RestResource(urlMapping='/v.9/member/*/results/*')  global with sharing class MemberRestSvc {  @HttpGet  global static ReturnClass doGet() {  String[] uriKeys = RestContext.request.requestURI.split('/'); // get the member name from the uri String memberName = uriKeys.get(uriKeys.size()-3);  // do awesome programming stuff here &amp; catch any exceptions try {    List&lt;Contact&gt; contacts = [Select Id From Contact where member_name__c = :memberName];   return new ReturnClass('true', 'Query executed successfully.', contacts);  } catch (Exception e) {   return new ReturnClass('false', e.getMessage(), null); }   }   global class ReturnClass {  global String success; global String message; global List&lt;Contact&gt; records;    global ReturnClass(String success, String message, List&lt;Contact&gt; records) {   this.success = success;   this.message = message;   this.records = records;  }  }  }   And here is the test class  @isTest private class Test_MemberRestSvc {  static { // setup test data   }  static testMethod void testDoGet() {  RestRequest req = new RestRequest();  RestResponse res = new RestResponse();  req.requestURI = 'https://cs9.salesforce.com/services/apexrest/v.9/member/me/results/today';   req.httpMethod = 'GET'; RestContext.request = req; RestContext.response = res;  MemberRestSvc.ReturnClass results = MemberRestSvc.doGet();  System.assertEquals('true', results.success); System.assertEquals(10, results.records.size()); System.assertEquals('Query executed successfully.', results.message);  }  }   I just commented a few lines and ran and it. I still achieved enough test coverage so my question is why do I need to simply instantiate the Rest request and response objects since I am directly calling the class?    @isTest   private class Test_MemberRestSvc {    static {     // setup test data     }  static testMethod void testDoGet() {  /*RestRequest req = new RestRequest();  RestResponse res = new RestResponse();  req.requestURI =    'https://cs9.salesforce.com/services/apexrest/v.9/member/me/results/today';   req.httpMethod = 'GET'; RestContext.request = req; RestContext.response = res; */Commented the code meant for REST apex intialization and merely calling the method!!  MemberRestSvc.ReturnClass results = MemberRestSvc.doGet();  System.assertEquals('true', results.success); System.assertEquals(10, results.records.size()); System.assertEquals('Query executed successfully.', results.message);  }  }   Can someone explain this behavior? Also what are the best practices for writing Test classes for apex Rest services? I have got myself a dxf which is built with units in the wrong scale. How do I upscale that in QGIS?   Note it does open in QGIS, just in the wrong map units and location. Clarification on Clausius Inequality Consider a heat reservoir which gains heat $Q$ irreversibly at temperature $T$ from the surroundings which is at temperature $T_0$. The entropy change of reservoir is then given by $\frac{Q}{T}$, while that of the surroundings is $-\frac{Q}{T_0}$.  My question is, how is this possible? According to the Clausius inequality, the entropy change of a irreversible process is greater than that due to heat transfer. Please help, thank you! How do I disable X at boot time so that the system boots in text mode? Is it possible to disable X at boot time? I'm setting up a server so it would be nice if it wouldn't load the graphical interface every time I boot. Let the search find questions by ID How do I setup user autostart and properly configure systemd user services? On my arch server, I was setting up users restricted to their home directories. I ran:  useradd -m -s /bin/bash username and passwd username  I've read   I figured I should use systemd user services to make each user run a node server on startup. So i logged into one user account su username and created a file ~/.config/systemd/user/serve.service containing:  [Unit] Description=One of the servers  [Service] ExecStart=/usr/bin/node /home/username/server.js  [Install] WantedBy=default.target   then I ran systemctl --user enable serve.service which responded with Failed to connect to bus: Permission denied  As far as I understand I should run systemctl --user ... command logged in as a user and not as root.  So what did I miss in this configuration? LED light fixture glows when not turned on This past week at Menards I bought 2 Smart Electrician® 3650 Lumens 46" LED Linkable Shop Light Model Number: 0053-0011  |  Menards® SKU: 3481400.  The LED shop light fixture has a glow to it. Looked like the LEDs were turned on, but not all the way. The power switch is turned off. Don’t know why I did this but I took one of those three prong adaptors converters to two prong and to my surprise the light fixture didn’t light up. I unplug the cord with the adaptor and turned it around and it still didn’t light up. The power supply electronics inside the light fixture must be using the earth ground wire somehow. Using my volt meter. I measured to earth ground to the green wire that comes out of the adaptor and to my surprise depending how I plug in the adaptor. I’m getting 112 volts AC. That's because the adaptor isn't keyed and I'm switching the HOT and NEUTRAL around depending how I  plug it in.  I connected the LED light fixture to “Safety Analyzer tester”. When I press the “Open Ground” button, the fixture stops glowing (lightly lite LED’s).  Looks like the power supply circuit inside the fixture has a connection to “Earth Ground”.  I then switched the “Normal” on the polarity switch to “Reverse” and the LED’s were off. Switching the Neutral to open position has no effect. I'm thinking of taking them apart and see inside what's going on or take them back.  I figured out the problem.    In this light fixture you can clearly see the white wire (neutral/common) is connected to the light switch, turning the power off the LED light strip. Commonly we switch off the “HOT” to your light socket so when you change your bulb you have a less of a chance of getting electrocuted (that’s another story for later). Sometimes in Power supply circuits they place capacitors in there to help filter electrical noise out. Also known as suppressers (electronics to reduce unwanted noise or oscillation in a circuit or unwanted frequencies in a signal). Depending on how or where they are placed in the circuit it could possible cause some issue if not installed correctly or if the circuit isn’t designed correctly.   Since the BLACK live wire is connected to the LED PCB all the time, anything connected to that line will potentially be LIVE voltage, that way when I disconnected the earth ground from the socket and measured 112 volts on it. My guess is they have capacitors connected to both LIVE and NEUTRAL to the earth ground wire.  The current is flowing through capacitor C2, just enough to turn the LED’s on slightly. If the switch was on the hot side, this problem wouldn’t be happening. I still may use them just not connect the “earth ground” wire. Because that’s providing the return path for lighting the LED’s. I'm having problems with a WFS GetFeature request. I'm using OpenLayers with an OSM map as base layers which use the Google projection. Overlaying the layer with WMS works perfect. When I do a request to return all features within the bounds of a polygon, no features are found.  My layer uses EPSG:28992. the base layer uses: EPSG:900913  My layer configuration in GeoServer:    When I set the declared SRS to EPSG:900913 and set "SRS handling" to "Reproject native to declared" it works fine, but I need OpenLayers to reproject it, not GeoServer.  Below is an example request I would do. I think the problem is that GeoServer does not convert the spatial filter to the native SRS.  http://mydomain.com/wfs?request=GetFeature&amp;version=1.1.0&amp; srsName=epsg:28992&amp; typeName=Namespace:Layer1&amp; propertyName=(*)&amp; CQL_FILTER=year = 2011 and INTERSECTS(geometry,POLYGON((565585.61613069 6816272.786200799,565585.61613069 6817032.3791692,564362.62367835 6817032.3791692,564362.62367835 6816272.786200799,565585.61613069 6816272.786200799)))&amp; outputFormat=GMl2&amp;   Update  I just tried re-projecting some points from OpenLayers (EPSG:900913) via proj4js to EPSG:28992 (PostgreSQL and GeoServer). I took 3 points and  compared them. They all showed an offset.   Converted: POINT(233492,24349424947 582191,0681508556)  In Database: POINT(233530,852147064 582315,680920578)  Difference x: 38,60865281453 Difference y: 124,6127697224 Converted: POINT(133459,1980658749 455770,7481867363)  In Database: POINT(133486,356985081 455879,67223342)  Difference x: 27,1589192061 Difference y: 108,9240466837 Converted: POINT(176920,43262818802 317930,36182729155)  In Database: POINT(176954,154083767 318023,515324756)  Difference x: 33,72145557898 Difference y: 93,15349746445   If the offset was constant I could correct it. Now I'm not sure if the offset is caused by GeSserver or by proj4js. I'm guessing proj4js since the WMS layer does not show any offset. 1970s or 80s kids book: girl's life taken over by a robot doppelganger version of herself I read this book between 1980-82 but it could have been written earlier.  It's about a girl who is dissatisfied with her life, as her parents have her on a diet and she wants to be able to eat what she wants. Someone offers her a solution: to come live in this large building where she can eat all the chocolate eclairs and other junkfood she wants, while a robot doppelganger android version of herself will take her place at home and at school.  The girl agrees, but finds that after week of eating mainly eclairs, she is sick and wants to eat a decent meal. But she is not allowed to eat anything else and has found herself to be a prisoner, so she sets out to get rid of the android and get her life back.   I don't recall the ending but it seemed the 'people' behind it all might have been aliens and the building might have been a kind of ship that then disappears. What is the difference between SAN, NAS and DAS? What is the difference between SAN, NAS and DAS? Why can't I transform faces, edges, or vertices without transforming the whole object? My problem is that I sometimes lose the ability to independently translate or otherwise transform any parts of a single mesh. If I try, for example, to just translate several faces, edges, or vertices, then the entire mesh will stretch and displace itself in order to follow the translation. Or, alternatively, if I try to translate just one face then the whole mesh will move as if I'm translating in Object Mode.  I'm not really sure I know how to describe this problem properly. I don't even know how to reliably reproduce it. It seems to happen to any given mesh at random, and it doesn't stop happening to that mesh unless I delete and remake it.  I assume that I must be doing something wrong to cause this to happen. Does anyone have any ideas? Thanks. AES Mix Column Transformation Section 3.4.3 "The MixColumns Step"(page 39) of , it states     The columns of the state are considered as polynomials over   $\operatorname{GF}(2^8)$ and multiplied modulo $x^4 + 1$ with a fixed polynomial $c(x)$.      The polynomial $c(x)$ is given by   $c(x) = \mathtt{03} \cdot x^3 + \mathtt{01} \cdot x^2 + \mathtt{01} \cdot x + \mathtt{02}$      Let $b(x) \equiv c(x) \cdot a(x) \pmod{x^4 + 1}$. Then         How this polynomial multiplication modulo $x^4+1$ is converted to Matrix Multiplication? QThread and QTimer Does JPA support mapping to sql views? I'm currently using Eclipselink, but I know now days most JPA implementations have been pretty standardized. Is there a native way to map a JPA entity to a view? I am not looking to insert/update, but the question is really how to handle the @Id annotation. Every entity in the JPA world must have an ID field, but many of the views I have created do not conform to this. Is there native support for this in the JPA or do I need to use hacks to get it to work? I've searched a lot and found very little information about doing this.