qid
int64
1
74.7M
question
stringlengths
15
58.3k
date
stringlengths
10
10
metadata
list
response_j
stringlengths
4
30.2k
response_k
stringlengths
11
36.5k
2,928
In the movie *Cash McCall*, the main character, McCall, owns an aircraft that looks remarkably similar to a B-25 or B-26, but is painted yellow and has no turrets. Have these aircraft been converted for private business use or were there business aircraft based on the design of WWII bombers?
2014/03/31
[ "https://aviation.stackexchange.com/questions/2928", "https://aviation.stackexchange.com", "https://aviation.stackexchange.com/users/718/" ]
Yes. After World War 2, surplus aircraft were cheap, plentiful, and offered great performance compared to pre-war designs, and many were converted to use as executive transports. The A-26/B-26 was no exception, being the basis for the [On Mark Marksman](http://en.m.wikipedia.org/wiki/On_Mark_Marksman) series. Some of ...
The aircraft is a modified Douglas A-26 Invader. As mentioned in an earlier reply there were several companies which undertook such work. Most well known was On-Mark Engineering of Van Nuys, CA. The 26 in question, N36B was one of several (at least two used the same reg.) owned by citrus tycoon Willis (Bill) Bailard of...
2,928
In the movie *Cash McCall*, the main character, McCall, owns an aircraft that looks remarkably similar to a B-25 or B-26, but is painted yellow and has no turrets. Have these aircraft been converted for private business use or were there business aircraft based on the design of WWII bombers?
2014/03/31
[ "https://aviation.stackexchange.com/questions/2928", "https://aviation.stackexchange.com", "https://aviation.stackexchange.com/users/718/" ]
Yes. After World War 2, surplus aircraft were cheap, plentiful, and offered great performance compared to pre-war designs, and many were converted to use as executive transports. The A-26/B-26 was no exception, being the basis for the [On Mark Marksman](http://en.m.wikipedia.org/wiki/On_Mark_Marksman) series. Some of ...
Here is a [list of surviving B-25](https://en.wikipedia.org/wiki/List_of_surviving_North_American_B-25_Mitchells) which may provide some references. It looks like Redbull has one that they fly around (arguably for business reasons) ![enter image description here](https://i.stack.imgur.com/WL3Yq.jpg)
2,928
In the movie *Cash McCall*, the main character, McCall, owns an aircraft that looks remarkably similar to a B-25 or B-26, but is painted yellow and has no turrets. Have these aircraft been converted for private business use or were there business aircraft based on the design of WWII bombers?
2014/03/31
[ "https://aviation.stackexchange.com/questions/2928", "https://aviation.stackexchange.com", "https://aviation.stackexchange.com/users/718/" ]
[IMDB](http://www.imdb.com/title/tt0052680/trivia): > > McCall's plane is a demilitarized Douglas A-26 Invader, a type used in WWII. > > > Since the film was made in 1960, I imagine there were plenty of them around. (The A-26 was known a the B-26 from 1948 to 1965, [according to Wikipedia](https://en.wikipedia....
The question leaves it unclear as to whether the "B-26" reference was meant to apply to the Martin B-26 Marauder, or the Douglas A-26 Invader, later renamed B--26 after the retirement of the Marauder. Both were converted for use as executive transports (see <https://en.m.wikipedia.org/wiki/Martin_B-26_Marauder> , and <...
2,928
In the movie *Cash McCall*, the main character, McCall, owns an aircraft that looks remarkably similar to a B-25 or B-26, but is painted yellow and has no turrets. Have these aircraft been converted for private business use or were there business aircraft based on the design of WWII bombers?
2014/03/31
[ "https://aviation.stackexchange.com/questions/2928", "https://aviation.stackexchange.com", "https://aviation.stackexchange.com/users/718/" ]
Yes. After World War 2, surplus aircraft were cheap, plentiful, and offered great performance compared to pre-war designs, and many were converted to use as executive transports. The A-26/B-26 was no exception, being the basis for the [On Mark Marksman](http://en.m.wikipedia.org/wiki/On_Mark_Marksman) series. Some of ...
The question leaves it unclear as to whether the "B-26" reference was meant to apply to the Martin B-26 Marauder, or the Douglas A-26 Invader, later renamed B--26 after the retirement of the Marauder. Both were converted for use as executive transports (see <https://en.m.wikipedia.org/wiki/Martin_B-26_Marauder> , and <...
2,928
In the movie *Cash McCall*, the main character, McCall, owns an aircraft that looks remarkably similar to a B-25 or B-26, but is painted yellow and has no turrets. Have these aircraft been converted for private business use or were there business aircraft based on the design of WWII bombers?
2014/03/31
[ "https://aviation.stackexchange.com/questions/2928", "https://aviation.stackexchange.com", "https://aviation.stackexchange.com/users/718/" ]
Here is a [list of surviving B-25](https://en.wikipedia.org/wiki/List_of_surviving_North_American_B-25_Mitchells) which may provide some references. It looks like Redbull has one that they fly around (arguably for business reasons) ![enter image description here](https://i.stack.imgur.com/WL3Yq.jpg)
The question leaves it unclear as to whether the "B-26" reference was meant to apply to the Martin B-26 Marauder, or the Douglas A-26 Invader, later renamed B--26 after the retirement of the Marauder. Both were converted for use as executive transports (see <https://en.m.wikipedia.org/wiki/Martin_B-26_Marauder> , and <...
27,259,386
I'm getting used to java again and was experimenting with collections. I have the following very basic code but I can't seem to find the reason why I get an Nullpointer exception: ``` import java.util.*; public class Event { private ArrayList<String> fans; public Event() { ArrayList<Strin...
2014/12/02
[ "https://Stackoverflow.com/questions/27259386", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3488736/" ]
PUT command expects a file name at the end of the destination location. Please try the following code ``` put C:\folders\containing\file\FILE.zip /Remote_Directory/FILE.zip ```
The path in the error message is an exact path to the remote file the psftp tried to create. See `outfname` in below code snippet: ```c req = fxp_open_send(outfname, SSH_FXF_WRITE | SSH_FXF_CREAT | SSH_FXF_TRUNC, &attrs); ... printf("%s: open for write: %s\n", outfname, ...
27,259,386
I'm getting used to java again and was experimenting with collections. I have the following very basic code but I can't seem to find the reason why I get an Nullpointer exception: ``` import java.util.*; public class Event { private ArrayList<String> fans; public Event() { ArrayList<Strin...
2014/12/02
[ "https://Stackoverflow.com/questions/27259386", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3488736/" ]
PUT command expects a file name at the end of the destination location. Please try the following code ``` put C:\folders\containing\file\FILE.zip /Remote_Directory/FILE.zip ```
In my case, it's a permission issue on the remote server, i.e. the account you are using to log on doesn't have the write permission for the remote folder.
14,205,806
I'm building a site to build your own cake. Each cake has a base price, and certain options. Some options (strawberry filling for example) add an additional price to the cake. This price is in the database, found by the feature id. I'm trying to write a function that will update the price whenever you pick some new o...
2013/01/07
[ "https://Stackoverflow.com/questions/14205806", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1956500/" ]
when using ASP.NET AJAX `PageMethods` there's a success and failure callback function that you can subscribe to by passing two additional parameters to the call. In this case you'll want to use ``` $(function () { $('.featureDropDown').change(function (a) { //var price = $.ajax({ url: 'ajax/totalproductpri...
To call web methods from JavaScript make sure you are calling using the `<System.Web.Script.Services.ScriptService()>` [class](http://msdn.microsoft.com/en-us/library/system.web.script.services.scriptserviceattribute.aspx) where your web method is located. Also if you decide to add you web method's to a sperate file, w...
9,784,400
How do i create a delete button on every row using the SlickGrid plugin? I need a button that can delete the whole corresponding row.
2012/03/20
[ "https://Stackoverflow.com/questions/9784400", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1280485/" ]
Use your column formatter to get this done. ``` var column = {id:delCol, field:'del', name:'Delete', width:250, formatter:buttonFormatter} //Now define your buttonFormatter function function buttonFormatter(row,cell,value,columnDef,dataContext){ var button = "<input class='del' type='button' id='"+ dataContext...
An alternative to using jQuery to bind to the click event is to use the onClick event of SlickGrid. Similar to (now deprecated) jQuery .live() or now .on() with delegated handlers, the use of onClick will allow the functionality to work without having to constantly reattach handlers when new rows are added, deleted, sh...
64,553,262
I wanted to change the value of sample based on the length of validators in the below given Original: ``` object1 = {test1:{sample: ["0"], validators: {length: 2}}, test2: {sample: ["1"], validators: {length: 1}}} ``` Expected Result: ``` object1 = {test1:{sample: ["0", "1"], validators: {length: 2}}, test2: {...
2020/10/27
[ "https://Stackoverflow.com/questions/64553262", "https://Stackoverflow.com", "https://Stackoverflow.com/users/8003865/" ]
You're not waiting for the store to reset, probably the redirection and storage clean up happen before the reset completes, try doing that once it has finished ```js const logout = () => { logoutUser(() => { localStorage.removeItem('authToken'); props.history.push('/'); }); }; const logoutUser = onLogout ...
Check: do you have only ONE ApolloClient instance? In some cases, if you configuring ApolloClient in the custom class or file you can implicitly create multiple apolloClient instances, for example by 'import' statement. In that case you clearing only one of the caches you made.
39,423,436
I am trying to integrate azure Active Directory Authentication Library for js to my site. I downloaded the SPA sample and made it work with my app detail. However, how can I pass user information back to server? For example, this is the example code on server side to retrive the logged in user: ``` string owner = Cl...
2016/09/10
[ "https://Stackoverflow.com/questions/39423436", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1223876/" ]
You no need to write separate code manually for `sw-toolbox`. You can configure it using `runtimeCaching` option in `sw-precache`. As soon as you configured this option, `sw-precache` will insert `sw-toolbox` library in serviceWorker and adds different handlers to it. You can find more details from this [link](https://...
When using sw-precache it generates the service worker and you can't edit that file. When using sw-precache I'd ignore sw-toolbox and just focus on how to configure sw-precache to cache static files and cache runtime files (I.e. cache images or pages as they are requested)
8,789,661
I am trying to absolutely position an element inside a table cell. The TD has `position:relative` and the element has `position:absolute`. This works great in all browsers except in Firefox where it is positioned relative to an ancestor relative container. You can see this reproduced in this fiddle: <http://jsfiddle....
2012/01/09
[ "https://Stackoverflow.com/questions/8789661", "https://Stackoverflow.com", "https://Stackoverflow.com/users/340128/" ]
the element is not a block element. add to the style display:block, you will get the needed behavior.
A possible work around would be to wrap the `position:absolute` element with another `position:relative` div. It requires an extra div, which is lame, but will give you the right result. Example: <http://jsfiddle.net/pTJUk/> Note -- this still won't give a completely correct result, as the `position:relative` div wil...
8,789,661
I am trying to absolutely position an element inside a table cell. The TD has `position:relative` and the element has `position:absolute`. This works great in all browsers except in Firefox where it is positioned relative to an ancestor relative container. You can see this reproduced in this fiddle: <http://jsfiddle....
2012/01/09
[ "https://Stackoverflow.com/questions/8789661", "https://Stackoverflow.com", "https://Stackoverflow.com/users/340128/" ]
the element is not a block element. add to the style display:block, you will get the needed behavior.
It was a very old Firefox bug that have been fixed about 13 years after being reported! You may refer to the entertaining history here: <https://bugzilla.mozilla.org/show_bug.cgi?id=63895>
8,789,661
I am trying to absolutely position an element inside a table cell. The TD has `position:relative` and the element has `position:absolute`. This works great in all browsers except in Firefox where it is positioned relative to an ancestor relative container. You can see this reproduced in this fiddle: <http://jsfiddle....
2012/01/09
[ "https://Stackoverflow.com/questions/8789661", "https://Stackoverflow.com", "https://Stackoverflow.com/users/340128/" ]
A possible work around would be to wrap the `position:absolute` element with another `position:relative` div. It requires an extra div, which is lame, but will give you the right result. Example: <http://jsfiddle.net/pTJUk/> Note -- this still won't give a completely correct result, as the `position:relative` div wil...
It was a very old Firefox bug that have been fixed about 13 years after being reported! You may refer to the entertaining history here: <https://bugzilla.mozilla.org/show_bug.cgi?id=63895>
62,458,774
When I click the "save as" button on Notepad and save it, it has the Edge icon instead of the Chrome one on the file icon and opens in Edge instead of Chrome[Image:](https://i.stack.imgur.com/fEfrB.jpg)
2020/06/18
[ "https://Stackoverflow.com/questions/62458774", "https://Stackoverflow.com", "https://Stackoverflow.com/users/13771495/" ]
Move your comma to the beginning of the loop and put it in a conditional statement so that it isn't executed at the first iteration ``` do until rsheadercart.eof If items <> "" then items = items & "," End If items = items & " { sku: '" & rsheadercart("ten_digit_part_number") & "'," ite...
In cases like that I often use the [Join](https://learn.microsoft.com/en-us/previous-versions/windows/internet-explorer/ie-developer/scripting-articles/yscc53h0(v=vs.84)) method ``` dim itemList set itemList = CreateObject("System.Collections.ArrayList") do until rsheadercart.eof dim item item = " { s...
62,458,774
When I click the "save as" button on Notepad and save it, it has the Edge icon instead of the Chrome one on the file icon and opens in Edge instead of Chrome[Image:](https://i.stack.imgur.com/fEfrB.jpg)
2020/06/18
[ "https://Stackoverflow.com/questions/62458774", "https://Stackoverflow.com", "https://Stackoverflow.com/users/13771495/" ]
Have found the simplest way over the years is to let the loop generate the extra character than just trim it after the execution of the loop using `Left()`. After your loop add; ``` items = Left(items, Len(items) - 1) ``` This way avoids having to add a load of logic into the loop to handle the edge cases unnecessa...
In cases like that I often use the [Join](https://learn.microsoft.com/en-us/previous-versions/windows/internet-explorer/ie-developer/scripting-articles/yscc53h0(v=vs.84)) method ``` dim itemList set itemList = CreateObject("System.Collections.ArrayList") do until rsheadercart.eof dim item item = " { s...
2,839,398
If I wanted to have my data in SQL Server, but wanted to use a thick client WinForms application for users, what would be the best practice way to have calls occurring from WinForms to database? And how simple is this? I guess I'm trying to gauge to what extent there are issues with this approach and one needs to go f...
2010/05/15
[ "https://Stackoverflow.com/questions/2839398", "https://Stackoverflow.com", "https://Stackoverflow.com/users/173520/" ]
A simple way is to use an ORM such as [LINQ to SQL](http://msdn.microsoft.com/en-us/library/bb386976.aspx). This will save you having to write the SQL yourself but still generate reasonably efficient database queries. Other examples of ORMs are the [entity framework](http://msdn.microsoft.com/en-us/library/bb399572.asp...
Having a data access layer would be a good idea as it will separate your choice of data persistance from the rest of your application and allow you to more easily change it should the need arise in the future. If your data is heavily object related then you might decide to use an Object Relational Mapping tool/framew...
2,839,398
If I wanted to have my data in SQL Server, but wanted to use a thick client WinForms application for users, what would be the best practice way to have calls occurring from WinForms to database? And how simple is this? I guess I'm trying to gauge to what extent there are issues with this approach and one needs to go f...
2010/05/15
[ "https://Stackoverflow.com/questions/2839398", "https://Stackoverflow.com", "https://Stackoverflow.com/users/173520/" ]
The simplest solution if you have PC's and DB server close by is to use direct Linq-to-SQL approaches - no extra WCF service layer in between. Such a service layer adds a significant amount of complexity. If you want to go that route (maybe because of your WAN clients), then I'd recommend you check out the [WCF Data S...
A simple way is to use an ORM such as [LINQ to SQL](http://msdn.microsoft.com/en-us/library/bb386976.aspx). This will save you having to write the SQL yourself but still generate reasonably efficient database queries. Other examples of ORMs are the [entity framework](http://msdn.microsoft.com/en-us/library/bb399572.asp...
2,839,398
If I wanted to have my data in SQL Server, but wanted to use a thick client WinForms application for users, what would be the best practice way to have calls occurring from WinForms to database? And how simple is this? I guess I'm trying to gauge to what extent there are issues with this approach and one needs to go f...
2010/05/15
[ "https://Stackoverflow.com/questions/2839398", "https://Stackoverflow.com", "https://Stackoverflow.com/users/173520/" ]
The simplest solution if you have PC's and DB server close by is to use direct Linq-to-SQL approaches - no extra WCF service layer in between. Such a service layer adds a significant amount of complexity. If you want to go that route (maybe because of your WAN clients), then I'd recommend you check out the [WCF Data S...
Having a data access layer would be a good idea as it will separate your choice of data persistance from the rest of your application and allow you to more easily change it should the need arise in the future. If your data is heavily object related then you might decide to use an Object Relational Mapping tool/framew...
24,469,560
Hi everyone I want to set the export file name to my datatable how do i do so using jquery datatable , can someone please help me out with this , thanks
2014/06/28
[ "https://Stackoverflow.com/questions/24469560", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2690223/" ]
I just come to know that by default it takes page-title as export file-name. So I hack it and change the tilte of the page using Jquery. ``` $('title').html("Your custom filename"); ```
you can set this by sTitle property, check given code ``` tableTools: { "aButtons": [ { "sExtends": "pdf", "sTitle": "Customer Fefeedbacks" } ] } ```
24,469,560
Hi everyone I want to set the export file name to my datatable how do i do so using jquery datatable , can someone please help me out with this , thanks
2014/06/28
[ "https://Stackoverflow.com/questions/24469560", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2690223/" ]
I just come to know that by default it takes page-title as export file-name. So I hack it and change the tilte of the page using Jquery. ``` $('title').html("Your custom filename"); ```
``` "oTableTools": { "sSwfPath": "assets/media/swf/copy_csv_xls_pdf.swf", "aButtons": [ {"sExtends": "xls", "sButtonText": "<span style='color:#fff;'><i class='icon-download-alt icon-white '></i> Excel </span>", "sToolTip": "Save to Exce...
24,469,560
Hi everyone I want to set the export file name to my datatable how do i do so using jquery datatable , can someone please help me out with this , thanks
2014/06/28
[ "https://Stackoverflow.com/questions/24469560", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2690223/" ]
you can set this by sTitle property, check given code ``` tableTools: { "aButtons": [ { "sExtends": "pdf", "sTitle": "Customer Fefeedbacks" } ] } ```
``` "oTableTools": { "sSwfPath": "assets/media/swf/copy_csv_xls_pdf.swf", "aButtons": [ {"sExtends": "xls", "sButtonText": "<span style='color:#fff;'><i class='icon-download-alt icon-white '></i> Excel </span>", "sToolTip": "Save to Exce...
24,469,560
Hi everyone I want to set the export file name to my datatable how do i do so using jquery datatable , can someone please help me out with this , thanks
2014/06/28
[ "https://Stackoverflow.com/questions/24469560", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2690223/" ]
```js $(document).ready(function() { $('#example').DataTable( { dom: 'Bfrtip', buttons: [ { extend: 'excelHtml5', title: 'Data export' }, { extend: 'pdfHtml5', title: 'Data export' ...
you can set this by sTitle property, check given code ``` tableTools: { "aButtons": [ { "sExtends": "pdf", "sTitle": "Customer Fefeedbacks" } ] } ```
24,469,560
Hi everyone I want to set the export file name to my datatable how do i do so using jquery datatable , can someone please help me out with this , thanks
2014/06/28
[ "https://Stackoverflow.com/questions/24469560", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2690223/" ]
```js $(document).ready(function() { $('#example').DataTable( { dom: 'Bfrtip', buttons: [ { extend: 'excelHtml5', title: 'Data export' }, { extend: 'pdfHtml5', title: 'Data export' ...
``` "oTableTools": { "sSwfPath": "assets/media/swf/copy_csv_xls_pdf.swf", "aButtons": [ {"sExtends": "xls", "sButtonText": "<span style='color:#fff;'><i class='icon-download-alt icon-white '></i> Excel </span>", "sToolTip": "Save to Exce...
31,610,313
I have this selector: ``` <div class="filterMenu"> <label data-id="5"></label> <label data-id="2"></label> </div> <div class="galeria"> <div data-categories="5,2"></div> <div data-categories="2,6"></div> </div> ``` This is how I'm trying ``` $('.filterMenu label').on('click', function () { var id = $(...
2015/07/24
[ "https://Stackoverflow.com/questions/31610313", "https://Stackoverflow.com", "https://Stackoverflow.com/users/533941/" ]
You could try something like this: ``` $('.filterMenu label').on('click', function () { var id = $(this).data('id'); $('.galeria > div').hide(); $('.galeria > div[data-categories*="'+id+'"]').show(); }); ```
``` Try this var gid = $(this).attr('data-categories'); ```
31,610,313
I have this selector: ``` <div class="filterMenu"> <label data-id="5"></label> <label data-id="2"></label> </div> <div class="galeria"> <div data-categories="5,2"></div> <div data-categories="2,6"></div> </div> ``` This is how I'm trying ``` $('.filterMenu label').on('click', function () { var id = $(...
2015/07/24
[ "https://Stackoverflow.com/questions/31610313", "https://Stackoverflow.com", "https://Stackoverflow.com/users/533941/" ]
Should your code not be: ```js if (gidt[i] == id) { $(this).show(); } ``` instead of: ```js if (gidt[i] == gid) { $(this).show(); } ```
``` Try this var gid = $(this).attr('data-categories'); ```
31,610,313
I have this selector: ``` <div class="filterMenu"> <label data-id="5"></label> <label data-id="2"></label> </div> <div class="galeria"> <div data-categories="5,2"></div> <div data-categories="2,6"></div> </div> ``` This is how I'm trying ``` $('.filterMenu label').on('click', function () { var id = $(...
2015/07/24
[ "https://Stackoverflow.com/questions/31610313", "https://Stackoverflow.com", "https://Stackoverflow.com/users/533941/" ]
Should your code not be: ```js if (gidt[i] == id) { $(this).show(); } ``` instead of: ```js if (gidt[i] == gid) { $(this).show(); } ```
You could try something like this: ``` $('.filterMenu label').on('click', function () { var id = $(this).data('id'); $('.galeria > div').hide(); $('.galeria > div[data-categories*="'+id+'"]').show(); }); ```
31,610,313
I have this selector: ``` <div class="filterMenu"> <label data-id="5"></label> <label data-id="2"></label> </div> <div class="galeria"> <div data-categories="5,2"></div> <div data-categories="2,6"></div> </div> ``` This is how I'm trying ``` $('.filterMenu label').on('click', function () { var id = $(...
2015/07/24
[ "https://Stackoverflow.com/questions/31610313", "https://Stackoverflow.com", "https://Stackoverflow.com/users/533941/" ]
You could try something like this: ``` $('.filterMenu label').on('click', function () { var id = $(this).data('id'); $('.galeria > div').hide(); $('.galeria > div[data-categories*="'+id+'"]').show(); }); ```
You have a spelling issue with the id check, but you can simplify it to ```js var $galerias = $('.galeria > div'); $('.filterMenu label').on('click', function() { var id = $(this).data('id') + ''; $galerias.each(function() { var $this = $(this); var gidt = ($this.data('categories') + '').split(','); ...
31,610,313
I have this selector: ``` <div class="filterMenu"> <label data-id="5"></label> <label data-id="2"></label> </div> <div class="galeria"> <div data-categories="5,2"></div> <div data-categories="2,6"></div> </div> ``` This is how I'm trying ``` $('.filterMenu label').on('click', function () { var id = $(...
2015/07/24
[ "https://Stackoverflow.com/questions/31610313", "https://Stackoverflow.com", "https://Stackoverflow.com/users/533941/" ]
You could try something like this: ``` $('.filterMenu label').on('click', function () { var id = $(this).data('id'); $('.galeria > div').hide(); $('.galeria > div[data-categories*="'+id+'"]').show(); }); ```
you can make your code very easier with as @jai said i have tried like this ```js $('.filterMenu label').on('click', function () { $('.galeria div').hide() $('.galeria div[data-categories*="'+ $(this).data('id') +'"]').show(); }); ```
31,610,313
I have this selector: ``` <div class="filterMenu"> <label data-id="5"></label> <label data-id="2"></label> </div> <div class="galeria"> <div data-categories="5,2"></div> <div data-categories="2,6"></div> </div> ``` This is how I'm trying ``` $('.filterMenu label').on('click', function () { var id = $(...
2015/07/24
[ "https://Stackoverflow.com/questions/31610313", "https://Stackoverflow.com", "https://Stackoverflow.com/users/533941/" ]
Should your code not be: ```js if (gidt[i] == id) { $(this).show(); } ``` instead of: ```js if (gidt[i] == gid) { $(this).show(); } ```
You have a spelling issue with the id check, but you can simplify it to ```js var $galerias = $('.galeria > div'); $('.filterMenu label').on('click', function() { var id = $(this).data('id') + ''; $galerias.each(function() { var $this = $(this); var gidt = ($this.data('categories') + '').split(','); ...
31,610,313
I have this selector: ``` <div class="filterMenu"> <label data-id="5"></label> <label data-id="2"></label> </div> <div class="galeria"> <div data-categories="5,2"></div> <div data-categories="2,6"></div> </div> ``` This is how I'm trying ``` $('.filterMenu label').on('click', function () { var id = $(...
2015/07/24
[ "https://Stackoverflow.com/questions/31610313", "https://Stackoverflow.com", "https://Stackoverflow.com/users/533941/" ]
Should your code not be: ```js if (gidt[i] == id) { $(this).show(); } ``` instead of: ```js if (gidt[i] == gid) { $(this).show(); } ```
you can make your code very easier with as @jai said i have tried like this ```js $('.filterMenu label').on('click', function () { $('.galeria div').hide() $('.galeria div[data-categories*="'+ $(this).data('id') +'"]').show(); }); ```
9,922,407
I have a url that looks like that ``` http://example.com/index.php?id=111&title=word1 word2 word3 ``` I need to encode the spaces before requesting the url with curl. But how to urlencode the right parts of the url. `urlencode` and `rawurlencode` encode the slashes of `https` the question mark etc.
2012/03/29
[ "https://Stackoverflow.com/questions/9922407", "https://Stackoverflow.com", "https://Stackoverflow.com/users/615110/" ]
You can use [parse\_url()](http://php.net/manual/en/function.parse-url.php) to split the URL into its respective pieces. Use `urlencode()` on the `query` element from the array that `parse_url` returns, then put it back together using [http\_build\_url](http://www.php.net/manual/en/function.http-build-url.php). NOTE: ...
Replace white spaces with "+".
9,922,407
I have a url that looks like that ``` http://example.com/index.php?id=111&title=word1 word2 word3 ``` I need to encode the spaces before requesting the url with curl. But how to urlencode the right parts of the url. `urlencode` and `rawurlencode` encode the slashes of `https` the question mark etc.
2012/03/29
[ "https://Stackoverflow.com/questions/9922407", "https://Stackoverflow.com", "https://Stackoverflow.com/users/615110/" ]
You can use [parse\_url()](http://php.net/manual/en/function.parse-url.php) to split the URL into its respective pieces. Use `urlencode()` on the `query` element from the array that `parse_url` returns, then put it back together using [http\_build\_url](http://www.php.net/manual/en/function.http-build-url.php). NOTE: ...
As @F21 said,... ``` function fixUrlEncoding(string $url){ $scheme = parse_url($url, PHP_URL_SCHEME); $host = parse_url($url, PHP_URL_HOST); $path = parse_url($url, PHP_URL_PATH); $query = parse_url($url, PHP_URL_QUERY); $f = explode('?', $query,2); $file = $f[0]; $query = $f[1]; ...
37,160,395
Is it possible to have multiple route names for a page depending on how the user arrived at the page, but keeping the same RouteConfig path? e.g. ``` @RouteConfig([ { path: 'sweet/:id', name: 'SweetDetailLandingPage', component: SweetDetailComponent, data: { fromLink: false, fromDeepLink: true } ...
2016/05/11
[ "https://Stackoverflow.com/questions/37160395", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1788911/" ]
I would use a different approach. Read `window.location.href` either outside or (if it works inside Angular in the constructor of the root component) and if you get a deep link then redirect from there. There is only one time during the application lifecycle whre a deep link can be loaded, this is when the applicatio...
What I would do in that case is: in the routerLinks add a query string parameter `this._router.navigate(['SweetDetailLandingPage', {fromDeepLink: 'true'}]);` and then in the load method where you want to deside to do something if you came from a deep link or not ask for that parameter: ``` if (this.getParameterByName(...
2,586,450
Is it possible to create a directory folder for individual records in Access 2007. For example ``` tblUser ID firstName surName ``` When adding a record, would create a folder C:\userdatabase\Surname,firstName,ID Could see this being useful in situations for example where a large amount of images/files would need t...
2010/04/06
[ "https://Stackoverflow.com/questions/2586450", "https://Stackoverflow.com", "https://Stackoverflow.com/users/299088/" ]
You can use the VBA **MkDir** statement to make a directory. For example if you want to create a folder whose name matches one of your ID values, as a sub folder under the directory where your database is stored, you could use this code: ``` MkDir CurrentProject.Path & "\" & ID ```
To create the entire directory structure with one command: [link text](http://www.smccall.demon.co.uk/Strings.htm#CreatePath)
2,586,450
Is it possible to create a directory folder for individual records in Access 2007. For example ``` tblUser ID firstName surName ``` When adding a record, would create a folder C:\userdatabase\Surname,firstName,ID Could see this being useful in situations for example where a large amount of images/files would need t...
2010/04/06
[ "https://Stackoverflow.com/questions/2586450", "https://Stackoverflow.com", "https://Stackoverflow.com/users/299088/" ]
You can use the VBA **MkDir** statement to make a directory. For example if you want to create a folder whose name matches one of your ID values, as a sub folder under the directory where your database is stored, you could use this code: ``` MkDir CurrentProject.Path & "\" & ID ```
While these are all interesting answers to the question asked, I have to wonder why the original poster thinks this is necessary. If you're using your database to keep track of the information, it shouldn't really matter where the files are stored. Of course, if you need to have access to the files from the file syste...
16,836,301
Ok, I have `App.jar` as a runnable `jar` of my applicaiton. It is dependent on many more jars, defining the functionality of the applicaiton (such as `worldwind.jar` providing 3D globe). One way how to make it runnable is to provide all the jars in one folder set the `Class-Path` of `MANIFEST.MF` as : ``` Class-Path:...
2013/05/30
[ "https://Stackoverflow.com/questions/16836301", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1079484/" ]
Raw answer: as jar es basically a zip file, just open all the jars you want and copy the classes in the destination jar. However, today we usually let tools like maven to take care of dependencies
Yes it is. I have a quick example here with Ant, if you're using NetBeans: in the build.xml of your project, add this target and modify the naming as you wish. This will merge all jars in your "dist/lib" folder with the output jar of your project and put them in the "merged" folder. You can easily adapt this to s...
16,836,301
Ok, I have `App.jar` as a runnable `jar` of my applicaiton. It is dependent on many more jars, defining the functionality of the applicaiton (such as `worldwind.jar` providing 3D globe). One way how to make it runnable is to provide all the jars in one folder set the `Class-Path` of `MANIFEST.MF` as : ``` Class-Path:...
2013/05/30
[ "https://Stackoverflow.com/questions/16836301", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1079484/" ]
Raw answer: as jar es basically a zip file, just open all the jars you want and copy the classes in the destination jar. However, today we usually let tools like maven to take care of dependencies
Yes. I use the [Maven shade plugin](http://maven.apache.org/plugins/maven-shade-plugin/) for exactly that. ``` mvn clean package shade:shade ```
10,891,857
I'm trying to download a file from cloudBlob via stream. I refer to this article [CloudBlob](http://jeanpaulva.com/category/azure/) Here is the code to download the blob ``` public Stream DownloadBlobAsStream(CloudStorageAccount account, string blobUri) { Stream mem = new MemoryStream(); CloudBlobClient blo...
2012/06/05
[ "https://Stackoverflow.com/questions/10891857", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1015790/" ]
Your problem is that your input stream pointer is set to end of the steam (See the screen shot, Length and Position both shows same value) that's why when you read it you always get null. You would need to set to input stream pointer to 0 using **Stream.Position = 0** as below: ``` public static byte[] ReadFully(Stre...
How about using the OpenRead() method on the CloudBlob object? ``` public static string ReadFully(string blobUri, string itemUri) { // e.g. itemUri == "foo.txt" // if there is a folder "bar" with foo.txt, provide instead: "bar/foo.txt" CloudBlobContainer cloudBlobContainer = new CloudBlobContainer(new Ur...
10,891,857
I'm trying to download a file from cloudBlob via stream. I refer to this article [CloudBlob](http://jeanpaulva.com/category/azure/) Here is the code to download the blob ``` public Stream DownloadBlobAsStream(CloudStorageAccount account, string blobUri) { Stream mem = new MemoryStream(); CloudBlobClient blo...
2012/06/05
[ "https://Stackoverflow.com/questions/10891857", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1015790/" ]
Your problem is that your input stream pointer is set to end of the steam (See the screen shot, Length and Position both shows same value) that's why when you read it you always get null. You would need to set to input stream pointer to 0 using **Stream.Position = 0** as below: ``` public static byte[] ReadFully(Stre...
I have tried implementing the code above, but to my suprise, the function `GetBlockBlobReference` was not present in `CloudBlobClient` but in `CloudBlockBlob`. Maybe the DLLs changed through time. Therefore I present you with my adaptation: ``` public class BlobStorageHelper { private readonly CloudBlobClient _...
10,891,857
I'm trying to download a file from cloudBlob via stream. I refer to this article [CloudBlob](http://jeanpaulva.com/category/azure/) Here is the code to download the blob ``` public Stream DownloadBlobAsStream(CloudStorageAccount account, string blobUri) { Stream mem = new MemoryStream(); CloudBlobClient blo...
2012/06/05
[ "https://Stackoverflow.com/questions/10891857", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1015790/" ]
How about using the OpenRead() method on the CloudBlob object? ``` public static string ReadFully(string blobUri, string itemUri) { // e.g. itemUri == "foo.txt" // if there is a folder "bar" with foo.txt, provide instead: "bar/foo.txt" CloudBlobContainer cloudBlobContainer = new CloudBlobContainer(new Ur...
I have tried implementing the code above, but to my suprise, the function `GetBlockBlobReference` was not present in `CloudBlobClient` but in `CloudBlockBlob`. Maybe the DLLs changed through time. Therefore I present you with my adaptation: ``` public class BlobStorageHelper { private readonly CloudBlobClient _...
37,104,699
I am trying to use the EB CLI to deploy an application into an environment but I seem to be getting strange errors. Is there a way to empty out previous application versions so I can upload a fresh application? The message I see after I execute eb deploy. ``` Update environment operation is complete, but with errors....
2016/05/08
[ "https://Stackoverflow.com/questions/37104699", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1202827/" ]
I faced the same problem and the cause was the command timeout **Default max deployment time -Command timeout- is 600 (10 minutes)** Go to Your Environment → Configuration → Deployment preferences → Command timeout Increase the Deployment preferences for example 1800 or upgrade the instance type to work faster
Rebuilding the environment and deploying the new application version should solve the issue.
37,104,699
I am trying to use the EB CLI to deploy an application into an environment but I seem to be getting strange errors. Is there a way to empty out previous application versions so I can upload a fresh application? The message I see after I execute eb deploy. ``` Update environment operation is complete, but with errors....
2016/05/08
[ "https://Stackoverflow.com/questions/37104699", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1202827/" ]
I solved this by doing an instance reboot. Redeploy worked well after reboot. [![enter image description here](https://i.stack.imgur.com/X9Dt1.png)](https://i.stack.imgur.com/X9Dt1.png)
Rebuilding the environment and deploying the new application version should solve the issue.
37,104,699
I am trying to use the EB CLI to deploy an application into an environment but I seem to be getting strange errors. Is there a way to empty out previous application versions so I can upload a fresh application? The message I see after I execute eb deploy. ``` Update environment operation is complete, but with errors....
2016/05/08
[ "https://Stackoverflow.com/questions/37104699", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1202827/" ]
I found out that the issue was due to incompleteness of the permissions granted to the codepipeline/deployment service role. You should grant `UpdateApplicationversion` permission to the associated elastic beanstalk resources for the role that you use to deploy your app.
Rebuilding the environment and deploying the new application version should solve the issue.
37,104,699
I am trying to use the EB CLI to deploy an application into an environment but I seem to be getting strange errors. Is there a way to empty out previous application versions so I can upload a fresh application? The message I see after I execute eb deploy. ``` Update environment operation is complete, but with errors....
2016/05/08
[ "https://Stackoverflow.com/questions/37104699", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1202827/" ]
I solved this by doing an instance reboot. Redeploy worked well after reboot. [![enter image description here](https://i.stack.imgur.com/X9Dt1.png)](https://i.stack.imgur.com/X9Dt1.png)
I found out that the issue was due to incompleteness of the permissions granted to the codepipeline/deployment service role. You should grant `UpdateApplicationversion` permission to the associated elastic beanstalk resources for the role that you use to deploy your app.
37,104,699
I am trying to use the EB CLI to deploy an application into an environment but I seem to be getting strange errors. Is there a way to empty out previous application versions so I can upload a fresh application? The message I see after I execute eb deploy. ``` Update environment operation is complete, but with errors....
2016/05/08
[ "https://Stackoverflow.com/questions/37104699", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1202827/" ]
I faced the same problem and the cause was the command timeout **Default max deployment time -Command timeout- is 600 (10 minutes)** Go to Your Environment → Configuration → Deployment preferences → Command timeout Increase the Deployment preferences for example 1800 or upgrade the instance type to work faster
Changing the application/package version in package.json and redeploying it worked for me.
37,104,699
I am trying to use the EB CLI to deploy an application into an environment but I seem to be getting strange errors. Is there a way to empty out previous application versions so I can upload a fresh application? The message I see after I execute eb deploy. ``` Update environment operation is complete, but with errors....
2016/05/08
[ "https://Stackoverflow.com/questions/37104699", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1202827/" ]
I found out that the issue was due to incompleteness of the permissions granted to the codepipeline/deployment service role. You should grant `UpdateApplicationversion` permission to the associated elastic beanstalk resources for the role that you use to deploy your app.
Also faced this problem, and also the real problem seems to be a previous one, in my case I have CodeDeploy lacking permission on Cloud Watch, which made the deployment fail. I can see both problems in the events section of Elastic Beanstalk.
37,104,699
I am trying to use the EB CLI to deploy an application into an environment but I seem to be getting strange errors. Is there a way to empty out previous application versions so I can upload a fresh application? The message I see after I execute eb deploy. ``` Update environment operation is complete, but with errors....
2016/05/08
[ "https://Stackoverflow.com/questions/37104699", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1202827/" ]
I solved this by doing an instance reboot. Redeploy worked well after reboot. [![enter image description here](https://i.stack.imgur.com/X9Dt1.png)](https://i.stack.imgur.com/X9Dt1.png)
The operation completed but there were errors means that your deployment did not succeed. When an application update is unsuccessful eb will keep using the last good version. So if the last good version is 48 but this deployment is 55 and eb is expecting 54, then that "error" will be present... More of a warning than a...
37,104,699
I am trying to use the EB CLI to deploy an application into an environment but I seem to be getting strange errors. Is there a way to empty out previous application versions so I can upload a fresh application? The message I see after I execute eb deploy. ``` Update environment operation is complete, but with errors....
2016/05/08
[ "https://Stackoverflow.com/questions/37104699", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1202827/" ]
The operation completed but there were errors means that your deployment did not succeed. When an application update is unsuccessful eb will keep using the last good version. So if the last good version is 48 but this deployment is 55 and eb is expecting 54, then that "error" will be present... More of a warning than a...
Changing the application/package version in package.json and redeploying it worked for me.
37,104,699
I am trying to use the EB CLI to deploy an application into an environment but I seem to be getting strange errors. Is there a way to empty out previous application versions so I can upload a fresh application? The message I see after I execute eb deploy. ``` Update environment operation is complete, but with errors....
2016/05/08
[ "https://Stackoverflow.com/questions/37104699", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1202827/" ]
I faced the same problem and the cause was the command timeout **Default max deployment time -Command timeout- is 600 (10 minutes)** Go to Your Environment → Configuration → Deployment preferences → Command timeout Increase the Deployment preferences for example 1800 or upgrade the instance type to work faster
Also faced this problem, and also the real problem seems to be a previous one, in my case I have CodeDeploy lacking permission on Cloud Watch, which made the deployment fail. I can see both problems in the events section of Elastic Beanstalk.
37,104,699
I am trying to use the EB CLI to deploy an application into an environment but I seem to be getting strange errors. Is there a way to empty out previous application versions so I can upload a fresh application? The message I see after I execute eb deploy. ``` Update environment operation is complete, but with errors....
2016/05/08
[ "https://Stackoverflow.com/questions/37104699", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1202827/" ]
I solved this by doing an instance reboot. Redeploy worked well after reboot. [![enter image description here](https://i.stack.imgur.com/X9Dt1.png)](https://i.stack.imgur.com/X9Dt1.png)
Changing the application/package version in package.json and redeploying it worked for me.
17,162,857
I am using a piece of code to get the process of task manager on windows based system so that i can find that if my desktop based application's instance is running or not. The code is just working fine, here is my code. ``` private static void getAppInstancesCountAlreadyRunning() throws Exception { int isApplicat...
2013/06/18
[ "https://Stackoverflow.com/questions/17162857", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1410342/" ]
You dont need the full path to run this process just do `Process p = Runtime.getRuntime().exec("tasklist");` Also you would need to consider that the tasklist might not be installed.
System.getenv(String path), tries to get the value of path, where path is an environment variable. If windir is not defined among the env variables, System.getenv(String path) won't be able to return anythwing.
17,162,857
I am using a piece of code to get the process of task manager on windows based system so that i can find that if my desktop based application's instance is running or not. The code is just working fine, here is my code. ``` private static void getAppInstancesCountAlreadyRunning() throws Exception { int isApplicat...
2013/06/18
[ "https://Stackoverflow.com/questions/17162857", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1410342/" ]
Not sure of the reason (might be 32/64 bit version issues, permissions of executing user, security etc), but I'd say that there are much better ways to achieve this. Your current approach will match against most java applications, many of which run using javaw.exe. Instead, why not consider writing a file to disk when...
System.getenv(String path), tries to get the value of path, where path is an environment variable. If windir is not defined among the env variables, System.getenv(String path) won't be able to return anythwing.
17,162,857
I am using a piece of code to get the process of task manager on windows based system so that i can find that if my desktop based application's instance is running or not. The code is just working fine, here is my code. ``` private static void getAppInstancesCountAlreadyRunning() throws Exception { int isApplicat...
2013/06/18
[ "https://Stackoverflow.com/questions/17162857", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1410342/" ]
You dont need the full path to run this process just do `Process p = Runtime.getRuntime().exec("tasklist");` Also you would need to consider that the tasklist might not be installed.
Not sure of the reason (might be 32/64 bit version issues, permissions of executing user, security etc), but I'd say that there are much better ways to achieve this. Your current approach will match against most java applications, many of which run using javaw.exe. Instead, why not consider writing a file to disk when...
7,480,489
I'm trying to write a PHP function which will generate "supposedly" random strings which need to be unique regardless of the number of times it is run. Well, it can run more than once in order to generate but preferably not many many times. For example, when you upload an image to imgur, it generates a random 5-letter...
2011/09/20
[ "https://Stackoverflow.com/questions/7480489", "https://Stackoverflow.com", "https://Stackoverflow.com/users/954035/" ]
When you are generating any data randomly, you CANNOT GUARANTEE uniqueness. You only have a probability of generating duplicates, depending on the randomizing algorithm and the number of random data possibilities. Which is normally extremely low to be of concern. But if you want to guarantee uniqueness, you have 2 m...
A simple method I found: ``` $charset = '0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ'; $rand_str = ''; $desired_length = 10; while(strlen($rand_str) < $desired_length) $rand_str .= substr(str_shuffle($charset), 0, 1); ``` ... or... ``` $desired_length = 10; echo base64_encode(openssl_random_pse...
7,480,489
I'm trying to write a PHP function which will generate "supposedly" random strings which need to be unique regardless of the number of times it is run. Well, it can run more than once in order to generate but preferably not many many times. For example, when you upload an image to imgur, it generates a random 5-letter...
2011/09/20
[ "https://Stackoverflow.com/questions/7480489", "https://Stackoverflow.com", "https://Stackoverflow.com/users/954035/" ]
When you are generating any data randomly, you CANNOT GUARANTEE uniqueness. You only have a probability of generating duplicates, depending on the randomizing algorithm and the number of random data possibilities. Which is normally extremely low to be of concern. But if you want to guarantee uniqueness, you have 2 m...
This is time reliant, so it is highly unlikely to bring a duplicate. ``` $randString = date("Ymdhis") . rand(10000, 99999); ``` It is kinda long though.
7,480,489
I'm trying to write a PHP function which will generate "supposedly" random strings which need to be unique regardless of the number of times it is run. Well, it can run more than once in order to generate but preferably not many many times. For example, when you upload an image to imgur, it generates a random 5-letter...
2011/09/20
[ "https://Stackoverflow.com/questions/7480489", "https://Stackoverflow.com", "https://Stackoverflow.com/users/954035/" ]
This is time reliant, so it is highly unlikely to bring a duplicate. ``` $randString = date("Ymdhis") . rand(10000, 99999); ``` It is kinda long though.
A simple method I found: ``` $charset = '0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ'; $rand_str = ''; $desired_length = 10; while(strlen($rand_str) < $desired_length) $rand_str .= substr(str_shuffle($charset), 0, 1); ``` ... or... ``` $desired_length = 10; echo base64_encode(openssl_random_pse...
59,202,977
How can I parse the following [JS object](https://www.codepile.net/pile/P7xzAOlO) to a ruby object? It appears to be invalid JSON and it's driving me crazy. I'm trying to parse the HTML from `view-source:https://www.zocdoc.com/doctor/adelle-quintana-md-faad-2546` which loads an object called `window.__REDUX_STATE__ =...
2019/12/05
[ "https://Stackoverflow.com/questions/59202977", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2954587/" ]
You could use a [microservices](https://microservices.io/) architecture to build this. Instead of sharing databases between two applications you have them communicate with each other through web requests. Django would shoot a request to your other app with the relevant data, and the other server would respond back with...
You should build an API. The 2nd app would now be an application server and the 1st app, when it receives a form submission from the user, would persist its data to the DB and then make an API call to the 2nd app via this API. You would include key information in the API request that identifies the record in the DB. Y...
107,039
I worked for a tea shop as a tea barista and on the side have done projects that was not stated in my work contract (ie. packaging labels, menu, product photography). All was well until my access was suddenly revoked from our shared folder a day before I was handed a termination letter without warning. This meant that ...
2018/03/21
[ "https://graphicdesign.stackexchange.com/questions/107039", "https://graphicdesign.stackexchange.com", "https://graphicdesign.stackexchange.com/users/117938/" ]
As they stated [in another thread](https://graphicdesign.stackexchange.com/questions/58199/designer-right-to-obtain-digital-copies-of-work-done-as-an-employee-of-company): > > In a work-for-hire situation (as an employee) you are not seen as an > independent entity and you retain nothing which was create during you...
Clearly you have reasons to take this personally, but the fact probably is the employer has every right to own and use the work. You worked for him serving drinks and that was the scope of the job (apparently under a contract), then there was this spoken (not written) arrangement that you could also do some design work...
107,039
I worked for a tea shop as a tea barista and on the side have done projects that was not stated in my work contract (ie. packaging labels, menu, product photography). All was well until my access was suddenly revoked from our shared folder a day before I was handed a termination letter without warning. This meant that ...
2018/03/21
[ "https://graphicdesign.stackexchange.com/questions/107039", "https://graphicdesign.stackexchange.com", "https://graphicdesign.stackexchange.com/users/117938/" ]
As they stated [in another thread](https://graphicdesign.stackexchange.com/questions/58199/designer-right-to-obtain-digital-copies-of-work-done-as-an-employee-of-company): > > In a work-for-hire situation (as an employee) you are not seen as an > independent entity and you retain nothing which was create during you...
What would help if you listed in what country you work. In Poland your employer have property right to all things you create ONLY if you were hired to create those things (exactly like a programmer). So if contract of employment don't mention such creative work everything done out of scope should be requested by writ...
107,039
I worked for a tea shop as a tea barista and on the side have done projects that was not stated in my work contract (ie. packaging labels, menu, product photography). All was well until my access was suddenly revoked from our shared folder a day before I was handed a termination letter without warning. This meant that ...
2018/03/21
[ "https://graphicdesign.stackexchange.com/questions/107039", "https://graphicdesign.stackexchange.com", "https://graphicdesign.stackexchange.com/users/117938/" ]
As they stated [in another thread](https://graphicdesign.stackexchange.com/questions/58199/designer-right-to-obtain-digital-copies-of-work-done-as-an-employee-of-company): > > In a work-for-hire situation (as an employee) you are not seen as an > independent entity and you retain nothing which was create during you...
**Contrasting Opinion** Assumption: United States jurisdiction and laws. Even in cases where the previous employer retains full rights due to "work-for-hire" status, it's both common practice and largely accepted under law that "fair use" does indeed include use of otherwise copyrighted works in portfolios for self...
48,466,199
I need to change multiple values in a row for multiple rows in a list. I came up with this, but it's not working. file is a list of lists. ``` new_file = [] value_1 = 'title' value_2 = '1' value_3 = '1' for row in file: new_file.append(row[:5] + value_1 + value_2 + value_3) ```
2018/01/26
[ "https://Stackoverflow.com/questions/48466199", "https://Stackoverflow.com", "https://Stackoverflow.com/users/9230814/" ]
If `row` is a list, then you can't use the `+` operator to append string elements to the end of it. You'll need to group the three strings into a list to add them to the end of `row`. Try this: ``` for row in file: new_file.append(row[:5] + [value_1, value_2, value_3]) ```
It looks like you dealing with a 2D List and calling it 'new\_file'. If you are creating the values in new\_file for the first time then this would work: ``` value_1 = 'title' value_2 = '1' value_3 = '1' new_file =[[value_1, value_2, value_3] for i in range(5)] print(new_file) ```
74,677
Suppose $f$ and $g$ are monotonically increasing, and bounded, and let $X$ be a random variable. I want to show $f$, $g$ have positive covariance. I tried to compute it directly but I am not getting anything useful
2011/10/21
[ "https://math.stackexchange.com/questions/74677", "https://math.stackexchange.com", "https://math.stackexchange.com/users/18016/" ]
I think you can consider $\mathbb{E}[(f(X)-f(Y))(g(X)-g(Y))]$ where $X$ and $Y$ are i.i.d.
"It is generally taken for granted that the covariance of two increasing functions of a random variable is positive. The [present paper](http://www.math.tu-dresden.de/sto/schmidt/dsvm/dsvm2003-4.pdf) contains an elementary proof of this fact."
20,755,959
I am trying to validate a form selection box at [`THIS JSFIDDLE`](http://jsfiddle.net/Behseini/Y6hCm/7/) Can you help me to use jquery to check if the Optins not selected or if the First option `<option value="1">Select From The List</option>` selected then shows the error box and if it was correct to display the selec...
2013/12/24
[ "https://Stackoverflow.com/questions/20755959", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1106951/" ]
Try this code :[Fiddle](http://jsfiddle.net/manojmcet/HNT37/1/) ``` $(document).ready(function () { $('form').submit( function(e) { var check=$('#mySelect').val(); if ( check == '1' ) { $('#error').show(); $('#valid').hide(); }else{ $('#error').hide(); ...
Checking if the `Options` not selected or if the First option selected without relating to values: ``` $(document).ready(function () { $('form').on('submit', function(event) { event.preventDefault(); var select = document.getElementById('mySelect'); if(select.selectedIndex < 1){ ...
20,755,959
I am trying to validate a form selection box at [`THIS JSFIDDLE`](http://jsfiddle.net/Behseini/Y6hCm/7/) Can you help me to use jquery to check if the Optins not selected or if the First option `<option value="1">Select From The List</option>` selected then shows the error box and if it was correct to display the selec...
2013/12/24
[ "https://Stackoverflow.com/questions/20755959", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1106951/" ]
Try this code :[Fiddle](http://jsfiddle.net/manojmcet/HNT37/1/) ``` $(document).ready(function () { $('form').submit( function(e) { var check=$('#mySelect').val(); if ( check == '1' ) { $('#error').show(); $('#valid').hide(); }else{ $('#error').hide(); ...
Here is [JSFiddel Demo](http://jsfiddle.net/Y6hCm/13/) **JS** ``` $("#validate").on('click', function(e){ var value=$("#mySelect").val(); //get selected value $(".validationStatus").hide(); //Hide all messages first if(value=="1") { e.preventDefault(); $("#error").show(); } els...
20,755,959
I am trying to validate a form selection box at [`THIS JSFIDDLE`](http://jsfiddle.net/Behseini/Y6hCm/7/) Can you help me to use jquery to check if the Optins not selected or if the First option `<option value="1">Select From The List</option>` selected then shows the error box and if it was correct to display the selec...
2013/12/24
[ "https://Stackoverflow.com/questions/20755959", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1106951/" ]
Try this code :[Fiddle](http://jsfiddle.net/manojmcet/HNT37/1/) ``` $(document).ready(function () { $('form').submit( function(e) { var check=$('#mySelect').val(); if ( check == '1' ) { $('#error').show(); $('#valid').hide(); }else{ $('#error').hide(); ...
you should use this: ``` <form id="target" action="javascript:"> <select id="mySelect"> <option value="1">Select From The List</option> <option value="2">First</option> <option value="3">Second</option> <option value="4">Third</option> <option value="5">Fourth</option> <...
20,755,959
I am trying to validate a form selection box at [`THIS JSFIDDLE`](http://jsfiddle.net/Behseini/Y6hCm/7/) Can you help me to use jquery to check if the Optins not selected or if the First option `<option value="1">Select From The List</option>` selected then shows the error box and if it was correct to display the selec...
2013/12/24
[ "https://Stackoverflow.com/questions/20755959", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1106951/" ]
Try this code :[Fiddle](http://jsfiddle.net/manojmcet/HNT37/1/) ``` $(document).ready(function () { $('form').submit( function(e) { var check=$('#mySelect').val(); if ( check == '1' ) { $('#error').show(); $('#valid').hide(); }else{ $('#error').hide(); ...
Here is my suggestion [`**Live Demo**`](http://jsfiddle.net/mplungjan/dy8eq/) Please note I made the 0th option empty so the values match the text in the select ``` $(function () { var validate = function() { var val = $('#mySelect').val(),error=val==""; $('#error').toggle(error); $('#valid').toggle(!e...
2,545,000
I'm helping out a business by providing an Access DB to manage requests of various types. As they are a construction company, they have one machine in an 'office' on the building site, plus 3 based in their main office. The machine on site has no internet connectivity. Is there any (reasonably simple) way to synchroni...
2010/03/30
[ "https://Stackoverflow.com/questions/2545000", "https://Stackoverflow.com", "https://Stackoverflow.com/users/305070/" ]
Jet Replication is one answer, but not an easy one, as for a remote location you have to use indirect or Internet replication, both of which are pretty complex to set up and require regular maintenance to keep running reliably. That said, indirect replication works very well (I've never used Internet replication becaus...
For your Autonumber PK field use a ReplicationID (GUID) instead of a long so that the numbers will be unique across all copies of the database, even if they are disconnected. There are a lot of options for replication with Access. Here is an article to get you started. [Understanding Access Replication](http://offi...
6,836,249
I have three tables that I'm wondering If I should join, the tables are structured as follows: ``` members member_id login permissions K_id member_id date kcontent K_id id content ktitle K_id title ``` What I'm trying to do...
2011/07/26
[ "https://Stackoverflow.com/questions/6836249", "https://Stackoverflow.com", "https://Stackoverflow.com/users/801984/" ]
I would suggest the following: 1. Generate a certificate using [makecert](http://msdn.microsoft.com/en-us/library/bfsktky3%28v=VS.100%29.aspx). 2. Add the certificate to your project and change its Build Action to Embedded Resource. 3. Load the certificate from the resource in your unit test setup, see below. Code: ...
At Langdon's request, the solution I used, myself: ``` //Moling test Certificate var cert = new MX509Certificate2(); var subject = new MX500DistinguishedName(); // hookup cert.SubjectNameGet = () => subject; cert.ThumbprintGet = () => "foo"; subject.NameGet = () ...
6,836,249
I have three tables that I'm wondering If I should join, the tables are structured as follows: ``` members member_id login permissions K_id member_id date kcontent K_id id content ktitle K_id title ``` What I'm trying to do...
2011/07/26
[ "https://Stackoverflow.com/questions/6836249", "https://Stackoverflow.com", "https://Stackoverflow.com/users/801984/" ]
I would suggest the following: 1. Generate a certificate using [makecert](http://msdn.microsoft.com/en-us/library/bfsktky3%28v=VS.100%29.aspx). 2. Add the certificate to your project and change its Build Action to Embedded Resource. 3. Load the certificate from the resource in your unit test setup, see below. Code: ...
This may seem very hacky, and it depends on how pragmatic you want to be ... an approach I used was to just grab a random certificate from the machine. This was good when: - I know that every machine that's running these tests has a valid certificate. - I was using GIT and didn't want to check in a binary file for t...
6,836,249
I have three tables that I'm wondering If I should join, the tables are structured as follows: ``` members member_id login permissions K_id member_id date kcontent K_id id content ktitle K_id title ``` What I'm trying to do...
2011/07/26
[ "https://Stackoverflow.com/questions/6836249", "https://Stackoverflow.com", "https://Stackoverflow.com/users/801984/" ]
I would suggest the following: 1. Generate a certificate using [makecert](http://msdn.microsoft.com/en-us/library/bfsktky3%28v=VS.100%29.aspx). 2. Add the certificate to your project and change its Build Action to Embedded Resource. 3. Load the certificate from the resource in your unit test setup, see below. Code: ...
There is one more simple way of doing it. 1. Create a Certificate using MakeCert or export any existing certificate. 2. Add the Certificate in Project (App\_Data folder). 3. Follow below steps to get the certificate. Code: ``` string certificate = "cert.pfx"; string certPath = string.Format("{0}/App...
6,836,249
I have three tables that I'm wondering If I should join, the tables are structured as follows: ``` members member_id login permissions K_id member_id date kcontent K_id id content ktitle K_id title ``` What I'm trying to do...
2011/07/26
[ "https://Stackoverflow.com/questions/6836249", "https://Stackoverflow.com", "https://Stackoverflow.com/users/801984/" ]
This may seem very hacky, and it depends on how pragmatic you want to be ... an approach I used was to just grab a random certificate from the machine. This was good when: - I know that every machine that's running these tests has a valid certificate. - I was using GIT and didn't want to check in a binary file for t...
At Langdon's request, the solution I used, myself: ``` //Moling test Certificate var cert = new MX509Certificate2(); var subject = new MX500DistinguishedName(); // hookup cert.SubjectNameGet = () => subject; cert.ThumbprintGet = () => "foo"; subject.NameGet = () ...
6,836,249
I have three tables that I'm wondering If I should join, the tables are structured as follows: ``` members member_id login permissions K_id member_id date kcontent K_id id content ktitle K_id title ``` What I'm trying to do...
2011/07/26
[ "https://Stackoverflow.com/questions/6836249", "https://Stackoverflow.com", "https://Stackoverflow.com/users/801984/" ]
At Langdon's request, the solution I used, myself: ``` //Moling test Certificate var cert = new MX509Certificate2(); var subject = new MX500DistinguishedName(); // hookup cert.SubjectNameGet = () => subject; cert.ThumbprintGet = () => "foo"; subject.NameGet = () ...
There is one more simple way of doing it. 1. Create a Certificate using MakeCert or export any existing certificate. 2. Add the Certificate in Project (App\_Data folder). 3. Follow below steps to get the certificate. Code: ``` string certificate = "cert.pfx"; string certPath = string.Format("{0}/App...
6,836,249
I have three tables that I'm wondering If I should join, the tables are structured as follows: ``` members member_id login permissions K_id member_id date kcontent K_id id content ktitle K_id title ``` What I'm trying to do...
2011/07/26
[ "https://Stackoverflow.com/questions/6836249", "https://Stackoverflow.com", "https://Stackoverflow.com/users/801984/" ]
This may seem very hacky, and it depends on how pragmatic you want to be ... an approach I used was to just grab a random certificate from the machine. This was good when: - I know that every machine that's running these tests has a valid certificate. - I was using GIT and didn't want to check in a binary file for t...
There is one more simple way of doing it. 1. Create a Certificate using MakeCert or export any existing certificate. 2. Add the Certificate in Project (App\_Data folder). 3. Follow below steps to get the certificate. Code: ``` string certificate = "cert.pfx"; string certPath = string.Format("{0}/App...
32,247
Is all knowledge dependent on culture? how to define knowledge to our own perspective? if we don't exist does the knowledge disappear?
2016/02/19
[ "https://philosophy.stackexchange.com/questions/32247", "https://philosophy.stackexchange.com", "https://philosophy.stackexchange.com/users/19424/" ]
> > how to define knowledge to our own perspective? > > > A good start for a working definition: A person knows that a certain fact holds, if * he believes that the fact happens * he can argue why he believes that the fact happens * and his belief is correct. > > Is all knowledge dependent on culture? > > > ...
> > if we don't exist does the knowledge disappear? > > > Yes. Knowledge is a subjective concept, and so without subjects to do the "knowing", there is no knowledge. > > Is all knowledge dependent on culture? how to define knowledge to our own perspective? > > > Most educated "laymen" would put forward the ...
32,247
Is all knowledge dependent on culture? how to define knowledge to our own perspective? if we don't exist does the knowledge disappear?
2016/02/19
[ "https://philosophy.stackexchange.com/questions/32247", "https://philosophy.stackexchange.com", "https://philosophy.stackexchange.com/users/19424/" ]
> > how to define knowledge to our own perspective? > > > A good start for a working definition: A person knows that a certain fact holds, if * he believes that the fact happens * he can argue why he believes that the fact happens * and his belief is correct. > > Is all knowledge dependent on culture? > > > ...
If you are a strict dualist or an outright idealist, the answer to the last question is 'no', the ideal forms like the ideas in mathematics and logic remain, independent of material reality, and even if all intelligent species went extinct, so there were no thinkers in the world, the idea of a thinker has been establis...
32,247
Is all knowledge dependent on culture? how to define knowledge to our own perspective? if we don't exist does the knowledge disappear?
2016/02/19
[ "https://philosophy.stackexchange.com/questions/32247", "https://philosophy.stackexchange.com", "https://philosophy.stackexchange.com/users/19424/" ]
> > how to define knowledge to our own perspective? > > > A good start for a working definition: A person knows that a certain fact holds, if * he believes that the fact happens * he can argue why he believes that the fact happens * and his belief is correct. > > Is all knowledge dependent on culture? > > > ...
> > Is all knowledge dependent on culture? > > > Not all knowledge. But certain type of knowledge depends on culture also. Sometimes your culture doesn't motivate you even to acquire certain types knowledge. Eg. Spiritual knowledge varies if your culture is different. You would sometimes misunderstand many things ...
5,484,396
I need to generate random numbers for a lottery game, the lottery front-end will work in flash AS3 the idea is to run a script that generates 10 random numbers (the winners) and save them in a SQL database What's a reliable way to create random numbers? Is js Math.rand() function reliable enough for a lottery? On w...
2011/03/30
[ "https://Stackoverflow.com/questions/5484396", "https://Stackoverflow.com", "https://Stackoverflow.com/users/267741/" ]
It seems that [random.org](http://random.org) is basing its numbers off of static noise, which is pretty random, well more random than the javascript random library, which is probably basing its randomness on some time algorithm.
If the lottery involves money (purchasing 'tickets' and paying prizes) then you may need to be able to demonstrate that you are using 'real' random numbers. In that case you might want to invest in your own hardware for generating random numbers. A quick [search](http://www.google.com/#q=hardware+random+number+generato...
5,484,396
I need to generate random numbers for a lottery game, the lottery front-end will work in flash AS3 the idea is to run a script that generates 10 random numbers (the winners) and save them in a SQL database What's a reliable way to create random numbers? Is js Math.rand() function reliable enough for a lottery? On w...
2011/03/30
[ "https://Stackoverflow.com/questions/5484396", "https://Stackoverflow.com", "https://Stackoverflow.com/users/267741/" ]
The javascript Math.rand() is unlikely to be good enough for a lottery, as the specification does not require it to be cryptographically secure. For instance, there are [known weaknesses](http://www.trusteer.com/sites/default/files/Google_Chrome_6.0_and_7.0_Math.random_vulnerability.pdf) in the generator used in some v...
If the lottery involves money (purchasing 'tickets' and paying prizes) then you may need to be able to demonstrate that you are using 'real' random numbers. In that case you might want to invest in your own hardware for generating random numbers. A quick [search](http://www.google.com/#q=hardware+random+number+generato...
2,759,166
class Refvect { public: vector &refv Refvect(int t, vector &refv = vector()) : refv(refv) { }; void operator()() { refv.clear(); } }; int main () { Refvect r(0); r(); } With Visual Studio 2010, this gives me an error : "vector iterators incompatible" at the execution, but I don't understand why (but I c...
2010/05/03
[ "https://Stackoverflow.com/questions/2759166", "https://Stackoverflow.com", "https://Stackoverflow.com/users/331542/" ]
As soon as the statement ``` Refvect r(0); ``` is executed (control passes beyond the semicolon) the temporary `vector<int> &refv = vector<int>()` is destroyed. Now the reference stored inside the class object is *dangling* - not bound to any live object. Trying to access the object through such reference is undefin...
> > The temporary object vector() lives as > long as the reference, no? > > > No! Temporaries destruct at the end of the outermost enclosing expression - i.e. an expression that is embedded in a statement rather than another expression. There is no magic tracking of references to ensure that objects live as long...
3,530,827
I have a page that has 4 tables. Initially when the page is loaded, it shows 1 & 2. Thats working fine. On Post back(When Submit is clicked), it should show 3 & 4. Even thats working fine(code shown here). When the submit is clicked again, it has to call `updatePaymentInfo()` and redirect. Is there something to write a...
2010/08/20
[ "https://Stackoverflow.com/questions/3530827", "https://Stackoverflow.com", "https://Stackoverflow.com/users/397062/" ]
My thought on the easiest way to do this is to have two image submit buttons in the same place. Button A is the one you already have button B is a new one that whose submit handler runs UpdatepaymentInfo and redirects. Button B starts off invisible while button A is visible. When Button A is clicked in addition to the...
It sounds like you're having trouble managing the current state of your page. You could try: 1. Having a second submit button. It would be stylistically indistinguishable from the first, and would be hidden/shown accordingly, but would have its own click event. 2. Placing a hidden form value on the page to track the c...
3,530,827
I have a page that has 4 tables. Initially when the page is loaded, it shows 1 & 2. Thats working fine. On Post back(When Submit is clicked), it should show 3 & 4. Even thats working fine(code shown here). When the submit is clicked again, it has to call `updatePaymentInfo()` and redirect. Is there something to write a...
2010/08/20
[ "https://Stackoverflow.com/questions/3530827", "https://Stackoverflow.com", "https://Stackoverflow.com/users/397062/" ]
My thought on the easiest way to do this is to have two image submit buttons in the same place. Button A is the one you already have button B is a new one that whose submit handler runs UpdatepaymentInfo and redirects. Button B starts off invisible while button A is visible. When Button A is clicked in addition to the...
I guess that imgbtnSubmit\_Click handles Click event of the Submit button so this method will be called only during the postback so the condition is incorrect. I would not use this approach. ASP.NET contains controls which support these requirements. Check MultiView and Wizard. Create separate view with table 1 & 2 an...
3,530,827
I have a page that has 4 tables. Initially when the page is loaded, it shows 1 & 2. Thats working fine. On Post back(When Submit is clicked), it should show 3 & 4. Even thats working fine(code shown here). When the submit is clicked again, it has to call `updatePaymentInfo()` and redirect. Is there something to write a...
2010/08/20
[ "https://Stackoverflow.com/questions/3530827", "https://Stackoverflow.com", "https://Stackoverflow.com/users/397062/" ]
My thought on the easiest way to do this is to have two image submit buttons in the same place. Button A is the one you already have button B is a new one that whose submit handler runs UpdatepaymentInfo and redirects. Button B starts off invisible while button A is visible. When Button A is clicked in addition to the...
Another possible way to do this is keep your current set up and add a command argument to the button. By default it has some argument that you check on the first click. Then checking the command argument on the first click you do your showing and change the command argument to be something different. So on the next but...
51,349,648
I have a react app, and I have this code, but it looks like the fetchdata m ethod is full of syntax errors, the first one shown on the title of the question. Whats wrong with the method? ``` import React, { Component } from 'react'; import { Row, Col } from 'antd'; import PageHeader from '../../components/utility/pa...
2018/07/15
[ "https://Stackoverflow.com/questions/51349648", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1014217/" ]
You have written your `fetchData` method in the form of a class field which is not part of the language yet. You could add the Babel plugin [`proposal-class-properties`](https://babeljs.io/docs/en/babel-plugin-proposal-class-properties) or a preset that has it, like the [stage 2 preset](https://babeljs.io/docs/en/babel...
Have you defined the fetchdata variable previously?If not, perhaps you should do it in the current line: ``` var fetchdata = () => { ... ```
530,338
I have used `nomencl` package to create my papers nomenclature. The problem, however, is that the font size is 12pt, which is very large and takes many pages for nomenclature. How can I decrease the font size to 10pt in nomencl package? I couldn't find anything about this.
2020/02/28
[ "https://tex.stackexchange.com/questions/530338", "https://tex.stackexchange.com", "https://tex.stackexchange.com/users/206569/" ]
You declare three columns, but use five and running LaTeX will surely show *many* error messages: never disregard them The headers take up most of the space, leaving just a small amount for the “Cycle” column. My suggestion is to abbreviate the headers, adding an explanation at the bottom. ```latex \documentclass{art...
This should meet the requirement -- as pointed out by @quark67 the columns are 5 in number whereas the delimiter `&` were only 3 in number -- more importantly the OP forgot to enclose with the maths symbol `$` outside the braces where a new line was to be enforced in the third column [![enter image description here](...
45,967,213
I'm new to programming and working with git and github. I want to make sure my repo only has the necessary files in it, and since I work in virtual environments, each environment has folders that were created when the environment was activated (`__pycache__`, `.vscode`, `Include`, `Lib`, `Scripts`, `tcl` etc). Am I cor...
2017/08/30
[ "https://Stackoverflow.com/questions/45967213", "https://Stackoverflow.com", "https://Stackoverflow.com/users/8539559/" ]
I use my GitHub to hold everything that I'm working on in a given project. In the event that I want to make some changes while I'm away from my desk but don't have the most up to date code on whichever workstation I happen to be working on, I just pull the repo down, make my changes, and push them back to the repo. Wha...
as long as you keep the record of the installed files somewhere e.g. py-req or something that other user can replicate on his/her virtualenv you can skip them in your repo hope it helps
45,967,213
I'm new to programming and working with git and github. I want to make sure my repo only has the necessary files in it, and since I work in virtual environments, each environment has folders that were created when the environment was activated (`__pycache__`, `.vscode`, `Include`, `Lib`, `Scripts`, `tcl` etc). Am I cor...
2017/08/30
[ "https://Stackoverflow.com/questions/45967213", "https://Stackoverflow.com", "https://Stackoverflow.com/users/8539559/" ]
I use my GitHub to hold everything that I'm working on in a given project. In the event that I want to make some changes while I'm away from my desk but don't have the most up to date code on whichever workstation I happen to be working on, I just pull the repo down, make my changes, and push them back to the repo. Wha...
The primary purpose of the repo is to track files that you are working on - so if they aren't files that you edit, there is probably no reason to track them.
40,071,869
I have a `table1` such has: ``` date ticker po tag1 2016-10-13 UX1 -206.0000 SV 2016-10-13 UX2 -617.0000 SV 2016-10-13 EP -647.0000 SV 2016-10-14 UX1 -206.0000 SV 2016-10-14 UX2 -617.0000 SV 2016-10-14 EP -647.0000 SV ``` and `table2` ``` date ticker po tag1 201...
2016/10/16
[ "https://Stackoverflow.com/questions/40071869", "https://Stackoverflow.com", "https://Stackoverflow.com/users/5626112/" ]
JQuery's `css()`, `hide()` and `fadeIn()` methods all change the DOM rather than the CSS you've loaded in. In this case you change the visibility style first using `css()`, then `hide()` changes the display style to `none` and then `fadeIn()` changes the display style to `block` but does so by tweening the transparenc...
The `.css()` jQuery method updates the DOM element's `style` object. It doesn't touch the actual CSS stuff that you imported via `<style>` elements on the page. Element style overrides styles implied by CSS. Performing those changes via jQuery (or direct use of DOM APIs) is affecting the structures established by `sty...
40,071,869
I have a `table1` such has: ``` date ticker po tag1 2016-10-13 UX1 -206.0000 SV 2016-10-13 UX2 -617.0000 SV 2016-10-13 EP -647.0000 SV 2016-10-14 UX1 -206.0000 SV 2016-10-14 UX2 -617.0000 SV 2016-10-14 EP -647.0000 SV ``` and `table2` ``` date ticker po tag1 201...
2016/10/16
[ "https://Stackoverflow.com/questions/40071869", "https://Stackoverflow.com", "https://Stackoverflow.com/users/5626112/" ]
JQuery's `css()`, `hide()` and `fadeIn()` methods all change the DOM rather than the CSS you've loaded in. In this case you change the visibility style first using `css()`, then `hide()` changes the display style to `none` and then `fadeIn()` changes the display style to `block` but does so by tweening the transparenc...
`.hide()` and `.fadeIn()` plays with the `display` attribute. But if the `visibility` is set to `hidden`, obviously no result can be seen. That is why the answer you found talks about setting the `visibility` to `visible` first.
19,452,144
I'm a beginner to Java and android programming and I have followed the tutorials for PushBot to creating a working app. However the app crashes when receiving a push notification if it's not running in the foreground. So I have had a little search on here and the pushbots website and found about extending the class to ...
2013/10/18
[ "https://Stackoverflow.com/questions/19452144", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2538738/" ]
Check the video tutorial on youtube (<http://www.youtube.com/watch?v=faop6vBBe3E>) I'll quote here too: > > Please make sure you've copied PushBots.jar file into libraries folder > of your android project. And also make sure you extended Application > Class, and initialized PushBots in its onCreate method, check o...
Seems like Pushbots developer offers you a new way that is equal to configure initilization.Please check out that side [pushbotdeveloping](https://pushbots.com/developer/gcm) it will give route you step by step.I had solved my problem via that way.
14,126,141
I have the following code written by VBA in MS Access 2010. This code prints in the Label1.caption the number of this equation. ``` the_average = CDbl(TextBox1.Text) * 2 / 3 + CDbl(TextBox2.Text) / 3 the_average = Format(the_average, "#.###") Label1.caption= the_average ``` Some of the operations have more than thre...
2013/01/02
[ "https://Stackoverflow.com/questions/14126141", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1941225/" ]
``` the_average = CDbl(TextBox1.Text) * 2 / 3 + CDbl(TextBox2.Text) / 3 the_average = Format(the_average, "#.####") Label1.caption= Left(the_average,5) ``` If your final string can vary in length, you will have to use the `InStr()` function (I believe that's it).
You can take advantage of `Int()`'s truncation; ``` the_average = formatnumber(int(the_average * 1000) / 1000, 3) ``` You can omit `formatnumber` if you don't want trailing zeros (.99 -> .990)
374,357
It is known that the blow-up of $P^1 \times P^1$ at a point is isomorphic to the blow-up of $P^2$ at two points. I'm wondering if there is any general statement for the blow-up of $P^1 \times P^1 \times.... \times P^1$ ($n$ times) and of $P^n$.
2020/10/19
[ "https://mathoverflow.net/questions/374357", "https://mathoverflow.net", "https://mathoverflow.net/users/20107/" ]
The 'permutohedral variety' (the toric variety obtained from the permutohedron) is a very attractive toric variety which can be obtained by blowing up all of the toric strata in $\mathbb P^n$ in increasing order of dimension (i.e. all points first, then all lines, etc.). Similarly it can be obtained from $(\mathbb P^1)...
[This is a correction of an earlier answer, and is currently incomplete; thanks to Nicolas for pointing out that what I had written was totally wrong.] Both varieties are rational. The obvious birational map between them factors into a composite of smooth blowups and blowdowns. As they are toric varieties, they carry ...
374,357
It is known that the blow-up of $P^1 \times P^1$ at a point is isomorphic to the blow-up of $P^2$ at two points. I'm wondering if there is any general statement for the blow-up of $P^1 \times P^1 \times.... \times P^1$ ($n$ times) and of $P^n$.
2020/10/19
[ "https://mathoverflow.net/questions/374357", "https://mathoverflow.net", "https://mathoverflow.net/users/20107/" ]
[This is a correction of an earlier answer, and is currently incomplete; thanks to Nicolas for pointing out that what I had written was totally wrong.] Both varieties are rational. The obvious birational map between them factors into a composite of smooth blowups and blowdowns. As they are toric varieties, they carry ...
The blow-up of $(\mathbb{P}^1)^n$ at one point is always pseudo-isomorphic to the blow-up of $\mathbb{P}^n$ at $n$ points in general position. To see this, let us consider, for each $n\ge 2$, the toric birational map $\tau\colon (\mathbb{P}^1)^n\dashrightarrow (\mathbb{P}^n)$ given by $$([x\_1:1],[x\_2:1],\ldots,[x\_n...
374,357
It is known that the blow-up of $P^1 \times P^1$ at a point is isomorphic to the blow-up of $P^2$ at two points. I'm wondering if there is any general statement for the blow-up of $P^1 \times P^1 \times.... \times P^1$ ($n$ times) and of $P^n$.
2020/10/19
[ "https://mathoverflow.net/questions/374357", "https://mathoverflow.net", "https://mathoverflow.net/users/20107/" ]
The 'permutohedral variety' (the toric variety obtained from the permutohedron) is a very attractive toric variety which can be obtained by blowing up all of the toric strata in $\mathbb P^n$ in increasing order of dimension (i.e. all points first, then all lines, etc.). Similarly it can be obtained from $(\mathbb P^1)...
$(P^1)^n$ has Poincaré polynomial $(1+t^2)^n$, and $P^n$ has Poincaré polynomial $1+t^2+ \dots + t^{2n}$. If $X$ is of dimension $n$ and $B\_pX$ the blow-up at a point $p \in X$ then $p\_{B\_pX}(t) = p\_X(t) + t^2 + \dots + t^{2n-2}$. If $B\_r(P^1)^n$ is the blow-up of $(P^1)^n$ at $r$ points, and $B\_s(P^n)$ the blow...
374,357
It is known that the blow-up of $P^1 \times P^1$ at a point is isomorphic to the blow-up of $P^2$ at two points. I'm wondering if there is any general statement for the blow-up of $P^1 \times P^1 \times.... \times P^1$ ($n$ times) and of $P^n$.
2020/10/19
[ "https://mathoverflow.net/questions/374357", "https://mathoverflow.net", "https://mathoverflow.net/users/20107/" ]
$(P^1)^n$ has Poincaré polynomial $(1+t^2)^n$, and $P^n$ has Poincaré polynomial $1+t^2+ \dots + t^{2n}$. If $X$ is of dimension $n$ and $B\_pX$ the blow-up at a point $p \in X$ then $p\_{B\_pX}(t) = p\_X(t) + t^2 + \dots + t^{2n-2}$. If $B\_r(P^1)^n$ is the blow-up of $(P^1)^n$ at $r$ points, and $B\_s(P^n)$ the blow...
The blow-up of $(\mathbb{P}^1)^n$ at one point is always pseudo-isomorphic to the blow-up of $\mathbb{P}^n$ at $n$ points in general position. To see this, let us consider, for each $n\ge 2$, the toric birational map $\tau\colon (\mathbb{P}^1)^n\dashrightarrow (\mathbb{P}^n)$ given by $$([x\_1:1],[x\_2:1],\ldots,[x\_n...
374,357
It is known that the blow-up of $P^1 \times P^1$ at a point is isomorphic to the blow-up of $P^2$ at two points. I'm wondering if there is any general statement for the blow-up of $P^1 \times P^1 \times.... \times P^1$ ($n$ times) and of $P^n$.
2020/10/19
[ "https://mathoverflow.net/questions/374357", "https://mathoverflow.net", "https://mathoverflow.net/users/20107/" ]
The 'permutohedral variety' (the toric variety obtained from the permutohedron) is a very attractive toric variety which can be obtained by blowing up all of the toric strata in $\mathbb P^n$ in increasing order of dimension (i.e. all points first, then all lines, etc.). Similarly it can be obtained from $(\mathbb P^1)...
Yes there is such a general statement, except for the fact that (as Nicolas suggests in his answer) you need to consider sequences of blow-ups with centers at different subspaces, not just points. The statement I know well emerges in [my paper "Toric varieties of Loday's associahedra and noncommutative cohomological fi...
374,357
It is known that the blow-up of $P^1 \times P^1$ at a point is isomorphic to the blow-up of $P^2$ at two points. I'm wondering if there is any general statement for the blow-up of $P^1 \times P^1 \times.... \times P^1$ ($n$ times) and of $P^n$.
2020/10/19
[ "https://mathoverflow.net/questions/374357", "https://mathoverflow.net", "https://mathoverflow.net/users/20107/" ]
Yes there is such a general statement, except for the fact that (as Nicolas suggests in his answer) you need to consider sequences of blow-ups with centers at different subspaces, not just points. The statement I know well emerges in [my paper "Toric varieties of Loday's associahedra and noncommutative cohomological fi...
The blow-up of $(\mathbb{P}^1)^n$ at one point is always pseudo-isomorphic to the blow-up of $\mathbb{P}^n$ at $n$ points in general position. To see this, let us consider, for each $n\ge 2$, the toric birational map $\tau\colon (\mathbb{P}^1)^n\dashrightarrow (\mathbb{P}^n)$ given by $$([x\_1:1],[x\_2:1],\ldots,[x\_n...
374,357
It is known that the blow-up of $P^1 \times P^1$ at a point is isomorphic to the blow-up of $P^2$ at two points. I'm wondering if there is any general statement for the blow-up of $P^1 \times P^1 \times.... \times P^1$ ($n$ times) and of $P^n$.
2020/10/19
[ "https://mathoverflow.net/questions/374357", "https://mathoverflow.net", "https://mathoverflow.net/users/20107/" ]
The 'permutohedral variety' (the toric variety obtained from the permutohedron) is a very attractive toric variety which can be obtained by blowing up all of the toric strata in $\mathbb P^n$ in increasing order of dimension (i.e. all points first, then all lines, etc.). Similarly it can be obtained from $(\mathbb P^1)...
The blow-up of $(\mathbb{P}^1)^n$ at one point is always pseudo-isomorphic to the blow-up of $\mathbb{P}^n$ at $n$ points in general position. To see this, let us consider, for each $n\ge 2$, the toric birational map $\tau\colon (\mathbb{P}^1)^n\dashrightarrow (\mathbb{P}^n)$ given by $$([x\_1:1],[x\_2:1],\ldots,[x\_n...
29,760,198
I am playing some coding challenges on codewars, after you pass a challenge you get to see other peoples answers, and one looks like this: ``` def weirdcase(string) string.split(' ').map do |word| word.split('').each_with_index.map do |char, i| i % 2 == 0 ? char.upcase : char.downcase end.join('') en...
2015/04/20
[ "https://Stackoverflow.com/questions/29760198", "https://Stackoverflow.com", "https://Stackoverflow.com/users/4561925/" ]
If the stylesheet files aren't directly linked in the header.php file, then the stylesheets must be included via the [wp\_enqueue\_style](https://codex.wordpress.org/Function_Reference/wp_enqueue_style) function. Example: ``` <?php wp_enqueue_style( $handle, $src, $deps, $ver, $media ); ?> ``` The fourth parameter i...
The easiest solution would be to search your theme's directory for the function name `wp_enqueue_style`
56,286,961
``` create table PrinterData( Dt DateTime not null, Status nvarchar(50) not null ) insert into PrinterData values ('05.24.2019 00:00:00', 'READY'), ('05.24.2019 00:01:00', 'READY'), ('05.24.2019 00:02:00', 'NO PAPER'), ('05.24.2019 00:03:00', 'UNKNOWN'), ('05.24.2019 00:04:00', 'UNKNOWN'), ('05.24.2019 00:...
2019/05/24
[ "https://Stackoverflow.com/questions/56286961", "https://Stackoverflow.com", "https://Stackoverflow.com/users/7060504/" ]
Use `lead()` function **[DEMO](https://dbfiddle.uk/?rdbms=sqlserver_2017&fiddle=c5dfbd2ea0f58b7f15074536596bcf9c)** ``` select *,datediff(SECOND,dt,nexttime) as diff from ( select *,lead(dt) over(order by dt) as nexttime,lead(status) over(order by dt) as nextstatus from PrinterData where Status<>'UNKNOWN' )A where s...
you can do it by using left join and row\_number() ``` with cte as ( select a.Dt, a.Status, b.Dt as Dt_Next_Status, b.Status as Next_Status, DATEDIFF(SECOND, a.Dt, b.Dt) as Diff, row_number()over(partition by a.DT order by b.Dt) rn from PrinterData a left join ( select Dt, Status from PrinterData where Status not...