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 |
|---|---|---|---|---|---|
9,035,548 | I'm currently writing a REST service within a Symfony2 application. This is (roughly) how one of my controllers look like:
```
/**
* @Route("/account", defaults={"_format" = "json"})
*/
class AccountController extends APIController
{
/**
* @Route("/")
* @Method("get")
*/
public function listAc... | 2012/01/27 | [
"https://Stackoverflow.com/questions/9035548",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/305532/"
] | A prototype is a declaration, but a declaration not always is a prototype. If you don't specify the parameters, then that's only a declaration and not a prototype. That means the compiler won't reject a call to that function complaining it wasn't declared, but won't be able to check if the parameters passed are correct... | A function prototype is a function declaration that specifies the number and types of parameters.
```
T foo(); // non-prototype declaration
T foo(int, char *); // prototype declaration
T foo(int a, char *b); // prototype declaration
``` |
9,035,548 | I'm currently writing a REST service within a Symfony2 application. This is (roughly) how one of my controllers look like:
```
/**
* @Route("/account", defaults={"_format" = "json"})
*/
class AccountController extends APIController
{
/**
* @Route("/")
* @Method("get")
*/
public function listAc... | 2012/01/27 | [
"https://Stackoverflow.com/questions/9035548",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/305532/"
] | A prototype is a declaration, but a declaration not always is a prototype. If you don't specify the parameters, then that's only a declaration and not a prototype. That means the compiler won't reject a call to that function complaining it wasn't declared, but won't be able to check if the parameters passed are correct... | The prototype tells the compiler hey there is a function that looks like this and this is its name `int getanint()`. When you use that function the compiler puts the code calls that function and leaves a place to insert the address to the code that defines what that function does.
So in File Header A;
```
int getani... |
20,573,269 | I'm using Titanium Studio and Titanium SDK. In this case I'm developing for Android but I have an installation on OSX too.
When using Alloy, I can specify
```
<Label class="header" id="someId">Week 50</Label>
```
and then specify the colors,fonts etc in the TSS file like this
```
".header": {
color: "blue"
}
``... | 2013/12/13 | [
"https://Stackoverflow.com/questions/20573269",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/587238/"
] | Alloy style are applied automatically to views created through xml. If you want to keep that effect while you are creating objects inside controller you have to use [$.UI.create()](http://docs.appcelerator.com/titanium/latest/#!/api/Alloy.Controller.UI-method-create) method instead of Titanium API. In your case your co... | Encountered you question while I was searching for something similar. The chosen answer was unfortunately not the solution I was looking for, since I was writing a commonJS and needed the same this. If you are writing a commonJS (but still under an Alloy project) you can use the following solution:
```
var l = Alloy.U... |
5,796 | I went all in with one other player still to act. He threw his cards on the table face up got my reaction then said I call. Is this legal or is his hand folded? | 2015/03/28 | [
"https://poker.stackexchange.com/questions/5796",
"https://poker.stackexchange.com",
"https://poker.stackexchange.com/users/3181/"
] | Yes, you might be 80% against a random hand, but unless he really is just gambling on his last hand (how can you know?) his likely range will significantly lower your odds. For example:
You're getting pot odds of 42%. Your card odds are around 18% if he's only ever shoving AA in this spot, around 23% if he's shoving A... | Unless you think your opponent only ever does this move with AA, you're likely to be at least a 70-80% favourite to win the hand. Maybe not the bet to be making with your entire net worth, but with a portion of your poker bank on the table, I'd call this every time.
Of course you're not going to win 100% of the time (... |
5,796 | I went all in with one other player still to act. He threw his cards on the table face up got my reaction then said I call. Is this legal or is his hand folded? | 2015/03/28 | [
"https://poker.stackexchange.com/questions/5796",
"https://poker.stackexchange.com",
"https://poker.stackexchange.com/users/3181/"
] | Unless you think your opponent only ever does this move with AA, you're likely to be at least a 70-80% favourite to win the hand. Maybe not the bet to be making with your entire net worth, but with a portion of your poker bank on the table, I'd call this every time.
Of course you're not going to win 100% of the time (... | The only way that was a good lay down is if you are 100% sure he had AA.
From your perceptive if you will fold to an all in with anything less than AA then you will be exploited.
If villain only pushes with AA then villain will be exploited.
Even if villain only plays AA, KK, and QQ here you should call as you are ... |
5,796 | I went all in with one other player still to act. He threw his cards on the table face up got my reaction then said I call. Is this legal or is his hand folded? | 2015/03/28 | [
"https://poker.stackexchange.com/questions/5796",
"https://poker.stackexchange.com",
"https://poker.stackexchange.com/users/3181/"
] | Yes, you might be 80% against a random hand, but unless he really is just gambling on his last hand (how can you know?) his likely range will significantly lower your odds. For example:
You're getting pot odds of 42%. Your card odds are around 18% if he's only ever shoving AA in this spot, around 23% if he's shoving A... | The only way that was a good lay down is if you are 100% sure he had AA.
From your perceptive if you will fold to an all in with anything less than AA then you will be exploited.
If villain only pushes with AA then villain will be exploited.
Even if villain only plays AA, KK, and QQ here you should call as you are ... |
29,575 | Now that Windows 7 Enterprise is available for VLK Users to download, I would like to check it out. The only thing holding me back is that I am an application developer (currently developing on a Windows Server 2008 installation) and the most useful thing I use is Hyper-V to create VMs of the systems I would like to te... | 2009/08/25 | [
"https://superuser.com/questions/29575",
"https://superuser.com",
"https://superuser.com/users/6893/"
] | Unfortunately that seems to be the case:
>
> System requirements / Specifications
>
>
> * An x64-based processor running an x64 version of Windows Server 2008
> Standard, Windows Server 2008
> Enterprise or Windows Server 2008
> Datacenter.
>
>
>
[Hyper-V System Requirements and Specifications](http://en.wik... | Windows 7 runs fine on Hyper-V, Hyper-V does not run on Windows 7.
As other people have said, you can use Microsoft Virtual PC or Vmware Workstation along with a whole load of other VM software. |
29,575 | Now that Windows 7 Enterprise is available for VLK Users to download, I would like to check it out. The only thing holding me back is that I am an application developer (currently developing on a Windows Server 2008 installation) and the most useful thing I use is Hyper-V to create VMs of the systems I would like to te... | 2009/08/25 | [
"https://superuser.com/questions/29575",
"https://superuser.com",
"https://superuser.com/users/6893/"
] | Unfortunately that seems to be the case:
>
> System requirements / Specifications
>
>
> * An x64-based processor running an x64 version of Windows Server 2008
> Standard, Windows Server 2008
> Enterprise or Windows Server 2008
> Datacenter.
>
>
>
[Hyper-V System Requirements and Specifications](http://en.wik... | You are stuck with Windows Server 2008 if you have to use Hyper-V. You can always switch to another virtualization software like VMware or VirtualPC or you can wait until Server 2008 R2 is released, which is the server version of Windows 7. |
29,575 | Now that Windows 7 Enterprise is available for VLK Users to download, I would like to check it out. The only thing holding me back is that I am an application developer (currently developing on a Windows Server 2008 installation) and the most useful thing I use is Hyper-V to create VMs of the systems I would like to te... | 2009/08/25 | [
"https://superuser.com/questions/29575",
"https://superuser.com",
"https://superuser.com/users/6893/"
] | Windows 7 runs fine on Hyper-V, Hyper-V does not run on Windows 7.
As other people have said, you can use Microsoft Virtual PC or Vmware Workstation along with a whole load of other VM software. | You are stuck with Windows Server 2008 if you have to use Hyper-V. You can always switch to another virtualization software like VMware or VirtualPC or you can wait until Server 2008 R2 is released, which is the server version of Windows 7. |
68,160,846 | I have created a 2 level nested Mat-Table grid in Angular in which it can expand multiple rows at a time. On each row click from the parent grid it calls an API and loads the data for the inner grid.
When I click on the first row, it fetches the data as expected.
[ {
//console.log(element);
this.tableSe... | Complementary the answer of Drhasti, another option is allow **only show one** "detail" at time. In this case, you change the .html to only show one
For this, you can declare a variable "elementExpanded"
```
elementExpanded:any;
```
Then you change the `*ngIf`
```
<div class="example-element-detail" [@detailExpand... |
35,799,905 | I recently upgraded our SQL Server from 2005 to 2014 (linked server) and I am noticing that one of the stored procedures which calls the exec command to execute a stored procedure on the upgraded linked server is failing with the error
>
> Could not find server 'server name' in sys.servers.Verify that the correct se... | 2016/03/04 | [
"https://Stackoverflow.com/questions/35799905",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4681341/"
] | I figured out the issue. The linked server was created correctly. However, after the server was upgraded and switched the server name in `sys.servers` still had the old server name.
I had to drop the old server name and add the new server name to `sys.servers` on the new server
```
sp_dropserver 'Server_A'
GO
sp_adds... | I had the problem due to an extra space in the name of the linked server.
"SERVER1, 1234"
instead of
"SERVER1,1234" |
35,799,905 | I recently upgraded our SQL Server from 2005 to 2014 (linked server) and I am noticing that one of the stored procedures which calls the exec command to execute a stored procedure on the upgraded linked server is failing with the error
>
> Could not find server 'server name' in sys.servers.Verify that the correct se... | 2016/03/04 | [
"https://Stackoverflow.com/questions/35799905",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4681341/"
] | At first check out that your linked server is in the list by this query
```
select name from sys.servers
```
If it not exists then try to add to the linked server
```
EXEC sp_addlinkedserver @server = 'SERVER_NAME' --or may be server ip address
```
After that login to that linked server by
```
EXEC sp_addlinked... | I had the problem due to an extra space in the name of the linked server.
"SERVER1, 1234"
instead of
"SERVER1,1234" |
2,437,271 | I did a [git on the com.android.music](http://android.git.kernel.org/?p=platform/packages/apps/Music.git) app and then created a project in eclipse from existing code. I chose 2.1 as the sdk target but I am getting errors trying to compile.
Is the music app referencing code that is not part of the 2.1 sdk? Can someone... | 2010/03/13 | [
"https://Stackoverflow.com/questions/2437271",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16340/"
] | >
> Is the music app referencing code that
> is not part of the 2.1 sdk?
>
>
>
Absolutely. Most of the built-in apps for Android were created before there was an SDK. You will not be able to build them in isolation from the rest of the firmware without substantial work. Work which, BTW, would be welcome contribut... | Check the applications manifest file. It will contain an attribute stating which version of the SDK the application was built with. |
60,245,358 | Background: Excel worksheet as front end to an Access database. Excel contains VBA code and uses ADODB to move values into and out of the tables in Access.
One column is a composite value which describes a complex priority relationship. One digit for priority level (1-6), one letter for more granular level (A-C), and ... | 2020/02/16 | [
"https://Stackoverflow.com/questions/60245358",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/12697019/"
] | Try this:
```
var event=this.addAlert;
const dialogOptions: JQueryUI.DialogOptions = {
width: "50%",
height: "auto",
buttons: {
"Subscribe": function (e) {
event("Yes");
//this.addAlert("Yes");
jQuery(this).dialog("close");
},
"No Thanks":... | This worked answered at [sharepoint spfx forum](https://sharepoint.stackexchange.com/questions/276286/spfx-jquery-dialog-button-click-does-not-find-public-function/276292?noredirect=1#comment293902_276292)
```
public onDialogButtonClick(status: string, e): void {
this.addAlert(status);
jQuery('.dialog', this.d... |
16,770,454 | I have a problem on my script, i would like to know :
How to remove a class if the content of an element (such as div, img, etc) is equal to another content of another element (such as div, img, etc) ?
Thanks for your answer | 2013/05/27 | [
"https://Stackoverflow.com/questions/16770454",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2424470/"
] | This i a grouping issue. The "normal" solution with xslt-1.0 is **muenchian grouping** (e.g look to [this](http://www.jenitennison.com/xslt/grouping/muenchian.html)).
Therefor add a key to your xslt for your grouping condition:
```
<xsl:key name="kUniqueC" match="C" use="concat(Name,'|', Age, '|', Sex)"/>
```
Loop... | Is this what you're looking for?
```
<xsl:template match="A/B">
<xsl:for-each select="C">
<xsl:if test="not(following-sibling::C[Name = current()/Name and Age = current()/Age and Sex = current()/Sex])">
<xsl:value-of select="Name" />, <xsl:value-of select="Age" />
</xsl:if>
</xsl:for-each... |
16,770,454 | I have a problem on my script, i would like to know :
How to remove a class if the content of an element (such as div, img, etc) is equal to another content of another element (such as div, img, etc) ?
Thanks for your answer | 2013/05/27 | [
"https://Stackoverflow.com/questions/16770454",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2424470/"
] | Is this what you're looking for?
```
<xsl:template match="A/B">
<xsl:for-each select="C">
<xsl:if test="not(following-sibling::C[Name = current()/Name and Age = current()/Age and Sex = current()/Sex])">
<xsl:value-of select="Name" />, <xsl:value-of select="Age" />
</xsl:if>
</xsl:for-each... | ```
<?xml version="1.0" encoding="ISO-8859-1"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:template match="/">
<div>
<xsl:for-each select="A/B/C">
<xsl:variable name="name" select="Name"/>
<xsl:variable name="age" select="Age"/>
<xsl:variable name="sex" select="S... |
16,770,454 | I have a problem on my script, i would like to know :
How to remove a class if the content of an element (such as div, img, etc) is equal to another content of another element (such as div, img, etc) ?
Thanks for your answer | 2013/05/27 | [
"https://Stackoverflow.com/questions/16770454",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2424470/"
] | This i a grouping issue. The "normal" solution with xslt-1.0 is **muenchian grouping** (e.g look to [this](http://www.jenitennison.com/xslt/grouping/muenchian.html)).
Therefor add a key to your xslt for your grouping condition:
```
<xsl:key name="kUniqueC" match="C" use="concat(Name,'|', Age, '|', Sex)"/>
```
Loop... | ```
<?xml version="1.0" encoding="ISO-8859-1"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:template match="/">
<div>
<xsl:for-each select="A/B/C">
<xsl:variable name="name" select="Name"/>
<xsl:variable name="age" select="Age"/>
<xsl:variable name="sex" select="S... |
1,596,140 | I have this code below to populate my UITableView on the fly.
I have to display two kind of cells: a regular cell with a background image and a cell with a regular background image, plus a label and a button.
if Indexpath.row is less than a control variable, then regular cells are drawn. If not, cells with buttons an... | 2009/10/20 | [
"https://Stackoverflow.com/questions/1596140",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/316469/"
] | You should use a separate `reuseIdentifier` for each cell 'type' that you are using. In this case, you'll want to use two.
You'll also want to create/add the `UILabel` and `UIButton` when you get a dequeue *miss* and not for every run through.. In pseudocode:
```
UILabel * lbl;
UIButton * btn;
cell = [table dequeueRe... | You should use two different reuseIdentifiers; one for cells with just images, and one for cells with images and buttons. The problem is that your one cell type is being reused, but its content is not (nor should it be) cleared out when it's dequeued. |
59,545,790 | I have hundreds of rows in a string that look like this:
```
filler|filler|scrape this text|and this text|sometimes this to|filler|filler
```
Is it possible to select only the text after the 2nd | and before the last 2 |s? | 2019/12/31 | [
"https://Stackoverflow.com/questions/59545790",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1467996/"
] | Since you are on 2016, string\_split() would be an option, but there is no GTD of the order. That said, consider a little XML
**Example**
```
Declare @YourTable Table ([ID] int,[SomeCol] varchar(150))
Insert Into @YourTable Values
(1,'filler|filler|scrape this text|and this text|sometimes this to|filler|filler')
Se... | JSON-based approach is also an option here. You need to transform the input text into a valid JSON array and get each array item with `JSON_VALUE()` by index (0-based).
Table:
```
CREATE TABLE Data (
TextData nvarchar(max)
)
INSERT INTO Data (TextData)
VALUES (N'filler|filler|scrape this text|and this text|sometim... |
112,599 | Is it possible to use SFTP on Linux and restrict a user account to ONE directory such that no other directory listing can be obtained? Yes, I must use SFTP, FTP is only used by people that love getting hacked.
For instance I want someone to modify files in /var/www/code/ but I don't want them to be able modify anythi... | 2010/02/13 | [
"https://serverfault.com/questions/112599",
"https://serverfault.com",
"https://serverfault.com/users/30776/"
] | From sshd\_config man-page:
```
ChrootDirectory
Specifies a path to chroot(2) to after authentication. This
path, and all its components, must be root-owned directories that
are not writable by any other user or group. After the chroot,
sshd(8) changes the working... | SFTP is NOT a feature-rich solution comparable to an FTP server like vsftpd. It doesn't support chroots; which is what you are looking for. FTPS (not SFTP) would be the best solution since it supports encryption, chroots, etc. vsftpd supports this and it's easy to setup.
In addition be sure to take advantage of the p... |
112,599 | Is it possible to use SFTP on Linux and restrict a user account to ONE directory such that no other directory listing can be obtained? Yes, I must use SFTP, FTP is only used by people that love getting hacked.
For instance I want someone to modify files in /var/www/code/ but I don't want them to be able modify anythi... | 2010/02/13 | [
"https://serverfault.com/questions/112599",
"https://serverfault.com",
"https://serverfault.com/users/30776/"
] | Another alternative could also be to replace their shell with MySecureShell which gives you features such as Chroot, Bandwidth limiting, Connection limiting, etc.. etc..
<http://mysecureshell.sourceforge.net/>
Using it in a webhosting environment at the moment and must say it's worked out quite nicely. | SFTP is NOT a feature-rich solution comparable to an FTP server like vsftpd. It doesn't support chroots; which is what you are looking for. FTPS (not SFTP) would be the best solution since it supports encryption, chroots, etc. vsftpd supports this and it's easy to setup.
In addition be sure to take advantage of the p... |
112,599 | Is it possible to use SFTP on Linux and restrict a user account to ONE directory such that no other directory listing can be obtained? Yes, I must use SFTP, FTP is only used by people that love getting hacked.
For instance I want someone to modify files in /var/www/code/ but I don't want them to be able modify anythi... | 2010/02/13 | [
"https://serverfault.com/questions/112599",
"https://serverfault.com",
"https://serverfault.com/users/30776/"
] | From sshd\_config man-page:
```
ChrootDirectory
Specifies a path to chroot(2) to after authentication. This
path, and all its components, must be root-owned directories that
are not writable by any other user or group. After the chroot,
sshd(8) changes the working... | Another alternative could also be to replace their shell with MySecureShell which gives you features such as Chroot, Bandwidth limiting, Connection limiting, etc.. etc..
<http://mysecureshell.sourceforge.net/>
Using it in a webhosting environment at the moment and must say it's worked out quite nicely. |
112,599 | Is it possible to use SFTP on Linux and restrict a user account to ONE directory such that no other directory listing can be obtained? Yes, I must use SFTP, FTP is only used by people that love getting hacked.
For instance I want someone to modify files in /var/www/code/ but I don't want them to be able modify anythi... | 2010/02/13 | [
"https://serverfault.com/questions/112599",
"https://serverfault.com",
"https://serverfault.com/users/30776/"
] | From sshd\_config man-page:
```
ChrootDirectory
Specifies a path to chroot(2) to after authentication. This
path, and all its components, must be root-owned directories that
are not writable by any other user or group. After the chroot,
sshd(8) changes the working... | <http://pizzashack.org/rssh/> lets you set up restricted ssh so that only SFTP/SCP are run; it also helps setting up the chroot.
As CarpeNoctem points out, FTPS sometimes is a better solution. ssh, SFTP, scp are very "low-level", FTPS (like the unsafe FTP) are normally higher-level (virtual directories, virtual users,... |
112,599 | Is it possible to use SFTP on Linux and restrict a user account to ONE directory such that no other directory listing can be obtained? Yes, I must use SFTP, FTP is only used by people that love getting hacked.
For instance I want someone to modify files in /var/www/code/ but I don't want them to be able modify anythi... | 2010/02/13 | [
"https://serverfault.com/questions/112599",
"https://serverfault.com",
"https://serverfault.com/users/30776/"
] | From sshd\_config man-page:
```
ChrootDirectory
Specifies a path to chroot(2) to after authentication. This
path, and all its components, must be root-owned directories that
are not writable by any other user or group. After the chroot,
sshd(8) changes the working... | I'd use this config: <http://www.debian-administration.org/articles/590>
Then, for the chroot functionality:
<http://www.howtoforge.com/chrooted-ssh-sftp-tutorial-debian-lenny> |
112,599 | Is it possible to use SFTP on Linux and restrict a user account to ONE directory such that no other directory listing can be obtained? Yes, I must use SFTP, FTP is only used by people that love getting hacked.
For instance I want someone to modify files in /var/www/code/ but I don't want them to be able modify anythi... | 2010/02/13 | [
"https://serverfault.com/questions/112599",
"https://serverfault.com",
"https://serverfault.com/users/30776/"
] | Another alternative could also be to replace their shell with MySecureShell which gives you features such as Chroot, Bandwidth limiting, Connection limiting, etc.. etc..
<http://mysecureshell.sourceforge.net/>
Using it in a webhosting environment at the moment and must say it's worked out quite nicely. | <http://pizzashack.org/rssh/> lets you set up restricted ssh so that only SFTP/SCP are run; it also helps setting up the chroot.
As CarpeNoctem points out, FTPS sometimes is a better solution. ssh, SFTP, scp are very "low-level", FTPS (like the unsafe FTP) are normally higher-level (virtual directories, virtual users,... |
112,599 | Is it possible to use SFTP on Linux and restrict a user account to ONE directory such that no other directory listing can be obtained? Yes, I must use SFTP, FTP is only used by people that love getting hacked.
For instance I want someone to modify files in /var/www/code/ but I don't want them to be able modify anythi... | 2010/02/13 | [
"https://serverfault.com/questions/112599",
"https://serverfault.com",
"https://serverfault.com/users/30776/"
] | Another alternative could also be to replace their shell with MySecureShell which gives you features such as Chroot, Bandwidth limiting, Connection limiting, etc.. etc..
<http://mysecureshell.sourceforge.net/>
Using it in a webhosting environment at the moment and must say it's worked out quite nicely. | I'd use this config: <http://www.debian-administration.org/articles/590>
Then, for the chroot functionality:
<http://www.howtoforge.com/chrooted-ssh-sftp-tutorial-debian-lenny> |
32,655,317 | I've read been reading StackOverflow posts for the last 30 minutes and none of them work. Maybe there is a server setup that is preventing this from working?
I just want to remove index.php from whatever URL is typed in. For example, `www.mysite.com/blah/blah/index.php` would become `www.mysite.com/blah/blah/`. `www.m... | 2015/09/18 | [
"https://Stackoverflow.com/questions/32655317",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2211053/"
] | I think this is what you are looking for:
```
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)/?$ $1/index.php [L,QSA]
``` | ```
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /(.*)index\.php($|\ |\?)
RewriteRule ^ /%1 [R=301,L]
</IfModule>
``` |
49,186 | I have a shapefile whose features I can filter by specifying a where clause in the query dialogue. F.x. I have a field named 'city\_name' and by stating 'city\_name = "London"' in the where clause only London is displayed. What I would like to do now is to fetch all values in 'city\_name' from the attribute table.
So... | 2013/01/27 | [
"https://gis.stackexchange.com/questions/49186",
"https://gis.stackexchange.com",
"https://gis.stackexchange.com/users/14532/"
] | **Update answer (QGIS Version >= 2.14)**
[Since QGIS 2.14](http://www.qgis.org/en/site/forusers/visualchangelog214/index.html#feature-virtual-layers), you can use run SQL statements on any loaded vector layer using [Virtual layers](http://docs.qgis.org/2.14/en/docs/user_manual/working_with_vector/virtual_layers.html?h... | Try including something like:
```
where city_name is NOT NULL or not equal to NULL
``` |
49,186 | I have a shapefile whose features I can filter by specifying a where clause in the query dialogue. F.x. I have a field named 'city\_name' and by stating 'city\_name = "London"' in the where clause only London is displayed. What I would like to do now is to fetch all values in 'city\_name' from the attribute table.
So... | 2013/01/27 | [
"https://gis.stackexchange.com/questions/49186",
"https://gis.stackexchange.com",
"https://gis.stackexchange.com/users/14532/"
] | Try including something like:
```
where city_name is NOT NULL or not equal to NULL
``` | Use query builder in QGIS, go to city name field in fields in query builder.
Go to values, add all. Delete any nulls.
Build a script similar to city name = "london" and city name = "paris" until you have the complete list of names and run the script. Now all city names are selected. You can export selected as a shape ... |
49,186 | I have a shapefile whose features I can filter by specifying a where clause in the query dialogue. F.x. I have a field named 'city\_name' and by stating 'city\_name = "London"' in the where clause only London is displayed. What I would like to do now is to fetch all values in 'city\_name' from the attribute table.
So... | 2013/01/27 | [
"https://gis.stackexchange.com/questions/49186",
"https://gis.stackexchange.com",
"https://gis.stackexchange.com/users/14532/"
] | Use the QGIS DB Manager and access your shapefile via 'virtual layers'
You can then use the SQL window and write your query:
[](https://i.stack.imgur.com/5ydzP.png) | Try including something like:
```
where city_name is NOT NULL or not equal to NULL
``` |
49,186 | I have a shapefile whose features I can filter by specifying a where clause in the query dialogue. F.x. I have a field named 'city\_name' and by stating 'city\_name = "London"' in the where clause only London is displayed. What I would like to do now is to fetch all values in 'city\_name' from the attribute table.
So... | 2013/01/27 | [
"https://gis.stackexchange.com/questions/49186",
"https://gis.stackexchange.com",
"https://gis.stackexchange.com/users/14532/"
] | QGIS now has a tool that will list unique values in one or more fields in a layer. "This algorithm generates a report with information about the unique values found in a given attribute (or attributes) of a vector layer."
Can be found in main menu Vector> Analysis Tools> List Unique Values. Generates a table with uniq... | Try including something like:
```
where city_name is NOT NULL or not equal to NULL
``` |
49,186 | I have a shapefile whose features I can filter by specifying a where clause in the query dialogue. F.x. I have a field named 'city\_name' and by stating 'city\_name = "London"' in the where clause only London is displayed. What I would like to do now is to fetch all values in 'city\_name' from the attribute table.
So... | 2013/01/27 | [
"https://gis.stackexchange.com/questions/49186",
"https://gis.stackexchange.com",
"https://gis.stackexchange.com/users/14532/"
] | **Update answer (QGIS Version >= 2.14)**
[Since QGIS 2.14](http://www.qgis.org/en/site/forusers/visualchangelog214/index.html#feature-virtual-layers), you can use run SQL statements on any loaded vector layer using [Virtual layers](http://docs.qgis.org/2.14/en/docs/user_manual/working_with_vector/virtual_layers.html?h... | Use query builder in QGIS, go to city name field in fields in query builder.
Go to values, add all. Delete any nulls.
Build a script similar to city name = "london" and city name = "paris" until you have the complete list of names and run the script. Now all city names are selected. You can export selected as a shape ... |
49,186 | I have a shapefile whose features I can filter by specifying a where clause in the query dialogue. F.x. I have a field named 'city\_name' and by stating 'city\_name = "London"' in the where clause only London is displayed. What I would like to do now is to fetch all values in 'city\_name' from the attribute table.
So... | 2013/01/27 | [
"https://gis.stackexchange.com/questions/49186",
"https://gis.stackexchange.com",
"https://gis.stackexchange.com/users/14532/"
] | **Update answer (QGIS Version >= 2.14)**
[Since QGIS 2.14](http://www.qgis.org/en/site/forusers/visualchangelog214/index.html#feature-virtual-layers), you can use run SQL statements on any loaded vector layer using [Virtual layers](http://docs.qgis.org/2.14/en/docs/user_manual/working_with_vector/virtual_layers.html?h... | Use the QGIS DB Manager and access your shapefile via 'virtual layers'
You can then use the SQL window and write your query:
[](https://i.stack.imgur.com/5ydzP.png) |
49,186 | I have a shapefile whose features I can filter by specifying a where clause in the query dialogue. F.x. I have a field named 'city\_name' and by stating 'city\_name = "London"' in the where clause only London is displayed. What I would like to do now is to fetch all values in 'city\_name' from the attribute table.
So... | 2013/01/27 | [
"https://gis.stackexchange.com/questions/49186",
"https://gis.stackexchange.com",
"https://gis.stackexchange.com/users/14532/"
] | **Update answer (QGIS Version >= 2.14)**
[Since QGIS 2.14](http://www.qgis.org/en/site/forusers/visualchangelog214/index.html#feature-virtual-layers), you can use run SQL statements on any loaded vector layer using [Virtual layers](http://docs.qgis.org/2.14/en/docs/user_manual/working_with_vector/virtual_layers.html?h... | QGIS now has a tool that will list unique values in one or more fields in a layer. "This algorithm generates a report with information about the unique values found in a given attribute (or attributes) of a vector layer."
Can be found in main menu Vector> Analysis Tools> List Unique Values. Generates a table with uniq... |
49,186 | I have a shapefile whose features I can filter by specifying a where clause in the query dialogue. F.x. I have a field named 'city\_name' and by stating 'city\_name = "London"' in the where clause only London is displayed. What I would like to do now is to fetch all values in 'city\_name' from the attribute table.
So... | 2013/01/27 | [
"https://gis.stackexchange.com/questions/49186",
"https://gis.stackexchange.com",
"https://gis.stackexchange.com/users/14532/"
] | Use the QGIS DB Manager and access your shapefile via 'virtual layers'
You can then use the SQL window and write your query:
[](https://i.stack.imgur.com/5ydzP.png) | Use query builder in QGIS, go to city name field in fields in query builder.
Go to values, add all. Delete any nulls.
Build a script similar to city name = "london" and city name = "paris" until you have the complete list of names and run the script. Now all city names are selected. You can export selected as a shape ... |
49,186 | I have a shapefile whose features I can filter by specifying a where clause in the query dialogue. F.x. I have a field named 'city\_name' and by stating 'city\_name = "London"' in the where clause only London is displayed. What I would like to do now is to fetch all values in 'city\_name' from the attribute table.
So... | 2013/01/27 | [
"https://gis.stackexchange.com/questions/49186",
"https://gis.stackexchange.com",
"https://gis.stackexchange.com/users/14532/"
] | QGIS now has a tool that will list unique values in one or more fields in a layer. "This algorithm generates a report with information about the unique values found in a given attribute (or attributes) of a vector layer."
Can be found in main menu Vector> Analysis Tools> List Unique Values. Generates a table with uniq... | Use query builder in QGIS, go to city name field in fields in query builder.
Go to values, add all. Delete any nulls.
Build a script similar to city name = "london" and city name = "paris" until you have the complete list of names and run the script. Now all city names are selected. You can export selected as a shape ... |
49,186 | I have a shapefile whose features I can filter by specifying a where clause in the query dialogue. F.x. I have a field named 'city\_name' and by stating 'city\_name = "London"' in the where clause only London is displayed. What I would like to do now is to fetch all values in 'city\_name' from the attribute table.
So... | 2013/01/27 | [
"https://gis.stackexchange.com/questions/49186",
"https://gis.stackexchange.com",
"https://gis.stackexchange.com/users/14532/"
] | QGIS now has a tool that will list unique values in one or more fields in a layer. "This algorithm generates a report with information about the unique values found in a given attribute (or attributes) of a vector layer."
Can be found in main menu Vector> Analysis Tools> List Unique Values. Generates a table with uniq... | Use the QGIS DB Manager and access your shapefile via 'virtual layers'
You can then use the SQL window and write your query:
[](https://i.stack.imgur.com/5ydzP.png) |
14,699,155 | One thing I found unintuitive about GCDAsyncSocket's didReadData callback is that it doesn't get call again unless you issue another readData. Why is it designed this way? Is it correct to expect the user of the library to initiate another read call in order to get a callback or is this a design flaw?
e.g.
```
- (voi... | 2013/02/05 | [
"https://Stackoverflow.com/questions/14699155",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/66814/"
] | Why is it designed that way?
As long as you're only ever using *readDataWithTimeout:tag:* it may seem more intuitive to just have the delegate method called whenever some new data has arrived.
But *readDataWithTimeout:tag:* isn't the the only way to read data with GCDAsyncSocket. There are also e.g. *readDataToLengt... | That is correct; you are expected to continue the read loop in the delegate method. |
14,699,155 | One thing I found unintuitive about GCDAsyncSocket's didReadData callback is that it doesn't get call again unless you issue another readData. Why is it designed this way? Is it correct to expect the user of the library to initiate another read call in order to get a callback or is this a design flaw?
e.g.
```
- (voi... | 2013/02/05 | [
"https://Stackoverflow.com/questions/14699155",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/66814/"
] | That is correct; you are expected to continue the read loop in the delegate method. | Expanding on what Simon Jenkins said:
```
- (void)socket:(GCDAsyncSocket *)sock didWriteDataWithTag:(long)tag
{
// This method is executed on the socketQueue (not the main thread)
switch (tag) {
case CHECK_STAUTS:
[sock readDataToData:[GCDAsyncSocket ZeroData] withT... |
14,699,155 | One thing I found unintuitive about GCDAsyncSocket's didReadData callback is that it doesn't get call again unless you issue another readData. Why is it designed this way? Is it correct to expect the user of the library to initiate another read call in order to get a callback or is this a design flaw?
e.g.
```
- (voi... | 2013/02/05 | [
"https://Stackoverflow.com/questions/14699155",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/66814/"
] | Why is it designed that way?
As long as you're only ever using *readDataWithTimeout:tag:* it may seem more intuitive to just have the delegate method called whenever some new data has arrived.
But *readDataWithTimeout:tag:* isn't the the only way to read data with GCDAsyncSocket. There are also e.g. *readDataToLengt... | Expanding on what Simon Jenkins said:
```
- (void)socket:(GCDAsyncSocket *)sock didWriteDataWithTag:(long)tag
{
// This method is executed on the socketQueue (not the main thread)
switch (tag) {
case CHECK_STAUTS:
[sock readDataToData:[GCDAsyncSocket ZeroData] withT... |
59,174,408 | I want a text that flashes with a clock's seconds. This [Link](https://stackoverflow.com/questions/27533244/how-to-make-a-flashing-text-box-in-tkinter) was helpful, but couldn't solve my problem. Below is my little working code:
```
from tkinter import *
from datetime import datetime
import datetime as dt
import time
... | 2019/12/04 | [
"https://Stackoverflow.com/questions/59174408",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/8454718/"
] | Although you have changed the color of the `flashing_text` in the for loop twice, but the tkinter event handler (`mainloop()`) can only process the changes when it takes back the control after `change_color()` completed. So you can only see the `flashing_text` in red (the last color change).
To achieve the goal, you n... | I would add it to a class so you can share your variables from each callback.
So something like this.
```
from tkinter import *
from datetime import datetime
import datetime as dt
import time
class Clock:
def __init__(self, colors):
self.root = Tk()
self.clock = Label(self.root, text="clock")
... |
62,703,242 | I am trying to get SonarQube for python up and running in centos. I have downloaded this version : sonarqube-8.3.1.34397.zip.
I have installed java 11.
**java -version**
```
openjdk version "11.0.7" 2020-04-14 LTS
OpenJDK Runtime Environment 18.9 (build 11.0.7+10-LTS)
OpenJDK 64-Bit Server VM 18.9 (build 11.0.7+10-L... | 2020/07/02 | [
"https://Stackoverflow.com/questions/62703242",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/8700970/"
] | For SonarQube to install from zip, you need to create a dedicated user which have access to your Java 11 installation and as well all the files of SonarQube installation directory.
Then start your SonarQube server with that user.
Do not use root user to start the SonarQube server.
Here is the link to documentation, ... | I'm using docker and I had the same problem. I needed to include this code:
```
USER root
chmod -R 777 /opt/sonarqube
```
Then everything worked out. |
63,226,696 | I want to load view on menu-item click in same page where menu did not disappear like this.
[](https://i.stack.imgur.com/lFO1p.png)
But, In my case It disappears, Like this.
[](https... | 2020/08/03 | [
"https://Stackoverflow.com/questions/63226696",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/10412853/"
] | You need to specify in which `RouterLayout` it should be shown. For the `HomeView` the route-annotation would be
```
@Route(value = "home-view", layout = MainLayout.class)
``` | You can download an example project from <https://start.vaadin.com/> and take example from there on how to do it.
In your case, you have your views set up to routes, but there is no connection between it and the main layout. The `@Route` annotation should define the parameter `layout` to tell the system it should be r... |
74,645,690 | I'm trying to build a basic game-like program where I need to rearrange a given matrix but vertically. In this case, I only have 0s and 1s. 0 being lighter objects and 1 being heavier. When the function runs, all the 1s should fall down vertically and the zeros go up vertically as well. It needs to have the exact numbe... | 2022/12/01 | [
"https://Stackoverflow.com/questions/74645690",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/15062354/"
] | Consider using numpy for your matrices. You can then use [`np.sort`](https://numpy.org/doc/stable/reference/generated/numpy.sort.html) to do what you want:
```py
np.sort(matrix, axis=0)
``` | If you didn't want to use numpy (though you should), you could do:
```
from collections import Counter
test = [[1,0,1,1,0,1,0],
[0,0,0,1,0,0,0],
[1,0,1,1,1,1,1],
[0,1,1,0,1,1,0],
[1,1,0,1,0,0,1] ]
new_version = [[] for _ in test] # create an empty list to append data to
for count, item in enumerate(test[0]): # go th... |
74,645,690 | I'm trying to build a basic game-like program where I need to rearrange a given matrix but vertically. In this case, I only have 0s and 1s. 0 being lighter objects and 1 being heavier. When the function runs, all the 1s should fall down vertically and the zeros go up vertically as well. It needs to have the exact numbe... | 2022/12/01 | [
"https://Stackoverflow.com/questions/74645690",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/15062354/"
] | Not as readable as the numpy approach, but if you want to use the list-approach you could
1. Transpose the matrix by using the `zip(*matrix)` approach.
2. Sort the resulting rows (which are columns of the original matrix)
3. Transpose back.
You can do it in one line:
```
[row for row in zip(*[sorted(column) for colu... | If you didn't want to use numpy (though you should), you could do:
```
from collections import Counter
test = [[1,0,1,1,0,1,0],
[0,0,0,1,0,0,0],
[1,0,1,1,1,1,1],
[0,1,1,0,1,1,0],
[1,1,0,1,0,0,1] ]
new_version = [[] for _ in test] # create an empty list to append data to
for count, item in enumerate(test[0]): # go th... |
11,413,922 | I found `@Rule` annotation in `jUnit` for better handling of exception.
Is there a way to check error code ?
Currently my code looks like (without @Rule):
```
@Test
public void checkNullObject() {
MyClass myClass= null;
try {
MyCustomClass.get(null); // it throws custom exception when null is pas... | 2012/07/10 | [
"https://Stackoverflow.com/questions/11413922",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1392956/"
] | You can use a custom matcher on the rule with the `expect(Matcher<?> matcher)` method.
For example:
```
public class ErrorCodeMatcher extends BaseMatcher<CustomException> {
private final String expectedCode;
public ErrorCodeMatcher(String expectedCode) {
this.expectedCode = expectedCode;
}
@Override
p... | You can also see how the `expect(Matcher<?> matcher)` has been used within [ExpectedException.java source](https://github.com/KentBeck/junit/blob/master/src/main/java/org/junit/rules/ExpectedException.java)
```
private Matcher<Throwable> hasMessage(final Matcher<String> matcher) {
return new TypeSafeMatcher<Throw... |
64,554,258 | I want to update the likes' value with 1.
My MongoDB structure is as follows .
```
{"_id":{"$oid":"5f980a66c4b0d52950bdf907"},
"course_id":"5002",
"lecture_id":"451",
"__v":0,
"created_at":{"$date":"2020-10-27T11:54:14.842Z"},
"message":[
{
"_id":{"$oid":"5f980a84c4b0d52950bdf90a"},
... | 2020/10/27 | [
"https://Stackoverflow.com/questions/64554258",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/14084660/"
] | ```
"lecture_id": "451",
"course_id": "5002"
},
{
$inc: {
"message.$[elem].likes": 1
}
},
{
new: true,
arrayFilters: [
{
"elem._id": "5f980a84c4b0d52950bdf90a"
}
]
})```
``` | Here is the mongo query.
```
db.collection.update({
"lecture_id": "451",
"course_id": "5002",
"message._id": "5f980a84c4b0d52950bdf91a"
},
{
"$inc": {
"message.$.likes": 1
}
})
```
Try it here [Mongo Playground](https://mongoplayground.net/p/YXcH6Nd53fu)
Not an expert in nodejs. Below update statement... |
40,397,524 | I'm very new to Laravel, and am having trouble understanding queries in Eloquent. I have two models - Laptop and Location. Suppose I want to query all the laptops belonging to a location that has a 'stock' value of 1. In SQL this would be a left join, but how do I do this in Eloquent? I've already added the relationshi... | 2016/11/03 | [
"https://Stackoverflow.com/questions/40397524",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5847182/"
] | If you have data that is stored in row-major order (that is, your data is an array of rows, rather than columns, of data), you must keep track of the columns to print. This is a typical way to receive data from a MySQL database.
You can do this by looking at your first row, using `$columns = array_keys($row)`, or simp... | This will get you started
```
<table>
<thead>
<tr>
<th>Row One</th>
<th>Row Two</th>
</tr>
</thead>
<tbody>
<?php foreach( $array as $key ) { ?>
<tr>
<td><?php echo $key[ 'rowOne' ]; ?></td>
<td><?php echo $key[ 'rowTwo' ]; ?></td>
</tr>
<?php } ?>
</tbody>
</table... |
5,412,005 | UPDATE: After a bit of testing I've determined the file itself isnt being created, at least according to the file.exists check anyway. Any ideas?
Hi I'm trying to serialize an arraylist when my app is exited and read it back when its resumed. It doesnt seem to be creating the file.
Here is my code.
```
protected voi... | 2011/03/23 | [
"https://Stackoverflow.com/questions/5412005",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/646478/"
] | Got it to work by changing `FileInputStream fileStream = new FileInputStream(FILENAME)` to `FileInputStream fileStream= openFileInput(FILENAME)`. | ```
os.writeObject(myArrayList);
os.flush();
os.close();
```
Try os.close() immediately after writeObject, it should call flush() anyways. |
62,315,770 | I'm struggling with live charts. I'm using WPF.
I want to build a bar chart that displays the number of members in a Karate Club by belt color. One of my learning projects.
Following their docs:
<https://lvcharts.net/App/examples/v1/wpf/Basic%20Column>
I am getting an error in xaml:
d:DataContext="{d:DesignInstanc... | 2020/06/11 | [
"https://Stackoverflow.com/questions/62315770",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6611979/"
] | You are currently using a design-time instance of `Charts`, which is generated by the designer. This instance is auto-generated and doesn't contain any data. This is the default behavior, which is controlled by the `IsDesignTimeCreatable` property of the markup extension `DesignInstanceExtension`. By default `IsDesignT... | The example you are following does not say `d:DataContext="{d:DesignInstance local:Charts}"`.
it says `d:DataContext="{d:DesignInstance local:BasicColumn}"`. |
59,730,379 | Below is the MapperInterface.php
I'm trying to figure out how to add an if-else statement into the const. mapping array. Something like so:
```
if (LIN02 == “VN”)
o Treat LIN03 as the SKU
· else if (LIN04 == “VN”)
o Treat LIN05 as the SKU
```
---
```
<?php
declare(strict_types=1);
namespace Direct\... | 2020/01/14 | [
"https://Stackoverflow.com/questions/59730379",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5890687/"
] | As you can see [here](https://stackoverflow.com/questions/6455877/can-you-undefine-or-change-a-constant-in-php/6455902) - **const variable cannot be change or hold logic**.
Notice that interface cannot hold logic as well - so you cannot do that in your interface.
I think the better solution for your issue is to use a... | You can't add an if-else statement inside the constant definition. The closest to what you are looking for is probably this:
```
const A = 1;
const B = 2;
// Value of C is somewhat "more dynamic" and depends on values of other constants
const C = self::A == 1 ? self::A + self::B : 0;
// MAPPING array inherits "more ... |
3,649,177 | I have a method that I want to be enqueued to the UI thread message pump. How is this done in actionscript? Basically I am looking for the equivalent of System.Windows.Deployment.Current.Dispatcher.BeginInvoke() in actionscript. | 2010/09/06 | [
"https://Stackoverflow.com/questions/3649177",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/147530/"
] | It hides the navUrl property of the base class. See [new Modifier](http://msdn.microsoft.com/en-us/library/435f1dw2.aspx). As mentioned in that MSDN entry, you can access the "hidden" property with fully qualified names: `BaseClass.navUrl`. Abuse of either can result in massive confusion and possible insanity (i.e. bro... | `new` is hiding the property.
It might be like this in your code:
```
class base1
{
public virtual string navUrl
{
get;
set;
}
}
class derived : base1
{
public new string navUrl
{
get;
set;
}
}
```
Here in the derived class, the `navUrl` property is hiding t... |
3,649,177 | I have a method that I want to be enqueued to the UI thread message pump. How is this done in actionscript? Basically I am looking for the equivalent of System.Windows.Deployment.Current.Dispatcher.BeginInvoke() in actionscript. | 2010/09/06 | [
"https://Stackoverflow.com/questions/3649177",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/147530/"
] | It hides the navUrl property of the base class. See [new Modifier](http://msdn.microsoft.com/en-us/library/435f1dw2.aspx). As mentioned in that MSDN entry, you can access the "hidden" property with fully qualified names: `BaseClass.navUrl`. Abuse of either can result in massive confusion and possible insanity (i.e. bro... | Some times referred to as `Shadowing` or **[method hiding](http://msdn.microsoft.com/en-us/library/aa691135%28VS.71%29.aspx)**; The method called depends on the type of the reference at the point the call is made. [This might](http://www.akadia.com/services/dotnet_polymorphism.html) help. |
3,649,177 | I have a method that I want to be enqueued to the UI thread message pump. How is this done in actionscript? Basically I am looking for the equivalent of System.Windows.Deployment.Current.Dispatcher.BeginInvoke() in actionscript. | 2010/09/06 | [
"https://Stackoverflow.com/questions/3649177",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/147530/"
] | It hides the navUrl property of the base class. See [new Modifier](http://msdn.microsoft.com/en-us/library/435f1dw2.aspx). As mentioned in that MSDN entry, you can access the "hidden" property with fully qualified names: `BaseClass.navUrl`. Abuse of either can result in massive confusion and possible insanity (i.e. bro... | This is also documented [here](http://msdn.microsoft.com/en-us/library/ms173152(VS.80).aspx).
Code snippet from msdn.
```
public class BaseClass
{
public void DoWork() { }
public int WorkField;
public int WorkProperty
{
get { return 0; }
}
}
public class DerivedClass : BaseClass
{
pub... |
3,649,177 | I have a method that I want to be enqueued to the UI thread message pump. How is this done in actionscript? Basically I am looking for the equivalent of System.Windows.Deployment.Current.Dispatcher.BeginInvoke() in actionscript. | 2010/09/06 | [
"https://Stackoverflow.com/questions/3649177",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/147530/"
] | It hides the navUrl property of the base class. See [new Modifier](http://msdn.microsoft.com/en-us/library/435f1dw2.aspx). As mentioned in that MSDN entry, you can access the "hidden" property with fully qualified names: `BaseClass.navUrl`. Abuse of either can result in massive confusion and possible insanity (i.e. bro... | <https://msdn.microsoft.com/en-us/library/435f1dw2.aspx>
Look at the first example here, it gives a pretty good idea of how the `new` keyword can be used to mask base class variables |
3,649,177 | I have a method that I want to be enqueued to the UI thread message pump. How is this done in actionscript? Basically I am looking for the equivalent of System.Windows.Deployment.Current.Dispatcher.BeginInvoke() in actionscript. | 2010/09/06 | [
"https://Stackoverflow.com/questions/3649177",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/147530/"
] | `new` is hiding the property.
It might be like this in your code:
```
class base1
{
public virtual string navUrl
{
get;
set;
}
}
class derived : base1
{
public new string navUrl
{
get;
set;
}
}
```
Here in the derived class, the `navUrl` property is hiding t... | Some times referred to as `Shadowing` or **[method hiding](http://msdn.microsoft.com/en-us/library/aa691135%28VS.71%29.aspx)**; The method called depends on the type of the reference at the point the call is made. [This might](http://www.akadia.com/services/dotnet_polymorphism.html) help. |
3,649,177 | I have a method that I want to be enqueued to the UI thread message pump. How is this done in actionscript? Basically I am looking for the equivalent of System.Windows.Deployment.Current.Dispatcher.BeginInvoke() in actionscript. | 2010/09/06 | [
"https://Stackoverflow.com/questions/3649177",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/147530/"
] | `new` is hiding the property.
It might be like this in your code:
```
class base1
{
public virtual string navUrl
{
get;
set;
}
}
class derived : base1
{
public new string navUrl
{
get;
set;
}
}
```
Here in the derived class, the `navUrl` property is hiding t... | This is also documented [here](http://msdn.microsoft.com/en-us/library/ms173152(VS.80).aspx).
Code snippet from msdn.
```
public class BaseClass
{
public void DoWork() { }
public int WorkField;
public int WorkProperty
{
get { return 0; }
}
}
public class DerivedClass : BaseClass
{
pub... |
3,649,177 | I have a method that I want to be enqueued to the UI thread message pump. How is this done in actionscript? Basically I am looking for the equivalent of System.Windows.Deployment.Current.Dispatcher.BeginInvoke() in actionscript. | 2010/09/06 | [
"https://Stackoverflow.com/questions/3649177",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/147530/"
] | `new` is hiding the property.
It might be like this in your code:
```
class base1
{
public virtual string navUrl
{
get;
set;
}
}
class derived : base1
{
public new string navUrl
{
get;
set;
}
}
```
Here in the derived class, the `navUrl` property is hiding t... | <https://msdn.microsoft.com/en-us/library/435f1dw2.aspx>
Look at the first example here, it gives a pretty good idea of how the `new` keyword can be used to mask base class variables |
3,649,177 | I have a method that I want to be enqueued to the UI thread message pump. How is this done in actionscript? Basically I am looking for the equivalent of System.Windows.Deployment.Current.Dispatcher.BeginInvoke() in actionscript. | 2010/09/06 | [
"https://Stackoverflow.com/questions/3649177",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/147530/"
] | This is also documented [here](http://msdn.microsoft.com/en-us/library/ms173152(VS.80).aspx).
Code snippet from msdn.
```
public class BaseClass
{
public void DoWork() { }
public int WorkField;
public int WorkProperty
{
get { return 0; }
}
}
public class DerivedClass : BaseClass
{
pub... | Some times referred to as `Shadowing` or **[method hiding](http://msdn.microsoft.com/en-us/library/aa691135%28VS.71%29.aspx)**; The method called depends on the type of the reference at the point the call is made. [This might](http://www.akadia.com/services/dotnet_polymorphism.html) help. |
3,649,177 | I have a method that I want to be enqueued to the UI thread message pump. How is this done in actionscript? Basically I am looking for the equivalent of System.Windows.Deployment.Current.Dispatcher.BeginInvoke() in actionscript. | 2010/09/06 | [
"https://Stackoverflow.com/questions/3649177",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/147530/"
] | Some times referred to as `Shadowing` or **[method hiding](http://msdn.microsoft.com/en-us/library/aa691135%28VS.71%29.aspx)**; The method called depends on the type of the reference at the point the call is made. [This might](http://www.akadia.com/services/dotnet_polymorphism.html) help. | <https://msdn.microsoft.com/en-us/library/435f1dw2.aspx>
Look at the first example here, it gives a pretty good idea of how the `new` keyword can be used to mask base class variables |
3,649,177 | I have a method that I want to be enqueued to the UI thread message pump. How is this done in actionscript? Basically I am looking for the equivalent of System.Windows.Deployment.Current.Dispatcher.BeginInvoke() in actionscript. | 2010/09/06 | [
"https://Stackoverflow.com/questions/3649177",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/147530/"
] | This is also documented [here](http://msdn.microsoft.com/en-us/library/ms173152(VS.80).aspx).
Code snippet from msdn.
```
public class BaseClass
{
public void DoWork() { }
public int WorkField;
public int WorkProperty
{
get { return 0; }
}
}
public class DerivedClass : BaseClass
{
pub... | <https://msdn.microsoft.com/en-us/library/435f1dw2.aspx>
Look at the first example here, it gives a pretty good idea of how the `new` keyword can be used to mask base class variables |
38,267,254 | I have an XML document like this:
```
<parent>
<child>hello world</child>
</parent>
```
I want to apply two different transformations:
* From "hello world" to "hello guys" (using the replace function)
* From "hello guys" to "HELLO GUYS" (using the translation funciont)
For this reason, my XSLT stylesheet i som... | 2016/07/08 | [
"https://Stackoverflow.com/questions/38267254",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5553962/"
] | If you do a `foreach` loop and use the *loop variable* inside a lambda expression you capture it. Unfortunately the variable is scoped incorrectly (at least in older versions of C#, this [changes with C# 5](https://blogs.msdn.microsoft.com/ericlippert/2009/11/12/closing-over-the-loop-variable-considered-harmful/) (than... | Regarding the solution H.B. posted: not sure why it was not working with lambda functions, why the ButtonExecute was not being execute when the button was pressed. And also i don't understand the logic of defining a lambda function like 'foo => ButtonExecute(foo)' when foo is empty and being passed to the function. But... |
13,901,255 | About 2 weeks ago, I lost the ability to debug JavaScript. I have Windows 8 Pro, IE 10 and Visual Studio 2012 with all updates installed. Until that time, I had no issues - now it does it on every project.
The message I get is...
"No Source Available. The current code thread is not currently running code or the call ... | 2012/12/16 | [
"https://Stackoverflow.com/questions/13901255",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1256085/"
] | I kept playing and removed KB2781514, did a repair on VS2012 and got the JavaScript debugger back - all seems to now work, but I'm really afraid to install that update.
I also turned off automatic updates and will make sure that I set a restore point before adding most any future update. | I have had this same problem with VS2010 and VS2012 on WIN7 + IE10 CTP back in December last year. I hoped this problem was solved in the RTM version of IE10, today I found out it was not (and probably because it's not a IE10 problem).
Checkout my answer in the link below, maybe it's working for you as well.
[VS2010 ... |
13,901,255 | About 2 weeks ago, I lost the ability to debug JavaScript. I have Windows 8 Pro, IE 10 and Visual Studio 2012 with all updates installed. Until that time, I had no issues - now it does it on every project.
The message I get is...
"No Source Available. The current code thread is not currently running code or the call ... | 2012/12/16 | [
"https://Stackoverflow.com/questions/13901255",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1256085/"
] | I had the same problem using VS 2012 after installing IE 10 on Win 7 64bit. I tried several things including "fixing" VS, uninstalling/reinstalling IE10. I couldn't get VS to be set breakpoints in javascript for anything.
What finally worked was in VS 2012 I clicked on the "Play" toolbar button (little green arrow poi... | I kept playing and removed KB2781514, did a repair on VS2012 and got the JavaScript debugger back - all seems to now work, but I'm really afraid to install that update.
I also turned off automatic updates and will make sure that I set a restore point before adding most any future update. |
13,901,255 | About 2 weeks ago, I lost the ability to debug JavaScript. I have Windows 8 Pro, IE 10 and Visual Studio 2012 with all updates installed. Until that time, I had no issues - now it does it on every project.
The message I get is...
"No Source Available. The current code thread is not currently running code or the call ... | 2012/12/16 | [
"https://Stackoverflow.com/questions/13901255",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1256085/"
] | I kept playing and removed KB2781514, did a repair on VS2012 and got the JavaScript debugger back - all seems to now work, but I'm really afraid to install that update.
I also turned off automatic updates and will make sure that I set a restore point before adding most any future update. | I have the same error with Windows8 + IE10 + VS2012 Update 1, but today I was update vs2012 with Update 2 and the problem is solved.
[VS2012 Update 2 here](http://www.microsoft.com/visualstudio/esn/downloads#d-visual-studio-2012-update) |
13,901,255 | About 2 weeks ago, I lost the ability to debug JavaScript. I have Windows 8 Pro, IE 10 and Visual Studio 2012 with all updates installed. Until that time, I had no issues - now it does it on every project.
The message I get is...
"No Source Available. The current code thread is not currently running code or the call ... | 2012/12/16 | [
"https://Stackoverflow.com/questions/13901255",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1256085/"
] | I had the same problem using VS 2012 after installing IE 10 on Win 7 64bit. I tried several things including "fixing" VS, uninstalling/reinstalling IE10. I couldn't get VS to be set breakpoints in javascript for anything.
What finally worked was in VS 2012 I clicked on the "Play" toolbar button (little green arrow poi... | I have had this same problem with VS2010 and VS2012 on WIN7 + IE10 CTP back in December last year. I hoped this problem was solved in the RTM version of IE10, today I found out it was not (and probably because it's not a IE10 problem).
Checkout my answer in the link below, maybe it's working for you as well.
[VS2010 ... |
13,901,255 | About 2 weeks ago, I lost the ability to debug JavaScript. I have Windows 8 Pro, IE 10 and Visual Studio 2012 with all updates installed. Until that time, I had no issues - now it does it on every project.
The message I get is...
"No Source Available. The current code thread is not currently running code or the call ... | 2012/12/16 | [
"https://Stackoverflow.com/questions/13901255",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1256085/"
] | Try the solution form this post -
[VS2010 and IE10 Attaching the Script debugger to process iexplore.exe failed](https://stackoverflow.com/questions/13421797/vs2010-and-ie10-attaching-the-script-debugger-to-process-iexplore-exe-failed/15168080#15168080)
* Close IE
* In elevated cmd prompt run this command:
regsvr32.... | I have had this same problem with VS2010 and VS2012 on WIN7 + IE10 CTP back in December last year. I hoped this problem was solved in the RTM version of IE10, today I found out it was not (and probably because it's not a IE10 problem).
Checkout my answer in the link below, maybe it's working for you as well.
[VS2010 ... |
13,901,255 | About 2 weeks ago, I lost the ability to debug JavaScript. I have Windows 8 Pro, IE 10 and Visual Studio 2012 with all updates installed. Until that time, I had no issues - now it does it on every project.
The message I get is...
"No Source Available. The current code thread is not currently running code or the call ... | 2012/12/16 | [
"https://Stackoverflow.com/questions/13901255",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1256085/"
] | I had the same problem using VS 2012 after installing IE 10 on Win 7 64bit. I tried several things including "fixing" VS, uninstalling/reinstalling IE10. I couldn't get VS to be set breakpoints in javascript for anything.
What finally worked was in VS 2012 I clicked on the "Play" toolbar button (little green arrow poi... | Try the solution form this post -
[VS2010 and IE10 Attaching the Script debugger to process iexplore.exe failed](https://stackoverflow.com/questions/13421797/vs2010-and-ie10-attaching-the-script-debugger-to-process-iexplore-exe-failed/15168080#15168080)
* Close IE
* In elevated cmd prompt run this command:
regsvr32.... |
13,901,255 | About 2 weeks ago, I lost the ability to debug JavaScript. I have Windows 8 Pro, IE 10 and Visual Studio 2012 with all updates installed. Until that time, I had no issues - now it does it on every project.
The message I get is...
"No Source Available. The current code thread is not currently running code or the call ... | 2012/12/16 | [
"https://Stackoverflow.com/questions/13901255",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1256085/"
] | I had the same problem using VS 2012 after installing IE 10 on Win 7 64bit. I tried several things including "fixing" VS, uninstalling/reinstalling IE10. I couldn't get VS to be set breakpoints in javascript for anything.
What finally worked was in VS 2012 I clicked on the "Play" toolbar button (little green arrow poi... | I have the same error with Windows8 + IE10 + VS2012 Update 1, but today I was update vs2012 with Update 2 and the problem is solved.
[VS2012 Update 2 here](http://www.microsoft.com/visualstudio/esn/downloads#d-visual-studio-2012-update) |
13,901,255 | About 2 weeks ago, I lost the ability to debug JavaScript. I have Windows 8 Pro, IE 10 and Visual Studio 2012 with all updates installed. Until that time, I had no issues - now it does it on every project.
The message I get is...
"No Source Available. The current code thread is not currently running code or the call ... | 2012/12/16 | [
"https://Stackoverflow.com/questions/13901255",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1256085/"
] | Try the solution form this post -
[VS2010 and IE10 Attaching the Script debugger to process iexplore.exe failed](https://stackoverflow.com/questions/13421797/vs2010-and-ie10-attaching-the-script-debugger-to-process-iexplore-exe-failed/15168080#15168080)
* Close IE
* In elevated cmd prompt run this command:
regsvr32.... | I have the same error with Windows8 + IE10 + VS2012 Update 1, but today I was update vs2012 with Update 2 and the problem is solved.
[VS2012 Update 2 here](http://www.microsoft.com/visualstudio/esn/downloads#d-visual-studio-2012-update) |
784,182 | I've been working in ASP.NET for several years now (since the 1.0 days!), but I've never been formally instructed. I'm fully capable of doing pretty much anything I want and I've built several production-level, data-driven sites, including one that does over a million in sales a year (according to the owner). But I'm s... | 2009/04/24 | [
"https://Stackoverflow.com/questions/784182",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/7173/"
] | I can absolutely identify. I've been programming since 1997 and really don't have any formal training to speak of. With regards to ASP.NET, everything I've learned has been through open code (Community Server, BlogEngine.NET, the other ASP.NET Starter Kits), books, LearnVisualStudio.net, and constantly being thrown in ... | Seek out people better than you and learn from them.
Take some classes or join a user group. |
784,182 | I've been working in ASP.NET for several years now (since the 1.0 days!), but I've never been formally instructed. I'm fully capable of doing pretty much anything I want and I've built several production-level, data-driven sites, including one that does over a million in sales a year (according to the owner). But I'm s... | 2009/04/24 | [
"https://Stackoverflow.com/questions/784182",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/7173/"
] | I can absolutely identify. I've been programming since 1997 and really don't have any formal training to speak of. With regards to ASP.NET, everything I've learned has been through open code (Community Server, BlogEngine.NET, the other ASP.NET Starter Kits), books, LearnVisualStudio.net, and constantly being thrown in ... | If you are looking at conferences, consider finding a local [Code Camp](http://www.google.com/search?q=code+camp). These conferences are often very low key, but have excellent information content. They involve local presenters and attendees so you can build up your contacts and a set of people you can run things past w... |
784,182 | I've been working in ASP.NET for several years now (since the 1.0 days!), but I've never been formally instructed. I'm fully capable of doing pretty much anything I want and I've built several production-level, data-driven sites, including one that does over a million in sales a year (according to the owner). But I'm s... | 2009/04/24 | [
"https://Stackoverflow.com/questions/784182",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/7173/"
] | I'm in the same boat; been a .Net developer for 6 years. While I do have a CS degree, I don't have any formal training in ASP.Net; I learn it on the job as projects come up.
I found the best way to figure out what to learn is to keep your eye on .Net developer blogs. Some I follow:
David Hayden <http://www.davidhayde... | Seek out people better than you and learn from them.
Take some classes or join a user group. |
784,182 | I've been working in ASP.NET for several years now (since the 1.0 days!), but I've never been formally instructed. I'm fully capable of doing pretty much anything I want and I've built several production-level, data-driven sites, including one that does over a million in sales a year (according to the owner). But I'm s... | 2009/04/24 | [
"https://Stackoverflow.com/questions/784182",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/7173/"
] | I'll probably get some -1's for this, but as a fellow ASP.NET developer I don't think you really need to learn ALL that the framework has to offer. The reason I say that is that over the years my LACK of knowledge of all the cute little conveniences of ASP.NET has caused me to write better performing and more robust we... | This is a pretty broad question, and hard to address. I perceive myself in a similar space to you, so I guess I can elaborate on what I've been focusing on to improve as a developer which might be of some help.
I mostly write business and commerce related web apps, and my focus has been on a developing a solid underst... |
784,182 | I've been working in ASP.NET for several years now (since the 1.0 days!), but I've never been formally instructed. I'm fully capable of doing pretty much anything I want and I've built several production-level, data-driven sites, including one that does over a million in sales a year (according to the owner). But I'm s... | 2009/04/24 | [
"https://Stackoverflow.com/questions/784182",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/7173/"
] | 1) Read the Code of popular Open Source Projects. There are a few that have some really good practices in place.
I recommend checking out [BlogEngine.NET](http://www.dotnetblogengine.net/). Also if you're more ambitious, I'd suggest looking at the code for [ASP.NET MVC 1.0](http://aspnet.codeplex.com/Wiki/View.aspx?ti... | I can absolutely identify. I've been programming since 1997 and really don't have any formal training to speak of. With regards to ASP.NET, everything I've learned has been through open code (Community Server, BlogEngine.NET, the other ASP.NET Starter Kits), books, LearnVisualStudio.net, and constantly being thrown in ... |
784,182 | I've been working in ASP.NET for several years now (since the 1.0 days!), but I've never been formally instructed. I'm fully capable of doing pretty much anything I want and I've built several production-level, data-driven sites, including one that does over a million in sales a year (according to the owner). But I'm s... | 2009/04/24 | [
"https://Stackoverflow.com/questions/784182",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/7173/"
] | Look for interesting ways to break your established patters - even at a loss of productivity.
Otherwise, it sounds like you are already in a pretty good spot. You can deliver on current requirements and sound like you can pick up new tricks when needed.
Really, the best way to learn new techniques is to work on a dif... | If you can afford the money and time (or can get your company to pay for it), take a course at [DevelopMentor](http://www.develop.com/). They have courses across the country and all year round. They are generally a week long and are in depth. |
784,182 | I've been working in ASP.NET for several years now (since the 1.0 days!), but I've never been formally instructed. I'm fully capable of doing pretty much anything I want and I've built several production-level, data-driven sites, including one that does over a million in sales a year (according to the owner). But I'm s... | 2009/04/24 | [
"https://Stackoverflow.com/questions/784182",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/7173/"
] | 1) Read the Code of popular Open Source Projects. There are a few that have some really good practices in place.
I recommend checking out [BlogEngine.NET](http://www.dotnetblogengine.net/). Also if you're more ambitious, I'd suggest looking at the code for [ASP.NET MVC 1.0](http://aspnet.codeplex.com/Wiki/View.aspx?ti... | If you are looking at conferences, consider finding a local [Code Camp](http://www.google.com/search?q=code+camp). These conferences are often very low key, but have excellent information content. They involve local presenters and attendees so you can build up your contacts and a set of people you can run things past w... |
784,182 | I've been working in ASP.NET for several years now (since the 1.0 days!), but I've never been formally instructed. I'm fully capable of doing pretty much anything I want and I've built several production-level, data-driven sites, including one that does over a million in sales a year (according to the owner). But I'm s... | 2009/04/24 | [
"https://Stackoverflow.com/questions/784182",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/7173/"
] | Look for interesting ways to break your established patters - even at a loss of productivity.
Otherwise, it sounds like you are already in a pretty good spot. You can deliver on current requirements and sound like you can pick up new tricks when needed.
Really, the best way to learn new techniques is to work on a dif... | This is a pretty broad question, and hard to address. I perceive myself in a similar space to you, so I guess I can elaborate on what I've been focusing on to improve as a developer which might be of some help.
I mostly write business and commerce related web apps, and my focus has been on a developing a solid underst... |
784,182 | I've been working in ASP.NET for several years now (since the 1.0 days!), but I've never been formally instructed. I'm fully capable of doing pretty much anything I want and I've built several production-level, data-driven sites, including one that does over a million in sales a year (according to the owner). But I'm s... | 2009/04/24 | [
"https://Stackoverflow.com/questions/784182",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/7173/"
] | Seek out people better than you and learn from them.
Take some classes or join a user group. | If you can afford the money and time (or can get your company to pay for it), take a course at [DevelopMentor](http://www.develop.com/). They have courses across the country and all year round. They are generally a week long and are in depth. |
784,182 | I've been working in ASP.NET for several years now (since the 1.0 days!), but I've never been formally instructed. I'm fully capable of doing pretty much anything I want and I've built several production-level, data-driven sites, including one that does over a million in sales a year (according to the owner). But I'm s... | 2009/04/24 | [
"https://Stackoverflow.com/questions/784182",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/7173/"
] | 1) Read the Code of popular Open Source Projects. There are a few that have some really good practices in place.
I recommend checking out [BlogEngine.NET](http://www.dotnetblogengine.net/). Also if you're more ambitious, I'd suggest looking at the code for [ASP.NET MVC 1.0](http://aspnet.codeplex.com/Wiki/View.aspx?ti... | This is a pretty broad question, and hard to address. I perceive myself in a similar space to you, so I guess I can elaborate on what I've been focusing on to improve as a developer which might be of some help.
I mostly write business and commerce related web apps, and my focus has been on a developing a solid underst... |
36,829,899 | I was getting "HTTP 403 error Microsoft Edge can’t get to this page", while launching an application from IIS in Windows 10. Please suggest a solution for this.
thanks | 2016/04/24 | [
"https://Stackoverflow.com/questions/36829899",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2168525/"
] | If all permissions are set and even though your website shows 403 forbidden, most likely the default page is not set for your website. With IIS, you can configure the default document as follows.
1. Connect to IIS.
2. Expand the sites and select the desired website.
3. From right hand side feature view, click on Defau... | If an empty application gives you a 403 I can think of two immediate reasons.
1. The permissions are wrong. You might need to give the application pool user (`IIS AppPool\NAMEOFAPPPOOL` with recommended configuration) read permission to the directory.
2. You don't have any content. If you try to access a directory in ... |
17,294,253 | I am working on a Symfony 1.4 project. I need to make a PDF download link for a (yet to be) generated voucher and I have to say, I am a bit confused. I already have the HTML/CSS for the voucher, I created the download button in the right view, but I don't know where to go from there. | 2013/06/25 | [
"https://Stackoverflow.com/questions/17294253",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1225630/"
] | After try lots of options, the best and easiest for us has been add those lines in stylesheet.css:
```
.zoomLens {
display: none !important;
}
.zoomContainer {
display: none !important;
}
```
Thanks!!! | The right solution should be in `catalog/view/theme/default/template/product/product.tpl` find
```js
<script type="text/javascript"><!--
$(document).ready(function() {
$('.colorbox').colorbox({
overlayClose: true,
opacity: 0.5,
rel: "colorbox"
});
});
//--></script>
```
(should start ... |
5,307,741 | I have a site with a short url domain with an A record pointing to the main site (it's a pain to change this so I'd rather not). I have special logic that needs to run when the application is accessed from the short URL.
Right now, I have Apache set up with a RewriteRule to do a 301 to the main site when you hit the ... | 2011/03/15 | [
"https://Stackoverflow.com/questions/5307741",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/145492/"
] | Title\_Authors is a look up two things join at a time project results and continue chaining
```
DataClasses1DataContext db = new DataClasses1DataContext();
var queryresults = from a in db.Authors
join ba in db.Title_Authors ... | You can use LINQ Method Syntax to join on multiple columns. It's an example here,
```
var query = mTABLE_1.Join( // mTABLE_1 is a List<TABLE_1>
mTABLE_1,
t1 => new
{
ColA = t1.ColumnA,
ColB = t1.ColumnB,
ColC =... |
5,307,741 | I have a site with a short url domain with an A record pointing to the main site (it's a pain to change this so I'd rather not). I have special logic that needs to run when the application is accessed from the short URL.
Right now, I have Apache set up with a RewriteRule to do a 301 to the main site when you hit the ... | 2011/03/15 | [
"https://Stackoverflow.com/questions/5307741",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/145492/"
] | U can also use :
```
var query =
from t1 in myTABLE1List
join t2 in myTABLE1List
on new { ColA=t1.ColumnA, ColB=t1.ColumnB } equals new { ColA=t2.ColumnA, ColB=t2.ColumnB }
join t3 in myTABLE1List
on new {ColC=t2.ColumnA, ColD=t2.ColumnB } equals new { ColC=t3.ColumnA, ColD=t3.ColumnB }
``` | The A and B alias must line up with Hrco and Position code from e table and t table - Hrco and Position Code combinations in the "equal new" filter. This will save you time because I kept getting "Not in scope on the left side" compile errors because I thought the filter was e.Hrco, t.Hrco pairing for the filter.
```
... |
5,307,741 | I have a site with a short url domain with an A record pointing to the main site (it's a pain to change this so I'd rather not). I have special logic that needs to run when the application is accessed from the short URL.
Right now, I have Apache set up with a RewriteRule to do a 301 to the main site when you hit the ... | 2011/03/15 | [
"https://Stackoverflow.com/questions/5307741",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/145492/"
] | In LINQ2SQL you seldom need to join explicitly when using inner joins.
If you have proper foreign key relationships in your database you will automatically get a relation in the LINQ designer (if not you can create a relation manually in the designer, although you should really have proper relations in your database)
... | I would like to give another example in which multiple (3) joins are used.
```
DataClasses1DataContext ctx = new DataClasses1DataContext();
var Owners = ctx.OwnerMasters;
var Category = ctx.CategoryMasters;
var Status = ctx.StatusMasters;
var Tasks = ctx.TaskMasters;
var xyz ... |
5,307,741 | I have a site with a short url domain with an A record pointing to the main site (it's a pain to change this so I'd rather not). I have special logic that needs to run when the application is accessed from the short URL.
Right now, I have Apache set up with a RewriteRule to do a 301 to the main site when you hit the ... | 2011/03/15 | [
"https://Stackoverflow.com/questions/5307741",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/145492/"
] | In LINQ2SQL you seldom need to join explicitly when using inner joins.
If you have proper foreign key relationships in your database you will automatically get a relation in the LINQ designer (if not you can create a relation manually in the designer, although you should really have proper relations in your database)
... | You can use LINQ Method Syntax to join on multiple columns. It's an example here,
```
var query = mTABLE_1.Join( // mTABLE_1 is a List<TABLE_1>
mTABLE_1,
t1 => new
{
ColA = t1.ColumnA,
ColB = t1.ColumnB,
ColC =... |
5,307,741 | I have a site with a short url domain with an A record pointing to the main site (it's a pain to change this so I'd rather not). I have special logic that needs to run when the application is accessed from the short URL.
Right now, I have Apache set up with a RewriteRule to do a 301 to the main site when you hit the ... | 2011/03/15 | [
"https://Stackoverflow.com/questions/5307741",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/145492/"
] | Title\_Authors is a look up two things join at a time project results and continue chaining
```
DataClasses1DataContext db = new DataClasses1DataContext();
var queryresults = from a in db.Authors
join ba in db.Title_Authors ... | I would like to give another example in which multiple (3) joins are used.
```
DataClasses1DataContext ctx = new DataClasses1DataContext();
var Owners = ctx.OwnerMasters;
var Category = ctx.CategoryMasters;
var Status = ctx.StatusMasters;
var Tasks = ctx.TaskMasters;
var xyz ... |
5,307,741 | I have a site with a short url domain with an A record pointing to the main site (it's a pain to change this so I'd rather not). I have special logic that needs to run when the application is accessed from the short URL.
Right now, I have Apache set up with a RewriteRule to do a 301 to the main site when you hit the ... | 2011/03/15 | [
"https://Stackoverflow.com/questions/5307741",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/145492/"
] | Joining on multiple columns in Linq to SQL is a little different.
```
var query =
from t1 in myTABLE1List // List<TABLE_1>
join t2 in myTABLE1List
on new { t1.ColumnA, t1.ColumnB } equals new { t2.ColumnA, t2.ColumnB }
...
```
You have to take advantage of anonymous types and compose a type for the... | You can use LINQ Method Syntax to join on multiple columns. It's an example here,
```
var query = mTABLE_1.Join( // mTABLE_1 is a List<TABLE_1>
mTABLE_1,
t1 => new
{
ColA = t1.ColumnA,
ColB = t1.ColumnB,
ColC =... |
5,307,741 | I have a site with a short url domain with an A record pointing to the main site (it's a pain to change this so I'd rather not). I have special logic that needs to run when the application is accessed from the short URL.
Right now, I have Apache set up with a RewriteRule to do a 301 to the main site when you hit the ... | 2011/03/15 | [
"https://Stackoverflow.com/questions/5307741",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/145492/"
] | Joining on multiple columns in Linq to SQL is a little different.
```
var query =
from t1 in myTABLE1List // List<TABLE_1>
join t2 in myTABLE1List
on new { t1.ColumnA, t1.ColumnB } equals new { t2.ColumnA, t2.ColumnB }
...
```
You have to take advantage of anonymous types and compose a type for the... | Title\_Authors is a look up two things join at a time project results and continue chaining
```
DataClasses1DataContext db = new DataClasses1DataContext();
var queryresults = from a in db.Authors
join ba in db.Title_Authors ... |
5,307,741 | I have a site with a short url domain with an A record pointing to the main site (it's a pain to change this so I'd rather not). I have special logic that needs to run when the application is accessed from the short URL.
Right now, I have Apache set up with a RewriteRule to do a 301 to the main site when you hit the ... | 2011/03/15 | [
"https://Stackoverflow.com/questions/5307741",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/145492/"
] | In LINQ2SQL you seldom need to join explicitly when using inner joins.
If you have proper foreign key relationships in your database you will automatically get a relation in the LINQ designer (if not you can create a relation manually in the designer, although you should really have proper relations in your database)
... | You can also join if the number of columns are not same in both tables and can map static value to table column
```
from t1 in Table1
join t2 in Table2
on new {X = t1.Column1, Y = 0 } on new {X = t2.Column1, Y = t2.Column2 }
select new {t1, t2}
``` |
5,307,741 | I have a site with a short url domain with an A record pointing to the main site (it's a pain to change this so I'd rather not). I have special logic that needs to run when the application is accessed from the short URL.
Right now, I have Apache set up with a RewriteRule to do a 301 to the main site when you hit the ... | 2011/03/15 | [
"https://Stackoverflow.com/questions/5307741",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/145492/"
] | Joining on multiple columns in Linq to SQL is a little different.
```
var query =
from t1 in myTABLE1List // List<TABLE_1>
join t2 in myTABLE1List
on new { t1.ColumnA, t1.ColumnB } equals new { t2.ColumnA, t2.ColumnB }
...
```
You have to take advantage of anonymous types and compose a type for the... | You can also join if the number of columns are not same in both tables and can map static value to table column
```
from t1 in Table1
join t2 in Table2
on new {X = t1.Column1, Y = 0 } on new {X = t2.Column1, Y = t2.Column2 }
select new {t1, t2}
``` |
5,307,741 | I have a site with a short url domain with an A record pointing to the main site (it's a pain to change this so I'd rather not). I have special logic that needs to run when the application is accessed from the short URL.
Right now, I have Apache set up with a RewriteRule to do a 301 to the main site when you hit the ... | 2011/03/15 | [
"https://Stackoverflow.com/questions/5307741",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/145492/"
] | Title\_Authors is a look up two things join at a time project results and continue chaining
```
DataClasses1DataContext db = new DataClasses1DataContext();
var queryresults = from a in db.Authors
join ba in db.Title_Authors ... | You can also join if the number of columns are not same in both tables and can map static value to table column
```
from t1 in Table1
join t2 in Table2
on new {X = t1.Column1, Y = 0 } on new {X = t2.Column1, Y = t2.Column2 }
select new {t1, t2}
``` |
62,735,626 | I have a list of student names and courses they chose.
```
StudentName CourseName Age
John 3 16
Dean 2 17
Lisa 1 18
King 3 19
Lisa 2 17
John 2 16
John 2 12
Lisa 1 15... | 2020/07/05 | [
"https://Stackoverflow.com/questions/62735626",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] | The stable baselines site claims they do not support tf2.X yet. So that might be your problem
Try the following,
```py
pip install tensorflow==1.14.0
pip install stable-baselines[mpi]==2.10.0
```
They seem to work together for me to this day(Sept 4th, 2020).
I know this might be a little late but I found your ques... | If you are looking specifically for a TF2 version of Stable Baselines, check one of these (experimental) forks:
* <https://github.com/sophiagu/stable-baselines-tf2>
* <https://github.com/Stable-Baselines-Team/stable-baselines-tf2>
Alternatively, try **Stable Baselines 3** (currently in beta), which is based on **PyTo... |
62,735,626 | I have a list of student names and courses they chose.
```
StudentName CourseName Age
John 3 16
Dean 2 17
Lisa 1 18
King 3 19
Lisa 2 17
John 2 16
John 2 12
Lisa 1 15... | 2020/07/05 | [
"https://Stackoverflow.com/questions/62735626",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] | The stable baselines site claims they do not support tf2.X yet. So that might be your problem
Try the following,
```py
pip install tensorflow==1.14.0
pip install stable-baselines[mpi]==2.10.0
```
They seem to work together for me to this day(Sept 4th, 2020).
I know this might be a little late but I found your ques... | `import stable_baselines` doesn't work.
`import stable_baselines3` works.
---
For installing Stable-baselines, you can use
* `conda install -c conda-forge stable-baselines3` if you use Anaconda
* `pip install stable-baselines` if you want to install using PIP |
62,735,626 | I have a list of student names and courses they chose.
```
StudentName CourseName Age
John 3 16
Dean 2 17
Lisa 1 18
King 3 19
Lisa 2 17
John 2 16
John 2 12
Lisa 1 15... | 2020/07/05 | [
"https://Stackoverflow.com/questions/62735626",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] | If you are looking specifically for a TF2 version of Stable Baselines, check one of these (experimental) forks:
* <https://github.com/sophiagu/stable-baselines-tf2>
* <https://github.com/Stable-Baselines-Team/stable-baselines-tf2>
Alternatively, try **Stable Baselines 3** (currently in beta), which is based on **PyTo... | `import stable_baselines` doesn't work.
`import stable_baselines3` works.
---
For installing Stable-baselines, you can use
* `conda install -c conda-forge stable-baselines3` if you use Anaconda
* `pip install stable-baselines` if you want to install using PIP |
41,232,005 | How to do below on single line?
After line is executed value of **$b is null**
```
$b = ([System.Collections.Generic.Dictionary[string,object]]::new()).Add("dd",$null)
```
or
```
[System.Collections.Generic.Dictionary[string,object]]::new()).Add("dd",$null) -eq $null
True
``` | 2016/12/19 | [
"https://Stackoverflow.com/questions/41232005",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1807374/"
] | ```
($b = [System.Collections.Generic.Dictionary[string,object]]::new()).Add("dd",$null)
``` | Try [hash tables](https://msdn.microsoft.com/en-us/powershell/reference/5.0/microsoft.powershell.core/about/about_hash_tables) instead of .NET dictionaries. These are `System.Collections.Hashtable` objects that store key-value pairs. In PowerShell, you can use the operator `@{}` to create a hash table, and can quickly ... |
147,256 | Is there a way to **get disabled products programmatically in Magento 2** ? | 2016/11/24 | [
"https://magento.stackexchange.com/questions/147256",
"https://magento.stackexchange.com",
"https://magento.stackexchange.com/users/43576/"
] | You can try with:
```
/** @var \Magento\Catalog\Model\ResourceModel\Product\CollectionFactory $_productCollectionFactory **/
$this->_productCollectionFactory->create()
->addAttributeToSelect('*')
->addAttributeToFilter('status', \Magento\Catalog\Model\Product\Attribute\Source\Status::STATUS_DISABLED);
```
N... | It's best practice to use the Service Contracts Layer (see here: [Magento 2: what are the benefits of using service contracts?](https://magento.stackexchange.com/q/115398/2380))
```
protected $_productRepository;
protected $_searchCriteriaBuilder;
public function __construct(
\Magento\Catalog\Api\ProductReposit... |
43,134,850 | I have a Solution in Visual Studio 2017 and one of the Projects is an ASP.NET Web Forms application.
How can I rename the Project?
I changed the name in the .sln file but within the IDE it is still showing the old name. The folder name matches the required name. | 2017/03/31 | [
"https://Stackoverflow.com/questions/43134850",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3304189/"
] | In Visual Studio Enterprise 2013, right click en Solution and search in contextual menu the option "Rename", there put you new solution name [solution rename](https://i.stack.imgur.com/ODDgg.jpg) | Thanks for the response.
I had already tried editing the .sln file but it made no difference.
I finally found the problem was in the applicationhost.config file. Once I edited that the new name appeared. |
156,121 | I was writing a letter of application for a university. I wanted to start my letter by writing:
>
> I am writing this letter to express my interest in becoming part...
>
>
>
and then I got confused. I am not sure how the last part of that sentence should be.
>
> * ...in becoming part...
> * ...to become part..... | 2014/03/07 | [
"https://english.stackexchange.com/questions/156121",
"https://english.stackexchange.com",
"https://english.stackexchange.com/users/63710/"
] | As John Lawler notes in a comment,
>
> *Interest(ed)* takes prepositional phrases with *in*, which can have gerund clauses as objects (*He's interested in logographic pyrology*, *his interest in pyrographic logology*), but they don't take infinitive clauses (*\*He's interested to leave now*, *\*his interest to leave ... | Often, the K.I.S.S. principle is useful, and you could go with simple present and infinitives:
>
> I write this letter to express my interest to become part of ...
>
>
>
However, the use of simple-present tense - although technically correct - is [fast fading](https://books.google.com/ngrams/graph?content=I%20wri... |
1,209,941 | If $M, N$ are finite dimensional vector spaces with same dimension, then if $M$ is subset of $N$, then $M=N$.
I think i need to show that both vector spaces are spanned by the same bases in order to do this or to prove $N$ is subset of $M$?
But i am not sure how to do this.
Thanks | 2015/03/28 | [
"https://math.stackexchange.com/questions/1209941",
"https://math.stackexchange.com",
"https://math.stackexchange.com/users/225132/"
] | Let me reformulate the problem:
>
> If $M$ is a (finite dimensional) subspace of a finite dimensional vector space $N$ and $\dim M=\dim N$, then $M=N$.
>
>
>
The clause that $M$ is finite dimensional is redundant, but it's not important, as you have it in your assignment.
Suppose $M\ne N$ and let $v\in N$, $v\no... | Hint:
Let $\;B:=\{m\_1,...,m\_k\}\;$ be a basis of $\;M\;$ . Then $\;B\;$ is a linearly independent set of $\;N\;$ as $\;M\le N\;$ . But we're also given $\;k=\dim M=\dim N\;$ , so...complete here. |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.