qid
int64
1
74.7M
question
stringlengths
0
58.3k
date
stringlengths
10
10
metadata
list
response_j
stringlengths
2
48.3k
response_k
stringlengths
2
40.5k
26,559,840
I'm using Visual Studio 2010 and SQL Server 2012. When I try to connect to SQL Server through Visual Studio, I don't get my server name on Add connection drop down menu.
2014/10/25
[ "https://Stackoverflow.com/questions/26559840", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3786234/" ]
Insert machine\_name/SqlServerName
For people using sql server 2014+ and using the local db on your pc. simply set the server name to be (localdb)\ name of your database. It worked for me.
26,559,840
I'm using Visual Studio 2010 and SQL Server 2012. When I try to connect to SQL Server through Visual Studio, I don't get my server name on Add connection drop down menu.
2014/10/25
[ "https://Stackoverflow.com/questions/26559840", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3786234/" ]
run services.msc find " SQL server browser " , it might be disabled , start that service and set it to automatic.
For people using sql server 2014+ and using the local db on your pc. simply set the server name to be (localdb)\ name of your database. It worked for me.
210,285
I'm using KiCAD to create a nested series of PCB rings - each two layer with copper fill on the front and back. The problem is when I add edge cuts defining the inner and outer edges of the outer ring, it removes the copper fill from the center area where I'm going to nest the inner ring. Is there a way to add a neste...
2016/01/08
[ "https://electronics.stackexchange.com/questions/210285", "https://electronics.stackexchange.com", "https://electronics.stackexchange.com/users/49821/" ]
KiCAD is an interesting animal - its a series of separate applications (Eeschema, Pcbnew, etc) that are launched and loosely integrated through a project management executable called KiCAD. When KiCAD launches these executables, it hides some of their built-in features. One of these features is within Pcbnew - the abil...
KiCad only supports one board per file. Optimal use of available space is up to the manufacturing house, they can tell whether it is possible to place small boards inside larger ones, because they know the size of the router head they use to separate the boards. The alternative is to connect the boards, and define V-...
336,474
When I try to delete all files from two or more subdirectories in `zsh`, and a directory is already empty, the following directories are ignored, and files remain. Example: ``` $ mkdir dir1 $ mkdir dir2 $ touch dir2/blah # avoid the zsh safety prompt; this may not be necessary for this # example, just for ease of us...
2017/01/11
[ "https://unix.stackexchange.com/questions/336474", "https://unix.stackexchange.com", "https://unix.stackexchange.com/users/-1/" ]
Unlike `bash`, `zsh` by default reports an error in case a filename generation pattern has no matches. This behavior can be changed globally or on a per-pattern basis. To prevent error messages from non-matching pattern globally, you can set either of the options `NULL_GLOB` or `CSH_NULL_GLOB`: * ``` setopt nullglob...
A good explanation can be found here: <https://superuser.com/questions/584249/using-wildcards-in-commands-with-zsh> The gist is: ``` By default, ZSH will generate the filenames and throw an error before executing the command if it founds no matches. ``` Your empty directory is going to generate no matches and th...
336,474
When I try to delete all files from two or more subdirectories in `zsh`, and a directory is already empty, the following directories are ignored, and files remain. Example: ``` $ mkdir dir1 $ mkdir dir2 $ touch dir2/blah # avoid the zsh safety prompt; this may not be necessary for this # example, just for ease of us...
2017/01/11
[ "https://unix.stackexchange.com/questions/336474", "https://unix.stackexchange.com", "https://unix.stackexchange.com/users/-1/" ]
The best way is to make it a single glob that matches files in both directories. ``` rm (dir1|dir2)/* ``` That way, the command is still not run if no file is found. Note however that `dir1`/`dir2` can't contain `/`. In those cases, you could do instead: ``` files=(foo/bar/*(N) bar/baz/*(N)) if ((#files)); then ...
A good explanation can be found here: <https://superuser.com/questions/584249/using-wildcards-in-commands-with-zsh> The gist is: ``` By default, ZSH will generate the filenames and throw an error before executing the command if it founds no matches. ``` Your empty directory is going to generate no matches and th...
336,474
When I try to delete all files from two or more subdirectories in `zsh`, and a directory is already empty, the following directories are ignored, and files remain. Example: ``` $ mkdir dir1 $ mkdir dir2 $ touch dir2/blah # avoid the zsh safety prompt; this may not be necessary for this # example, just for ease of us...
2017/01/11
[ "https://unix.stackexchange.com/questions/336474", "https://unix.stackexchange.com", "https://unix.stackexchange.com/users/-1/" ]
Unlike `bash`, `zsh` by default reports an error in case a filename generation pattern has no matches. This behavior can be changed globally or on a per-pattern basis. To prevent error messages from non-matching pattern globally, you can set either of the options `NULL_GLOB` or `CSH_NULL_GLOB`: * ``` setopt nullglob...
The best way is to make it a single glob that matches files in both directories. ``` rm (dir1|dir2)/* ``` That way, the command is still not run if no file is found. Note however that `dir1`/`dir2` can't contain `/`. In those cases, you could do instead: ``` files=(foo/bar/*(N) bar/baz/*(N)) if ((#files)); then ...
22,318,678
``` <div id="feedback"></div> <form id="myForm" action="controller.php" method="post"> location1: <input type="checkbox" name="location1" id="location1" value="location1"/> location2: <input type="checkbox" name="location2" id="location2" value="location2"/><br> <input type="submit"...
2014/03/11
[ "https://Stackoverflow.com/questions/22318678", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1906399/" ]
You have to assign the return value of `join()` to a variable, it will not change the array ``` var loc = locations.join(" ! "); $('#feedback').text(loc); ```
The [join](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/join) operation (which is core JavaScript, not jQuery) does not update the variable you're calling it on, i.e. ``` locations.join(" ! "); ``` is joining your array then throwing away the result. You'll need to save the ...
34,314,184
The SonarQube Jenkins plugin makes an initial HTTP request for /api/server/version which responds 200 OK but then makes a request for /api/server/key which is not a valid action. The build then fails as the session is terminated with a 404 Not Found. Can anyone explain why an API request is made for key when it is inva...
2015/12/16
[ "https://Stackoverflow.com/questions/34314184", "https://Stackoverflow.com", "https://Stackoverflow.com/users/5686987/" ]
I put together an example below that will hopefully help you out. You just have to specify the source from where the shoot is fired (`sourceX`,`sourceY`), calculate the angle to where the mouse is clicked (done below, so should just be to copy/paste) and adjust the `transform: rotate(Xdeg);` to the new angle. Make su...
I would not recommend building games in this manner, Canvas and SVG are the preferred methods of building browser games, with that said it can be done. Try this <https://jsfiddle.net/b77x4rq4/> ``` $(document).ready(function(){ var middleOfElementTop = 250; // margin from top + half of height var middleOfEl...
73,473
I am no longer able to start my 2010 Ford Focus. The key is not able to turn at all. Importantly, the car beeps when I open the driver side door as if the key was still in the ignition. This has happened before, but I would simply reinsert and remove the key. Then I would feel/hear something mechanically click into p...
2019/12/24
[ "https://mechanics.stackexchange.com/questions/73473", "https://mechanics.stackexchange.com", "https://mechanics.stackexchange.com/users/54270/" ]
Could be your key is extremely worn or the ignition lock cylinder is extremely worn. I suggest calling a local locksmith to replace key and code a new lock cylinder to oem biting for your car. Ford ignition locks are common failures. You could also try flushing it out with some wd40 but it would be a temporary fix at ...
Often the dust cover fails to close leaving the key hole exposed and this causes the issue described. Sometimes a **tiny** bit of lubrication is sufficient (clean first) and then the cover closes smartly.
26,753,541
Well, it seems strange that no one has asked this question before and it has been bothering me for hours but here's what I am trying to do. I need to reverse the order of a text file, show the last 10 entries and print the contents but not from the last entry showing first. Rather I wish to maintain the order. ie. the...
2014/11/05
[ "https://Stackoverflow.com/questions/26753541", "https://Stackoverflow.com", "https://Stackoverflow.com/users/4217848/" ]
You have three problems. --- First: You have configured JS Fiddle to wrap all your code in an onload handler. This stops the function being a global so when you call `addFunc` it can't be found. --- Second: You are calling jQuery but haven't included the jQuery library. --- Third: The value of `this` depends o...
try to call it with class name : ``` $('.add-link').click(function() { var username = $(this).attr('title'); alert(username); $('#content').html(username); }); ```
26,753,541
Well, it seems strange that no one has asked this question before and it has been bothering me for hours but here's what I am trying to do. I need to reverse the order of a text file, show the last 10 entries and print the contents but not from the last entry showing first. Rather I wish to maintain the order. ie. the...
2014/11/05
[ "https://Stackoverflow.com/questions/26753541", "https://Stackoverflow.com", "https://Stackoverflow.com/users/4217848/" ]
You did not include jquery in your fiddle. Also if you use jquery bind your events with it like this: ``` $(".add-link").on("click", function addFunc(){ var username = $(this).attr('title'); $('#content').html(username); }); ``` <http://jsfiddle.net/0f4mun8r/4/>
try to call it with class name : ``` $('.add-link').click(function() { var username = $(this).attr('title'); alert(username); $('#content').html(username); }); ```
358,589
I share the picture of the schematic of my circuit. I want to use the LM350 variable voltage regulator to reduce the 40mV p-p ripple i have in my bridge rectified DC. Though it has no effect at all. Why could this be? My load draws current and i can adjust the voltage output of LM350. I couldn't make it to reduce...
2018/02/26
[ "https://electronics.stackexchange.com/questions/358589", "https://electronics.stackexchange.com", "https://electronics.stackexchange.com/users/152263/" ]
Notice in the TI datasheet, line regulation is spec'ed with \$V\_{in}-V\_{out}\ge 3\ {\rm V}\$. With 11.5 V at input and 8.4 V at output, you just barely meet that requirement. Possibly the input voltage at the LM350 is actually a bit lower than 11.5 V due to wire losses, or because your unregulated rectifier output ...
Added Problem: -------- Too much dropout for a high current LDO ( L is not low enough) Measurements and specs are unclear. Solution: --------- **Use a 1 ohm power PFET with heat sink. ( or a 100 mOhm PFET and switch it at 50kHz with 10uH choke with LC filter) OpAmp may be reversed and use NFET.** Dear Ali: You ou...
64,909
What are the pros and cons of different data formats (performance, file size, etc.) when considering open data distribution? Our organisation wants to publish data as open data. However, there is no clear idea on which data formats to use. Ofcourse, the more 'open' a data format is, the easier it is to use. Which dat...
2013/07/01
[ "https://gis.stackexchange.com/questions/64909", "https://gis.stackexchange.com", "https://gis.stackexchange.com/users/10132/" ]
The city of Vienna's open data initiative (<http://data.wien.gv.at>) uses Geoserver to provide access to raster and vector geodata via Geoserver **WMS and WFS** services. This has many advantages: Users can download data in different formats for offline use (e.g. geojson, KML, or zipped Shapefiles) or use the services ...
I would say: * Shapefiles or GML for vector data * .obj-Files for 3D models * .xyz (simple CSV) for point clouds * CSV for tabular data * GeoTIFF for raster data These formats are easily readable by Open Source Software and are easily transformable to any other format needed for specific applications. Also +1 for ma...
64,909
What are the pros and cons of different data formats (performance, file size, etc.) when considering open data distribution? Our organisation wants to publish data as open data. However, there is no clear idea on which data formats to use. Ofcourse, the more 'open' a data format is, the easier it is to use. Which dat...
2013/07/01
[ "https://gis.stackexchange.com/questions/64909", "https://gis.stackexchange.com", "https://gis.stackexchange.com/users/10132/" ]
For tabular csv. Excel is at best overly complicated and at worst totally inaccessible. Access is not accessible and PDF is a slap in the face. For geospatial use geojson, it's text it's well supported and doesn't have the technical restrictions that the only other viable format (shapefile) has. Also unless you have ...
I would say: * Shapefiles or GML for vector data * .obj-Files for 3D models * .xyz (simple CSV) for point clouds * CSV for tabular data * GeoTIFF for raster data These formats are easily readable by Open Source Software and are easily transformable to any other format needed for specific applications. Also +1 for ma...
64,909
What are the pros and cons of different data formats (performance, file size, etc.) when considering open data distribution? Our organisation wants to publish data as open data. However, there is no clear idea on which data formats to use. Ofcourse, the more 'open' a data format is, the easier it is to use. Which dat...
2013/07/01
[ "https://gis.stackexchange.com/questions/64909", "https://gis.stackexchange.com", "https://gis.stackexchange.com/users/10132/" ]
I quite like [NetCDF](http://en.wikipedia.org/wiki/NetCDF) for continuous/array data (i.e. rasters). Pros for NetCDF are: * NetCDF is self describing (i.e., data definitions are available through the file header) so you don't need to supply secondary metadata files * NetCDF4 allows for storage of n-dimensional data (u...
I would say: * Shapefiles or GML for vector data * .obj-Files for 3D models * .xyz (simple CSV) for point clouds * CSV for tabular data * GeoTIFF for raster data These formats are easily readable by Open Source Software and are easily transformable to any other format needed for specific applications. Also +1 for ma...
64,909
What are the pros and cons of different data formats (performance, file size, etc.) when considering open data distribution? Our organisation wants to publish data as open data. However, there is no clear idea on which data formats to use. Ofcourse, the more 'open' a data format is, the easier it is to use. Which dat...
2013/07/01
[ "https://gis.stackexchange.com/questions/64909", "https://gis.stackexchange.com", "https://gis.stackexchange.com/users/10132/" ]
I would say: * Shapefiles or GML for vector data * .obj-Files for 3D models * .xyz (simple CSV) for point clouds * CSV for tabular data * GeoTIFF for raster data These formats are easily readable by Open Source Software and are easily transformable to any other format needed for specific applications. Also +1 for ma...
Virtually this exact same question came up at opendata.SE: [What are the most useful formats in which to release geospatial data?](https://opendata.stackexchange.com/questions/313/what-are-the-most-useful-formats-in-which-to-release-geospatial-data/4932#4932) So, hopefully I'm not violating any policies in quoting my ...
64,909
What are the pros and cons of different data formats (performance, file size, etc.) when considering open data distribution? Our organisation wants to publish data as open data. However, there is no clear idea on which data formats to use. Ofcourse, the more 'open' a data format is, the easier it is to use. Which dat...
2013/07/01
[ "https://gis.stackexchange.com/questions/64909", "https://gis.stackexchange.com", "https://gis.stackexchange.com/users/10132/" ]
The city of Vienna's open data initiative (<http://data.wien.gv.at>) uses Geoserver to provide access to raster and vector geodata via Geoserver **WMS and WFS** services. This has many advantages: Users can download data in different formats for offline use (e.g. geojson, KML, or zipped Shapefiles) or use the services ...
Virtually this exact same question came up at opendata.SE: [What are the most useful formats in which to release geospatial data?](https://opendata.stackexchange.com/questions/313/what-are-the-most-useful-formats-in-which-to-release-geospatial-data/4932#4932) So, hopefully I'm not violating any policies in quoting my ...
64,909
What are the pros and cons of different data formats (performance, file size, etc.) when considering open data distribution? Our organisation wants to publish data as open data. However, there is no clear idea on which data formats to use. Ofcourse, the more 'open' a data format is, the easier it is to use. Which dat...
2013/07/01
[ "https://gis.stackexchange.com/questions/64909", "https://gis.stackexchange.com", "https://gis.stackexchange.com/users/10132/" ]
For tabular csv. Excel is at best overly complicated and at worst totally inaccessible. Access is not accessible and PDF is a slap in the face. For geospatial use geojson, it's text it's well supported and doesn't have the technical restrictions that the only other viable format (shapefile) has. Also unless you have ...
Virtually this exact same question came up at opendata.SE: [What are the most useful formats in which to release geospatial data?](https://opendata.stackexchange.com/questions/313/what-are-the-most-useful-formats-in-which-to-release-geospatial-data/4932#4932) So, hopefully I'm not violating any policies in quoting my ...
64,909
What are the pros and cons of different data formats (performance, file size, etc.) when considering open data distribution? Our organisation wants to publish data as open data. However, there is no clear idea on which data formats to use. Ofcourse, the more 'open' a data format is, the easier it is to use. Which dat...
2013/07/01
[ "https://gis.stackexchange.com/questions/64909", "https://gis.stackexchange.com", "https://gis.stackexchange.com/users/10132/" ]
I quite like [NetCDF](http://en.wikipedia.org/wiki/NetCDF) for continuous/array data (i.e. rasters). Pros for NetCDF are: * NetCDF is self describing (i.e., data definitions are available through the file header) so you don't need to supply secondary metadata files * NetCDF4 allows for storage of n-dimensional data (u...
Virtually this exact same question came up at opendata.SE: [What are the most useful formats in which to release geospatial data?](https://opendata.stackexchange.com/questions/313/what-are-the-most-useful-formats-in-which-to-release-geospatial-data/4932#4932) So, hopefully I'm not violating any policies in quoting my ...
5,678,384
Is it possible to add: "First, Last, Next, Previous" options to the GridView paging? I can't seem to figure it out. All I can get are numbers and >> for last and << for first...
2011/04/15
[ "https://Stackoverflow.com/questions/5678384", "https://Stackoverflow.com", "https://Stackoverflow.com/users/484703/" ]
Set the value of the PageText properties of the PagerSettings section: ---------------------------------------------------------------------- ``` <asp:GridView ID="gridView" runat="server" AllowPaging="True"> <PagerSettings Mode="NextPreviousFirstLast" FirstPageText="First" PreviousPageText="Previous" NextPageTex...
The default Pager of GridView is not flexible. The alternatives are these 1. Using Pager Template of the GridView ([GridView PagerTemplate Property by MSDN](http://msdn.microsoft.com/en-us/library/system.web.ui.webcontrols.gridview.pagertemplate.aspx)) 2. Extending the GridView control to support DataPager ([example ...
5,678,384
Is it possible to add: "First, Last, Next, Previous" options to the GridView paging? I can't seem to figure it out. All I can get are numbers and >> for last and << for first...
2011/04/15
[ "https://Stackoverflow.com/questions/5678384", "https://Stackoverflow.com", "https://Stackoverflow.com/users/484703/" ]
The default Pager of GridView is not flexible. The alternatives are these 1. Using Pager Template of the GridView ([GridView PagerTemplate Property by MSDN](http://msdn.microsoft.com/en-us/library/system.web.ui.webcontrols.gridview.pagertemplate.aspx)) 2. Extending the GridView control to support DataPager ([example ...
[enter image description here](https://i.stack.imgur.com/A2Jnv.png)We can also combined number and first and last custom button in gridview For this, we need to enable normal paging in gridview then set pagerstyle This will show normal paging with numbers. For the custom first and last button Write jquery code for ...
5,678,384
Is it possible to add: "First, Last, Next, Previous" options to the GridView paging? I can't seem to figure it out. All I can get are numbers and >> for last and << for first...
2011/04/15
[ "https://Stackoverflow.com/questions/5678384", "https://Stackoverflow.com", "https://Stackoverflow.com/users/484703/" ]
Set the value of the PageText properties of the PagerSettings section: ---------------------------------------------------------------------- ``` <asp:GridView ID="gridView" runat="server" AllowPaging="True"> <PagerSettings Mode="NextPreviousFirstLast" FirstPageText="First" PreviousPageText="Previous" NextPageTex...
Yes it is possible using PagerSettings property of gridview, all you need to do is- set Mode of PagerSetting to 'NextPreviousFirstLast' so that you can use "First, Last, Next, Previous" option for paging with gridview. ``` <PagerSettings Mode="NextPreviousFirstLast" FirstPageText="First" PreviousPageText="Previous"...
5,678,384
Is it possible to add: "First, Last, Next, Previous" options to the GridView paging? I can't seem to figure it out. All I can get are numbers and >> for last and << for first...
2011/04/15
[ "https://Stackoverflow.com/questions/5678384", "https://Stackoverflow.com", "https://Stackoverflow.com/users/484703/" ]
Set the value of the PageText properties of the PagerSettings section: ---------------------------------------------------------------------- ``` <asp:GridView ID="gridView" runat="server" AllowPaging="True"> <PagerSettings Mode="NextPreviousFirstLast" FirstPageText="First" PreviousPageText="Previous" NextPageTex...
[enter image description here](https://i.stack.imgur.com/A2Jnv.png)We can also combined number and first and last custom button in gridview For this, we need to enable normal paging in gridview then set pagerstyle This will show normal paging with numbers. For the custom first and last button Write jquery code for ...
5,678,384
Is it possible to add: "First, Last, Next, Previous" options to the GridView paging? I can't seem to figure it out. All I can get are numbers and >> for last and << for first...
2011/04/15
[ "https://Stackoverflow.com/questions/5678384", "https://Stackoverflow.com", "https://Stackoverflow.com/users/484703/" ]
Yes it is possible using PagerSettings property of gridview, all you need to do is- set Mode of PagerSetting to 'NextPreviousFirstLast' so that you can use "First, Last, Next, Previous" option for paging with gridview. ``` <PagerSettings Mode="NextPreviousFirstLast" FirstPageText="First" PreviousPageText="Previous"...
[enter image description here](https://i.stack.imgur.com/A2Jnv.png)We can also combined number and first and last custom button in gridview For this, we need to enable normal paging in gridview then set pagerstyle This will show normal paging with numbers. For the custom first and last button Write jquery code for ...
31,476,248
I want to store the geolocation coordinates longitude and latitude such that I later can specify an area and query like this in GORM: ``` SELECT * FROM Place WHERE lat BETWEEN :x1 AND :x2 AND lng BETWEEN :y1 AND :y2 ``` How do I have to store the coordinates in my Domain? My underlying database is MySQL. What I p...
2015/07/17
[ "https://Stackoverflow.com/questions/31476248", "https://Stackoverflow.com", "https://Stackoverflow.com/users/5049150/" ]
The best thing you can do, using the Odoo framework, is to **create a button**. You can **open a wizard showing the tree view** with that button. Like this, you can use a search view in the wizard and you can group by the elements with a normal filter. If you still want to group the elements directly in the form I'm ...
Something like this might work: ```xml <field name="line_ids" context="{'group_by': 'material'}"> <tree> ...</tree> <field> ```
23,835,316
Thanks for opening my question. What I'm doing, to me, should be **very** simple. I am a beginner for programming so I am not aware of what I need to get this done. I need help. The problem: I have to have 4 columns for times. (Travelto, Arrive, Depart, Travelfrom) I don't always use all of them so my script has to re...
2014/05/23
[ "https://Stackoverflow.com/questions/23835316", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3668209/" ]
The number you are seeing outputted is the difference in ms. You need to convert ms to the format you want. I found a neat way to do that here: <https://coderwall.com/p/wkdefg> Your code would look like this. ``` function worked(time1,time2) { var time1; var time2; var outnumbe...
You can use [this](https://developers.google.com/apps-script/reference/spreadsheet/range#getdisplayvalue) function. The function's documentation is: > > Returns the displayed value of the top-left cell in the range. The > value will be of type String. The displayed value takes into account > date, time and currency...
10,264
When creating an Alias to a single article, the content editors keep making this mistake where they select an Alias which has the same/similar title to the 'Single Article' Menu item. When an alias is pointing to an Alias, this causes a broken link since as alias can't be pointing to another alias. Is there any way t...
2015/06/02
[ "https://joomla.stackexchange.com/questions/10264", "https://joomla.stackexchange.com", "https://joomla.stackexchange.com/users/112/" ]
You can never save 2 menu items with alias. You will always get this message: **Save failed with the following error: Another menu item has the same alias in Root. Root is the top level parent.** Yes this can happen that your menu item alias and article item alias is same. Are you creating a New Menu with *Menu type*...
Yes, it looks like there is a small bug in Joomla. You should not be offered any 'Menu Item Aliases' in `Menu Item` drop-down box when `Menu item type` is 'Menu Item Alias'. It is not exactly bug, but something which could cause inconvenience.
5,821,314
I want to parse an html page using org.w3c.dom package. Let it be <http://www.qypedeals.de/>. The page has a counter updated by JS So if I try to get a value of ``` <div class='counter_field' id='counter_day'> ``` I always get 0. Is there any possibility to get that value? Thanks in advance!
2011/04/28
[ "https://Stackoverflow.com/questions/5821314", "https://Stackoverflow.com", "https://Stackoverflow.com/users/729655/" ]
``` SELECT a.* from table_a a LEFT JOIN table_b b ON (a.id = b.id) WHERE b.id IS NULL ``` You can also use `NOT EXISTS` (I believe it might have a bit worse performance in mysql though) : ``` SELECT a.* from table_a a WHERE NOT EXISTS (SELECT 1 FROM table_b b WHERE b.id = a.id) ```
Derived tables: ``` SELECT * FROM ( SELECT id FROM table_b ) b JOIN table_a a ON a.id = b.id ``` have nothing to do with `IN` predicates: ``` SELECT * FROM table_a WHERE id NOT IN ( SELECT id FROM table_b ) ``` The subquery in the `...
27,558
In the current draft of my book, the evil dictator whose body is encased in a silver alloy talks basically by allowing magic to move to seep into the silver shell, dispelling it and causing vibrations. This voice sounds alien, imperial, and metallic. In order to represent this, I'm currently using a different font. (S...
2017/04/15
[ "https://writers.stackexchange.com/questions/27558", "https://writers.stackexchange.com", "https://writers.stackexchange.com/users/23486/" ]
This is generally inadvisable (which is not to say that it is not done sometimes). The reason it is inadvisable is that every artform has its palette, its set of devices and conventions by which it tells its story. Mastering any art form is about learning how to tell the story within the confines of that palette. One...
As noted above, "generally inadvisable" is on the mark. However, if you consider your book to be more along the lines of entertainment, than along the lines of literature, you might do it. Really, the choice is yours. Think of it this way: If you show up for a job interview, you dress in accordance with expectations....
27,558
In the current draft of my book, the evil dictator whose body is encased in a silver alloy talks basically by allowing magic to move to seep into the silver shell, dispelling it and causing vibrations. This voice sounds alien, imperial, and metallic. In order to represent this, I'm currently using a different font. (S...
2017/04/15
[ "https://writers.stackexchange.com/questions/27558", "https://writers.stackexchange.com", "https://writers.stackexchange.com/users/23486/" ]
This is generally inadvisable (which is not to say that it is not done sometimes). The reason it is inadvisable is that every artform has its palette, its set of devices and conventions by which it tells its story. Mastering any art form is about learning how to tell the story within the confines of that palette. One...
In my humble opinion, don't. You'd have to explain what the different fonts mean. You can't expect the reader to guess. Perhaps that could be done smoothly. If I was reading a story I'd find it rather jarring, tearing me out of immersion in the story, if there was a note in the middle of the story that said, "When I u...
27,558
In the current draft of my book, the evil dictator whose body is encased in a silver alloy talks basically by allowing magic to move to seep into the silver shell, dispelling it and causing vibrations. This voice sounds alien, imperial, and metallic. In order to represent this, I'm currently using a different font. (S...
2017/04/15
[ "https://writers.stackexchange.com/questions/27558", "https://writers.stackexchange.com", "https://writers.stackexchange.com/users/23486/" ]
This is generally inadvisable (which is not to say that it is not done sometimes). The reason it is inadvisable is that every artform has its palette, its set of devices and conventions by which it tells its story. Mastering any art form is about learning how to tell the story within the confines of that palette. One...
I'm neither a full-blow writer (yet) nor professional reviewer, but as an avid reader and a lover of all good stories, I do have a couple of thoughts on this... First off, many people do hold that, as another answer-er has already noted, certain elements of art should be reserved to their prospective fields. And to an...
27,558
In the current draft of my book, the evil dictator whose body is encased in a silver alloy talks basically by allowing magic to move to seep into the silver shell, dispelling it and causing vibrations. This voice sounds alien, imperial, and metallic. In order to represent this, I'm currently using a different font. (S...
2017/04/15
[ "https://writers.stackexchange.com/questions/27558", "https://writers.stackexchange.com", "https://writers.stackexchange.com/users/23486/" ]
**Think about it: Are you reading this answer on paper, or on a (color) screen? The convention may change quickly, if readers accept changes** Conventional wisdom says not to play 'games' with typography (until/unless one is a big-name author), but that convention is based back in the history/technology/economics of ...
As noted above, "generally inadvisable" is on the mark. However, if you consider your book to be more along the lines of entertainment, than along the lines of literature, you might do it. Really, the choice is yours. Think of it this way: If you show up for a job interview, you dress in accordance with expectations....
27,558
In the current draft of my book, the evil dictator whose body is encased in a silver alloy talks basically by allowing magic to move to seep into the silver shell, dispelling it and causing vibrations. This voice sounds alien, imperial, and metallic. In order to represent this, I'm currently using a different font. (S...
2017/04/15
[ "https://writers.stackexchange.com/questions/27558", "https://writers.stackexchange.com", "https://writers.stackexchange.com/users/23486/" ]
**Think about it: Are you reading this answer on paper, or on a (color) screen? The convention may change quickly, if readers accept changes** Conventional wisdom says not to play 'games' with typography (until/unless one is a big-name author), but that convention is based back in the history/technology/economics of ...
In my humble opinion, don't. You'd have to explain what the different fonts mean. You can't expect the reader to guess. Perhaps that could be done smoothly. If I was reading a story I'd find it rather jarring, tearing me out of immersion in the story, if there was a note in the middle of the story that said, "When I u...
27,558
In the current draft of my book, the evil dictator whose body is encased in a silver alloy talks basically by allowing magic to move to seep into the silver shell, dispelling it and causing vibrations. This voice sounds alien, imperial, and metallic. In order to represent this, I'm currently using a different font. (S...
2017/04/15
[ "https://writers.stackexchange.com/questions/27558", "https://writers.stackexchange.com", "https://writers.stackexchange.com/users/23486/" ]
**Think about it: Are you reading this answer on paper, or on a (color) screen? The convention may change quickly, if readers accept changes** Conventional wisdom says not to play 'games' with typography (until/unless one is a big-name author), but that convention is based back in the history/technology/economics of ...
I'm neither a full-blow writer (yet) nor professional reviewer, but as an avid reader and a lover of all good stories, I do have a couple of thoughts on this... First off, many people do hold that, as another answer-er has already noted, certain elements of art should be reserved to their prospective fields. And to an...
752,003
I am trying to migrate both the only vCSA and the VMKernel interface in my ESXi host from a standard vSwitch to a vDS, and that gave me all kinds of mess. How to do that properly? Bear in mind that the host in question also have the virtual machine that performs as the router. My intended setup: The host: ``` ...
2016/01/27
[ "https://serverfault.com/questions/752003", "https://serverfault.com", "https://serverfault.com/users/291626/" ]
Caveat: *I don't think a distributed switch or LACP belong here. And this definitely doesn't sound like an environment with VMware Enterprise licensing...* But use the network migration tool in VMware. This is [fully-documented](https://pubs.vmware.com/vsphere-51/index.jsp?topic=%2Fcom.vmware.vsphere.networking.doc%...
I think you should migrate in two steps, first to a vDS without LACP and then enable LACP. The first step should be straight-forward: Create the vDS and port groups you need and set vmnic0 as the first uplink and migrate your vmknics and vCenter to the vDS. Then set vmnic1 as the second uplink for your vDS. Then [migra...
752,003
I am trying to migrate both the only vCSA and the VMKernel interface in my ESXi host from a standard vSwitch to a vDS, and that gave me all kinds of mess. How to do that properly? Bear in mind that the host in question also have the virtual machine that performs as the router. My intended setup: The host: ``` ...
2016/01/27
[ "https://serverfault.com/questions/752003", "https://serverfault.com", "https://serverfault.com/users/291626/" ]
I don't follow your question very well, but I will make a suggestion all the same. If VC looses network connection during a network reconfig, the change is automatically reverted (sometimes), even if it is only for a moment. I would suggest putting your VCSA onto a temporary second network (so you have two routes), t...
I think you should migrate in two steps, first to a vDS without LACP and then enable LACP. The first step should be straight-forward: Create the vDS and port groups you need and set vmnic0 as the first uplink and migrate your vmknics and vCenter to the vDS. Then set vmnic1 as the second uplink for your vDS. Then [migra...
52,128,296
After update I found that `getLoaderManager` is deprecated but I can't find that should I use instead of. How to get `LoaderManager`? Or what should I use instead of `Loader`s?
2018/09/01
[ "https://Stackoverflow.com/questions/52128296", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3253896/" ]
Loaders have been deprecated as of Android P (API 28). The recommended option for dealing with loading data while handling the Activity and Fragment lifecycles is to use a combination of ViewModels and LiveData.ViewModels survive configuration changes like Loaders but with less boilerplate. LiveData provides a lifecycl...
The deprecated `getLoaderManager` has been replaced with `getSupportLoaderManager`. Try: ``` getSupportLoaderManager().initLoader(LOADER_NOTES, null, this); ``` Works for me in API 28.
52,128,296
After update I found that `getLoaderManager` is deprecated but I can't find that should I use instead of. How to get `LoaderManager`? Or what should I use instead of `Loader`s?
2018/09/01
[ "https://Stackoverflow.com/questions/52128296", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3253896/" ]
Loaders have been deprecated as of Android P (API 28). The recommended option for dealing with loading data while handling the Activity and Fragment lifecycles is to use a combination of ViewModels and LiveData.ViewModels survive configuration changes like Loaders but with less boilerplate. LiveData provides a lifecycl...
getLoaderManager has been deprecated, use LoaderManager getInstance instead: ``` LoaderManager.getInstance(this).initLoader(0, null, this); ```
52,128,296
After update I found that `getLoaderManager` is deprecated but I can't find that should I use instead of. How to get `LoaderManager`? Or what should I use instead of `Loader`s?
2018/09/01
[ "https://Stackoverflow.com/questions/52128296", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3253896/" ]
getLoaderManager has been deprecated, use LoaderManager getInstance instead: ``` LoaderManager.getInstance(this).initLoader(0, null, this); ```
The deprecated `getLoaderManager` has been replaced with `getSupportLoaderManager`. Try: ``` getSupportLoaderManager().initLoader(LOADER_NOTES, null, this); ``` Works for me in API 28.
53,031,446
I am creating an SSIS package which has an execute SQL task and it passes result set variable to a for each loop container. My Sql Query is: ``` Select distinct code from house where active=1 and campus='W' ``` I want the execute sql task to run this query and assign its results to a variable which is passed to a f...
2018/10/28
[ "https://Stackoverflow.com/questions/53031446", "https://Stackoverflow.com", "https://Stackoverflow.com/users/9287744/" ]
It sounds like you have a variety of issues in here. Result Set ========== The first is in your Execute SQL Task and the need for agreement between the `Result Set` specification and the data type of the Variable(s) specified in the Result Set tab. If you specify Full Resultset, then the receiving object *must* be of...
the variable "User::house" is string , so , did you use it in result set?
53,031,446
I am creating an SSIS package which has an execute SQL task and it passes result set variable to a for each loop container. My Sql Query is: ``` Select distinct code from house where active=1 and campus='W' ``` I want the execute sql task to run this query and assign its results to a variable which is passed to a f...
2018/10/28
[ "https://Stackoverflow.com/questions/53031446", "https://Stackoverflow.com", "https://Stackoverflow.com/users/9287744/" ]
It sounds like you have a variety of issues in here. Result Set ========== The first is in your Execute SQL Task and the need for agreement between the `Result Set` specification and the data type of the Variable(s) specified in the Result Set tab. If you specify Full Resultset, then the receiving object *must* be of...
you need declare son "object" var for result set [result set](https://i.stack.imgur.com/PzzeA.jpg) then declare a string variable for every single Code from your result [For Each Loop Container](https://i.stack.imgur.com/MqU7T.jpg) good luck
41,453
I am using SP2010 with infopath 2010. i've designed a custom approval which contains one approval process. this workflow prompts users to fill in reviewer, CC and comments on the workflow initialization form. this form has 2 people picker field one for reviewer and one for CC and both are enabled to accept multiple val...
2012/07/20
[ "https://sharepoint.stackexchange.com/questions/41453", "https://sharepoint.stackexchange.com", "https://sharepoint.stackexchange.com/users/9588/" ]
I've encountered the same issue and I had the SP1 for SharePoint Designer2010 already installed. SP D2010 Version : 14.0.6123.5001 (32-bit) with SP1 The issue : --- I am using SP2010 with infopath 2010. i've designed a custom approval which contains one approval process. this workflow prompts users to fill in revi...
The author of this question answered it in comment to the original question by: > > This is now fixed. Came through below article on internet which seems > to have fixed my problem > <http://social.technet.microsoft.com/Forums/en-US/sharepoint2010customization/thread/a3c27dd4-baca-4ca6-a27c-82f2706bc9dc> > > > ...
1,257,867
I have the following code ``` <?php $doc = new DOMDocument; $doc->loadhtml('<html> <head> <title>bar , this is an example</title> </head> <body> <h1>latest news</h1> ...
2009/08/11
[ "https://Stackoverflow.com/questions/1257867", "https://Stackoverflow.com", "https://Stackoverflow.com/users/459737/" ]
I might be wrong, but in Win32 land you don't get mouse move messages when the mouse is at the edge of the screen because, well, the mouse isn't moving. The usual way to get an infinite mouse area is to do the following: 1. Hide the mouse, get exclusive access and record position 2. Centre mouse to window 3. When mous...
Just get the position, and move it to the center and return the delta yourself This is how FPS games do it
1,257,867
I have the following code ``` <?php $doc = new DOMDocument; $doc->loadhtml('<html> <head> <title>bar , this is an example</title> </head> <body> <h1>latest news</h1> ...
2009/08/11
[ "https://Stackoverflow.com/questions/1257867", "https://Stackoverflow.com", "https://Stackoverflow.com/users/459737/" ]
I might be wrong, but in Win32 land you don't get mouse move messages when the mouse is at the edge of the screen because, well, the mouse isn't moving. The usual way to get an infinite mouse area is to do the following: 1. Hide the mouse, get exclusive access and record position 2. Centre mouse to window 3. When mous...
I don't have any direct experience with raw input, which is probably what you need to tap into. [According to MSDN](http://msdn.microsoft.com/en-us/library/bb206183%28VS.85%29.aspx), you have to register the device, then setup your winproc to accept the WM\_INPUT messages and then do your calculations based on the raw ...
779,153
I have a database that has a 28gig transaction log file. Recovery mode is simple. I just took a full backup of the database, and then ran both: `backup log dbmcms with truncate_only` DBCC SHRINKFILE ('Wxlog0', TRUNCATEONLY) The name of the db is db\_mcms and the name of the transaction log file is Wxlog0. Neither ...
2009/04/22
[ "https://Stackoverflow.com/questions/779153", "https://Stackoverflow.com", "https://Stackoverflow.com/users/81681/" ]
You may run into this problem if your database is set to autogrow the log & you end up with lots of virtual log files. Run `DBCC LOGINFO('databasename')` & look at the last entry, if this is a 2 then your log file wont shrink. Unlike data files virtual log files cannot be moved around inside the log file. You will ...
If you set the recovery mode on the database in 2005 (don't know for pre-2005) it will drop the log file all together and then you can put it back in full recovery mode to restart/recreate the logfile. We ran into this with SQL 2005 express in that we couldn't get near the 4GB limit with data until we changed the recov...
779,153
I have a database that has a 28gig transaction log file. Recovery mode is simple. I just took a full backup of the database, and then ran both: `backup log dbmcms with truncate_only` DBCC SHRINKFILE ('Wxlog0', TRUNCATEONLY) The name of the db is db\_mcms and the name of the transaction log file is Wxlog0. Neither ...
2009/04/22
[ "https://Stackoverflow.com/questions/779153", "https://Stackoverflow.com", "https://Stackoverflow.com/users/81681/" ]
'sp\_removedbreplication' didn't solve the issue for me as SQL just returned saying that the Database wasn't part of a replication... I found my answer here: * <http://www.sql-server-performance.com/forum/threads/log-file-fails-to-truncate.25410/> * <http://blogs.msdn.com/b/sqlserverfaq/archive/2009/06/01/size-of-the...
You cannot shrink a transaction log smaller than its initially created size.
779,153
I have a database that has a 28gig transaction log file. Recovery mode is simple. I just took a full backup of the database, and then ran both: `backup log dbmcms with truncate_only` DBCC SHRINKFILE ('Wxlog0', TRUNCATEONLY) The name of the db is db\_mcms and the name of the transaction log file is Wxlog0. Neither ...
2009/04/22
[ "https://Stackoverflow.com/questions/779153", "https://Stackoverflow.com", "https://Stackoverflow.com/users/81681/" ]
'sp\_removedbreplication' didn't solve the issue for me as SQL just returned saying that the Database wasn't part of a replication... I found my answer here: * <http://www.sql-server-performance.com/forum/threads/log-file-fails-to-truncate.25410/> * <http://blogs.msdn.com/b/sqlserverfaq/archive/2009/06/01/size-of-the...
I know this is a few years old, but wanted to add some info. I found on very large logs, specifically when the DB was not set to backup transaction logs (logs were very big), the first backup of the logs would not set log\_reuse\_wait\_desc to nothing but leave the status as still backing up. This would block the shri...
779,153
I have a database that has a 28gig transaction log file. Recovery mode is simple. I just took a full backup of the database, and then ran both: `backup log dbmcms with truncate_only` DBCC SHRINKFILE ('Wxlog0', TRUNCATEONLY) The name of the db is db\_mcms and the name of the transaction log file is Wxlog0. Neither ...
2009/04/22
[ "https://Stackoverflow.com/questions/779153", "https://Stackoverflow.com", "https://Stackoverflow.com/users/81681/" ]
Don't you need this ``` DBCC SHRINKFILE ('Wxlog0', 0) ``` Just be sure that you are aware of the dangers: see here: [Do not truncate your ldf files!](http://blogs.lessthandot.com/index.php/DataMgmt/DBAdmin/MSSQLServerAdmin/do-not-truncate-your-ldf-files) And here [Backup Log with Truncate\_Only: Like a Bear Trap](h...
I know this is a few years old, but wanted to add some info. I found on very large logs, specifically when the DB was not set to backup transaction logs (logs were very big), the first backup of the logs would not set log\_reuse\_wait\_desc to nothing but leave the status as still backing up. This would block the shri...
779,153
I have a database that has a 28gig transaction log file. Recovery mode is simple. I just took a full backup of the database, and then ran both: `backup log dbmcms with truncate_only` DBCC SHRINKFILE ('Wxlog0', TRUNCATEONLY) The name of the db is db\_mcms and the name of the transaction log file is Wxlog0. Neither ...
2009/04/22
[ "https://Stackoverflow.com/questions/779153", "https://Stackoverflow.com", "https://Stackoverflow.com/users/81681/" ]
This answer has been lifted from [here](http://social.msdn.microsoft.com/Forums/en-US/sqlreplication/thread/34ab68ad-706d-43c4-8def-38c09e3bfc3b/) and is posted here in case the other thread gets deleted: > > The fact that you have non-distributed LSN in the log is the problem. > I have seen this once before not sur...
Put the DB back into Full mode, run the transaction log backup (not just a full backup) and then the shrink. After it's shrunk, you can put the DB back into simple mode and it txn log will stay the same size.
779,153
I have a database that has a 28gig transaction log file. Recovery mode is simple. I just took a full backup of the database, and then ran both: `backup log dbmcms with truncate_only` DBCC SHRINKFILE ('Wxlog0', TRUNCATEONLY) The name of the db is db\_mcms and the name of the transaction log file is Wxlog0. Neither ...
2009/04/22
[ "https://Stackoverflow.com/questions/779153", "https://Stackoverflow.com", "https://Stackoverflow.com/users/81681/" ]
'sp\_removedbreplication' didn't solve the issue for me as SQL just returned saying that the Database wasn't part of a replication... I found my answer here: * <http://www.sql-server-performance.com/forum/threads/log-file-fails-to-truncate.25410/> * <http://blogs.msdn.com/b/sqlserverfaq/archive/2009/06/01/size-of-the...
I had the same problem. I ran an index defrag process but the transaction log became full and the defrag process errored out. The transaction log remained large. I backed up the transaction log then proceeded to shrink the transaction log .ldf file. However the transaction log did not shrink at all. I then issued a "...
779,153
I have a database that has a 28gig transaction log file. Recovery mode is simple. I just took a full backup of the database, and then ran both: `backup log dbmcms with truncate_only` DBCC SHRINKFILE ('Wxlog0', TRUNCATEONLY) The name of the db is db\_mcms and the name of the transaction log file is Wxlog0. Neither ...
2009/04/22
[ "https://Stackoverflow.com/questions/779153", "https://Stackoverflow.com", "https://Stackoverflow.com/users/81681/" ]
I've had the same issue in the past. Normally a shrink and a trn backup need to occur multiple times. In extreme cases I set the DB to "Simple" recovery and then run a shrink operation on the log file. That always works for me. However recently I had a situation where that would not work. The issue was caused by a long...
Put the DB back into Full mode, run the transaction log backup (not just a full backup) and then the shrink. After it's shrunk, you can put the DB back into simple mode and it txn log will stay the same size.
779,153
I have a database that has a 28gig transaction log file. Recovery mode is simple. I just took a full backup of the database, and then ran both: `backup log dbmcms with truncate_only` DBCC SHRINKFILE ('Wxlog0', TRUNCATEONLY) The name of the db is db\_mcms and the name of the transaction log file is Wxlog0. Neither ...
2009/04/22
[ "https://Stackoverflow.com/questions/779153", "https://Stackoverflow.com", "https://Stackoverflow.com/users/81681/" ]
Thank you to everyone for answering. We finally found the issue. In sys.databases, log\_reuse\_wait\_desc was equal to 'replication'. Apparently this means something to the effect of SQL Server waiting for a replication task to finish before it can reuse the log space. Replication has never been used on this DB or t...
This answer has been lifted from [here](http://social.msdn.microsoft.com/Forums/en-US/sqlreplication/thread/34ab68ad-706d-43c4-8def-38c09e3bfc3b/) and is posted here in case the other thread gets deleted: > > The fact that you have non-distributed LSN in the log is the problem. > I have seen this once before not sur...
779,153
I have a database that has a 28gig transaction log file. Recovery mode is simple. I just took a full backup of the database, and then ran both: `backup log dbmcms with truncate_only` DBCC SHRINKFILE ('Wxlog0', TRUNCATEONLY) The name of the db is db\_mcms and the name of the transaction log file is Wxlog0. Neither ...
2009/04/22
[ "https://Stackoverflow.com/questions/779153", "https://Stackoverflow.com", "https://Stackoverflow.com/users/81681/" ]
This answer has been lifted from [here](http://social.msdn.microsoft.com/Forums/en-US/sqlreplication/thread/34ab68ad-706d-43c4-8def-38c09e3bfc3b/) and is posted here in case the other thread gets deleted: > > The fact that you have non-distributed LSN in the log is the problem. > I have seen this once before not sur...
I know this is a few years old, but wanted to add some info. I found on very large logs, specifically when the DB was not set to backup transaction logs (logs were very big), the first backup of the logs would not set log\_reuse\_wait\_desc to nothing but leave the status as still backing up. This would block the shri...
779,153
I have a database that has a 28gig transaction log file. Recovery mode is simple. I just took a full backup of the database, and then ran both: `backup log dbmcms with truncate_only` DBCC SHRINKFILE ('Wxlog0', TRUNCATEONLY) The name of the db is db\_mcms and the name of the transaction log file is Wxlog0. Neither ...
2009/04/22
[ "https://Stackoverflow.com/questions/779153", "https://Stackoverflow.com", "https://Stackoverflow.com/users/81681/" ]
I've had the same issue in the past. Normally a shrink and a trn backup need to occur multiple times. In extreme cases I set the DB to "Simple" recovery and then run a shrink operation on the log file. That always works for me. However recently I had a situation where that would not work. The issue was caused by a long...
You cannot shrink a transaction log smaller than its initially created size.
19,114,532
I'm try to host several domain on the same VPS, using HHVM to serve the pages. I'm wondering how can I write the VirtualHost in order to point the right folder in my /var/www directory ? For example xxx.domain.com >> /var/www/domain.com/
2013/10/01
[ "https://Stackoverflow.com/questions/19114532", "https://Stackoverflow.com", "https://Stackoverflow.com/users/100782/" ]
Good news. Since the release of HHVM 2.3 (Dec 13, 2013), you can run HHVM in FCGI mode. Use either Nginx or Apache and it works wonderfully. Reference: <http://www.hhvm.com/blog/1817/fastercgi-with-hhvm> With an older version of HHVM you can run multiple server instances on internal ports, i.e. 8001, 8002, etc. Then ...
Apparently is not yet possible. Accordling to the official [github repository](https://github.com/facebook/hiphop-php) where the code is hosted exists an [open issue](https://github.com/facebook/hiphop-php/issues/885) about the same issue you are asking and it's tag for **wishlist** / **feature request**. Probably the...
19,114,532
I'm try to host several domain on the same VPS, using HHVM to serve the pages. I'm wondering how can I write the VirtualHost in order to point the right folder in my /var/www directory ? For example xxx.domain.com >> /var/www/domain.com/
2013/10/01
[ "https://Stackoverflow.com/questions/19114532", "https://Stackoverflow.com", "https://Stackoverflow.com/users/100782/" ]
Apparently is not yet possible. Accordling to the official [github repository](https://github.com/facebook/hiphop-php) where the code is hosted exists an [open issue](https://github.com/facebook/hiphop-php/issues/885) about the same issue you are asking and it's tag for **wishlist** / **feature request**. Probably the...
On Nginx, the only way I was able to get this to work was to use `/` as `SourceRoot` for HHVM, and to add a `/` in `fastcgi_param SCRIPT_FILENAME /$document_root$fastcgi_script_name;` in my `/etc/nginx/hhvm.conf` file. With that combination, I'm running ~7 sites without a problem so far. I'm running Ubuntu 13.10 64-bit...
19,114,532
I'm try to host several domain on the same VPS, using HHVM to serve the pages. I'm wondering how can I write the VirtualHost in order to point the right folder in my /var/www directory ? For example xxx.domain.com >> /var/www/domain.com/
2013/10/01
[ "https://Stackoverflow.com/questions/19114532", "https://Stackoverflow.com", "https://Stackoverflow.com/users/100782/" ]
Good news. Since the release of HHVM 2.3 (Dec 13, 2013), you can run HHVM in FCGI mode. Use either Nginx or Apache and it works wonderfully. Reference: <http://www.hhvm.com/blog/1817/fastercgi-with-hhvm> With an older version of HHVM you can run multiple server instances on internal ports, i.e. 8001, 8002, etc. Then ...
On Nginx, the only way I was able to get this to work was to use `/` as `SourceRoot` for HHVM, and to add a `/` in `fastcgi_param SCRIPT_FILENAME /$document_root$fastcgi_script_name;` in my `/etc/nginx/hhvm.conf` file. With that combination, I'm running ~7 sites without a problem so far. I'm running Ubuntu 13.10 64-bit...
69,899,077
I am not really familiar with HTML and CSS and I am having some problems with fixing my problem. I am trying to fit the picture excatly on the grid and the grid to be visible in the center of the page which actually it is. I saw that there are a lot of questions about this and I tried to look at the answers the quest...
2021/11/09
[ "https://Stackoverflow.com/questions/69899077", "https://Stackoverflow.com", "https://Stackoverflow.com/users/15788008/" ]
Okay you can do it like this: ``` .grid-container { display: grid; grid-template-columns: repeat(7, 1fr); background-color: #8B38BE; padding: 70px; margin: auto; width: 700px; } .grid-item { background-color: #E0E7FF; border: 1px solid black; padding: 40px; text-align: center; position:relative;...
From what i understand you are trying to center the grid, there are multiple ways you can do this though, im not sure what your looks like. Im not sure if its loading any CSS or not at all doing anything. If you wanted to you could make a div with everything in it and do something like: ```css .grid { position: ab...
69,899,077
I am not really familiar with HTML and CSS and I am having some problems with fixing my problem. I am trying to fit the picture excatly on the grid and the grid to be visible in the center of the page which actually it is. I saw that there are a lot of questions about this and I tried to look at the answers the quest...
2021/11/09
[ "https://Stackoverflow.com/questions/69899077", "https://Stackoverflow.com", "https://Stackoverflow.com/users/15788008/" ]
Okay you can do it like this: ``` .grid-container { display: grid; grid-template-columns: repeat(7, 1fr); background-color: #8B38BE; padding: 70px; margin: auto; width: 700px; } .grid-item { background-color: #E0E7FF; border: 1px solid black; padding: 40px; text-align: center; position:relative;...
Here I have used aspect ratio. Please update below css in your code. ``` .grid-item { background-color: #E0E7FF; border: 1px solid black; padding-bottom: 100%; text-align: center; position: relative; } .grid-item > img { max-width: 100%; height: 100%; object-fit: cover; display: block; position: a...
69,899,077
I am not really familiar with HTML and CSS and I am having some problems with fixing my problem. I am trying to fit the picture excatly on the grid and the grid to be visible in the center of the page which actually it is. I saw that there are a lot of questions about this and I tried to look at the answers the quest...
2021/11/09
[ "https://Stackoverflow.com/questions/69899077", "https://Stackoverflow.com", "https://Stackoverflow.com/users/15788008/" ]
Okay you can do it like this: ``` .grid-container { display: grid; grid-template-columns: repeat(7, 1fr); background-color: #8B38BE; padding: 70px; margin: auto; width: 700px; } .grid-item { background-color: #E0E7FF; border: 1px solid black; padding: 40px; text-align: center; position:relative;...
Instead of using `.grid-item > img {}` I would just define it as a class (since you're telling it, it has a .img class. Further, remove padding and use height:100% ``` .img { max-width: 100%; height: 100%; padding: 0; object-fit: cover; display: block; } ```
29,754,913
i am facing problem in android studio. In eclipse when i want to use class like Intent, then i write intent starting with lower case it give me suggestion box indicating class name Intent, but in android studio if i type intent starting with lower case it does not Provide Suggestion class name Intent.Thanks in advance.
2015/04/20
[ "https://Stackoverflow.com/questions/29754913", "https://Stackoverflow.com", "https://Stackoverflow.com/users/4022497/" ]
In my case Ctrl + Space was overloaded by mac shortcuts. And even in the case, I disabled them, they conflict with Android Studio. So, I gave them another keys and it solved the problem. Go to the `System Preferences -> Keyboard -> Shortcuts -> Input Sources` and use new keys for them. [![enter image description her...
The problem is that Android Studio has different key binding than Eclipse, but you can set the key binding to be the same as in eclipse in android studio settings. Also by default ctrl + space is case sensitive in Android studio, you need to turn that off too. Move to File -> Settings -> Keymap and change keymaps sett...
29,754,913
i am facing problem in android studio. In eclipse when i want to use class like Intent, then i write intent starting with lower case it give me suggestion box indicating class name Intent, but in android studio if i type intent starting with lower case it does not Provide Suggestion class name Intent.Thanks in advance.
2015/04/20
[ "https://Stackoverflow.com/questions/29754913", "https://Stackoverflow.com", "https://Stackoverflow.com/users/4022497/" ]
In my case Ctrl + Space was overloaded by mac shortcuts. And even in the case, I disabled them, they conflict with Android Studio. So, I gave them another keys and it solved the problem. Go to the `System Preferences -> Keyboard -> Shortcuts -> Input Sources` and use new keys for them. [![enter image description her...
`File --> Settings --> Editor --> General --> Code Completion --> Case sensitive completion --> None`
24,964,232
Trying to fire a function at the end of an embedded YouTube iFrame's end. Just need to know how to find the end - after that I am good.
2014/07/25
[ "https://Stackoverflow.com/questions/24964232", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1385272/" ]
Your CAML query is malformed. An OR tag cannot contain more than two fields, so any further fields have to be nested. ```xml <OR > FEILD 4 < OR > FEILD 3 < OR > FELD 1 FELD 2 < /OR > < /OR > </ OR > ``` Try CAML query helper <http://spcamlqueryhelper.codep...
You need to mix AND's with your OR's. For Example: ``` <Where> <And> <Or> <IsNull> <FieldRef Name='Field1' /> </IsNull> <IsNull> <FieldRef Name='Field2' /> </IsNull> </Or> <And> <Or> ...
14,414,832
What is the actual benefit and purpose of `initializer_list`, for unknown number of parameters? Why not just use `vector` and be done with it? In fact, it sounds like just a `vector` with another name. Why bother? The only "benefit" I see of `initializer_list` is that it has `const` elements, but that doesn't seem to...
2013/01/19
[ "https://Stackoverflow.com/questions/14414832", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1859852/" ]
It is a sort of contract between the programmer and the compiler. The programmer says `{1,2,3,4}`, and the compiler creates an object of type `initializer_list<int>` out of it, containing the same sequence of elements in it. This contract is a requirement imposed by the language specification on the compiler implementa...
Well, `std::vector` *has* to use `initializer_list` to get that syntax as it obviously can't use itself. Anyway, `initializer_list` is intended to be extremely lightweight. It can use an optimal storage location and prevent unnecessary copies. With `vector`, you're always going to get a heap allocation and have a good...
14,414,832
What is the actual benefit and purpose of `initializer_list`, for unknown number of parameters? Why not just use `vector` and be done with it? In fact, it sounds like just a `vector` with another name. Why bother? The only "benefit" I see of `initializer_list` is that it has `const` elements, but that doesn't seem to...
2013/01/19
[ "https://Stackoverflow.com/questions/14414832", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1859852/" ]
Well, `std::vector` *has* to use `initializer_list` to get that syntax as it obviously can't use itself. Anyway, `initializer_list` is intended to be extremely lightweight. It can use an optimal storage location and prevent unnecessary copies. With `vector`, you're always going to get a heap allocation and have a good...
The biggest advantage of `initializer_list` over `vector` is that it allows you to specify *in-place* a certain sequence of elements without requiring delicate processing to create that list. This saves you from setting up several calls to `push_back` (or a `for` cycle) for initializing a `vector` even though you know...
14,414,832
What is the actual benefit and purpose of `initializer_list`, for unknown number of parameters? Why not just use `vector` and be done with it? In fact, it sounds like just a `vector` with another name. Why bother? The only "benefit" I see of `initializer_list` is that it has `const` elements, but that doesn't seem to...
2013/01/19
[ "https://Stackoverflow.com/questions/14414832", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1859852/" ]
It is a sort of contract between the programmer and the compiler. The programmer says `{1,2,3,4}`, and the compiler creates an object of type `initializer_list<int>` out of it, containing the same sequence of elements in it. This contract is a requirement imposed by the language specification on the compiler implementa...
The biggest advantage of `initializer_list` over `vector` is that it allows you to specify *in-place* a certain sequence of elements without requiring delicate processing to create that list. This saves you from setting up several calls to `push_back` (or a `for` cycle) for initializing a `vector` even though you know...
74,294,746
I am trying to create plug-in that will catch any send item and show warning before sent out. Currently I am using the below code ``` private void ThisAddIn_Startup(object sender, System.EventArgs e) { Outlook.Application application = Globals.ThisAddIn.Application; application....
2022/11/02
[ "https://Stackoverflow.com/questions/74294746", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20401086/" ]
I can confirm that the `ItemSend` event is fired for all outgoing emails in Outlook, including inline responses. To make sure I've just created a sample VSTO add-in and placed your code there. Everything works correctly when I reply to items in-place. Try to declare the Application object at the class level. But I thin...
It should work in all cases, but Outlook disables most OOM events for the items created using Simple MAPI or from the "`mailto:"` links. Is that the case?
175,433
Is there any way to have a [Decanter of Endless Water](https://www.dndbeyond.com/magic-items/decanter-of-endless-water) pour out other drinkable liquids? If so, how could I get one? It seems reasonable to me as a possibility. If not how might you go about modifying a decanter of endless water to do so?
2020/09/15
[ "https://rpg.stackexchange.com/questions/175433", "https://rpg.stackexchange.com", "https://rpg.stackexchange.com/users/30985/" ]
### Not quite, the closest item would be the Alchemy Jug. There is nothing in the way of detailed lore behind the Decanter of Endless Water, so it is entirely up to the DM what this looks like in their world - they may choose to create a Decanter of Endless Whisky if they wish. But, there does exist a canonical altern...
The Alchemy Jug (as mentioned above) would be closest, but also note that Hoard of the Dragon Queen p.74 contains a Tankard of Plenty. > > The Golden Tankard takes its name from a magic item that Raggnar found years ago: a golden stein decorated with dancing dwarves and grain patterns. This is a tankard of plenty. Sp...
175,433
Is there any way to have a [Decanter of Endless Water](https://www.dndbeyond.com/magic-items/decanter-of-endless-water) pour out other drinkable liquids? If so, how could I get one? It seems reasonable to me as a possibility. If not how might you go about modifying a decanter of endless water to do so?
2020/09/15
[ "https://rpg.stackexchange.com/questions/175433", "https://rpg.stackexchange.com", "https://rpg.stackexchange.com/users/30985/" ]
It's Up To Your DM ------------------ Technically, the rulebooks have no Decanter of Endless (Insert any liquid here) among the plethora of items Wizards presents us with, however that doesn't mean that is impossible. In the DMG, in Chapter 9: Dungeon Master's Workshop on page 284, we are presented with the "Modifying...
The Alchemy Jug (as mentioned above) would be closest, but also note that Hoard of the Dragon Queen p.74 contains a Tankard of Plenty. > > The Golden Tankard takes its name from a magic item that Raggnar found years ago: a golden stein decorated with dancing dwarves and grain patterns. This is a tankard of plenty. Sp...
175,433
Is there any way to have a [Decanter of Endless Water](https://www.dndbeyond.com/magic-items/decanter-of-endless-water) pour out other drinkable liquids? If so, how could I get one? It seems reasonable to me as a possibility. If not how might you go about modifying a decanter of endless water to do so?
2020/09/15
[ "https://rpg.stackexchange.com/questions/175433", "https://rpg.stackexchange.com", "https://rpg.stackexchange.com/users/30985/" ]
The less-than-serious scenario pack for AD&D 1e *Castle Greyhawk* contains a Decanter of Endless Lemonade. And many other silly things.
The Alchemy Jug (as mentioned above) would be closest, but also note that Hoard of the Dragon Queen p.74 contains a Tankard of Plenty. > > The Golden Tankard takes its name from a magic item that Raggnar found years ago: a golden stein decorated with dancing dwarves and grain patterns. This is a tankard of plenty. Sp...
57,302,214
I'm not an expert in SQL but I recently started using `sqlite3` module in `Python` with databases and together with `pandas` and its `read_sql_query()` they make a pretty nice tool. Now, say, I have a database looking something like this (I just really made this up for the demo purposes). ``` age iq married ========...
2019/08/01
[ "https://Stackoverflow.com/questions/57302214", "https://Stackoverflow.com", "https://Stackoverflow.com/users/4888158/" ]
One approach would be to use an `EXISTS` condition in the `WHERE` clause which asserts that a given IQ value matches at least one other married record: ``` SELECT age, iq, married FROM People p1 WHERE EXISTS (SELECT 1 FROM People p2 WHERE p1.iq = p2.iq AND p2.married = 1); ``` [![enter image description here](https:...
Try this query: ``` select * from People where iq in ( select iq from People group by iq having sum(married) > 0 ) ```
228,255
Say I have one old and one new bike. Should I write: > > Both the old and the new bike should be there. > > > or > > Both the old and the new bike**s** should be there. > > >
2019/10/22
[ "https://ell.stackexchange.com/questions/228255", "https://ell.stackexchange.com", "https://ell.stackexchange.com/users/32536/" ]
The first is more specific: you have one of each. The second is less specific: you have a mixture of old and new bikes.
> > **Both the old bike and the new bike should be there**. > > > **The old bike** is singular **The new book is singular** So the old bike and the new bike are plural and mean one old book and one new book. So the above sentence is correct. If you say : > > **Both the old and the new bikes**, it means some ...
282,376
Let $\sigma$ be an element of $SL\_{24}(\mathbb{Z})$ with its Jordan normal form is diagonal and the eigen values are $\epsilon\_j$ for $1 \le j \le 24$ are n th root of unity where $n|N$ and $N$ is the finite order of $\sigma$. Equivalently we are describing $\sigma$ through its cycle shape $(a\_1)^{b\_1}\cdots(a\_s)^...
2017/09/30
[ "https://mathoverflow.net/questions/282376", "https://mathoverflow.net", "https://mathoverflow.net/users/33047/" ]
What you have is positive integers such that $\;a\_1b\_1+\dots+a\_sb\_s=24.$ Your $q/\eta\_\sigma(q)$ is an example of an eta-quotient and is a modular function of negative weight. As just one example, if $\;a\_1=1,b\_1=24\;$ then $\eta\_\sigma(q)=\Delta(q)$ is the generating function of the [Ramanujan tau function](ht...
It is not an answer, but just some comments where such $\eta$ products appear: * A version of Moonshine for the [Mathieu group M24](https://en.wikipedia.org/wiki/Mathieu_group) proposed by G. Mason around 1985, the coefficients $a\_i, b\_i$ are related with the cycle structre of M24 elements ([see here](https://en.wi...
6,602,151
First off, sorry for the cryptic question. My team is currently using Selenium 2.0rc3 (with python) for testing our web app with chrome. When we used the 2.02b version of Selenium, our test passed (it was a little slow and we had small hacks that we added to webdriver). After we upgraded, the test became extremely fas...
2011/07/06
[ "https://Stackoverflow.com/questions/6602151", "https://Stackoverflow.com", "https://Stackoverflow.com/users/698913/" ]
Your problem is not really that it's clicking too fast. Just that it's clicking before that element is present. There are two ways to get round this: 1. Wait until the element is present before clicking 2. Increase the implicit wait time I'm afraid I haven't used the WebDriver Python bindings. However, I can tell you...
If the click() executes ajax calls I would suggest you to use NicelyResynchronizingAjaxController
6,602,151
First off, sorry for the cryptic question. My team is currently using Selenium 2.0rc3 (with python) for testing our web app with chrome. When we used the 2.02b version of Selenium, our test passed (it was a little slow and we had small hacks that we added to webdriver). After we upgraded, the test became extremely fas...
2011/07/06
[ "https://Stackoverflow.com/questions/6602151", "https://Stackoverflow.com", "https://Stackoverflow.com/users/698913/" ]
I've tried the selenium-2 rc3 python bindings for chrome. My experience was the opposite of what you're describing - after clicking, the driver didn't know that the page was ready for it to continue. So instead of speeding up the tests, they turned out very slow (because the driver was waiting for ages). However, the f...
If the click() executes ajax calls I would suggest you to use NicelyResynchronizingAjaxController
6,602,151
First off, sorry for the cryptic question. My team is currently using Selenium 2.0rc3 (with python) for testing our web app with chrome. When we used the 2.02b version of Selenium, our test passed (it was a little slow and we had small hacks that we added to webdriver). After we upgraded, the test became extremely fas...
2011/07/06
[ "https://Stackoverflow.com/questions/6602151", "https://Stackoverflow.com", "https://Stackoverflow.com/users/698913/" ]
Your problem is not really that it's clicking too fast. Just that it's clicking before that element is present. There are two ways to get round this: 1. Wait until the element is present before clicking 2. Increase the implicit wait time I'm afraid I haven't used the WebDriver Python bindings. However, I can tell you...
I've tried the selenium-2 rc3 python bindings for chrome. My experience was the opposite of what you're describing - after clicking, the driver didn't know that the page was ready for it to continue. So instead of speeding up the tests, they turned out very slow (because the driver was waiting for ages). However, the f...
418,715
I have a 16" 2019 MacBook Pro. A few days ago, I didn't have my MacBook charger on hand. After a quick internet research of whether or not it works, I borrowed my wife's DELL XPS charger (USB-C, 130W I believe). My MacBook charged fine with it. A few days later, I noticed that my MacBook is charging very slowly (with...
2021/04/13
[ "https://apple.stackexchange.com/questions/418715", "https://apple.stackexchange.com", "https://apple.stackexchange.com/users/209332/" ]
The issue eventually resolved itself through a MacOS update. Also no more issues with 3rd party USB-C chargers. If I remember correctly, it was fixed by version `11.2.2`, see [Apple releases macOS update to prevent damage from third-party docks and dongles](https://www.theverge.com/2021/2/25/22301846/apple-macos-updat...
I doubt it's just a coincidence. There's more to the Apple chargers than just "give juice to the battery", but I couldn't tell you what another charger may have done to your system. It could be as simple as an SMC reset (The SMC manages low-level settings such as battery management). From [howtogeek.com](https://ww...
11,249,869
My aim is to create a navigation menu using jquery. when the user rollover over left1, right 1 should appear and so forth. I am trying to code this in jquery but i am a little tied up. please assist css ``` .left { background: #fff; padding: 10px; width: 200px; border: 1px solid #ccc; position:relative } .right{ ba...
2012/06/28
[ "https://Stackoverflow.com/questions/11249869", "https://Stackoverflow.com", "https://Stackoverflow.com/users/836910/" ]
Something like this? ``` $(".left").hover(function() { var id = $(this).attr('id').match(/\d+$/); $("#r" + id).css({'visibility':'visible'}); }, function() { $(".right").css({'visibility':'hidden'}); });​ ``` [**DEMO**](http://jsfiddle.net/ASUuL/1/)
Here is a method of doing this with jquery: <http://jsfiddle.net/surendraVsingh/h4wsS/6/> **Jquery:** ``` $('.left').hover(function(){ var x = ($(".left").index(this))+1; var rx = '#r'+x; $(rx).toggle(); });​ ``` **CSS:** *Removed visibility:hidden & added display:none*. ``` .right{ background:aqua; ...
11,249,869
My aim is to create a navigation menu using jquery. when the user rollover over left1, right 1 should appear and so forth. I am trying to code this in jquery but i am a little tied up. please assist css ``` .left { background: #fff; padding: 10px; width: 200px; border: 1px solid #ccc; position:relative } .right{ ba...
2012/06/28
[ "https://Stackoverflow.com/questions/11249869", "https://Stackoverflow.com", "https://Stackoverflow.com/users/836910/" ]
You have a few fundamental problems here. 1. ID is undefined. 2. You have a function named `rightFrame()` but you are not calling it anywhere in the script. 3. You should use classes and `$(this)` to open and close menu items instead of IDs. Here is a Fiddle to show you an easy fix: <http://jsfiddle.net/PFnDe/1/> **...
Here is a method of doing this with jquery: <http://jsfiddle.net/surendraVsingh/h4wsS/6/> **Jquery:** ``` $('.left').hover(function(){ var x = ($(".left").index(this))+1; var rx = '#r'+x; $(rx).toggle(); });​ ``` **CSS:** *Removed visibility:hidden & added display:none*. ``` .right{ background:aqua; ...
18,651,673
I have two lists I would like to compare them for updated/modified columns. Compare 2 Lists of the same class and show the different values in a new list I would like to do this using linq. The only problem is I am dealing with a lot of columns, over excess of 30 columns in each. Any suggestions would be of great help....
2013/09/06
[ "https://Stackoverflow.com/questions/18651673", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1068964/" ]
Let's assume that: 1. `PartnerAndPartnerPositionEntity` class contains a property named `Id` that represents the unique key of an item Given the above you can: Get all properties of your type ``` var properties = typeof(PartnerAndPartnerPositionEntity).GetProperties(); ``` Join the two lists on the `Id` property...
Well, if you want to avoid doing it the boring and tedious way, you need to use reflection to dynamically get the class members then get their values for each instance. See [C# Reflection - Get field values from a simple class](https://stackoverflow.com/questions/7649324/c-sharp-reflection-get-field-values-from-a-simpl...
18,651,673
I have two lists I would like to compare them for updated/modified columns. Compare 2 Lists of the same class and show the different values in a new list I would like to do this using linq. The only problem is I am dealing with a lot of columns, over excess of 30 columns in each. Any suggestions would be of great help....
2013/09/06
[ "https://Stackoverflow.com/questions/18651673", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1068964/" ]
Let's assume that: 1. `PartnerAndPartnerPositionEntity` class contains a property named `Id` that represents the unique key of an item Given the above you can: Get all properties of your type ``` var properties = typeof(PartnerAndPartnerPositionEntity).GetProperties(); ``` Join the two lists on the `Id` property...
There...this will generate new IL! ``` public static class EqualityHelper { private ConcurrentDictionary<Type, object> _cache = new ConcurrentDictionary<Type, object>(); public bool AreEqual<T>(T left, T right) { var equality = (Func<T,T,bool>)_cache.GetOrAdd(typeof(T), CreateEquality<T>()); ...
871,153
Instructions on the [airwave github](https://github.com/phantom-code/airwave) requires me to download and install the Audio Plugins SDK. This step confuses me as new Ubuntu user: > > Unpack the VST SDK archive. Further I'll assume that you have unpacked it in your home directory: `${HOME}/VST3\ SDK.` > > > I ha...
2017/01/12
[ "https://askubuntu.com/questions/871153", "https://askubuntu.com", "https://askubuntu.com/users/641579/" ]
${HOME} means your home directory which is /home/username by default. Simply create a new Folder there named "VST3 SDK" and unpack the archive there. The "\ " is used to indicate a whitespace, because if you would use a terminal command a whitespace also seperates arguments.
To create a folder in home, do the following: 1. Open up the terminal 2. You should already be in home (if not, do: `cd ~`) 3. `mkdir <folder_name>` or `sudo mkdir <folder_name>`
6,019,138
We have a legacy database (SQLServer 2008) with thousands of rows in it. Each record has a logdate field which is a date but stored as a varchar in the format `21/04/2010 16:40:12`. We only need to return the rows where the logdate is in the future, and order them by date. We could pull back all the rows and filter on...
2011/05/16
[ "https://Stackoverflow.com/questions/6019138", "https://Stackoverflow.com", "https://Stackoverflow.com/users/448446/" ]
You can't parse a string into a date on the DB server with any built-in L2E function. You can: 1. map a DB function yourself, 2. write SQL and execute it with `ObjectContext.ExecuteStoreQuery`, or 3. fix the metadata. I'd pick the latter, if it were me.
I'm not sure you can do it through pure LINQ unless you create your own LINQ functions. If you can execute an ad-hoc query and have EF4 translate it back into objects, like you can on the DataContext.Translate LINQ2SQL method, you can convert it like this: ``` CONVERT(datetime, logdate, 103) ``` And thus your query ...
6,019,138
We have a legacy database (SQLServer 2008) with thousands of rows in it. Each record has a logdate field which is a date but stored as a varchar in the format `21/04/2010 16:40:12`. We only need to return the rows where the logdate is in the future, and order them by date. We could pull back all the rows and filter on...
2011/05/16
[ "https://Stackoverflow.com/questions/6019138", "https://Stackoverflow.com", "https://Stackoverflow.com/users/448446/" ]
I'm not sure you can do it through pure LINQ unless you create your own LINQ functions. If you can execute an ad-hoc query and have EF4 translate it back into objects, like you can on the DataContext.Translate LINQ2SQL method, you can convert it like this: ``` CONVERT(datetime, logdate, 103) ``` And thus your query ...
The order in a varchar field will be considerably different than the order in date field. Fix your structure to correctly store dates or add an additional date field that is populated through a trigger. Likely you have bad dates in there as well since there are no controls on a varchar field to diallow dates from being...
6,019,138
We have a legacy database (SQLServer 2008) with thousands of rows in it. Each record has a logdate field which is a date but stored as a varchar in the format `21/04/2010 16:40:12`. We only need to return the rows where the logdate is in the future, and order them by date. We could pull back all the rows and filter on...
2011/05/16
[ "https://Stackoverflow.com/questions/6019138", "https://Stackoverflow.com", "https://Stackoverflow.com/users/448446/" ]
You can't parse a string into a date on the DB server with any built-in L2E function. You can: 1. map a DB function yourself, 2. write SQL and execute it with `ObjectContext.ExecuteStoreQuery`, or 3. fix the metadata. I'd pick the latter, if it were me.
The order in a varchar field will be considerably different than the order in date field. Fix your structure to correctly store dates or add an additional date field that is populated through a trigger. Likely you have bad dates in there as well since there are no controls on a varchar field to diallow dates from being...
19,456,034
So, when I send at example "AT" via Serial, GSM always returns me ÿ char. "AT" returns ÿÿ - any one char returns one ÿ. Where is the problem? Maybe connection is wrong? Should I use any resistors and connect GSM TX also to the GND? UPDATE: GSM responds only on CR and NL giving ÿ of each. Any ideas? Code: ``` #includ...
2013/10/18
[ "https://Stackoverflow.com/questions/19456034", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2088947/" ]
Problem was in the power supply. There must be at least 2 ampers.
Sounds like your baud rate is incorrect. Have you tried 19200? Documentation from other SIM900 based boards show the default at 19200.
51,731,027
I want to select the entire column that contain the names to copy it knowing that the Name column number can change between a spreadsheet and another and there is some blank cells in the middle (missing value) Suppose that the Names column is the column B, so if I want to select the entire column even with the some bl...
2018/08/07
[ "https://Stackoverflow.com/questions/51731027", "https://Stackoverflow.com", "https://Stackoverflow.com/users/9613229/" ]
Is this what you are trying? I have commented the code so you should not have a problem understanding it. But if you still do then post your query. Is this what you are trying? ``` Sub ColSelection() Dim NameHeader As Range Dim ws As Worksheet Dim ColName As String Dim LRow As Long Dim rng As Rang...
Sub test1a() ``` Dim NameHeader As Range Set NameHeader = ActiveSheet.UsedRange.Find(InputBox("HEADER")) If Not NameHeader Is Nothing Then ActiveSheet.Range(NameHeader.Offset(1), Cells(Rows.Count, NameHeader.Column).End(xlUp)).Select End If ``` End Sub
51,731,027
I want to select the entire column that contain the names to copy it knowing that the Name column number can change between a spreadsheet and another and there is some blank cells in the middle (missing value) Suppose that the Names column is the column B, so if I want to select the entire column even with the some bl...
2018/08/07
[ "https://Stackoverflow.com/questions/51731027", "https://Stackoverflow.com", "https://Stackoverflow.com/users/9613229/" ]
No need to look at `NameHeader.Address` - just use its `.Column` - something like this (noting that you don't have to `Select` a `Range` before copying. ``` Sub GrabNameCol() Dim NameHeader As Range Set NameHeader = ActiveSheet.UsedRange.Find("Name") If Not NameHeader Is Nothing Then ActiveSheet.R...
Sub test1a() ``` Dim NameHeader As Range Set NameHeader = ActiveSheet.UsedRange.Find(InputBox("HEADER")) If Not NameHeader Is Nothing Then ActiveSheet.Range(NameHeader.Offset(1), Cells(Rows.Count, NameHeader.Column).End(xlUp)).Select End If ``` End Sub
261,535
I have a bathroom faucet with wide set taps made by ‍ who knows? They are all messed up and I need to swap them out. But I simply have not been able to figure out how to remove the taps. The taps are metal with side levers like so: [![The tap with its cover on](https://i.stack.imgur.com/JXQFs.jpg)](https://i.stack.im...
2022/11/30
[ "https://diy.stackexchange.com/questions/261535", "https://diy.stackexchange.com", "https://diy.stackexchange.com/users/159614/" ]
If you aren't keeping the faucet then half the time it is easier to pull out the grinder and just cut it till it will fall through. You have to be careful as you reach the porcelain but generally a grinder, a metal cutting disc and a screw driver to crack the pieces apart works wonders for old faucets. You can spend ...
Remove the hoses from the "T-shaped piece" and unscrew it. Then smack the exposed end with a mallet, upwards, if it hasn't come loose by itself at that point.
261,535
I have a bathroom faucet with wide set taps made by ‍ who knows? They are all messed up and I need to swap them out. But I simply have not been able to figure out how to remove the taps. The taps are metal with side levers like so: [![The tap with its cover on](https://i.stack.imgur.com/JXQFs.jpg)](https://i.stack.im...
2022/11/30
[ "https://diy.stackexchange.com/questions/261535", "https://diy.stackexchange.com", "https://diy.stackexchange.com/users/159614/" ]
Next step, Fist look it there is a pin here to pull out. Then use correct size toll and unscrew the nut (marked with yellow lines) that is holding the ring down. [![pin](https://i.stack.imgur.com/1nxRP.jpg)](https://i.stack.imgur.com/1nxRP.jpg)
Remove the hoses from the "T-shaped piece" and unscrew it. Then smack the exposed end with a mallet, upwards, if it hasn't come loose by itself at that point.
9,352,153
In the below example, I want the Element object to keep track of list of threads who have "marked" the elements. The field variable `name` cannot be changed unless no thread is in the `markedThreadList`. Thread can mark or unmark itself on this element, which adds or removes the thread from the list. ``` class Element...
2012/02/19
[ "https://Stackoverflow.com/questions/9352153", "https://Stackoverflow.com", "https://Stackoverflow.com/users/482594/" ]
A thread is an instance of `java.lang.Thread`. Use a `Set<Thread>` (rather than a List). You can access the current thread using `Thread.currentThread()`.
Perhaps you want to call [`Thread.currentThread()`](http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/Thread.html#currentThread%28%29), which returns a `Thread`?
9,352,153
In the below example, I want the Element object to keep track of list of threads who have "marked" the elements. The field variable `name` cannot be changed unless no thread is in the `markedThreadList`. Thread can mark or unmark itself on this element, which adds or removes the thread from the list. ``` class Element...
2012/02/19
[ "https://Stackoverflow.com/questions/9352153", "https://Stackoverflow.com", "https://Stackoverflow.com/users/482594/" ]
Because multiple threads are modifying a single `Element` instance, you need to consider concurrency issues carefully. Since you have two variables that interact (the element name can only be set if there are no marks), you'll need to synchronize on some lock. Otherwise, you could use a concurrent collection like `Conc...
Perhaps you want to call [`Thread.currentThread()`](http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/Thread.html#currentThread%28%29), which returns a `Thread`?
9,352,153
In the below example, I want the Element object to keep track of list of threads who have "marked" the elements. The field variable `name` cannot be changed unless no thread is in the `markedThreadList`. Thread can mark or unmark itself on this element, which adds or removes the thread from the list. ``` class Element...
2012/02/19
[ "https://Stackoverflow.com/questions/9352153", "https://Stackoverflow.com", "https://Stackoverflow.com/users/482594/" ]
A thread is an instance of `java.lang.Thread`. Use a `Set<Thread>` (rather than a List). You can access the current thread using `Thread.currentThread()`.
Here's an example: ``` import java.util.Set; import java.util.HashSet; import java.util.Iterator; import java.util.Collections; class Element implements Iterable<Thread> { private String name; private final Set<Thread> markedThreads = Collections.synchronizedSet(new HashSet<Thread>()); public void mark()...
9,352,153
In the below example, I want the Element object to keep track of list of threads who have "marked" the elements. The field variable `name` cannot be changed unless no thread is in the `markedThreadList`. Thread can mark or unmark itself on this element, which adds or removes the thread from the list. ``` class Element...
2012/02/19
[ "https://Stackoverflow.com/questions/9352153", "https://Stackoverflow.com", "https://Stackoverflow.com/users/482594/" ]
Because multiple threads are modifying a single `Element` instance, you need to consider concurrency issues carefully. Since you have two variables that interact (the element name can only be set if there are no marks), you'll need to synchronize on some lock. Otherwise, you could use a concurrent collection like `Conc...
Here's an example: ``` import java.util.Set; import java.util.HashSet; import java.util.Iterator; import java.util.Collections; class Element implements Iterable<Thread> { private String name; private final Set<Thread> markedThreads = Collections.synchronizedSet(new HashSet<Thread>()); public void mark()...
28,491,329
Currently creating a chrome extension which sits inside other applications. Currently, the application is an ember based app and therefore has it's url changes via javascript. At some point this was working but I cannot get it to work any longer. Why doesn't it work? ``` $rootScope.$watch(function(){ ...
2015/02/13
[ "https://Stackoverflow.com/questions/28491329", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2785428/" ]
You have to install the package "libspatialindex-dev" with the systems package manager. At least this is true with my system (Mint 17.1) which should be 100% compatible to a default Ubuntu installation.
You have to install `libspatialindex-dev` in your ubuntu system. Here i am using ubuntu 16.04 or 18.04 `sudo apt update` `sudo apt install libspatialindex-dev` install Rtree using your python pip version, i have pip 3.7 `pip3.7 install Rtree` `import rtree`
49,064,157
I am having difficulty running the below simple script from crontab: ``` #!/bin/bash notify-send "battery.sh working" ``` The permissions of the file are `rwxr-xr-x` and its running fine with either of the commands `bash battery.sh` and `sh battery.sh`. In my crontab, I have tried running it with both `bash` and `s...
2018/03/02
[ "https://Stackoverflow.com/questions/49064157", "https://Stackoverflow.com", "https://Stackoverflow.com/users/7116413/" ]
So, It will work just fine and should work in all major browsers, the downside is that it isn't valid. It's not necessarily hurting anything, but since we live in a testable, verifiable world, it's technically counter spec, so it's not to standard.
What makes is not compliant is that it goes against the reasoning of having particular html [symantics](https://www.thoughtco.com/why-use-semantic-html-3468271). The list helps screen readers and crawlers understand the content better. This can help with the users experience as well as assist with proper content index...
49,064,157
I am having difficulty running the below simple script from crontab: ``` #!/bin/bash notify-send "battery.sh working" ``` The permissions of the file are `rwxr-xr-x` and its running fine with either of the commands `bash battery.sh` and `sh battery.sh`. In my crontab, I have tried running it with both `bash` and `s...
2018/03/02
[ "https://Stackoverflow.com/questions/49064157", "https://Stackoverflow.com", "https://Stackoverflow.com/users/7116413/" ]
So, It will work just fine and should work in all major browsers, the downside is that it isn't valid. It's not necessarily hurting anything, but since we live in a testable, verifiable world, it's technically counter spec, so it's not to standard.
What I do if I'm ever unsure if something is valid or not; I go to [W3C validator](https://validator.w3.org/) and input the html. As long as you input a full html file it will tell you if it's valid or not. :) The website gives you three options for validating html: 1. Validate by URI (Just enter the webpage that you...
49,064,157
I am having difficulty running the below simple script from crontab: ``` #!/bin/bash notify-send "battery.sh working" ``` The permissions of the file are `rwxr-xr-x` and its running fine with either of the commands `bash battery.sh` and `sh battery.sh`. In my crontab, I have tried running it with both `bash` and `s...
2018/03/02
[ "https://Stackoverflow.com/questions/49064157", "https://Stackoverflow.com", "https://Stackoverflow.com/users/7116413/" ]
So, It will work just fine and should work in all major browsers, the downside is that it isn't valid. It's not necessarily hurting anything, but since we live in a testable, verifiable world, it's technically counter spec, so it's not to standard.
**Is this legit?** No. Although browser show perfectly but W3C Validator will not permit you write this way. You will get error if you go with your code in validation engine. Validator will show you message like following. "**Error:** Element div not allowed as child of element ol in this context." Also see here: `h...
49,064,157
I am having difficulty running the below simple script from crontab: ``` #!/bin/bash notify-send "battery.sh working" ``` The permissions of the file are `rwxr-xr-x` and its running fine with either of the commands `bash battery.sh` and `sh battery.sh`. In my crontab, I have tried running it with both `bash` and `s...
2018/03/02
[ "https://Stackoverflow.com/questions/49064157", "https://Stackoverflow.com", "https://Stackoverflow.com/users/7116413/" ]
It's not legit, but browsers are extremely forgiving and will still try to render something as best as they can, even if the HTML you give it is technically wrong.
What makes is not compliant is that it goes against the reasoning of having particular html [symantics](https://www.thoughtco.com/why-use-semantic-html-3468271). The list helps screen readers and crawlers understand the content better. This can help with the users experience as well as assist with proper content index...
49,064,157
I am having difficulty running the below simple script from crontab: ``` #!/bin/bash notify-send "battery.sh working" ``` The permissions of the file are `rwxr-xr-x` and its running fine with either of the commands `bash battery.sh` and `sh battery.sh`. In my crontab, I have tried running it with both `bash` and `s...
2018/03/02
[ "https://Stackoverflow.com/questions/49064157", "https://Stackoverflow.com", "https://Stackoverflow.com/users/7116413/" ]
It's not legit, but browsers are extremely forgiving and will still try to render something as best as they can, even if the HTML you give it is technically wrong.
What I do if I'm ever unsure if something is valid or not; I go to [W3C validator](https://validator.w3.org/) and input the html. As long as you input a full html file it will tell you if it's valid or not. :) The website gives you three options for validating html: 1. Validate by URI (Just enter the webpage that you...