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
7,677,924
I'm new to Git and I'm a little confused how to use "git fetch" I have a central repository that I access using SSH, I have created a repository using git clone, just like this: ``` $ cd /my/local/repotest $ git clone ssh://andre@somedomain.com/var/github/repotest . ``` Now other developer have pushed some new file...
2011/10/06
[ "https://Stackoverflow.com/questions/7677924", "https://Stackoverflow.com", "https://Stackoverflow.com/users/488735/" ]
From the C99 standard (§6.3.2.3/6): > > Any pointer type may be converted to an integer type. Except as previously specified, **the > result is implementation-defined**. If the result cannot be represented in the integer type, > the behavior is undefined. The result need not be in the range of values of any integer...
Integer constants (e.g, `0x00000000FFFFFFFF`) are signed integers by default, and hence may experience sign extension when assigned to a 64-bit variable. Try replacing the value on line 3 with: ``` 0x00000000FFFFFFFFULL ```
7,677,924
I'm new to Git and I'm a little confused how to use "git fetch" I have a central repository that I access using SSH, I have created a repository using git clone, just like this: ``` $ cd /my/local/repotest $ git clone ssh://andre@somedomain.com/var/github/repotest . ``` Now other developer have pushed some new file...
2011/10/06
[ "https://Stackoverflow.com/questions/7677924", "https://Stackoverflow.com", "https://Stackoverflow.com/users/488735/" ]
From the C99 standard (§6.3.2.3/6): > > Any pointer type may be converted to an integer type. Except as previously specified, **the > result is implementation-defined**. If the result cannot be represented in the integer type, > the behavior is undefined. The result need not be in the range of values of any integer...
Use this to avoid the sign extension: ``` unsigned __int64 a = 0x00000000FFFFFFFFLL; ``` Note the L on the end. Without this it is interpreted as a 32-bit signed number (-1) and then cast.
7,677,924
I'm new to Git and I'm a little confused how to use "git fetch" I have a central repository that I access using SSH, I have created a repository using git clone, just like this: ``` $ cd /my/local/repotest $ git clone ssh://andre@somedomain.com/var/github/repotest . ``` Now other developer have pushed some new file...
2011/10/06
[ "https://Stackoverflow.com/questions/7677924", "https://Stackoverflow.com", "https://Stackoverflow.com/users/488735/" ]
Converting a pointer to/from an integer is implementation defined. [Here](http://gcc.gnu.org/onlinedocs/gcc/Arrays-and-pointers-implementation.html) is how gcc does it, i.e. it sign extends if the integer type is larger than the pointer type(this'll happen regardless of the integer being signed or unsigned, just becau...
Integer constants (e.g, `0x00000000FFFFFFFF`) are signed integers by default, and hence may experience sign extension when assigned to a 64-bit variable. Try replacing the value on line 3 with: ``` 0x00000000FFFFFFFFULL ```
7,677,924
I'm new to Git and I'm a little confused how to use "git fetch" I have a central repository that I access using SSH, I have created a repository using git clone, just like this: ``` $ cd /my/local/repotest $ git clone ssh://andre@somedomain.com/var/github/repotest . ``` Now other developer have pushed some new file...
2011/10/06
[ "https://Stackoverflow.com/questions/7677924", "https://Stackoverflow.com", "https://Stackoverflow.com/users/488735/" ]
Converting a pointer to/from an integer is implementation defined. [Here](http://gcc.gnu.org/onlinedocs/gcc/Arrays-and-pointers-implementation.html) is how gcc does it, i.e. it sign extends if the integer type is larger than the pointer type(this'll happen regardless of the integer being signed or unsigned, just becau...
Use this to avoid the sign extension: ``` unsigned __int64 a = 0x00000000FFFFFFFFLL; ``` Note the L on the end. Without this it is interpreted as a 32-bit signed number (-1) and then cast.
47,020,089
I've designed a login form in MS Access. I've different user roles and want to display different controls to at different user logins. For instance, if an admin is logged in, the controls should be different and a normal user should be able to use different controls. The vba code I've written for SignIn button on cli...
2017/10/30
[ "https://Stackoverflow.com/questions/47020089", "https://Stackoverflow.com", "https://Stackoverflow.com/users/8643351/" ]
You can require fs on client side using the following code in webpack.config.js ``` var fs = require('fs'); var nodeModules = {}; fs.readdirSync('node_modules') .filter(function(x) { return ['.bin'].indexOf(x) === -1; }) .forEach(function(mod) { nodeModules[mod] = 'commonjs ' + mod; }); ``` also add...
In case with Webpack 4 i got same error: ``` Module not found: Error: Can't resolve 'fs' in ... ``` I fixed this error by adding section to root of `webpack.config.js` file: ```js ... node: { fs: "empty", }, ... ```
47,020,089
I've designed a login form in MS Access. I've different user roles and want to display different controls to at different user logins. For instance, if an admin is logged in, the controls should be different and a normal user should be able to use different controls. The vba code I've written for SignIn button on cli...
2017/10/30
[ "https://Stackoverflow.com/questions/47020089", "https://Stackoverflow.com", "https://Stackoverflow.com/users/8643351/" ]
You can require fs on client side using the following code in webpack.config.js ``` var fs = require('fs'); var nodeModules = {}; fs.readdirSync('node_modules') .filter(function(x) { return ['.bin'].indexOf(x) === -1; }) .forEach(function(mod) { nodeModules[mod] = 'commonjs ' + mod; }); ``` also add...
At some point, I had used this include: ``` import { TRUE } from "node-sass"; ``` I simply commented it out. I was running all over the place trying to figure out what changed! Moral: sometimes it's not about chasing the error ONLY (because I was getting all kinds of suggestions). It's also about reviewing what you'...
47,020,089
I've designed a login form in MS Access. I've different user roles and want to display different controls to at different user logins. For instance, if an admin is logged in, the controls should be different and a normal user should be able to use different controls. The vba code I've written for SignIn button on cli...
2017/10/30
[ "https://Stackoverflow.com/questions/47020089", "https://Stackoverflow.com", "https://Stackoverflow.com/users/8643351/" ]
You can require fs on client side using the following code in webpack.config.js ``` var fs = require('fs'); var nodeModules = {}; fs.readdirSync('node_modules') .filter(function(x) { return ['.bin'].indexOf(x) === -1; }) .forEach(function(mod) { nodeModules[mod] = 'commonjs ' + mod; }); ``` also add...
``` // Add somewhere close to the bottom directly above devtool: options.devtool ... node: { fs: 'empty' }, // This will cause the webpack to ignore fs dependencies. i.e. resolve: { modules: ['app', 'node_modules'], extensions: [ '.js', '.jsx', '.react.js', ], mainFields: [ ...
47,020,089
I've designed a login form in MS Access. I've different user roles and want to display different controls to at different user logins. For instance, if an admin is logged in, the controls should be different and a normal user should be able to use different controls. The vba code I've written for SignIn button on cli...
2017/10/30
[ "https://Stackoverflow.com/questions/47020089", "https://Stackoverflow.com", "https://Stackoverflow.com/users/8643351/" ]
In case with Webpack 4 i got same error: ``` Module not found: Error: Can't resolve 'fs' in ... ``` I fixed this error by adding section to root of `webpack.config.js` file: ```js ... node: { fs: "empty", }, ... ```
At some point, I had used this include: ``` import { TRUE } from "node-sass"; ``` I simply commented it out. I was running all over the place trying to figure out what changed! Moral: sometimes it's not about chasing the error ONLY (because I was getting all kinds of suggestions). It's also about reviewing what you'...
47,020,089
I've designed a login form in MS Access. I've different user roles and want to display different controls to at different user logins. For instance, if an admin is logged in, the controls should be different and a normal user should be able to use different controls. The vba code I've written for SignIn button on cli...
2017/10/30
[ "https://Stackoverflow.com/questions/47020089", "https://Stackoverflow.com", "https://Stackoverflow.com/users/8643351/" ]
In case with Webpack 4 i got same error: ``` Module not found: Error: Can't resolve 'fs' in ... ``` I fixed this error by adding section to root of `webpack.config.js` file: ```js ... node: { fs: "empty", }, ... ```
``` // Add somewhere close to the bottom directly above devtool: options.devtool ... node: { fs: 'empty' }, // This will cause the webpack to ignore fs dependencies. i.e. resolve: { modules: ['app', 'node_modules'], extensions: [ '.js', '.jsx', '.react.js', ], mainFields: [ ...
793,691
[Circle packing theorem](http://en.wikipedia.org/wiki/Circle_packing_theorem) states: *For every connected simple planar graph G there is a circle packing in the plane whose intersection graph is (isomorphic to) G.* Paper [Collins, Stephenson: A circle packing algorithm](https://www.google.rs/url?sa=t&rct=j&q=&esrc=s...
2014/05/13
[ "https://math.stackexchange.com/questions/793691", "https://math.stackexchange.com", "https://math.stackexchange.com/users/121158/" ]
I have computed circle packings in various special cases taking advantage of symmetry. However, I have not implemented circle packing in full generality. ![enter image description here](https://i.stack.imgur.com/MlZjk.png) The US graph is featured in a review of [Hyperbolic Geometry](http://www.math.brown.edu/~rkenyo...
If you read the very last item in the paper that you linked, you will see that the authors of that paper give a [link to software that computes circle packings](http://www.math.utk.edu/~kens/).
29,316,318
I actually need a mysql query like ``` SELECT *, CONCAT(pri_hours, ':', pri_minutes, ' ', IF(pri_ampm = 1, 'am', 'pm')) as hr FROM (`sms_primary`) ORDER BY STR_TO_DATE(hr, '%h:%i %p') ``` and as I use codeigniter i wrote query as below ``` $this->db->select("*,CONCAT(pri_hours,':', pri_minutes,' ',IF(pri_a...
2015/03/28
[ "https://Stackoverflow.com/questions/29316318", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3531600/" ]
It should be simpler : ``` f.list((File a1, String a2) -> {return false;}); ``` or even : ``` f.list((a1,a2) -> {return false;}); ``` The lambda expression replaces the instantiation of the abstract class instance.
You don't have to put the class name, if you use a lambda-expression: ``` f.list( (File a1, String a2) -> { return false; } ); ``` In fact, in your first example, you omit `new Runnable()`.
29,316,318
I actually need a mysql query like ``` SELECT *, CONCAT(pri_hours, ':', pri_minutes, ' ', IF(pri_ampm = 1, 'am', 'pm')) as hr FROM (`sms_primary`) ORDER BY STR_TO_DATE(hr, '%h:%i %p') ``` and as I use codeigniter i wrote query as below ``` $this->db->select("*,CONCAT(pri_hours,':', pri_minutes,' ',IF(pri_a...
2015/03/28
[ "https://Stackoverflow.com/questions/29316318", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3531600/" ]
First things first, your formatting is **horrible**, sort it out! Now, lambda syntax; to convert the anonymous class: ``` final FilenameFilter filter = new FilenameFilter() { @Override public boolean accept(File dir, String name) { return false; } }; ``` We start by replacing the anonymous class...
You don't have to put the class name, if you use a lambda-expression: ``` f.list( (File a1, String a2) -> { return false; } ); ``` In fact, in your first example, you omit `new Runnable()`.
29,316,318
I actually need a mysql query like ``` SELECT *, CONCAT(pri_hours, ':', pri_minutes, ' ', IF(pri_ampm = 1, 'am', 'pm')) as hr FROM (`sms_primary`) ORDER BY STR_TO_DATE(hr, '%h:%i %p') ``` and as I use codeigniter i wrote query as below ``` $this->db->select("*,CONCAT(pri_hours,':', pri_minutes,' ',IF(pri_a...
2015/03/28
[ "https://Stackoverflow.com/questions/29316318", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3531600/" ]
`FileNameFilter` is a functional interface. You don't need to instantiate it explicitly. ``` f.list((dir, name) -> name.endsWith(".txt")); ``` Note also, that `f` should be a directory, not a file as in your example. Your example where `f1` is a file will return `null` with the specified filter.
You don't have to put the class name, if you use a lambda-expression: ``` f.list( (File a1, String a2) -> { return false; } ); ``` In fact, in your first example, you omit `new Runnable()`.
29,316,318
I actually need a mysql query like ``` SELECT *, CONCAT(pri_hours, ':', pri_minutes, ' ', IF(pri_ampm = 1, 'am', 'pm')) as hr FROM (`sms_primary`) ORDER BY STR_TO_DATE(hr, '%h:%i %p') ``` and as I use codeigniter i wrote query as below ``` $this->db->select("*,CONCAT(pri_hours,':', pri_minutes,' ',IF(pri_a...
2015/03/28
[ "https://Stackoverflow.com/questions/29316318", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3531600/" ]
First things first, your formatting is **horrible**, sort it out! Now, lambda syntax; to convert the anonymous class: ``` final FilenameFilter filter = new FilenameFilter() { @Override public boolean accept(File dir, String name) { return false; } }; ``` We start by replacing the anonymous class...
It should be simpler : ``` f.list((File a1, String a2) -> {return false;}); ``` or even : ``` f.list((a1,a2) -> {return false;}); ``` The lambda expression replaces the instantiation of the abstract class instance.
29,316,318
I actually need a mysql query like ``` SELECT *, CONCAT(pri_hours, ':', pri_minutes, ' ', IF(pri_ampm = 1, 'am', 'pm')) as hr FROM (`sms_primary`) ORDER BY STR_TO_DATE(hr, '%h:%i %p') ``` and as I use codeigniter i wrote query as below ``` $this->db->select("*,CONCAT(pri_hours,':', pri_minutes,' ',IF(pri_a...
2015/03/28
[ "https://Stackoverflow.com/questions/29316318", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3531600/" ]
First things first, your formatting is **horrible**, sort it out! Now, lambda syntax; to convert the anonymous class: ``` final FilenameFilter filter = new FilenameFilter() { @Override public boolean accept(File dir, String name) { return false; } }; ``` We start by replacing the anonymous class...
`FileNameFilter` is a functional interface. You don't need to instantiate it explicitly. ``` f.list((dir, name) -> name.endsWith(".txt")); ``` Note also, that `f` should be a directory, not a file as in your example. Your example where `f1` is a file will return `null` with the specified filter.
18,606,960
Can someone help me with a simple AJAX pagination in Codeigniter using JQuery? With the paginated list queryed from the database. I searched the web but all the exemples are very complex... Thank you in advance and sorry for my bad english...
2013/09/04
[ "https://Stackoverflow.com/questions/18606960", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2728329/" ]
just use codeigniter pagination simple and use following code for pagination through jquery: ``` <script> $(function(){ $("#pagination-div-id a").click(function(){ $.ajax({ type: "POST", url: $(this).attr("href"), data:"q=<?php echo $searchString; ?>", success: function(res){ $("#containerid")....
just use codeigniter pagination library and add the following function in the library after create links function ``` function create_links_ajax() { // If our item count or per-page total is zero there is no need to continue. if ($this->total_rows == 0 OR $this->per_page == 0) { ...
18,606,960
Can someone help me with a simple AJAX pagination in Codeigniter using JQuery? With the paginated list queryed from the database. I searched the web but all the exemples are very complex... Thank you in advance and sorry for my bad english...
2013/09/04
[ "https://Stackoverflow.com/questions/18606960", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2728329/" ]
just use codeigniter pagination simple and use following code for pagination through jquery: ``` <script> $(function(){ $("#pagination-div-id a").click(function(){ $.ajax({ type: "POST", url: $(this).attr("href"), data:"q=<?php echo $searchString; ?>", success: function(res){ $("#containerid")....
Apply Live click, if you are returning data from controller as follows: ``` jQuery("#pagination a").live('click',function(e){ e.preventDefault(); jQuery.ajax({ type: "POST", url: jQuery(this).attr("href"), success: function(res){ jQuery('#multiple_selection_data').html(res); } }); ...
18,606,960
Can someone help me with a simple AJAX pagination in Codeigniter using JQuery? With the paginated list queryed from the database. I searched the web but all the exemples are very complex... Thank you in advance and sorry for my bad english...
2013/09/04
[ "https://Stackoverflow.com/questions/18606960", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2728329/" ]
just use codeigniter pagination library and add the following function in the library after create links function ``` function create_links_ajax() { // If our item count or per-page total is zero there is no need to continue. if ($this->total_rows == 0 OR $this->per_page == 0) { ...
Apply Live click, if you are returning data from controller as follows: ``` jQuery("#pagination a").live('click',function(e){ e.preventDefault(); jQuery.ajax({ type: "POST", url: jQuery(this).attr("href"), success: function(res){ jQuery('#multiple_selection_data').html(res); } }); ...
60,006,520
``` <ul id="sortable"> <li class="ui-state-default editor-sortable-moveable" id="123"> <div class="d-flex"> <div class="p-2 flex-fill li-content-grid"></div> <div class="p-2 flex-fill li-content-grid">Text</div> <div class="p-2 flex-fill li-content-grid icon-flow"><i class="fas fa-edit" id="editor_clic...
2020/01/31
[ "https://Stackoverflow.com/questions/60006520", "https://Stackoverflow.com", "https://Stackoverflow.com/users/5372316/" ]
You have two issues here. Firstly you're not using `click()` correctly. The first argument in your case is the additional data you want to include in the event, but that's not relevant to your use case. Instead it appears you're trying to create a delegated event handler, but you need to use `on()` for that. Secondly,...
fyi, if you use a snippet its easier for us to run and see whats up. Below in the snippet i switched it from adding the listener to the ul. now it adds the listener to the lis nested inside your ul. ```js //#sortable is the id of the ul //.editor-sortable-movable grabs the li $(document).ready(function () { $("...
8,181,121
I have compiled a list of db object names, one name per line, in a text file. I want to know for each names, where it is being used. The target search is a group of folders containing sub-folders of source codes. Before I give up looking for a tool to do this and start creating my own, perhaps you can help to point to...
2011/11/18
[ "https://Stackoverflow.com/questions/8181121", "https://Stackoverflow.com", "https://Stackoverflow.com/users/54908/" ]
use `grep` (there are tons of port of this command to windows, search the web). eventually, use [`AgentRansack`](http://mythicsoft.com/page.aspx?type=agentransack&page=home).
See our [Source Code Search Engine](http://www.semanticdesigns.com/Products/SearchEngine). It indexes a large code base according to the atoms (tokens) of the language(s) of interest, and then uses that index to quickly execute structured queries stated in terms of language elememnts. It is a kind of super-grep, but it...
8,181,121
I have compiled a list of db object names, one name per line, in a text file. I want to know for each names, where it is being used. The target search is a group of folders containing sub-folders of source codes. Before I give up looking for a tool to do this and start creating my own, perhaps you can help to point to...
2011/11/18
[ "https://Stackoverflow.com/questions/8181121", "https://Stackoverflow.com", "https://Stackoverflow.com/users/54908/" ]
use `grep` (there are tons of port of this command to windows, search the web). eventually, use [`AgentRansack`](http://mythicsoft.com/page.aspx?type=agentransack&page=home).
I had created an SSIS package to load my 500+ source code files that is distributed into some depth of folders belongs to several projects, into a table, with 1 row as 1 line from the files (total is 10K+ lines). I then made a select statement against it, by cross-applying the table that keeps the list of 5K+ keywords...
25,689,090
I have code similar to this: ``` ExamPage.prototype.enterDetailsInputData = function (modifier) { page.sendKeys(this.modalExamName, 'Test Exam ' + modifier); page.sendKeys(this.modalExamVersionId, 'Test exam version ' + modifier); page.sendKeys(this.modalExamProductVersionId, 'Test exam product version ' +...
2014/09/05
[ "https://Stackoverflow.com/questions/25689090", "https://Stackoverflow.com", "https://Stackoverflow.com/users/975566/" ]
**Potential Solution** I think at least a little hackery is required no matter how you optimize it - protractor doesn't give you this out of the box. However would a small helper function like this suit your needs? What else do you need to speed up sides `text` `input`s with `ng-model`s? ``` function setNgModelToStrin...
You can do following - ``` ExamPage.prototype.enterDetailsInputData = function (modifier) { var arr=[ {id:this.modalExamName, text:'Test Exam ' + modifier}, {id:this.modalExamVersionId, text:'Test exam version ' + modifier }, {id:this.modalExamProductVersionId, text:'Test exam product version ' + modifier}, {id:this.m...
25,689,090
I have code similar to this: ``` ExamPage.prototype.enterDetailsInputData = function (modifier) { page.sendKeys(this.modalExamName, 'Test Exam ' + modifier); page.sendKeys(this.modalExamVersionId, 'Test exam version ' + modifier); page.sendKeys(this.modalExamProductVersionId, 'Test exam product version ' +...
2014/09/05
[ "https://Stackoverflow.com/questions/25689090", "https://Stackoverflow.com", "https://Stackoverflow.com/users/975566/" ]
You can do following - ``` ExamPage.prototype.enterDetailsInputData = function (modifier) { var arr=[ {id:this.modalExamName, text:'Test Exam ' + modifier}, {id:this.modalExamVersionId, text:'Test exam version ' + modifier }, {id:this.modalExamProductVersionId, text:'Test exam product version ' + modifier}, {id:this.m...
I also used `browser.executeScript`. But I didn't need to use $apply `waitForAngular` I add a script when E2E tests are running, and put a function on global scope, don't worry it's only during E2E tests, and you can namespace if you want to. ``` 'use strict'; function fastSendKeys(testId, value) { //test id is j...
25,689,090
I have code similar to this: ``` ExamPage.prototype.enterDetailsInputData = function (modifier) { page.sendKeys(this.modalExamName, 'Test Exam ' + modifier); page.sendKeys(this.modalExamVersionId, 'Test exam version ' + modifier); page.sendKeys(this.modalExamProductVersionId, 'Test exam product version ' +...
2014/09/05
[ "https://Stackoverflow.com/questions/25689090", "https://Stackoverflow.com", "https://Stackoverflow.com/users/975566/" ]
You can do following - ``` ExamPage.prototype.enterDetailsInputData = function (modifier) { var arr=[ {id:this.modalExamName, text:'Test Exam ' + modifier}, {id:this.modalExamVersionId, text:'Test exam version ' + modifier }, {id:this.modalExamProductVersionId, text:'Test exam product version ' + modifier}, {id:this.m...
The following worked for me when testing an angular 2 application ``` await browser.executeScript("arguments[0].value='" + inputText + "';", await element.by.css("#cssID")) ``` inspired by <https://stackoverflow.com/a/43404924/6018757>
25,689,090
I have code similar to this: ``` ExamPage.prototype.enterDetailsInputData = function (modifier) { page.sendKeys(this.modalExamName, 'Test Exam ' + modifier); page.sendKeys(this.modalExamVersionId, 'Test exam version ' + modifier); page.sendKeys(this.modalExamProductVersionId, 'Test exam product version ' +...
2014/09/05
[ "https://Stackoverflow.com/questions/25689090", "https://Stackoverflow.com", "https://Stackoverflow.com/users/975566/" ]
**Potential Solution** I think at least a little hackery is required no matter how you optimize it - protractor doesn't give you this out of the box. However would a small helper function like this suit your needs? What else do you need to speed up sides `text` `input`s with `ng-model`s? ``` function setNgModelToStrin...
If you really want to speed up the process of manipulating DOM in any way (including filling up data forms) one option to consider is to use: [`browser.executeScript`](http://angular.github.io/protractor/#/api?view=webdriver.WebDriver.prototype.executeScript) or [`browser.executeAsyncScript`](http://angular.github.io/p...
25,689,090
I have code similar to this: ``` ExamPage.prototype.enterDetailsInputData = function (modifier) { page.sendKeys(this.modalExamName, 'Test Exam ' + modifier); page.sendKeys(this.modalExamVersionId, 'Test exam version ' + modifier); page.sendKeys(this.modalExamProductVersionId, 'Test exam product version ' +...
2014/09/05
[ "https://Stackoverflow.com/questions/25689090", "https://Stackoverflow.com", "https://Stackoverflow.com/users/975566/" ]
**Potential Solution** I think at least a little hackery is required no matter how you optimize it - protractor doesn't give you this out of the box. However would a small helper function like this suit your needs? What else do you need to speed up sides `text` `input`s with `ng-model`s? ``` function setNgModelToStrin...
I also used `browser.executeScript`. But I didn't need to use $apply `waitForAngular` I add a script when E2E tests are running, and put a function on global scope, don't worry it's only during E2E tests, and you can namespace if you want to. ``` 'use strict'; function fastSendKeys(testId, value) { //test id is j...
25,689,090
I have code similar to this: ``` ExamPage.prototype.enterDetailsInputData = function (modifier) { page.sendKeys(this.modalExamName, 'Test Exam ' + modifier); page.sendKeys(this.modalExamVersionId, 'Test exam version ' + modifier); page.sendKeys(this.modalExamProductVersionId, 'Test exam product version ' +...
2014/09/05
[ "https://Stackoverflow.com/questions/25689090", "https://Stackoverflow.com", "https://Stackoverflow.com/users/975566/" ]
**Potential Solution** I think at least a little hackery is required no matter how you optimize it - protractor doesn't give you this out of the box. However would a small helper function like this suit your needs? What else do you need to speed up sides `text` `input`s with `ng-model`s? ``` function setNgModelToStrin...
The following worked for me when testing an angular 2 application ``` await browser.executeScript("arguments[0].value='" + inputText + "';", await element.by.css("#cssID")) ``` inspired by <https://stackoverflow.com/a/43404924/6018757>
25,689,090
I have code similar to this: ``` ExamPage.prototype.enterDetailsInputData = function (modifier) { page.sendKeys(this.modalExamName, 'Test Exam ' + modifier); page.sendKeys(this.modalExamVersionId, 'Test exam version ' + modifier); page.sendKeys(this.modalExamProductVersionId, 'Test exam product version ' +...
2014/09/05
[ "https://Stackoverflow.com/questions/25689090", "https://Stackoverflow.com", "https://Stackoverflow.com/users/975566/" ]
If you really want to speed up the process of manipulating DOM in any way (including filling up data forms) one option to consider is to use: [`browser.executeScript`](http://angular.github.io/protractor/#/api?view=webdriver.WebDriver.prototype.executeScript) or [`browser.executeAsyncScript`](http://angular.github.io/p...
I also used `browser.executeScript`. But I didn't need to use $apply `waitForAngular` I add a script when E2E tests are running, and put a function on global scope, don't worry it's only during E2E tests, and you can namespace if you want to. ``` 'use strict'; function fastSendKeys(testId, value) { //test id is j...
25,689,090
I have code similar to this: ``` ExamPage.prototype.enterDetailsInputData = function (modifier) { page.sendKeys(this.modalExamName, 'Test Exam ' + modifier); page.sendKeys(this.modalExamVersionId, 'Test exam version ' + modifier); page.sendKeys(this.modalExamProductVersionId, 'Test exam product version ' +...
2014/09/05
[ "https://Stackoverflow.com/questions/25689090", "https://Stackoverflow.com", "https://Stackoverflow.com/users/975566/" ]
If you really want to speed up the process of manipulating DOM in any way (including filling up data forms) one option to consider is to use: [`browser.executeScript`](http://angular.github.io/protractor/#/api?view=webdriver.WebDriver.prototype.executeScript) or [`browser.executeAsyncScript`](http://angular.github.io/p...
The following worked for me when testing an angular 2 application ``` await browser.executeScript("arguments[0].value='" + inputText + "';", await element.by.css("#cssID")) ``` inspired by <https://stackoverflow.com/a/43404924/6018757>
29,247,089
When I insert a new field in my users collection, several of the attributes disappear. Initially, my collection looked like this: ``` { "_id": "myfi3E4YTf9z6tdgS", "createdAt": ISODate("2015-03-20T16:25:06.978Z"), "emails": { "address": "abc123@gmail.com", "verified": true }, "profile": { "companyName": "C...
2015/03/25
[ "https://Stackoverflow.com/questions/29247089", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1547174/" ]
Use dot notation to update individual fields within an embedded object like `profile` instead of replacing the whole embedded object: ```js db.users.update({_id: 'myfi3E4YTf9z6tdgS'}, {$set: {'profile.admin': true}}) ```
Why don't you use db.users.save() function The syntax probably looks like ``` db.users.save({_id: 'myfi3E4YTf9z6tdgS', 'profile.admin': true}) ```
3,355,641
I"m looking to read the contents of a Word file on an application running on a webserver - without having word installed. Does a native .net solution for this exist?
2010/07/28
[ "https://Stackoverflow.com/questions/3355641", "https://Stackoverflow.com", "https://Stackoverflow.com/users/280746/" ]
Aspose makes a paid solution for doing just about anything with any Office format: <http://www.aspose.com/categories/.net-components/aspose.words-for-.net/default.aspx>
There are commercial options too, but that's what [OpenXML](http://openxmldeveloper.org/) is all about as long as you are dealing with docx files only. If you need doc files, you will probably need to purchase [Aspose's Aspose.Words for .NET](http://www.aspose.com/categories/.net-components/aspose.words-for-.net/defaul...
3,355,641
I"m looking to read the contents of a Word file on an application running on a webserver - without having word installed. Does a native .net solution for this exist?
2010/07/28
[ "https://Stackoverflow.com/questions/3355641", "https://Stackoverflow.com", "https://Stackoverflow.com/users/280746/" ]
There are commercial options too, but that's what [OpenXML](http://openxmldeveloper.org/) is all about as long as you are dealing with docx files only. If you need doc files, you will probably need to purchase [Aspose's Aspose.Words for .NET](http://www.aspose.com/categories/.net-components/aspose.words-for-.net/defaul...
i have used several SDK, for now, the best is Aspose.words, the openxml sdk 2.5 is also a nice choice, but the api is too low, so if you use openxml sdk that means will be writing more code, and remenber user openxml sdk tool together, it is a nice tool can make coding simple. you can look this video for a overview: [h...
3,355,641
I"m looking to read the contents of a Word file on an application running on a webserver - without having word installed. Does a native .net solution for this exist?
2010/07/28
[ "https://Stackoverflow.com/questions/3355641", "https://Stackoverflow.com", "https://Stackoverflow.com/users/280746/" ]
Aspose makes a paid solution for doing just about anything with any Office format: <http://www.aspose.com/categories/.net-components/aspose.words-for-.net/default.aspx>
i have used several SDK, for now, the best is Aspose.words, the openxml sdk 2.5 is also a nice choice, but the api is too low, so if you use openxml sdk that means will be writing more code, and remenber user openxml sdk tool together, it is a nice tool can make coding simple. you can look this video for a overview: [h...
1,316,485
Does anyone know of an application (for mac) which will format a page of html code nicely? ie Open the html file and indent all of the code/blocks, put character returns in and format it into sections so that it is readable rather than being just a big block of code. Then also give the ability to minimize/collapse sec...
2009/08/22
[ "https://Stackoverflow.com/questions/1316485", "https://Stackoverflow.com", "https://Stackoverflow.com/users/159366/" ]
Try [TACO HTML Edit](http://tacosw.com/) or [JEdit](http://www.jedit.org/) (Freeware) Bye.
I use [BBEdit](http://www.barebones.com/) for this.
1,316,485
Does anyone know of an application (for mac) which will format a page of html code nicely? ie Open the html file and indent all of the code/blocks, put character returns in and format it into sections so that it is readable rather than being just a big block of code. Then also give the ability to minimize/collapse sec...
2009/08/22
[ "https://Stackoverflow.com/questions/1316485", "https://Stackoverflow.com", "https://Stackoverflow.com/users/159366/" ]
Try using [tidy](http://www.w3.org/People/Raggett/tidy/). I think it is included in OSX (at least the command is there on my system) so you won't need to install anything to use it.
I use [BBEdit](http://www.barebones.com/) for this.
1,316,485
Does anyone know of an application (for mac) which will format a page of html code nicely? ie Open the html file and indent all of the code/blocks, put character returns in and format it into sections so that it is readable rather than being just a big block of code. Then also give the ability to minimize/collapse sec...
2009/08/22
[ "https://Stackoverflow.com/questions/1316485", "https://Stackoverflow.com", "https://Stackoverflow.com/users/159366/" ]
[TextMate](http://macromates.com/) is a really cool app. There are hundreds of bundles for all possible languages.
I use [BBEdit](http://www.barebones.com/) for this.
1,316,485
Does anyone know of an application (for mac) which will format a page of html code nicely? ie Open the html file and indent all of the code/blocks, put character returns in and format it into sections so that it is readable rather than being just a big block of code. Then also give the ability to minimize/collapse sec...
2009/08/22
[ "https://Stackoverflow.com/questions/1316485", "https://Stackoverflow.com", "https://Stackoverflow.com/users/159366/" ]
Try [TACO HTML Edit](http://tacosw.com/) or [JEdit](http://www.jedit.org/) (Freeware) Bye.
Try using [tidy](http://www.w3.org/People/Raggett/tidy/). I think it is included in OSX (at least the command is there on my system) so you won't need to install anything to use it.
1,316,485
Does anyone know of an application (for mac) which will format a page of html code nicely? ie Open the html file and indent all of the code/blocks, put character returns in and format it into sections so that it is readable rather than being just a big block of code. Then also give the ability to minimize/collapse sec...
2009/08/22
[ "https://Stackoverflow.com/questions/1316485", "https://Stackoverflow.com", "https://Stackoverflow.com/users/159366/" ]
Try [TACO HTML Edit](http://tacosw.com/) or [JEdit](http://www.jedit.org/) (Freeware) Bye.
Textmate will do a nice job. If you are a java or ruby programmer, [Intellj](http://www.jetbrains.com/idea/) or [Rubymine](http://www.jetbrains.com/ruby/index.html) does an excellent job of auto-formatting code(including HTML).
1,316,485
Does anyone know of an application (for mac) which will format a page of html code nicely? ie Open the html file and indent all of the code/blocks, put character returns in and format it into sections so that it is readable rather than being just a big block of code. Then also give the ability to minimize/collapse sec...
2009/08/22
[ "https://Stackoverflow.com/questions/1316485", "https://Stackoverflow.com", "https://Stackoverflow.com/users/159366/" ]
[TextMate](http://macromates.com/) is a really cool app. There are hundreds of bundles for all possible languages.
Try using [tidy](http://www.w3.org/People/Raggett/tidy/). I think it is included in OSX (at least the command is there on my system) so you won't need to install anything to use it.
1,316,485
Does anyone know of an application (for mac) which will format a page of html code nicely? ie Open the html file and indent all of the code/blocks, put character returns in and format it into sections so that it is readable rather than being just a big block of code. Then also give the ability to minimize/collapse sec...
2009/08/22
[ "https://Stackoverflow.com/questions/1316485", "https://Stackoverflow.com", "https://Stackoverflow.com/users/159366/" ]
Try using [tidy](http://www.w3.org/People/Raggett/tidy/). I think it is included in OSX (at least the command is there on my system) so you won't need to install anything to use it.
Textmate will do a nice job. If you are a java or ruby programmer, [Intellj](http://www.jetbrains.com/idea/) or [Rubymine](http://www.jetbrains.com/ruby/index.html) does an excellent job of auto-formatting code(including HTML).
1,316,485
Does anyone know of an application (for mac) which will format a page of html code nicely? ie Open the html file and indent all of the code/blocks, put character returns in and format it into sections so that it is readable rather than being just a big block of code. Then also give the ability to minimize/collapse sec...
2009/08/22
[ "https://Stackoverflow.com/questions/1316485", "https://Stackoverflow.com", "https://Stackoverflow.com/users/159366/" ]
[TextMate](http://macromates.com/) is a really cool app. There are hundreds of bundles for all possible languages.
Textmate will do a nice job. If you are a java or ruby programmer, [Intellj](http://www.jetbrains.com/idea/) or [Rubymine](http://www.jetbrains.com/ruby/index.html) does an excellent job of auto-formatting code(including HTML).
78,245
Do contemporary logicians generally claim, as [Wikipedia does](https://en.wikipedia.org/wiki/Classical_logic#Characteristics), that classical logic can be simply reduced to the 5 logical principles below? Or is it more complex than that and are there principles not included? > > 1. [Law of excluded middle](https://en...
2020/12/28
[ "https://philosophy.stackexchange.com/questions/78245", "https://philosophy.stackexchange.com", "https://philosophy.stackexchange.com/users/49667/" ]
I take your question to be, are the listed features sufficient to precisely and completely distinguish classical logic from all non-classical logics? There are certainly lots of other things one would need to specify in order for classical logic to qualify as a logic at all. And there are many other distinguishing feat...
Short Answer ------------ The answer to your question is at the start of the article you cited: > > Each logical system in this class shares [these 5] characteristic properties... **While not entailed by the preceding conditions** [emphasis mine], contemporary discussions of classical logic normally only include pro...
78,245
Do contemporary logicians generally claim, as [Wikipedia does](https://en.wikipedia.org/wiki/Classical_logic#Characteristics), that classical logic can be simply reduced to the 5 logical principles below? Or is it more complex than that and are there principles not included? > > 1. [Law of excluded middle](https://en...
2020/12/28
[ "https://philosophy.stackexchange.com/questions/78245", "https://philosophy.stackexchange.com", "https://philosophy.stackexchange.com/users/49667/" ]
Short Answer ------------ The answer to your question is at the start of the article you cited: > > Each logical system in this class shares [these 5] characteristic properties... **While not entailed by the preceding conditions** [emphasis mine], contemporary discussions of classical logic normally only include pro...
No. The Principle of explosion is absurd, i.e. illogical. And then the fact that Monotonicity of entailment is false follows from the absurdity of the Principle of Explosion. The so-called "classical Logic" part of mathematical logic is in contradiction to Aristotle's logic, which is the only logic which can be prope...
78,245
Do contemporary logicians generally claim, as [Wikipedia does](https://en.wikipedia.org/wiki/Classical_logic#Characteristics), that classical logic can be simply reduced to the 5 logical principles below? Or is it more complex than that and are there principles not included? > > 1. [Law of excluded middle](https://en...
2020/12/28
[ "https://philosophy.stackexchange.com/questions/78245", "https://philosophy.stackexchange.com", "https://philosophy.stackexchange.com/users/49667/" ]
I take your question to be, are the listed features sufficient to precisely and completely distinguish classical logic from all non-classical logics? There are certainly lots of other things one would need to specify in order for classical logic to qualify as a logic at all. And there are many other distinguishing feat...
No. The Principle of explosion is absurd, i.e. illogical. And then the fact that Monotonicity of entailment is false follows from the absurdity of the Principle of Explosion. The so-called "classical Logic" part of mathematical logic is in contradiction to Aristotle's logic, which is the only logic which can be prope...
50,946,572
There is this big solution I'm working on, where I turned a lot of the projects into NuGet packages. The packages were created via a .nuproj file in a separate solution in VS. Everything works fine, except for the following: At bootstrap I load some catalogs for MEF to be able to import them, which worked perfectly wh...
2018/06/20
[ "https://Stackoverflow.com/questions/50946572", "https://Stackoverflow.com", "https://Stackoverflow.com/users/7986337/" ]
I found that the best solution for this matter is the following: Take the files that need to be loaded and put them on the content folder. This can be done simply: ``` <ItemGroup> <Content Include=" {here go the needed files} " /> </ItemGroup> ``` The content folder just holds the files, but it **does not** cop...
You should be able to use a target of `content/Modules`. Anything in the `content` directory is copied in to the `bin` directory on build. If you were trying to use the special "convention based" folders, like `lib/net45`, those are directories that cause Visual Studio to automatically create an assembly reference whe...
66,196,473
I have to delete all the files in azure blob storage(specific container) automatically via azure release pipelines. So I have configured a task to get the IP address of Microsoft agent dynamically and add the IP address into blob Firewall. Below script working successfully sometimes, but I'm not able to see the IP in t...
2021/02/14
[ "https://Stackoverflow.com/questions/66196473", "https://Stackoverflow.com", "https://Stackoverflow.com/users/6814764/" ]
Work around is to temporary enable public access: ``` az storage account update --resource-group "$ResourceGroupName" --name "$Name" --default-action Allow ``` And after you are done with your operation you can turn it off again.
Communication between microsoft hosted agents and storage account behind firewall is always a troublesome one, even with the above work around of dynamically opening the storage firewall for that specific microsoft hosted agents IP address. This is mainly due to limitations on the storage account side. **1. Each stora...
49,059,664
I created [this very complex regular expression(RegEx101)](https://regex101.com/r/5cBm5a/1/) for IPv4 and IPv6 ``` ((^\s*((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5]))\s*$)|(^\s*((([0-9A-Fa-f]{1,4}:){7}([0-9A-Fa-f]{1,4}|:))|(([0-9A-Fa-f]{1,4}:){6}(:[0-9A-Fa-f]...
2018/03/01
[ "https://Stackoverflow.com/questions/49059664", "https://Stackoverflow.com", "https://Stackoverflow.com/users/9290438/" ]
And if anybody in the future wants optional subnet masks for ipv4 as well as ipv6. ``` /((^\s*((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5]))\s*(\/(\d|1\d|2\d|3[0-2]))?$)|(^\s*((([0-9A-Fa-f]{1,4}:){7}([0-9A-Fa-f]{1,4}|:))|(([0-9A-Fa-f]{1,4}:){6}(:[0-9A-Fa-f]{1,...
My understanding is that you want to optionally match a 'prefix'(a number at the end of the address which is always preceded by a forward slash) *p* such that `1≤p≤128`. Let's try breaking this up. Optionally match the following block: * Match a forward slash `/` * Either match a two digit number * Or match a number ...
51,261,320
I'm new with editing app.config. I'd like to have this section in app.config: ``` <name1> <name2> <name3 att="something1">value1</name3> <name3 att="something2">value2</name3> ... </name2> </name1> ``` How to create it and access it from code? I want to get `something1`, `something2`,...
2018/07/10
[ "https://Stackoverflow.com/questions/51261320", "https://Stackoverflow.com", "https://Stackoverflow.com/users/7871876/" ]
You should break your tests up more, both for your sake with debugging and to mitigate issues with the protractor control flow. Changing your tests to the following works: ``` import { browser, element, by } from 'protractor'; describe('protractor-test-project App', () => { it('goes to google', () => { ...
Using `waitForAngularEnabled` multiple times in the same test can be done, but requires a non-obvious addition of `browser.get`. Intuitively, most people think that setting `waitForAngularEnabled(true)` waits for protractor to pick up Angular tasks again but this returns a promise. Most people use it in a way where the...
36,446,144
I see load more button all the time, why do I need that?also what happens if I don't have a pagination? just keep lettings the post being displayed without pagination? I don't need a footer anyway. ``` {% for post in Posts %} <div class='col-sm-4'> {{post.content}} </div> {% endfor %} ``` the above simple code would...
2016/04/06
[ "https://Stackoverflow.com/questions/36446144", "https://Stackoverflow.com", "https://Stackoverflow.com/users/5792491/" ]
First off, with djangos generic views (ListView), pagination is literally one line to implement in a view and then the code for the template is given to you in the documentation (the bootstrap docs also have pagination example code snippets). Your current loop is essentially the same as ``` for i in range(n): pr...
Every post you add will have a certain weight, especially if it also has images or other media. Your users will have to load everything you have on the load of your page. This will make your page slow to load. Slow loading pages have poorer performance because people give up on loading. When the loading happens bit ...
36,446,144
I see load more button all the time, why do I need that?also what happens if I don't have a pagination? just keep lettings the post being displayed without pagination? I don't need a footer anyway. ``` {% for post in Posts %} <div class='col-sm-4'> {{post.content}} </div> {% endfor %} ``` the above simple code would...
2016/04/06
[ "https://Stackoverflow.com/questions/36446144", "https://Stackoverflow.com", "https://Stackoverflow.com/users/5792491/" ]
First off, with djangos generic views (ListView), pagination is literally one line to implement in a view and then the code for the template is given to you in the documentation (the bootstrap docs also have pagination example code snippets). Your current loop is essentially the same as ``` for i in range(n): pr...
While @Haroen Viaene is correct, that is only one side of the matter. Also a big collection of posts would be very hard to navigate through if a user wants to find a certain old post he's read already for example. Also another way to go (without "load more" or pagination) is to use a search box and/or categories to sep...
60,360,478
I am trying to return the images for each row in my database through the controller ``` public function getEmotions() { $emotionsList = Emotions::all(); $images = DB::table('emotions')->select('image')->get(); return $images; } ``` This returns the error Malformed UTF-8 character...
2020/02/23
[ "https://Stackoverflow.com/questions/60360478", "https://Stackoverflow.com", "https://Stackoverflow.com/users/11170995/" ]
> > $images = DB::table('emotions')->select('image')**->get()**; > > > The `get()` method provided by Laravel **return an instance of** `Illuminate\Support\Collection` class. By definition an > > Illuminate\Support\Collection class provides a fluent, convenient > wrapper for working with **arrays** of data. > ...
You must return a response: ``` return response($images->toArray()); ``` Or if you want it encoded in json: ``` return response()->json($images); ```
1,744,970
I'm using Windows 11 Insider Preview 10.0.22622.290 on my Lenovo [Flex 5i 15](https://www.lenovo.com/il/en/laptops/ideapad/ideapad-flex-series/IdeaPad-Flex-5-15ITL-05/p/88IPF501454?orgRef=https%253A%252F%252Fwww.google.com%252F). The pen I'm using is the Lenovo [Active Pen 2](https://support.lenovo.com/us/en/solutions...
2022/09/29
[ "https://superuser.com/questions/1744970", "https://superuser.com", "https://superuser.com/users/1675522/" ]
Yes you can When you reach the “Let’s Connect You To A Network” page, hit “Shift” and “F10” on the keyboard at the same time. This will bring up the Command Prompt In this new cmd window, type in “taskmgr” and press “Enter” on the keyboard. This will bring up the Task Manager window so you can see all running proces...
* Use the email address `no@thankyou.com`. * Type any password (e.g. `123456`). * The wizard says "Oops, something went wrong". * Click `Next` to open a screen that allows you to create a local account. [![enter image description here](https://i.stack.imgur.com/tfBhg.jpg)](https://i.stack.imgur.com/tfBhg.jpg)
1,744,970
I'm using Windows 11 Insider Preview 10.0.22622.290 on my Lenovo [Flex 5i 15](https://www.lenovo.com/il/en/laptops/ideapad/ideapad-flex-series/IdeaPad-Flex-5-15ITL-05/p/88IPF501454?orgRef=https%253A%252F%252Fwww.google.com%252F). The pen I'm using is the Lenovo [Active Pen 2](https://support.lenovo.com/us/en/solutions...
2022/09/29
[ "https://superuser.com/questions/1744970", "https://superuser.com", "https://superuser.com/users/1675522/" ]
* Use the email address `no@thankyou.com`. * Type any password (e.g. `123456`). * The wizard says "Oops, something went wrong". * Click `Next` to open a screen that allows you to create a local account. [![enter image description here](https://i.stack.imgur.com/tfBhg.jpg)](https://i.stack.imgur.com/tfBhg.jpg)
One option is to proceed and log in with a Microsoft account or create a new one. Once you're in Windows then you can create a local admin account, log in to the local account, and delete the Microsoft account.
1,744,970
I'm using Windows 11 Insider Preview 10.0.22622.290 on my Lenovo [Flex 5i 15](https://www.lenovo.com/il/en/laptops/ideapad/ideapad-flex-series/IdeaPad-Flex-5-15ITL-05/p/88IPF501454?orgRef=https%253A%252F%252Fwww.google.com%252F). The pen I'm using is the Lenovo [Active Pen 2](https://support.lenovo.com/us/en/solutions...
2022/09/29
[ "https://superuser.com/questions/1744970", "https://superuser.com", "https://superuser.com/users/1675522/" ]
* Use the email address `no@thankyou.com`. * Type any password (e.g. `123456`). * The wizard says "Oops, something went wrong". * Click `Next` to open a screen that allows you to create a local account. [![enter image description here](https://i.stack.imgur.com/tfBhg.jpg)](https://i.stack.imgur.com/tfBhg.jpg)
Below is not for updating from Windows 10/11, but for installing 22H2 from scratch, or performing clean install. First, download the Windows 11 22H2's iso and [rufus](https://rufus.ie/en/) that make a USB memory a bootable Windows installer. That sounds as same as just making it by yourself, but there's reason I recom...
1,744,970
I'm using Windows 11 Insider Preview 10.0.22622.290 on my Lenovo [Flex 5i 15](https://www.lenovo.com/il/en/laptops/ideapad/ideapad-flex-series/IdeaPad-Flex-5-15ITL-05/p/88IPF501454?orgRef=https%253A%252F%252Fwww.google.com%252F). The pen I'm using is the Lenovo [Active Pen 2](https://support.lenovo.com/us/en/solutions...
2022/09/29
[ "https://superuser.com/questions/1744970", "https://superuser.com", "https://superuser.com/users/1675522/" ]
Yes you can When you reach the “Let’s Connect You To A Network” page, hit “Shift” and “F10” on the keyboard at the same time. This will bring up the Command Prompt In this new cmd window, type in “taskmgr” and press “Enter” on the keyboard. This will bring up the Task Manager window so you can see all running proces...
One option is to proceed and log in with a Microsoft account or create a new one. Once you're in Windows then you can create a local admin account, log in to the local account, and delete the Microsoft account.
1,744,970
I'm using Windows 11 Insider Preview 10.0.22622.290 on my Lenovo [Flex 5i 15](https://www.lenovo.com/il/en/laptops/ideapad/ideapad-flex-series/IdeaPad-Flex-5-15ITL-05/p/88IPF501454?orgRef=https%253A%252F%252Fwww.google.com%252F). The pen I'm using is the Lenovo [Active Pen 2](https://support.lenovo.com/us/en/solutions...
2022/09/29
[ "https://superuser.com/questions/1744970", "https://superuser.com", "https://superuser.com/users/1675522/" ]
Yes you can When you reach the “Let’s Connect You To A Network” page, hit “Shift” and “F10” on the keyboard at the same time. This will bring up the Command Prompt In this new cmd window, type in “taskmgr” and press “Enter” on the keyboard. This will bring up the Task Manager window so you can see all running proces...
Below is not for updating from Windows 10/11, but for installing 22H2 from scratch, or performing clean install. First, download the Windows 11 22H2's iso and [rufus](https://rufus.ie/en/) that make a USB memory a bootable Windows installer. That sounds as same as just making it by yourself, but there's reason I recom...
1,744,970
I'm using Windows 11 Insider Preview 10.0.22622.290 on my Lenovo [Flex 5i 15](https://www.lenovo.com/il/en/laptops/ideapad/ideapad-flex-series/IdeaPad-Flex-5-15ITL-05/p/88IPF501454?orgRef=https%253A%252F%252Fwww.google.com%252F). The pen I'm using is the Lenovo [Active Pen 2](https://support.lenovo.com/us/en/solutions...
2022/09/29
[ "https://superuser.com/questions/1744970", "https://superuser.com", "https://superuser.com/users/1675522/" ]
Below is not for updating from Windows 10/11, but for installing 22H2 from scratch, or performing clean install. First, download the Windows 11 22H2's iso and [rufus](https://rufus.ie/en/) that make a USB memory a bootable Windows installer. That sounds as same as just making it by yourself, but there's reason I recom...
One option is to proceed and log in with a Microsoft account or create a new one. Once you're in Windows then you can create a local admin account, log in to the local account, and delete the Microsoft account.
15,396,895
Quite a strange problem I have here, I am trying to run the DXUT DirectX 10/11 tutorials from DirectX sample browser. They build fine, but cannot be run in Debug mode, as this triggers the error warning "Failed to create the Direct3D device". This is strange as I can run them in release mode. The strangest thing howeve...
2013/03/13
[ "https://Stackoverflow.com/questions/15396895", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1800303/" ]
I literally just spent all day trying to fix this exact same problem. Here is the solution which should hopefully fix yours too... I managed to find this article explaining that a recent update, *(26th February 2013 to be exact)*, caused the older version to mess up: <http://blogs.msdn.com/b/chuckw/archive/2013/02/26...
Somewhere in your code you probably have something along the line of this ``` #if defined(DEBUG) || defined(_DEBUG) createDeviceFlags |= D3D10_CREATE_DEVICE_DEBUG; #endif ``` If you do take a look at the `D3D10_CREATE_DEVICE_DEBUG;` on the [msdn](http://msdn.microsoft.com/en-us/library/windows/desktop/bb204909...
15,396,895
Quite a strange problem I have here, I am trying to run the DXUT DirectX 10/11 tutorials from DirectX sample browser. They build fine, but cannot be run in Debug mode, as this triggers the error warning "Failed to create the Direct3D device". This is strange as I can run them in release mode. The strangest thing howeve...
2013/03/13
[ "https://Stackoverflow.com/questions/15396895", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1800303/" ]
I literally just spent all day trying to fix this exact same problem. Here is the solution which should hopefully fix yours too... I managed to find this article explaining that a recent update, *(26th February 2013 to be exact)*, caused the older version to mess up: <http://blogs.msdn.com/b/chuckw/archive/2013/02/26...
The automatic IE10 update is what caused my issue of automatic non support of directx development. Simplest solution is downloading standalone win8 sdk at... <http://msdn.microsoft.com/en-us/windows/desktop/hh852363> The directx debug layer dll has to be updated.
181,859
> > **Possible Duplicate:** > > [Best alternative to Windows Live Messenger](https://superuser.com/questions/80465/best-alternative-to-windows-live-messenger) > > > I'm looking for alternative programs other then the offical client to use with Yahoo messenger on Windows. What options are there? Preferably fre...
2010/08/28
[ "https://superuser.com/questions/181859", "https://superuser.com", "https://superuser.com/users/555/" ]
You can try [Digsby](http://Digsby.com). Direct download here: <http://update.digsby.com/install/digsby_setup.exe> Or [Trillian](http://www.trillian.im/), though there is the option of a paid version of this one.
I suggest that you have a look at Pidgin. It's an open source messaging client which support a wide range of protocols. (Open Source programs are usually free for ads and malware, and this applies to Pidgin as well) * [Pidgin](http://pidgin.im/) For a more comprehensive list of the alternatives out there, check out t...
181,859
> > **Possible Duplicate:** > > [Best alternative to Windows Live Messenger](https://superuser.com/questions/80465/best-alternative-to-windows-live-messenger) > > > I'm looking for alternative programs other then the offical client to use with Yahoo messenger on Windows. What options are there? Preferably fre...
2010/08/28
[ "https://superuser.com/questions/181859", "https://superuser.com", "https://superuser.com/users/555/" ]
I know that @Force Flow already mentioned Trillian, but I'm going to expand on this... [Trillian](http://www.trillian.im/) is the best all-in-one solution I have ever seen. It handles Yahoo Messenger and your contacts, etc *extremely* well. From Wikipedia: > > It can connect to multiple IM services, such as AIM, I...
I suggest that you have a look at Pidgin. It's an open source messaging client which support a wide range of protocols. (Open Source programs are usually free for ads and malware, and this applies to Pidgin as well) * [Pidgin](http://pidgin.im/) For a more comprehensive list of the alternatives out there, check out t...
181,859
> > **Possible Duplicate:** > > [Best alternative to Windows Live Messenger](https://superuser.com/questions/80465/best-alternative-to-windows-live-messenger) > > > I'm looking for alternative programs other then the offical client to use with Yahoo messenger on Windows. What options are there? Preferably fre...
2010/08/28
[ "https://superuser.com/questions/181859", "https://superuser.com", "https://superuser.com/users/555/" ]
You can try [Digsby](http://Digsby.com). Direct download here: <http://update.digsby.com/install/digsby_setup.exe> Or [Trillian](http://www.trillian.im/), though there is the option of a paid version of this one.
[Pidgin](http://pidgin.im/) - multi-platform, multi-protocol. Works flawlessly under Windows/Linux.
181,859
> > **Possible Duplicate:** > > [Best alternative to Windows Live Messenger](https://superuser.com/questions/80465/best-alternative-to-windows-live-messenger) > > > I'm looking for alternative programs other then the offical client to use with Yahoo messenger on Windows. What options are there? Preferably fre...
2010/08/28
[ "https://superuser.com/questions/181859", "https://superuser.com", "https://superuser.com/users/555/" ]
I know that @Force Flow already mentioned Trillian, but I'm going to expand on this... [Trillian](http://www.trillian.im/) is the best all-in-one solution I have ever seen. It handles Yahoo Messenger and your contacts, etc *extremely* well. From Wikipedia: > > It can connect to multiple IM services, such as AIM, I...
[Pidgin](http://pidgin.im/) - multi-platform, multi-protocol. Works flawlessly under Windows/Linux.
181,859
> > **Possible Duplicate:** > > [Best alternative to Windows Live Messenger](https://superuser.com/questions/80465/best-alternative-to-windows-live-messenger) > > > I'm looking for alternative programs other then the offical client to use with Yahoo messenger on Windows. What options are there? Preferably fre...
2010/08/28
[ "https://superuser.com/questions/181859", "https://superuser.com", "https://superuser.com/users/555/" ]
You can try [Digsby](http://Digsby.com). Direct download here: <http://update.digsby.com/install/digsby_setup.exe> Or [Trillian](http://www.trillian.im/), though there is the option of a paid version of this one.
I know that @Force Flow already mentioned Trillian, but I'm going to expand on this... [Trillian](http://www.trillian.im/) is the best all-in-one solution I have ever seen. It handles Yahoo Messenger and your contacts, etc *extremely* well. From Wikipedia: > > It can connect to multiple IM services, such as AIM, I...
9,929,735
I am using the ExpanderView of WindowsPhone Toolkit and on first load my expanded Expander will always look like the second picture. It seems, that its always at the same Height of all Items together. If I goto another page and go back, everything will be fine and the Layout look quiet correct - except that stopping l...
2012/03/29
[ "https://Stackoverflow.com/questions/9929735", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1021605/" ]
I managed to solve this by using a listbox as the itemcontainer, and binding the expander items to it: ``` <Controls:ExpanderView Expanded="ExpanderView_Expanded" Header="{Binding}" HeaderTemplate="{StaticResource Header...
I had similar problem with the ExpanderView. I think it could be a bug in the view, somehow related to the 2048px limitation. Basically when I added lot of items to an expanded ExpanderView everything was fine untill I collapsed the view and expanded it again. After expanding the ExpanderView, any items after the 2048 ...
263,902
It is often claimed that the only tensors invariant under the orthogonal transformations (rotations) are the Kronecker delta $\delta\_{ij}$, the Levi-Civita epsilon $\epsilon\_{ijk}$ and various combinations of their tensor products. While it is easy to check that $\delta\_{ij}$ and $\epsilon\_{ijk}$ are indeed invaria...
2012/12/22
[ "https://math.stackexchange.com/questions/263902", "https://math.stackexchange.com", "https://math.stackexchange.com/users/-1/" ]
This is somewhat late in the day / year, but I suspect the author is asking about representations of isotropic Cartesian tensors, where "isotropic" means "invariant under the action of proper orthogonal transformations" and "Cartesian" means the underlying space is Euclidean $R^n$ ($R^3$ is a case of great practical in...
> > Harold Jeffreys (1973). On isotropic tensors. Mathematical Proceedings of the Cambridge Philosophical Society, 73, pp 173-176. > > > The proof given is a lot more concrete and "hands on" than Weyl's proof linked to by user\_of\_math.
263,902
It is often claimed that the only tensors invariant under the orthogonal transformations (rotations) are the Kronecker delta $\delta\_{ij}$, the Levi-Civita epsilon $\epsilon\_{ijk}$ and various combinations of their tensor products. While it is easy to check that $\delta\_{ij}$ and $\epsilon\_{ijk}$ are indeed invaria...
2012/12/22
[ "https://math.stackexchange.com/questions/263902", "https://math.stackexchange.com", "https://math.stackexchange.com/users/-1/" ]
This is somewhat late in the day / year, but I suspect the author is asking about representations of isotropic Cartesian tensors, where "isotropic" means "invariant under the action of proper orthogonal transformations" and "Cartesian" means the underlying space is Euclidean $R^n$ ($R^3$ is a case of great practical in...
$\mathtt{Definition:}$ $T$ is an isotropic tensor of type $(0,n)$ if $\;T\_{i\_1i\_2...i\_n}=R\_{i\_1j\_1}R\_{i\_2j\_2}...R\_{i\_nj\_n}T\_{j\_1j\_2...j\_n}$ whenever $R$ is an orthogonal matrix i.e $R^TR=RR^T=I$. $\mathtt{n=2:}$[See my answer here](https://math.stackexchange.com/questions/881571/how-to-prove-that-th...
263,902
It is often claimed that the only tensors invariant under the orthogonal transformations (rotations) are the Kronecker delta $\delta\_{ij}$, the Levi-Civita epsilon $\epsilon\_{ijk}$ and various combinations of their tensor products. While it is easy to check that $\delta\_{ij}$ and $\epsilon\_{ijk}$ are indeed invaria...
2012/12/22
[ "https://math.stackexchange.com/questions/263902", "https://math.stackexchange.com", "https://math.stackexchange.com/users/-1/" ]
> > Harold Jeffreys (1973). On isotropic tensors. Mathematical Proceedings of the Cambridge Philosophical Society, 73, pp 173-176. > > > The proof given is a lot more concrete and "hands on" than Weyl's proof linked to by user\_of\_math.
$\mathtt{Definition:}$ $T$ is an isotropic tensor of type $(0,n)$ if $\;T\_{i\_1i\_2...i\_n}=R\_{i\_1j\_1}R\_{i\_2j\_2}...R\_{i\_nj\_n}T\_{j\_1j\_2...j\_n}$ whenever $R$ is an orthogonal matrix i.e $R^TR=RR^T=I$. $\mathtt{n=2:}$[See my answer here](https://math.stackexchange.com/questions/881571/how-to-prove-that-th...
169,136
I am trying to figure out the problem stated in the title. Every image/photo I upload to my wordpress site gets slightly blurry. I format them according to my wp theme requirements, however after the image is processed by wordpress and I open the site in a browser I is slightly blurry. This is specially noticeable in F...
2014/11/21
[ "https://wordpress.stackexchange.com/questions/169136", "https://wordpress.stackexchange.com", "https://wordpress.stackexchange.com/users/63837/" ]
Actually WordPress reduce quality of image when you upload it via media uploader. WordPress has built in compression for JPG images. Whenever you upload an JPG/JPEG image to WordPress media library, WordPress will automatically compress your images to 90% of the original quality, this is intended to help your pages loa...
Normally this might due to some discrepancy from default set values for image in functions.php in wordpress and check whether any default values is set for the images in that file. You also can set it manually in function.php file as below. ``` add_theme_support('post-thumbnails'); update_option('thumbnail_size_w', 20...
169,136
I am trying to figure out the problem stated in the title. Every image/photo I upload to my wordpress site gets slightly blurry. I format them according to my wp theme requirements, however after the image is processed by wordpress and I open the site in a browser I is slightly blurry. This is specially noticeable in F...
2014/11/21
[ "https://wordpress.stackexchange.com/questions/169136", "https://wordpress.stackexchange.com", "https://wordpress.stackexchange.com/users/63837/" ]
Actually WordPress reduce quality of image when you upload it via media uploader. WordPress has built in compression for JPG images. Whenever you upload an JPG/JPEG image to WordPress media library, WordPress will automatically compress your images to 90% of the original quality, this is intended to help your pages loa...
For us the problem was with **plugins**, we **disabled all** unused or unwanted **plugins** and then tried to upload, image uploads are fine.
15,774,548
I am writing linux kernel code. I am in VFS and I want to modify it. I want to add a check to see whether or not the user is root and based on that make a decision. How do I do this? Is there a kernel version of getuid() ? Or does any structure like "current->" contain info on which user it is for the current process?
2013/04/02
[ "https://Stackoverflow.com/questions/15774548", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2237826/" ]
You can use `current_cred()` as defined in `include/linux/cred.h`, which will give you a pointer to a `struct cred` itself defined in the same header. Something like ``` if (current_cred()->uid != 0) return -EPERM; ```
As mentioned `current_cred()->uid` now returns a `struct kuid_t`. To get the value you need `current_cred()->uid.val` & a final type cast to get rid of the warnings. ``` if ((int)current_cred()->uid.val != 0) return -EPERM; ```
61,621,551
I am trying to grab video panel in google result for example I am searching ---> "great+castles" <-- and in that search result, it has a panel that contains videos when I scrape it I get HTML but with different values of attributes I am not able to grab video panel ``` text="great+castles" url = f'https://google.com/s...
2020/05/05
[ "https://Stackoverflow.com/questions/61621551", "https://Stackoverflow.com", "https://Stackoverflow.com/users/12004786/" ]
Firstly, you can always write that HTML response in HTML file and check what actually you're getting by opening in the browser. Secondly, you cannot **scrape** data from google that easily, you need proxies for that but even with elite proxies you may face number of challenges like reCaptcha etc.
You have 2 options to check source code returned by requests: 1. Save response as `html` file locally and open it in browser. 2. Get [Scrapy](https://scrapy.org/) framework and use `view(response)` from `Scrapy Shell`. The Scrapy option is handy but requires installation of the framework that can be an overkill for a ...
61,621,551
I am trying to grab video panel in google result for example I am searching ---> "great+castles" <-- and in that search result, it has a panel that contains videos when I scrape it I get HTML but with different values of attributes I am not able to grab video panel ``` text="great+castles" url = f'https://google.com/s...
2020/05/05
[ "https://Stackoverflow.com/questions/61621551", "https://Stackoverflow.com", "https://Stackoverflow.com/users/12004786/" ]
Firstly, you can always write that HTML response in HTML file and check what actually you're getting by opening in the browser. Secondly, you cannot **scrape** data from google that easily, you need proxies for that but even with elite proxies you may face number of challenges like reCaptcha etc.
You can scrape Google Search Video Panel Results using [`BeautifulSoup`](https://www.crummy.com/software/BeautifulSoup/bs4/doc/) web scraping library. To get to the tab we need, you need to register it in the [`parameters`](https://docs.python-requests.org/en/master/user/quickstart/#passing-parameters-in-urls), like t...
20,363,959
Hi I'm fairly new to c# and have been trying to access my list of cards from another class and get it to display a picture on form but all i really need is the way to instantiate or reference or whatever the list from my deck class. How would i go about my list of cards in a different class? ``` namespace aGameOf21 { ...
2013/12/03
[ "https://Stackoverflow.com/questions/20363959", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1840510/" ]
I'm not quite clear what you're asking, but if you create your deck using: ``` var deck = new Deck(); ``` the you can access your list of cards as: ``` var cardList = deck.Cards; ``` You can then pass this list wherever you want.
Per my comment about adding a variable and passing int he list via the constructor. ``` //adds deck class to Ideck interface public class Deck : IDeck { private List _list; //default deck call public Deck(List list) { _list = list; Reset(); } } ```
27,014
I read an article on CNN titled [My grocery bill will skyrocket if military stores close](http://money.cnn.com/2013/12/13/news/economy/military-grocery-stores/) about the possibility of cutting back funding to military grocery stores due to government spending cuts. I was then struck with the following question and I h...
2013/12/25
[ "https://money.stackexchange.com/questions/27014", "https://money.stackexchange.com", "https://money.stackexchange.com/users/-1/" ]
Company X located outside a military base offer discounts to military as a form of marketing. They want to encourage a group of potential customers to use their store/service. In some cases they are competing with subsidized store on the base. In other cases their only competition is other stores outside the base. The ...
This story is about *military* grocery stores - i.e.: grocery stores for military personnel on military bases. There are no discounts for military personnel in a *regular* grocery store. But they may have subsidised prices in grocery stores located *inside* a military installation, and these are those stores that the s...
27,014
I read an article on CNN titled [My grocery bill will skyrocket if military stores close](http://money.cnn.com/2013/12/13/news/economy/military-grocery-stores/) about the possibility of cutting back funding to military grocery stores due to government spending cuts. I was then struck with the following question and I h...
2013/12/25
[ "https://money.stackexchange.com/questions/27014", "https://money.stackexchange.com", "https://money.stackexchange.com/users/-1/" ]
Company X located outside a military base offer discounts to military as a form of marketing. They want to encourage a group of potential customers to use their store/service. In some cases they are competing with subsidized store on the base. In other cases their only competition is other stores outside the base. The ...
Nope, only base commissaries or BX/PX's are subsidized. The rest is just done for goodwill/marketing purposes.
886,842
I'm using Visual Studio 2008 and have created a setup project for my application. The application has a high-resolution icon (for Vista). There's a bug in Visual Studio, and the installer creates a desktop shortcut with a low resolution icon. I logged this bug in Microsoft Connect (<https://connect.microsoft.com/Visua...
2009/05/20
[ "https://Stackoverflow.com/questions/886842", "https://Stackoverflow.com", "https://Stackoverflow.com/users/106908/" ]
You can write VBS, JS (using cscript, which is built in with every Windows) to modify the MSI, the syntax is pretty much SQL like. [Here is a MSDN page that shows various examples.](http://msdn.microsoft.com/en-us/library/aa368562.aspx)
You can use perl script to modify the installer msi package. You can use [Win32 OLE](http://www.perl.com/pub/a/2005/04/21/win32ole.html) for this. Open the MSI using `Win32::OLE->new` API. Open the MSI database and execute the SQL queries to do the update. This perl script can be used in builds. This [link](http://cp...
886,842
I'm using Visual Studio 2008 and have created a setup project for my application. The application has a high-resolution icon (for Vista). There's a bug in Visual Studio, and the installer creates a desktop shortcut with a low resolution icon. I logged this bug in Microsoft Connect (<https://connect.microsoft.com/Visua...
2009/05/20
[ "https://Stackoverflow.com/questions/886842", "https://Stackoverflow.com", "https://Stackoverflow.com/users/106908/" ]
I just had to do this too - here is my VBScript file (in case it's useful to anyone)... ``` Dim msiInstaller Dim msiDatabase Dim msiView Dim msiRecord Dim pathToMsiFile Dim pathToIconFile If WScript.Arguments.Count <> 2 Then WScript.Echo "Usage:" & vbCrLf & " " & WScript.ScriptName & " <path-to-msi> <path-to-ic...
You can use perl script to modify the installer msi package. You can use [Win32 OLE](http://www.perl.com/pub/a/2005/04/21/win32ole.html) for this. Open the MSI using `Win32::OLE->new` API. Open the MSI database and execute the SQL queries to do the update. This perl script can be used in builds. This [link](http://cp...
886,842
I'm using Visual Studio 2008 and have created a setup project for my application. The application has a high-resolution icon (for Vista). There's a bug in Visual Studio, and the installer creates a desktop shortcut with a low resolution icon. I logged this bug in Microsoft Connect (<https://connect.microsoft.com/Visua...
2009/05/20
[ "https://Stackoverflow.com/questions/886842", "https://Stackoverflow.com", "https://Stackoverflow.com/users/106908/" ]
Possibly the easiest solution that I found for this was to create a new "Transform" inside of Orca, and then to apply the transform as a part of my post-build steps. 1) Open the MSI file using ORCA for editing. 2) Click on "New transform" 3) Make all of the applicable changes to your MSI tables using the Orca editor. ...
You can use perl script to modify the installer msi package. You can use [Win32 OLE](http://www.perl.com/pub/a/2005/04/21/win32ole.html) for this. Open the MSI using `Win32::OLE->new` API. Open the MSI database and execute the SQL queries to do the update. This perl script can be used in builds. This [link](http://cp...
886,842
I'm using Visual Studio 2008 and have created a setup project for my application. The application has a high-resolution icon (for Vista). There's a bug in Visual Studio, and the installer creates a desktop shortcut with a low resolution icon. I logged this bug in Microsoft Connect (<https://connect.microsoft.com/Visua...
2009/05/20
[ "https://Stackoverflow.com/questions/886842", "https://Stackoverflow.com", "https://Stackoverflow.com/users/106908/" ]
You can write VBS, JS (using cscript, which is built in with every Windows) to modify the MSI, the syntax is pretty much SQL like. [Here is a MSDN page that shows various examples.](http://msdn.microsoft.com/en-us/library/aa368562.aspx)
Since you're used to work with Orca, just save the modifications as a transform file using Orca and then applying it with 'msitran' in the post build event of your setup project. I'm using this in a setup project and it works just great.
886,842
I'm using Visual Studio 2008 and have created a setup project for my application. The application has a high-resolution icon (for Vista). There's a bug in Visual Studio, and the installer creates a desktop shortcut with a low resolution icon. I logged this bug in Microsoft Connect (<https://connect.microsoft.com/Visua...
2009/05/20
[ "https://Stackoverflow.com/questions/886842", "https://Stackoverflow.com", "https://Stackoverflow.com/users/106908/" ]
You can write VBS, JS (using cscript, which is built in with every Windows) to modify the MSI, the syntax is pretty much SQL like. [Here is a MSDN page that shows various examples.](http://msdn.microsoft.com/en-us/library/aa368562.aspx)
I just had to do this too - here is my VBScript file (in case it's useful to anyone)... ``` Dim msiInstaller Dim msiDatabase Dim msiView Dim msiRecord Dim pathToMsiFile Dim pathToIconFile If WScript.Arguments.Count <> 2 Then WScript.Echo "Usage:" & vbCrLf & " " & WScript.ScriptName & " <path-to-msi> <path-to-ic...
886,842
I'm using Visual Studio 2008 and have created a setup project for my application. The application has a high-resolution icon (for Vista). There's a bug in Visual Studio, and the installer creates a desktop shortcut with a low resolution icon. I logged this bug in Microsoft Connect (<https://connect.microsoft.com/Visua...
2009/05/20
[ "https://Stackoverflow.com/questions/886842", "https://Stackoverflow.com", "https://Stackoverflow.com/users/106908/" ]
I just had to do this too - here is my VBScript file (in case it's useful to anyone)... ``` Dim msiInstaller Dim msiDatabase Dim msiView Dim msiRecord Dim pathToMsiFile Dim pathToIconFile If WScript.Arguments.Count <> 2 Then WScript.Echo "Usage:" & vbCrLf & " " & WScript.ScriptName & " <path-to-msi> <path-to-ic...
Since you're used to work with Orca, just save the modifications as a transform file using Orca and then applying it with 'msitran' in the post build event of your setup project. I'm using this in a setup project and it works just great.
886,842
I'm using Visual Studio 2008 and have created a setup project for my application. The application has a high-resolution icon (for Vista). There's a bug in Visual Studio, and the installer creates a desktop shortcut with a low resolution icon. I logged this bug in Microsoft Connect (<https://connect.microsoft.com/Visua...
2009/05/20
[ "https://Stackoverflow.com/questions/886842", "https://Stackoverflow.com", "https://Stackoverflow.com/users/106908/" ]
Possibly the easiest solution that I found for this was to create a new "Transform" inside of Orca, and then to apply the transform as a part of my post-build steps. 1) Open the MSI file using ORCA for editing. 2) Click on "New transform" 3) Make all of the applicable changes to your MSI tables using the Orca editor. ...
Since you're used to work with Orca, just save the modifications as a transform file using Orca and then applying it with 'msitran' in the post build event of your setup project. I'm using this in a setup project and it works just great.
886,842
I'm using Visual Studio 2008 and have created a setup project for my application. The application has a high-resolution icon (for Vista). There's a bug in Visual Studio, and the installer creates a desktop shortcut with a low resolution icon. I logged this bug in Microsoft Connect (<https://connect.microsoft.com/Visua...
2009/05/20
[ "https://Stackoverflow.com/questions/886842", "https://Stackoverflow.com", "https://Stackoverflow.com/users/106908/" ]
Possibly the easiest solution that I found for this was to create a new "Transform" inside of Orca, and then to apply the transform as a part of my post-build steps. 1) Open the MSI file using ORCA for editing. 2) Click on "New transform" 3) Make all of the applicable changes to your MSI tables using the Orca editor. ...
I just had to do this too - here is my VBScript file (in case it's useful to anyone)... ``` Dim msiInstaller Dim msiDatabase Dim msiView Dim msiRecord Dim pathToMsiFile Dim pathToIconFile If WScript.Arguments.Count <> 2 Then WScript.Echo "Usage:" & vbCrLf & " " & WScript.ScriptName & " <path-to-msi> <path-to-ic...
40,206,569
I'm at wit's end. After a dozen hours of troubleshooting, probably more, I thought I was finally in business, but then I got: ``` Model class django.contrib.contenttypes.models.ContentType doesn't declare an explicit app_label ``` There is SO LITTLE info on this on the web, and no solution out there has resolved my...
2016/10/23
[ "https://Stackoverflow.com/questions/40206569", "https://Stackoverflow.com", "https://Stackoverflow.com/users/6025788/" ]
I get the same error and I don´t know how to figure out this problem. It took me many hours to notice that I have a init.py at the same direcory as the manage.py from django. Before: ``` |-- myproject |-- __init__.py <--- |-- manage.py |-- myproject |-- ... |-- app1 |-- models.py |-- app2 |-- m...
For PyCharm users: I had an error using not "clean" project structure. Was: ``` project_root_directory └── src ├── chat │   ├── migrations │   └── templates ├── django_channels └── templates ``` Now: ``` project_root_directory ├── chat │ ├── migrations │ └── templates │ └── chat ├── d...
40,206,569
I'm at wit's end. After a dozen hours of troubleshooting, probably more, I thought I was finally in business, but then I got: ``` Model class django.contrib.contenttypes.models.ContentType doesn't declare an explicit app_label ``` There is SO LITTLE info on this on the web, and no solution out there has resolved my...
2016/10/23
[ "https://Stackoverflow.com/questions/40206569", "https://Stackoverflow.com", "https://Stackoverflow.com/users/6025788/" ]
In my case I was getting this error when trying to run `python manage.py runserver` when not connected to my project's virtual environment.
The issue is that: 1. You have made modifications to your models file, but not addedd them yet to the DB, but you are trying to run Python manage.py runserver. 2. Run Python manage.py makemigrations 3. Python manage.py migrate 4. Now Python manage.py runserver and all should be fine.
40,206,569
I'm at wit's end. After a dozen hours of troubleshooting, probably more, I thought I was finally in business, but then I got: ``` Model class django.contrib.contenttypes.models.ContentType doesn't declare an explicit app_label ``` There is SO LITTLE info on this on the web, and no solution out there has resolved my...
2016/10/23
[ "https://Stackoverflow.com/questions/40206569", "https://Stackoverflow.com", "https://Stackoverflow.com/users/6025788/" ]
In my case, I was trying the same import in `manage.py shell`. The shell was messed up with the updated db. I mean, I forgot to restart my shell after updating the DB. To resolve the issue, I had to stop the shell by the following command: ```sh >>> exit() ``` then restart the shell by the following command: ``` $...
If you have got all the config right, it might just be an import mess. keep an eye on how you are importing the offending model. The following won't work `from .models import Business`. Use full import path instead: `from myapp.models import Business`
40,206,569
I'm at wit's end. After a dozen hours of troubleshooting, probably more, I thought I was finally in business, but then I got: ``` Model class django.contrib.contenttypes.models.ContentType doesn't declare an explicit app_label ``` There is SO LITTLE info on this on the web, and no solution out there has resolved my...
2016/10/23
[ "https://Stackoverflow.com/questions/40206569", "https://Stackoverflow.com", "https://Stackoverflow.com/users/6025788/" ]
I had exactly the same error when running tests with PyCharm. I've fixed it by explicitly setting `DJANGO_SETTINGS_MODULE` environment variable. If you're using PyCharm, just hit *Edit Configurations* button and choose *Environment Variables*. Set the variable to `your_project_name.settings` and that should fix the th...
I got this error while trying to upgrade my [Django Rest Framework](http://www.django-rest-framework.org/) app to DRF 3.6.3 and Django 1.11.1. For anyone else in this situation, I found my solution [in a GitHub issue](https://github.com/encode/django-rest-framework/issues/3262#issuecomment-147541598), which was to uns...
40,206,569
I'm at wit's end. After a dozen hours of troubleshooting, probably more, I thought I was finally in business, but then I got: ``` Model class django.contrib.contenttypes.models.ContentType doesn't declare an explicit app_label ``` There is SO LITTLE info on this on the web, and no solution out there has resolved my...
2016/10/23
[ "https://Stackoverflow.com/questions/40206569", "https://Stackoverflow.com", "https://Stackoverflow.com/users/6025788/" ]
Are you missing putting in your application name into the settings file? The `myAppNameConfig` is the default class generated at apps.py by the `.manage.py createapp myAppName` command. Where `myAppName` is the name of your app. settings.py ``` INSTALLED_APPS = [ 'myAppName.apps.myAppNameConfig', 'django.contrib.admi...
If all else fails, and if you are seeing this error while trying to import in a PyCharm "Python console" (or "Django console"): **Try restarting the console.** This is pretty embarassing, but it took me a while before I realized I had forgotten to do that. Here's what happened: Added a fresh app, then added a min...
40,206,569
I'm at wit's end. After a dozen hours of troubleshooting, probably more, I thought I was finally in business, but then I got: ``` Model class django.contrib.contenttypes.models.ContentType doesn't declare an explicit app_label ``` There is SO LITTLE info on this on the web, and no solution out there has resolved my...
2016/10/23
[ "https://Stackoverflow.com/questions/40206569", "https://Stackoverflow.com", "https://Stackoverflow.com/users/6025788/" ]
I got this error while trying to upgrade my [Django Rest Framework](http://www.django-rest-framework.org/) app to DRF 3.6.3 and Django 1.11.1. For anyone else in this situation, I found my solution [in a GitHub issue](https://github.com/encode/django-rest-framework/issues/3262#issuecomment-147541598), which was to uns...
in my case I was able to find a fix and by looking at the everyone else's code it may be the same issue.. I simply just had to add 'django.contrib.sites' to the list of installed apps in the settings.py file. hope this helps someone. this is my first contribution to the coding community
40,206,569
I'm at wit's end. After a dozen hours of troubleshooting, probably more, I thought I was finally in business, but then I got: ``` Model class django.contrib.contenttypes.models.ContentType doesn't declare an explicit app_label ``` There is SO LITTLE info on this on the web, and no solution out there has resolved my...
2016/10/23
[ "https://Stackoverflow.com/questions/40206569", "https://Stackoverflow.com", "https://Stackoverflow.com/users/6025788/" ]
I had exactly the same error when running tests with PyCharm. I've fixed it by explicitly setting `DJANGO_SETTINGS_MODULE` environment variable. If you're using PyCharm, just hit *Edit Configurations* button and choose *Environment Variables*. Set the variable to `your_project_name.settings` and that should fix the th...
After keep on running into this issue and keep on coming back to this question I thought I'd share what my problem was. Everything that @Xeberdee is correct so follow that and see if that solves the issue, if not this was my issue: In my apps.py this is what I had: ``` class AlgoExplainedConfig(AppConfig): na...
40,206,569
I'm at wit's end. After a dozen hours of troubleshooting, probably more, I thought I was finally in business, but then I got: ``` Model class django.contrib.contenttypes.models.ContentType doesn't declare an explicit app_label ``` There is SO LITTLE info on this on the web, and no solution out there has resolved my...
2016/10/23
[ "https://Stackoverflow.com/questions/40206569", "https://Stackoverflow.com", "https://Stackoverflow.com/users/6025788/" ]
I had this error today trying to run Django tests because I was using the shorthand `from .models import *` syntax in one of my files. The issue was that I had a file structure like so: ``` apps/ myapp/ models/ __init__.py foo.py bar.py ``` and in `models/__init__.py` ...
I ran into this error when I tried generating migrations for a single app which had existing malformed migrations due to a git merge. e.g. ``` manage.py makemigrations myapp ``` When I deleted it's migrations and then ran: ``` manage.py makemigrations ``` the error did not occur and the migrations generated succe...
40,206,569
I'm at wit's end. After a dozen hours of troubleshooting, probably more, I thought I was finally in business, but then I got: ``` Model class django.contrib.contenttypes.models.ContentType doesn't declare an explicit app_label ``` There is SO LITTLE info on this on the web, and no solution out there has resolved my...
2016/10/23
[ "https://Stackoverflow.com/questions/40206569", "https://Stackoverflow.com", "https://Stackoverflow.com/users/6025788/" ]
I get the same error and I don´t know how to figure out this problem. It took me many hours to notice that I have a init.py at the same direcory as the manage.py from django. Before: ``` |-- myproject |-- __init__.py <--- |-- manage.py |-- myproject |-- ... |-- app1 |-- models.py |-- app2 |-- m...
I got this error also today. The Message referenced to some specific app of **my apps** in **INSTALLED\_APPS**. But in fact it had nothing to do with this specific App. I used a new virtual Environment and forgot to install some Libraries, that i used in this project. After i installed the additional Libraries, it wor...
40,206,569
I'm at wit's end. After a dozen hours of troubleshooting, probably more, I thought I was finally in business, but then I got: ``` Model class django.contrib.contenttypes.models.ContentType doesn't declare an explicit app_label ``` There is SO LITTLE info on this on the web, and no solution out there has resolved my...
2016/10/23
[ "https://Stackoverflow.com/questions/40206569", "https://Stackoverflow.com", "https://Stackoverflow.com/users/6025788/" ]
I just ran into this issue and figured out what was going wrong. Since no previous answer described the issue as it happened to me, I though I would post it for others: * the issue came from using `python migrate.py startapp myApp` from my project root folder, then move myApp to a child folder with `mv myApp myFolderW...
In my case, there was an issue with BASE\_DIR in settings.py This is the structure of the packages: ``` project_root_directory └── service_package └── db_package ├── my_django_package │ └── my_django_package │    ├── settings.py │    └── ... └── my_django_a...
52,071,501
Got a simple question I guess. I have like a form in HTML which has multiple selectors that can be selected. In these selectors I have data attributes which can be selected (only one). If clicked, the data-attr must be stored into a hiddenfield. My HTML: ```js function styleChoice() { var productHandler = $('.st...
2018/08/29
[ "https://Stackoverflow.com/questions/52071501", "https://Stackoverflow.com", "https://Stackoverflow.com/users/7167791/" ]
You can try something like this: ``` function styleChoice() { var productHandler = $('.styleChoiceButton'); var setDataVal = $('#plantChoiceSelection'); productHandler.bind('click', function (e) { var elem = $(this); var productDataStyle = elem.data('style'); ...
You should create listener for **each** `.styleChoiceButton` ```js styleChoice(); function styleChoice() { var productHandler = $('.styleChoiceButton'); var setDataVal = $('#plantChoiceSelection'); productHandler.each(function() { $(this).bind('click', function (e) { var productDataS...
52,071,501
Got a simple question I guess. I have like a form in HTML which has multiple selectors that can be selected. In these selectors I have data attributes which can be selected (only one). If clicked, the data-attr must be stored into a hiddenfield. My HTML: ```js function styleChoice() { var productHandler = $('.st...
2018/08/29
[ "https://Stackoverflow.com/questions/52071501", "https://Stackoverflow.com", "https://Stackoverflow.com/users/7167791/" ]
You can try something like this: ``` function styleChoice() { var productHandler = $('.styleChoiceButton'); var setDataVal = $('#plantChoiceSelection'); productHandler.bind('click', function (e) { var elem = $(this); var productDataStyle = elem.data('style'); ...
Ok, you should be able to do all this in simple JQuery: ``` $('.StyleChoiceButton').on('click', function(e) { if ($(this)[0].hasAttribute('data-style')) { myhiddenfield = this.attributes['data-style'].value; } }); ```
54,507,395
Assume that I have a big float numpy array: How to save this float numpy array to a binary file with less storage using numpy.save? ``` np.save(nucleosomenpyOutputFilePath,averageSignalArray) ```
2019/02/03
[ "https://Stackoverflow.com/questions/54507395", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3291993/" ]
A schema belongs to a user. You can list all available users from [the **sysusers** system catalog](https://www.ibm.com/support/knowledgecenter/en/SSGU8G_12.1.0/com.ibm.sqlr.doc/ids_sqr_077.htm) : ``` SELECT username FROM "informix".sysusers; ``` Since only `DBA`s and `Resource` privilieges allow a user to issue a [...
Schemas are not commonly used in Informix databases and have very little trackability within a database. The CREATE SCHEMA notation is supported because it was part of SQL-89. The AUTHORIZATION clause is used to determine the (default) 'owner' of the objects created with the CREATE SCHEMA statement. There is nothing to...
63,228,428
I am getting error while writing this line of code: ```cs double h = model.WorkHours.Value>=0 ? model.WorkHours.Value : ""; ``` I want to check if the value is equal and greater than `0` then get that value or else get blank or null.
2020/08/03
[ "https://Stackoverflow.com/questions/63228428", "https://Stackoverflow.com", "https://Stackoverflow.com/users/12721544/" ]
What happens when the condition is `false`? This: ``` double h = ""; ``` A `string` value can't be set to a `double`. The default for a `double` would be a `0` instead: ``` double h = model.WorkHours.Value >= 0 ? model.WorkHours.Value : 0; ``` Or, as specifically as possible: ``` double h = model.WorkHours.Value...
Because a double doesnt have `null` or blank string as an allowable value, if you really want the default value to be a `null` or blank string, you will need to do one of the following. Use an optional type along with an explicit type conversion: ``` double? h = model.WorkHours.Value >= 0 ? (double?) model.WorkHours....
37,891,443
EDIT: I never figured this out - I refactored the code to be pretty much identical to a Boost sample, and still had the problem. If anyone else has this problem, yours may be the more common shared\_from\_this() being called when no shared\_ptr exists (or in the constructor). Otherwise, I recommend just rebuilding from...
2016/06/17
[ "https://Stackoverflow.com/questions/37891443", "https://Stackoverflow.com", "https://Stackoverflow.com/users/5515465/" ]
This is just a 'this' binding issue. Put a console.log inside of your mouseOver and mouseOut methods and you'll notice that your state isn't changing. There are many ways to bind the 'this' context in your class methods. I'll show you three ways to do it in this example (DO NOT do all three methods, just choose one). ...
Maybe it's because you have to bind `mouseOver` and `mouseOut` calls in order to use `this.setState` inside them. Replace: ``` <div className="grid-box" onMouseOver={this.mouseOver} onMouseOut={this.mouseOut}> ``` with: ``` <div className="grid-box" onMouseOver={this.mouseOver.bind(this)} onMouseOut={this.mouseOut...
37,891,443
EDIT: I never figured this out - I refactored the code to be pretty much identical to a Boost sample, and still had the problem. If anyone else has this problem, yours may be the more common shared\_from\_this() being called when no shared\_ptr exists (or in the constructor). Otherwise, I recommend just rebuilding from...
2016/06/17
[ "https://Stackoverflow.com/questions/37891443", "https://Stackoverflow.com", "https://Stackoverflow.com/users/5515465/" ]
This is just a 'this' binding issue. Put a console.log inside of your mouseOver and mouseOut methods and you'll notice that your state isn't changing. There are many ways to bind the 'this' context in your class methods. I'll show you three ways to do it in this example (DO NOT do all three methods, just choose one). ...
The other solutions suggested are perfectly valid, however you can solve this easily by just converting your functions to [**ES6 arrow functions**](https://developer.mozilla.org/en/docs/Web/JavaScript/Reference/Functions/Arrow_functions). > > An arrow function expression has a shorter syntax compared to function exp...