qid
int64
1
74.7M
question
stringlengths
0
58.3k
date
stringlengths
10
10
metadata
list
response_j
stringlengths
2
48.3k
response_k
stringlengths
2
40.5k
3,114,917
Which is better approach and why.
2010/06/25
[ "https://Stackoverflow.com/questions/3114917", "https://Stackoverflow.com", "https://Stackoverflow.com/users/109676/" ]
Instead of a yes/no question, use a question with custom buttons: ``` The file blah.txt has been modified. Would you like to save or discard it? +------+ +---------+ +--------+ | Save | | Discard | | Cancel | +------+ +---------+ +--------+ ```
Your application should, as one of its primary goals, NEVER lose user's data. One way to accomplish that is saving regularly the work the user has done **without user intervention**. That's the paradigm most people are used to in real life. When people write in a notebook they don't expect the paper to ask "Do you wa...
86,712
Is it possible to get an 'S' rank in Resident Evil 6? If so, what are the general requirements? I know some will probably be subjective to the level (time and enemies) but what about accuracy and deaths? is there a set rule for an 'S' rank? (assuming it is even possible) This was the case in most of previous games. So...
2012/10/04
[ "https://gaming.stackexchange.com/questions/86712", "https://gaming.stackexchange.com", "https://gaming.stackexchange.com/users/12813/" ]
While I do not own the game, someone took the time to upload a set of videos where they play through chapter 1 on professional (so they have a bunch of things unlocked, making everything much easier). If you look at [these](http://www.youtube.com/watch?v=2nGwPZpcCmU) [three](http://www.youtube.com/watch?v=XZLkjhXphkk)...
Simple answer, you just need an A rank in the 4 categories. You can't get an S in each category, as obviously a zero death would count as an S, but if you get a B in any category, you'll get an A or less instead of the S.
86,712
Is it possible to get an 'S' rank in Resident Evil 6? If so, what are the general requirements? I know some will probably be subjective to the level (time and enemies) but what about accuracy and deaths? is there a set rule for an 'S' rank? (assuming it is even possible) This was the case in most of previous games. So...
2012/10/04
[ "https://gaming.stackexchange.com/questions/86712", "https://gaming.stackexchange.com", "https://gaming.stackexchange.com/users/12813/" ]
While I do not own the game, someone took the time to upload a set of videos where they play through chapter 1 on professional (so they have a bunch of things unlocked, making everything much easier). If you look at [these](http://www.youtube.com/watch?v=2nGwPZpcCmU) [three](http://www.youtube.com/watch?v=XZLkjhXphkk)...
You can die at least twice per chapter to get Death - A Rank. I try to get keep my accuracy at 80% get an Accuracy - A Rank. Get through the chapter as fast to get Clear Time - A Rank. Kill as many enemies as possible without taking a long time to get Enemies Routed - A Rank. The best way to get a lot of kills fast...
86,712
Is it possible to get an 'S' rank in Resident Evil 6? If so, what are the general requirements? I know some will probably be subjective to the level (time and enemies) but what about accuracy and deaths? is there a set rule for an 'S' rank? (assuming it is even possible) This was the case in most of previous games. So...
2012/10/04
[ "https://gaming.stackexchange.com/questions/86712", "https://gaming.stackexchange.com", "https://gaming.stackexchange.com/users/12813/" ]
While I do not own the game, someone took the time to upload a set of videos where they play through chapter 1 on professional (so they have a bunch of things unlocked, making everything much easier). If you look at [these](http://www.youtube.com/watch?v=2nGwPZpcCmU) [three](http://www.youtube.com/watch?v=XZLkjhXphkk)...
I don't think the time matters that much. The most important factors are how many enemies are killed and especially the accuracy; how well you aim at the enemies. You shouldn't do "straight bullet"... missing shots will definitely decrease your chance to get an "S". Try to kill them with no misses; critical hits are go...
86,712
Is it possible to get an 'S' rank in Resident Evil 6? If so, what are the general requirements? I know some will probably be subjective to the level (time and enemies) but what about accuracy and deaths? is there a set rule for an 'S' rank? (assuming it is even possible) This was the case in most of previous games. So...
2012/10/04
[ "https://gaming.stackexchange.com/questions/86712", "https://gaming.stackexchange.com", "https://gaming.stackexchange.com/users/12813/" ]
While I do not own the game, someone took the time to upload a set of videos where they play through chapter 1 on professional (so they have a bunch of things unlocked, making everything much easier). If you look at [these](http://www.youtube.com/watch?v=2nGwPZpcCmU) [three](http://www.youtube.com/watch?v=XZLkjhXphkk)...
You have to get rank A in 4 ratings to get an S rank.
86,712
Is it possible to get an 'S' rank in Resident Evil 6? If so, what are the general requirements? I know some will probably be subjective to the level (time and enemies) but what about accuracy and deaths? is there a set rule for an 'S' rank? (assuming it is even possible) This was the case in most of previous games. So...
2012/10/04
[ "https://gaming.stackexchange.com/questions/86712", "https://gaming.stackexchange.com", "https://gaming.stackexchange.com/users/12813/" ]
You can die at least twice per chapter to get Death - A Rank. I try to get keep my accuracy at 80% get an Accuracy - A Rank. Get through the chapter as fast to get Clear Time - A Rank. Kill as many enemies as possible without taking a long time to get Enemies Routed - A Rank. The best way to get a lot of kills fast...
Simple answer, you just need an A rank in the 4 categories. You can't get an S in each category, as obviously a zero death would count as an S, but if you get a B in any category, you'll get an A or less instead of the S.
86,712
Is it possible to get an 'S' rank in Resident Evil 6? If so, what are the general requirements? I know some will probably be subjective to the level (time and enemies) but what about accuracy and deaths? is there a set rule for an 'S' rank? (assuming it is even possible) This was the case in most of previous games. So...
2012/10/04
[ "https://gaming.stackexchange.com/questions/86712", "https://gaming.stackexchange.com", "https://gaming.stackexchange.com/users/12813/" ]
I don't think the time matters that much. The most important factors are how many enemies are killed and especially the accuracy; how well you aim at the enemies. You shouldn't do "straight bullet"... missing shots will definitely decrease your chance to get an "S". Try to kill them with no misses; critical hits are go...
Simple answer, you just need an A rank in the 4 categories. You can't get an S in each category, as obviously a zero death would count as an S, but if you get a B in any category, you'll get an A or less instead of the S.
86,712
Is it possible to get an 'S' rank in Resident Evil 6? If so, what are the general requirements? I know some will probably be subjective to the level (time and enemies) but what about accuracy and deaths? is there a set rule for an 'S' rank? (assuming it is even possible) This was the case in most of previous games. So...
2012/10/04
[ "https://gaming.stackexchange.com/questions/86712", "https://gaming.stackexchange.com", "https://gaming.stackexchange.com/users/12813/" ]
You have to get rank A in 4 ratings to get an S rank.
Simple answer, you just need an A rank in the 4 categories. You can't get an S in each category, as obviously a zero death would count as an S, but if you get a B in any category, you'll get an A or less instead of the S.
175,145
Here's what I know: If a body moves in a circular trajectory, then the resultant of all the forces must point to the center of the circle it describes in its movement. If a body moves in a vertical loop, there will be two forces acting on it: The normal forces exerted by the track and the force of gravity. I have solve...
2015/04/09
[ "https://physics.stackexchange.com/questions/175145", "https://physics.stackexchange.com", "https://physics.stackexchange.com/users/56583/" ]
They don't point toward the center. You are thinking of the special case for circular motion with *constant speed.* In that case, the velocity and acceleration vectors are perpendicular, implying the acceleration points toward the center. However, an object moving freely in a vertical loop will slow down on the way u...
For any circular motion , whether uniform or non uniform, centripetal force is a must. Now the normal force is sum of centripetal force (resulting from the change in direction of velocity of the particle) and tangential force (resulting from the component of weight force and frictional force). The normal force points t...
27,046,624
I'm trying to make parallax photo effect in my app using CSStickyHeaderFlowLayout - <https://github.com/jamztang/CSStickyHeaderFlowLayout/> and Swift language. I have installed necessary Pod's file, add #import "CSStickyHeaderFlowLayout.h" to my "appName"-Bridging-Header.h file, and implemented this method: ``` func ...
2014/11/20
[ "https://Stackoverflow.com/questions/27046624", "https://Stackoverflow.com", "https://Stackoverflow.com/users/4275621/" ]
You should be able to do it like this in Swift ``` if let layout = self.collectionViewLayout as? CSStickyHeaderFlowLayout { layout.parallaxHeaderReferenceSize = CGSizeMake(320, 200) } ```
You could try this: ``` var layout = CSStickyHeaderFlowLayout() if (layout.isKindOfClass(CSStickyHeaderFlowLayout.self)) { layout.parallaxHeaderReferenceSize = CGSizeMake(self.view.frame.size.width, 426) layout.parallaxHeaderMinimumReferenceSize = CGSizeMake(self.view.frame.size.width, 110) layout.itemSi...
36,696,548
I have a HTML 5 video, and it plays without audio on page load. It works how I wanted. But is there a way the user can press a button and the video will pause? My Code in HTML is: ``` <video autoplay loop poster="" id="bgvid"> <source src="img/bg.mp4" type="video/webm"> <source src="img/bg.mp4" type="video/mp4"> ```...
2016/04/18
[ "https://Stackoverflow.com/questions/36696548", "https://Stackoverflow.com", "https://Stackoverflow.com/users/5739861/" ]
``` <video onclick="this.paused? this.play() : this.pause()"> ``` As commented said. Via: [How to pause a HTML5 video on an event?](https://stackoverflow.com/questions/4155329/how-to-pause-a-html5-video-on-an-event)
``` $('.btn').click( function() { $('video').get(0).pause(); }); $('video').click( function() { this.pause(); }); ```
56,746
Is there a general rule when displaying data in a grid form versus a simple tabled list? Since modern screens tend to be wider now, it makes more sense to me to start utilizing grids instead of normal lists. Do grids face any UX downfalls, since they could be harder to scan or read? Here is a sample grid layout that I...
2014/05/04
[ "https://ux.stackexchange.com/questions/56746", "https://ux.stackexchange.com", "https://ux.stackexchange.com/users/44594/" ]
Online shops often use a grid layout to present their products. According to [fact finder](http://www.fact-finder.com/blog/2011/02/25/6-tips-to-define-the-best-view-for-your-product-range-listgrid-view/), in the list view attention decreases from top to bottom while in the grid view attention is spread more evenly. So ...
The grid view might be a good solution for your case if you implement a simple filter with options like-'online','offline','device with fault' etc, I think. If you think the target audiences are more likely to view it on larger screens then the grid view might be a good option in terms of utilising space. On the other ...
56,746
Is there a general rule when displaying data in a grid form versus a simple tabled list? Since modern screens tend to be wider now, it makes more sense to me to start utilizing grids instead of normal lists. Do grids face any UX downfalls, since they could be harder to scan or read? Here is a sample grid layout that I...
2014/05/04
[ "https://ux.stackexchange.com/questions/56746", "https://ux.stackexchange.com", "https://ux.stackexchange.com/users/44594/" ]
Online shops often use a grid layout to present their products. According to [fact finder](http://www.fact-finder.com/blog/2011/02/25/6-tips-to-define-the-best-view-for-your-product-range-listgrid-view/), in the list view attention decreases from top to bottom while in the grid view attention is spread more evenly. So ...
As in all design, context and content should drive presentation. The grid format could work well on mobile, when you need to reduce the content displayed, and the table format could work well on desktop/tablet, to give additional information. If you're going to have actions for each item, then I think the table view is...
56,746
Is there a general rule when displaying data in a grid form versus a simple tabled list? Since modern screens tend to be wider now, it makes more sense to me to start utilizing grids instead of normal lists. Do grids face any UX downfalls, since they could be harder to scan or read? Here is a sample grid layout that I...
2014/05/04
[ "https://ux.stackexchange.com/questions/56746", "https://ux.stackexchange.com", "https://ux.stackexchange.com/users/44594/" ]
As in all design, context and content should drive presentation. The grid format could work well on mobile, when you need to reduce the content displayed, and the table format could work well on desktop/tablet, to give additional information. If you're going to have actions for each item, then I think the table view is...
The grid view might be a good solution for your case if you implement a simple filter with options like-'online','offline','device with fault' etc, I think. If you think the target audiences are more likely to view it on larger screens then the grid view might be a good option in terms of utilising space. On the other ...
143,278
She is not fat.She is not thin.If I change this sentence into ''neither--nor'' using ''inversion style'', > > 1.Neither thin nor fat she is. > > > 2.Neither is she thin nor is she fat. > > > Which is more correct?
2017/09/27
[ "https://ell.stackexchange.com/questions/143278", "https://ell.stackexchange.com", "https://ell.stackexchange.com/users/49026/" ]
It is more usual to keep the normal word order for the first clause and use inverted order for the second clause of such sentences, in a *not-neither* or *not-nor* pattern: > > She is **not** thin, **nor** is she fat. > > > She is **not** thin; **neither** is she fat. > > > (Of course, the most usual phrasing ...
From the sentences you have provided, let me go out on a limb and point out that the first sentence is grammatically incorrect. The second sentence is correct, and clearly the best among the two. You could use any of these: > > * Neither is she thin nor is she fat. > * She is neither thin nor fat. > > > Also, i...
66,613,583
I am using SQL Server and I have the following table `exampleTable` in my database: | exampleGroup | exampleName | exampleValue | | --- | --- | --- | | A | name1 | 100 | | B | name2 | 500 | | C | name3 | 300 | | B | name4 | 700 | | A | name5 | 500 | | C | name6 | 600 | My goal is to return the following result, where...
2021/03/13
[ "https://Stackoverflow.com/questions/66613583", "https://Stackoverflow.com", "https://Stackoverflow.com/users/10232665/" ]
You need a subquery: ``` SELECT c.* FROM (SELECT Continent, Name, SurfaceArea, AVG(SurfaceArea) OVER (PARTITION BY Continent) AS AvgPerContinent FROM country c ) c WHERE SurfaceArea > AvgPerContinent; ``` Window functions are not allowed in the `WHERE` clause. There is a simple reason: If you...
You can not use window function in where clause. But you can use it in subquery as below: ``` select * from ( SELECT Continent, Name, SurfaceArea, AVG(SurfaceArea) OVER (PARTITION BY Continent) AS AvgPerContinent, AVG(SurfaceArea) OVER (PARTITION BY Continent) AS avgSurfaceArea FROM country )t where ...
52,701,477
Can someone help me with the following: I have an issue with "`Set ch1 =`" The file name (or rather the last few characters of its name change slightly everyday), thus I need to add wildcard (\*) or something similar. How do I do "Set ch1 =" with a file, which name changes? Here is part of the code I have develop...
2018/10/08
[ "https://Stackoverflow.com/questions/52701477", "https://Stackoverflow.com", "https://Stackoverflow.com/users/8356237/" ]
Try this: ``` Sub test_partial_name() Dim pt_nm As Workbook For Each pt_nm In Application.Workbooks If (pt_nm.Name) Like "Sum1#123.csv" Then Exit For End If Next pt_nm If Not pt_nm Is Nothing Then pt_nm.Activate Else MsgBox "The file has not opened!" End If With Sheets(1) Cells(1, 1).Value = "its working...
A way to do it is to loop through the collection of workbooks with `For Each wkb in Workbooks` and to check the name of every iterated workbook with `Like`. There, you may use `*`, `#`, `?`, etc (see the screenshot). Once you find what you need assign it to the `wbkSpecific` and exit the collection with `Exit For`: ``...
65,444,616
I want to get all `oneKmer`s that don't exist in `in.txt`. `in.txt` is sorted in the same order as `oneKmer` at column 0. It should be doable in O(N) instead of O(N^2) since both lists are in the same order. How can I write this ? ```py import csv import itertools tsvfile = open('in.txt', "r") tsvreader = csv.re...
2020/12/25
[ "https://Stackoverflow.com/questions/65444616", "https://Stackoverflow.com", "https://Stackoverflow.com/users/159695/" ]
This example is badly designed and confusing. The `formSubmit` function will only be called when the button is clicked. When the button is clicked, that function will run, and *nothing else* will happen; since the input is not a submit button, the form will not attempt to submit. All network activity will result from ...
The `method` attribute in HTML Form is used to send the form data when you're sending it without the help of an Ajax Request or any other scripting language. When you use a scripting language like JS and Jquery, you have the chance to send the data via an AJAX request. Inside the AJAX request, you can define the metho...
65,444,616
I want to get all `oneKmer`s that don't exist in `in.txt`. `in.txt` is sorted in the same order as `oneKmer` at column 0. It should be doable in O(N) instead of O(N^2) since both lists are in the same order. How can I write this ? ```py import csv import itertools tsvfile = open('in.txt', "r") tsvreader = csv.re...
2020/12/25
[ "https://Stackoverflow.com/questions/65444616", "https://Stackoverflow.com", "https://Stackoverflow.com/users/159695/" ]
This example is badly designed and confusing. The `formSubmit` function will only be called when the button is clicked. When the button is clicked, that function will run, and *nothing else* will happen; since the input is not a submit button, the form will not attempt to submit. All network activity will result from ...
The form tag gives support by giving several inbuilt default actions, but since you have defined a submit button and made a function to be executed onclick manually, so the form tag will only confuse the structure. So it's better to remove the form tag completely and you code will look like ``` <input type="text" ...
65,444,616
I want to get all `oneKmer`s that don't exist in `in.txt`. `in.txt` is sorted in the same order as `oneKmer` at column 0. It should be doable in O(N) instead of O(N^2) since both lists are in the same order. How can I write this ? ```py import csv import itertools tsvfile = open('in.txt', "r") tsvreader = csv.re...
2020/12/25
[ "https://Stackoverflow.com/questions/65444616", "https://Stackoverflow.com", "https://Stackoverflow.com/users/159695/" ]
This example is badly designed and confusing. The `formSubmit` function will only be called when the button is clicked. When the button is clicked, that function will run, and *nothing else* will happen; since the input is not a submit button, the form will not attempt to submit. All network activity will result from ...
Actually `method` and `action` tags are useful when you are not using any ajax request. ➡️ Suppose you are not using the `ajax` request then what will happen? 1. Since your `method` is `POST` it'll append the form-data inside the body of the HTTP request. 2. Then the form-data is sent to the page specified in the `ac...
59,309,675
I'm trying to pass a file to my aspnet project without using FormData, all the values are sent but the file itself. So I was able to `if ($('#Prop').get(0).files.length === 0` check if theres something in there but I can't send it. The model behind has a `HttpPostedFileBase` property and I was trying to send with : `$...
2019/12/12
[ "https://Stackoverflow.com/questions/59309675", "https://Stackoverflow.com", "https://Stackoverflow.com/users/10881932/" ]
If you are using MVC structure you can use below code: MVC razar syntax provides **@Ajax.Beginform()**, here you can send "multipart/form-data". ``` @using (Ajax.BeginForm("action", YourController, new { id= Model.Id }, new AjaxOptions {needed options }, new { enctype = "multipart/form-data" })) { <input type="fi...
You can use this to send file to controller in view function UploadTemplate() { ``` var filename = $("#ProcessTemplateUpload").val(); var re = /\..+$/; var ext = filename.match(re); if (ext == '.xlsx' || ext == '.XLSX' || ext == '.xls' || ext == '.XLS') { var data = new FormData(); v...
59,309,675
I'm trying to pass a file to my aspnet project without using FormData, all the values are sent but the file itself. So I was able to `if ($('#Prop').get(0).files.length === 0` check if theres something in there but I can't send it. The model behind has a `HttpPostedFileBase` property and I was trying to send with : `$...
2019/12/12
[ "https://Stackoverflow.com/questions/59309675", "https://Stackoverflow.com", "https://Stackoverflow.com/users/10881932/" ]
If you are using MVC structure you can use below code: MVC razar syntax provides **@Ajax.Beginform()**, here you can send "multipart/form-data". ``` @using (Ajax.BeginForm("action", YourController, new { id= Model.Id }, new AjaxOptions {needed options }, new { enctype = "multipart/form-data" })) { <input type="fi...
Here is the Complete Example, ```html <div class="item form-group"> <label class="control-label col-md-3 col-sm-3 col-xs-12" for="logo"> Logo <span class="required">*</span> </label> <div class="col-md-6 col-sm-6 col-xs-12"> <input id="CouncilLogo" class=" col-md-12 col-xs-12" name="Logo" type="file" > </div> <d...
50,444,700
I have a table below: ``` CREATE TABLE jun_t AS SELECT 1 seq, -2000 amt FROM dual UNION ALL SELECT 2, 4000 FROM dual UNION ALL SELECT 3, -5000 FROM dual UNION ALL SELECT 4, -2000 FROM dual UNION ALL SELECT 5, 3000 FROM dual UNION ALL SELECT 6, 1500 FROM dual UNION ALL SELECT 7, -250 FROM dual UNION ALL SELECT 8, 320 F...
2018/05/21
[ "https://Stackoverflow.com/questions/50444700", "https://Stackoverflow.com", "https://Stackoverflow.com/users/-1/" ]
You use classes such as `col-md-6` and `col-md-3`, these are for medium sized screens., for mobiles, you need classes such as `col-6` and `col-3`. See [here](https://getbootstrap.com/docs/4.0/layout/grid/#grid-options) for examples and definitions
For design to be responsive for mobile devices, use bootstrap classes like col-xs-3, col-xs-6. "col-xs-\*" is used to target mobile devices having width greater than 230 and less than 768. Also use @media screen {} to target specific style to specific width mobile device.
50,444,700
I have a table below: ``` CREATE TABLE jun_t AS SELECT 1 seq, -2000 amt FROM dual UNION ALL SELECT 2, 4000 FROM dual UNION ALL SELECT 3, -5000 FROM dual UNION ALL SELECT 4, -2000 FROM dual UNION ALL SELECT 5, 3000 FROM dual UNION ALL SELECT 6, 1500 FROM dual UNION ALL SELECT 7, -250 FROM dual UNION ALL SELECT 8, 320 F...
2018/05/21
[ "https://Stackoverflow.com/questions/50444700", "https://Stackoverflow.com", "https://Stackoverflow.com/users/-1/" ]
You use classes such as `col-md-6` and `col-md-3`, these are for medium sized screens., for mobiles, you need classes such as `col-6` and `col-3`. See [here](https://getbootstrap.com/docs/4.0/layout/grid/#grid-options) for examples and definitions
> > "Can you say why do this code is not adapt to different mobile > devices?" > > > The meta tag is wrong. It should be: `<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">` The page will **never** be responsive without the correct meta tag. [Please **read the documentation*...
50,444,700
I have a table below: ``` CREATE TABLE jun_t AS SELECT 1 seq, -2000 amt FROM dual UNION ALL SELECT 2, 4000 FROM dual UNION ALL SELECT 3, -5000 FROM dual UNION ALL SELECT 4, -2000 FROM dual UNION ALL SELECT 5, 3000 FROM dual UNION ALL SELECT 6, 1500 FROM dual UNION ALL SELECT 7, -250 FROM dual UNION ALL SELECT 8, 320 F...
2018/05/21
[ "https://Stackoverflow.com/questions/50444700", "https://Stackoverflow.com", "https://Stackoverflow.com/users/-1/" ]
> > "Can you say why do this code is not adapt to different mobile > devices?" > > > The meta tag is wrong. It should be: `<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">` The page will **never** be responsive without the correct meta tag. [Please **read the documentation*...
For design to be responsive for mobile devices, use bootstrap classes like col-xs-3, col-xs-6. "col-xs-\*" is used to target mobile devices having width greater than 230 and less than 768. Also use @media screen {} to target specific style to specific width mobile device.
10,355,375
When I check the avability of a .de-domain with fsockopen it delivers always a result, but when do the same with cURL around 75% of the queries fail. curl\_errno then delivers error-code 56 (CURLE\_RECV\_ERROR). When I try to check .com-domain with whois.crsnic.net then cURL works fine, everytime. Only whois.denic.de m...
2012/04/27
[ "https://Stackoverflow.com/questions/10355375", "https://Stackoverflow.com", "https://Stackoverflow.com/users/558559/" ]
`whois.denic.de` requires `-T dn` to be prepended before your request. E.g.: ``` curl_setopt($ch, CURLOPT_CUSTOMREQUEST, "-T dn $domain\r\n"); // Query ```
Are you in linux or windows? If in linux just execute: ``` system('whois google.de'); ```
37,241,065
I have a mysql field type "tinytext" and am using performing and update via my form with following extract: ``` <!-- Text input <div class="control-group"> <label class="control-label" for="myinput"> Input code</label> <div class="controls"> <textarea class="form-control" id="myinput" name="myinput" rows="4" ><...
2016/05/15
[ "https://Stackoverflow.com/questions/37241065", "https://Stackoverflow.com", "https://Stackoverflow.com/users/6323760/" ]
``` TINYTEXT - 256 bytes TEXT - 65,535 bytes MEDIUMTEXT - 16,777,215 bytes LONGTEXT - 4,294,967,295 bytes ``` As OP clearly mentioned "*..field is not recieving the data properly.*" And, need to insert 4 lines in `<textarea>`. So, from my side `text` field type should be used for `myinput` textarea. For more info, P...
Use `text` data type, when storing text. As I don't know what do you mean with "not receiving data properly", you should also process user input in your backend, to store it as you need (for example, if it has multiple lines, you can replace them with `\n` or `<br />` if you want to output data later).
19,212,524
I shutdown a VS2010 project yesterday and everything was working well. I opened it up today and one of the .cpp files has green formatting on the parenthesis, semi-colons, and colons (see attached photo). Auto-complete is also not working. I've deleted the .sdf file for the project, as that usually fixes the auto-com...
2013/10/06
[ "https://Stackoverflow.com/questions/19212524", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2521274/" ]
``` In [13]: import itertools as IT In [17]: p = IT.permutations(range(10), 2) In [18]: list(IT.starmap('{}{}'.format, p)) Out[18]: ['01', '02', '03', '04', ... ```
Use a list comprehension: ``` p = permutations(range(10), 2) result = [ "%d%d" % (x[0], x[1]) for x in p ] ```
19,212,524
I shutdown a VS2010 project yesterday and everything was working well. I opened it up today and one of the .cpp files has green formatting on the parenthesis, semi-colons, and colons (see attached photo). Auto-complete is also not working. I've deleted the .sdf file for the project, as that usually fixes the auto-com...
2013/10/06
[ "https://Stackoverflow.com/questions/19212524", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2521274/" ]
A (probably not most efficient) one-liner: ``` ["".join([str(x) for x in elem]) for elem in p] ``` Or: ``` [("%d"*len(p[0]))%(elem) for elem in p] ```
Use a list comprehension: ``` p = permutations(range(10), 2) result = [ "%d%d" % (x[0], x[1]) for x in p ] ```
19,212,524
I shutdown a VS2010 project yesterday and everything was working well. I opened it up today and one of the .cpp files has green formatting on the parenthesis, semi-colons, and colons (see attached photo). Auto-complete is also not working. I've deleted the .sdf file for the project, as that usually fixes the auto-com...
2013/10/06
[ "https://Stackoverflow.com/questions/19212524", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2521274/" ]
Just aggregate each result: ``` p = permutations(range(10), 2) result = [str(x[0]) + str(x[1]) for x in p] ```
As John Clements and I pointed out in comments, its possible to make the strings or numbers you want without doing a permutation. Two-permutations of digits 0 to 9 simply represent integers from 1 to 98 that don't have any repeated digits. Conveniently, all 2-digit numbers with repeated digits are multiples of 11, so ...
19,212,524
I shutdown a VS2010 project yesterday and everything was working well. I opened it up today and one of the .cpp files has green formatting on the parenthesis, semi-colons, and colons (see attached photo). Auto-complete is also not working. I've deleted the .sdf file for the project, as that usually fixes the auto-com...
2013/10/06
[ "https://Stackoverflow.com/questions/19212524", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2521274/" ]
``` In [13]: import itertools as IT In [17]: p = IT.permutations(range(10), 2) In [18]: list(IT.starmap('{}{}'.format, p)) Out[18]: ['01', '02', '03', '04', ... ```
This works: ``` >>> from itertools import permutations >>> ["%i%i" % (a,b) for a,b in permutations(range(10), 2)] ['01', '02', '03', '04', '05', '06', '07', '08', '09', '10', '12', '13', '14', '15', '16', '17', '18', '19', '20', '21', '23', '24', '25', '26', '27', '28', '29', '30', '31', '32', '34', '35', '36', '37',...
19,212,524
I shutdown a VS2010 project yesterday and everything was working well. I opened it up today and one of the .cpp files has green formatting on the parenthesis, semi-colons, and colons (see attached photo). Auto-complete is also not working. I've deleted the .sdf file for the project, as that usually fixes the auto-com...
2013/10/06
[ "https://Stackoverflow.com/questions/19212524", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2521274/" ]
A (probably not most efficient) one-liner: ``` ["".join([str(x) for x in elem]) for elem in p] ``` Or: ``` [("%d"*len(p[0]))%(elem) for elem in p] ```
This works: ``` >>> from itertools import permutations >>> ["%i%i" % (a,b) for a,b in permutations(range(10), 2)] ['01', '02', '03', '04', '05', '06', '07', '08', '09', '10', '12', '13', '14', '15', '16', '17', '18', '19', '20', '21', '23', '24', '25', '26', '27', '28', '29', '30', '31', '32', '34', '35', '36', '37',...
19,212,524
I shutdown a VS2010 project yesterday and everything was working well. I opened it up today and one of the .cpp files has green formatting on the parenthesis, semi-colons, and colons (see attached photo). Auto-complete is also not working. I've deleted the .sdf file for the project, as that usually fixes the auto-com...
2013/10/06
[ "https://Stackoverflow.com/questions/19212524", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2521274/" ]
``` In [13]: import itertools as IT In [17]: p = IT.permutations(range(10), 2) In [18]: list(IT.starmap('{}{}'.format, p)) Out[18]: ['01', '02', '03', '04', ... ```
As John Clements and I pointed out in comments, its possible to make the strings or numbers you want without doing a permutation. Two-permutations of digits 0 to 9 simply represent integers from 1 to 98 that don't have any repeated digits. Conveniently, all 2-digit numbers with repeated digits are multiples of 11, so ...
19,212,524
I shutdown a VS2010 project yesterday and everything was working well. I opened it up today and one of the .cpp files has green formatting on the parenthesis, semi-colons, and colons (see attached photo). Auto-complete is also not working. I've deleted the .sdf file for the project, as that usually fixes the auto-com...
2013/10/06
[ "https://Stackoverflow.com/questions/19212524", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2521274/" ]
Use a list comprehension: ``` p = permutations(range(10), 2) result = [ "%d%d" % (x[0], x[1]) for x in p ] ```
This works: ``` >>> from itertools import permutations >>> ["%i%i" % (a,b) for a,b in permutations(range(10), 2)] ['01', '02', '03', '04', '05', '06', '07', '08', '09', '10', '12', '13', '14', '15', '16', '17', '18', '19', '20', '21', '23', '24', '25', '26', '27', '28', '29', '30', '31', '32', '34', '35', '36', '37',...
19,212,524
I shutdown a VS2010 project yesterday and everything was working well. I opened it up today and one of the .cpp files has green formatting on the parenthesis, semi-colons, and colons (see attached photo). Auto-complete is also not working. I've deleted the .sdf file for the project, as that usually fixes the auto-com...
2013/10/06
[ "https://Stackoverflow.com/questions/19212524", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2521274/" ]
Just aggregate each result: ``` p = permutations(range(10), 2) result = [str(x[0]) + str(x[1]) for x in p] ```
This works: ``` >>> from itertools import permutations >>> ["%i%i" % (a,b) for a,b in permutations(range(10), 2)] ['01', '02', '03', '04', '05', '06', '07', '08', '09', '10', '12', '13', '14', '15', '16', '17', '18', '19', '20', '21', '23', '24', '25', '26', '27', '28', '29', '30', '31', '32', '34', '35', '36', '37',...
19,212,524
I shutdown a VS2010 project yesterday and everything was working well. I opened it up today and one of the .cpp files has green formatting on the parenthesis, semi-colons, and colons (see attached photo). Auto-complete is also not working. I've deleted the .sdf file for the project, as that usually fixes the auto-com...
2013/10/06
[ "https://Stackoverflow.com/questions/19212524", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2521274/" ]
Just aggregate each result: ``` p = permutations(range(10), 2) result = [str(x[0]) + str(x[1]) for x in p] ```
A (probably not most efficient) one-liner: ``` ["".join([str(x) for x in elem]) for elem in p] ``` Or: ``` [("%d"*len(p[0]))%(elem) for elem in p] ```
19,212,524
I shutdown a VS2010 project yesterday and everything was working well. I opened it up today and one of the .cpp files has green formatting on the parenthesis, semi-colons, and colons (see attached photo). Auto-complete is also not working. I've deleted the .sdf file for the project, as that usually fixes the auto-com...
2013/10/06
[ "https://Stackoverflow.com/questions/19212524", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2521274/" ]
Just aggregate each result: ``` p = permutations(range(10), 2) result = [str(x[0]) + str(x[1]) for x in p] ```
``` In [13]: import itertools as IT In [17]: p = IT.permutations(range(10), 2) In [18]: list(IT.starmap('{}{}'.format, p)) Out[18]: ['01', '02', '03', '04', ... ```
43,310,262
I try to sorting a double array.An odd element should ascending order.An even element should descending.My classes is as follow. When I runned project I show Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: 0 ``` package com.fatih.sortarray; import java.util.ArrayList; import java.util.Arrays; i...
2017/04/09
[ "https://Stackoverflow.com/questions/43310262", "https://Stackoverflow.com", "https://Stackoverflow.com/users/5764356/" ]
You should do a select on the date for each table and union the results together. Then you can take the max of this column in the union. The date columns don't need to have the same name, but they need to be the same datatype. ``` Select Max(X.date) From ( Select last_update_date as "date" from customer Union Sele...
``` --if you want the table name with the max timestamp select * from ( select 'TABLE1' as TABLENAME, MAX(datetimestampcolumn) as datetimestampcolumn from TABLE1 union all select 'TABLE2' as TABLENAME, MAX(datetimestampcolumn) as datetimestampcolumn from TABLE2 union all select 'TABLE3' as TABLENAME, MAX(datetimest...
63,042,701
We are choosing a CMS platform for a big old solution. It's preferable to have site **on-premise**, not in cloud (company policy) and a lifelong license. Does anyone have experience with building a solution with similar characteristics on **Umbraco / Episerver / Sitecore / Sitefinity:** ~ 4-20 mln visits a day (3 sit...
2020/07/22
[ "https://Stackoverflow.com/questions/63042701", "https://Stackoverflow.com", "https://Stackoverflow.com/users/4395245/" ]
All CMS vendors mentioned support both on-premise and cloud hosting and can easily handle such loads (if properly implemented). Episerver has sophisticated search and recommendation engines, although those rely on cloud services even if the CMS itself is hosted on-premise. A headless approach can be great from a tech...
The idea is to use combine `Rich Content Management facilities provided by CMS` + `Unlimited scaling options and performance`([Content Delivery Networks](https://en.wikipedia.org/wiki/Content_delivery_network)) Content from [Sitecore](https://www.sitecore.com/) is published to CDN via [Uniform](https://uniform.dev/). ...
33,820
I have the following question: Is the following statement true or false? \*\* All logs to base 2 log2n is a memeber of O(log(n)) My attempt: log2n - clogn <= 0 log2 + logn - clogn <= 0 1 + logn(1-c) <= 0 Now correct me if I'm wrong, but I have to find values for n (variable) and c (constant) which either prov...
2011/04/19
[ "https://math.stackexchange.com/questions/33820", "https://math.stackexchange.com", "https://math.stackexchange.com/users/9492/" ]
To prove $f(n)\in O(\log(n))$ you need to show that (for $n$ large enough), $f(n) \lt c \log(n)$. You get to choose $c$ and the minimum $n$ for which it applies, but it has to be true for all larger $n$. In your case $c=1$ doesn't work, but $c=2$ does. That is fine, you just need one. If we define a new function $g(n)=...
Let $a>0$ constant. Then: $\log\_a(n) = \frac{\ln(n)}{\ln(a)} \in \mathcal{O}(\ln(n))$ Therefore, all logarithms share one $\mathcal{O}$-class.
33,820
I have the following question: Is the following statement true or false? \*\* All logs to base 2 log2n is a memeber of O(log(n)) My attempt: log2n - clogn <= 0 log2 + logn - clogn <= 0 1 + logn(1-c) <= 0 Now correct me if I'm wrong, but I have to find values for n (variable) and c (constant) which either prov...
2011/04/19
[ "https://math.stackexchange.com/questions/33820", "https://math.stackexchange.com", "https://math.stackexchange.com/users/9492/" ]
$$\log\_2(2n)=\log\_2(2)+\log\_2(n)\leq \log\_2(n)+\log\_2(n)=2\log\_2(n)$$ for $n\geq 2$.
Let $a>0$ constant. Then: $\log\_a(n) = \frac{\ln(n)}{\ln(a)} \in \mathcal{O}(\ln(n))$ Therefore, all logarithms share one $\mathcal{O}$-class.
15,696,527
I'm looking for a means to get the height and width of images from a given path locally. I know about imagemagick and graphicmagick but I'd prefer a method that doesn't involve installing extra software to the OS. If I can keep it to node modules that would be fantastic. Does anyone have any ideas that may help me? W...
2013/03/29
[ "https://Stackoverflow.com/questions/15696527", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1919435/" ]
You can use [JIMP](https://www.npmjs.com/package/jimp)(JavaScript Image Manipulation Program). An image processing library for Node written entirely in JavaScript, with zero external or native dependencies. It has so many other image manipulation options available if you want. ``` var Jimp = require('jimp'); var image...
You can use a pure JS node module <https://www.npmjs.org/package/image-size> .. doesn't require installing anything extra ``` var sizeOf = require('image-size'); var dimensions = sizeOf('images/funny-cats.png'); console.log(dimensions.width, dimensions.height); ```
4,199,854
I want to integrate a "share" button that syncs: * With Facebook * With twitter * With mail * With linkedin * With ... I can integrate all of this by myself but maybe already exists a library that does all. How can I do it?
2010/11/16
[ "https://Stackoverflow.com/questions/4199854", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20409/" ]
Try `ShareKit`?
Could you try: <https://www.addthis.com/> Don't forget replace your API Keys.
17,277,370
I'm trying to get this script to `cat` a file and `grep` each line for `877` and for each line found, print the first column which is an IP and store it in hosts. It get stuck on `awk` every time. I run `sh -x some.sh` to see where it is hung up. Should I print to a file instead of a list? Why does it get stuck on `awk...
2013/06/24
[ "https://Stackoverflow.com/questions/17277370", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2516453/" ]
It can all be done using awk: ``` hosts=( $(awk '/877/{print $1}' $FILENAME) ) echo "${hosts[@]}" ```
Try `echo $line | awk '{print $1}'`
17,277,370
I'm trying to get this script to `cat` a file and `grep` each line for `877` and for each line found, print the first column which is an IP and store it in hosts. It get stuck on `awk` every time. I run `sh -x some.sh` to see where it is hung up. Should I print to a file instead of a list? Why does it get stuck on `awk...
2013/06/24
[ "https://Stackoverflow.com/questions/17277370", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2516453/" ]
It can all be done using awk: ``` hosts=( $(awk '/877/{print $1}' $FILENAME) ) echo "${hosts[@]}" ```
To answer this thread based on the original code, and a corrected version/code-review: ``` #ideally use variable names that do not exist as a command hosts=() FILENAME="/home/somethin/.hosts.conf" ips=`cat $FILENAME | grep '322'` for line in $ips; do hosts+=("`echo $line | awk '{print $1}'`") #alternative...
17,277,370
I'm trying to get this script to `cat` a file and `grep` each line for `877` and for each line found, print the first column which is an IP and store it in hosts. It get stuck on `awk` every time. I run `sh -x some.sh` to see where it is hung up. Should I print to a file instead of a list? Why does it get stuck on `awk...
2013/06/24
[ "https://Stackoverflow.com/questions/17277370", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2516453/" ]
To answer this thread based on the original code, and a corrected version/code-review: ``` #ideally use variable names that do not exist as a command hosts=() FILENAME="/home/somethin/.hosts.conf" ips=`cat $FILENAME | grep '322'` for line in $ips; do hosts+=("`echo $line | awk '{print $1}'`") #alternative...
Try `echo $line | awk '{print $1}'`
4,559,541
I want to animate a div from top down. I think the idea is animate the height from 0 to its rendered width. But before it is shown I don't know the rendered width, how to write the code to animate this? It's like: `$.animate({"width":"auto"})`
2010/12/30
[ "https://Stackoverflow.com/questions/4559541", "https://Stackoverflow.com", "https://Stackoverflow.com/users/197036/" ]
You need to grab the width using `.width()` like so: ``` var $el = $("#elementID"); $el.animate({height: $el.width()}); ```
using .width() will not return the full computed width including the border/padding etc... for this purpose i would use .outerWidth() and pass the optional true to include the margins. ``` $('element').animate({height: $('element').outerWidth(true)}); ```
4,559,541
I want to animate a div from top down. I think the idea is animate the height from 0 to its rendered width. But before it is shown I don't know the rendered width, how to write the code to animate this? It's like: `$.animate({"width":"auto"})`
2010/12/30
[ "https://Stackoverflow.com/questions/4559541", "https://Stackoverflow.com", "https://Stackoverflow.com/users/197036/" ]
You need to grab the width using `.width()` like so: ``` var $el = $("#elementID"); $el.animate({height: $el.width()}); ```
``` $("#elementID").animate({height:$(this).width()}); ```
4,559,541
I want to animate a div from top down. I think the idea is animate the height from 0 to its rendered width. But before it is shown I don't know the rendered width, how to write the code to animate this? It's like: `$.animate({"width":"auto"})`
2010/12/30
[ "https://Stackoverflow.com/questions/4559541", "https://Stackoverflow.com", "https://Stackoverflow.com/users/197036/" ]
using .width() will not return the full computed width including the border/padding etc... for this purpose i would use .outerWidth() and pass the optional true to include the margins. ``` $('element').animate({height: $('element').outerWidth(true)}); ```
``` $("#elementID").animate({height:$(this).width()}); ```
27,984,935
I have been trying to test in-app-billing by uploading an apk to the Google Developer Console and trying to make a purchase. I keep getting the message The Play Store Application on your device is outdated and does not support this purchase. Yet I am using version 3.9 of Google Play. My device is an HTC Wildfire using ...
2015/01/16
[ "https://Stackoverflow.com/questions/27984935", "https://Stackoverflow.com", "https://Stackoverflow.com/users/590406/" ]
Youu need to set min sdk 8 and check all your permissions in manifest.
I have given up on this and decided not to implement inapp billing
14,497,499
I create a windows service to run a piece of code and implemented timer in it to run it periodically. My timer class is : ``` class TimerClass { private static System.Timers.Timer aTimer; public static void Main() { aTimer = new System.Timers.Timer(1000); aTimer.Elapsed += new ElapsedEv...
2013/01/24
[ "https://Stackoverflow.com/questions/14497499", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1369851/" ]
Please, read about [Constructor](http://msdn.microsoft.com/en-us/library/vstudio/ace5hbzh.aspx) your initialization code should not be in public `static void Main()`, but instead in `public TimerClass()` ``` class TimerClass { private System.Timers.Timer aTimer; public TimerClass() { aTimer = new...
You forgot to start your timer. Move it outside your elapse. Elapse is only called when your timer is expired. ``` aTimer.Start(); ``` FYI you don't need to enable your timer once you call the start method
14,497,499
I create a windows service to run a piece of code and implemented timer in it to run it periodically. My timer class is : ``` class TimerClass { private static System.Timers.Timer aTimer; public static void Main() { aTimer = new System.Timers.Timer(1000); aTimer.Elapsed += new ElapsedEv...
2013/01/24
[ "https://Stackoverflow.com/questions/14497499", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1369851/" ]
You need to call `Main` method to start timer: ``` protected override void OnStart(string[] args) { TimerClass.Main(); } ``` BTW not very good name - I think something like `Start` will be better. Also I hope this is not your app entry point method.
You forgot to start your timer. Move it outside your elapse. Elapse is only called when your timer is expired. ``` aTimer.Start(); ``` FYI you don't need to enable your timer once you call the start method
14,497,499
I create a windows service to run a piece of code and implemented timer in it to run it periodically. My timer class is : ``` class TimerClass { private static System.Timers.Timer aTimer; public static void Main() { aTimer = new System.Timers.Timer(1000); aTimer.Elapsed += new ElapsedEv...
2013/01/24
[ "https://Stackoverflow.com/questions/14497499", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1369851/" ]
Please, read about [Constructor](http://msdn.microsoft.com/en-us/library/vstudio/ace5hbzh.aspx) your initialization code should not be in public `static void Main()`, but instead in `public TimerClass()` ``` class TimerClass { private System.Timers.Timer aTimer; public TimerClass() { aTimer = new...
You need to call `Main` method to start timer: ``` protected override void OnStart(string[] args) { TimerClass.Main(); } ``` BTW not very good name - I think something like `Start` will be better. Also I hope this is not your app entry point method.
14,497,499
I create a windows service to run a piece of code and implemented timer in it to run it periodically. My timer class is : ``` class TimerClass { private static System.Timers.Timer aTimer; public static void Main() { aTimer = new System.Timers.Timer(1000); aTimer.Elapsed += new ElapsedEv...
2013/01/24
[ "https://Stackoverflow.com/questions/14497499", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1369851/" ]
Please, read about [Constructor](http://msdn.microsoft.com/en-us/library/vstudio/ace5hbzh.aspx) your initialization code should not be in public `static void Main()`, but instead in `public TimerClass()` ``` class TimerClass { private System.Timers.Timer aTimer; public TimerClass() { aTimer = new...
Try this: ``` class TimerClass { private static System.Timers.Timer aTimer; public static void Main() { aTimer = new System.Timers.Timer(1000); aTimer.Elapsed += new ElapsedEventHandler(OnTimedEvent); aTimer.Interval = 5000; GC.KeepAlive...
14,497,499
I create a windows service to run a piece of code and implemented timer in it to run it periodically. My timer class is : ``` class TimerClass { private static System.Timers.Timer aTimer; public static void Main() { aTimer = new System.Timers.Timer(1000); aTimer.Elapsed += new ElapsedEv...
2013/01/24
[ "https://Stackoverflow.com/questions/14497499", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1369851/" ]
You need to call `Main` method to start timer: ``` protected override void OnStart(string[] args) { TimerClass.Main(); } ``` BTW not very good name - I think something like `Start` will be better. Also I hope this is not your app entry point method.
Try this: ``` class TimerClass { private static System.Timers.Timer aTimer; public static void Main() { aTimer = new System.Timers.Timer(1000); aTimer.Elapsed += new ElapsedEventHandler(OnTimedEvent); aTimer.Interval = 5000; GC.KeepAlive...
46,224,236
I have several Effect listeners that need to run until the user has logged out. As such, I'm trying to implement [OnRunEffects](https://github.com/ngrx/platform/blob/master/docs/effects/api.md#controlling-effects). A segment of my user.actions.ts is: ``` export const LOAD_USER = '[Users] Load User'; export class Loa...
2017/09/14
[ "https://Stackoverflow.com/questions/46224236", "https://Stackoverflow.com", "https://Stackoverflow.com/users/598683/" ]
Correct me if I'm wrong, but you might not want to `run until the user has logged out`, you might just want to run those effects if the user is still logged in. If yes, then instead of thinking to `takeUntil`: ``` @Effect() someEffect$: Observable<Action> = this.actions$ .ofType<Your_Type>(Your_Action) .withLatest...
Try this: ``` ngrxOnRunEffects(resolvedEffects: Observable<EffectNotification>) { return this.actions .ofType(UsersActions.LOAD_USER) .exhaustMap(() => resolvedEffects.takeUntil(this.actions.ofType(AuthActions.LOGOUT_SUCCESS))) } ``` Documentation have been updated : <https://github.com/ngrx/plat...
29,220,145
I am attempting to get a file from Parse through a query. Parse is very vague on how to get files from the cloud, but I have managed to create a basic query to attempt to get a file ``` ParseQuery query = ParseUser.getQuery(); query.getInBackground(objects.get(i).getObjectId(), new GetCallback<Pars...
2015/03/23
[ "https://Stackoverflow.com/questions/29220145", "https://Stackoverflow.com", "https://Stackoverflow.com/users/4586461/" ]
In my experience, a null pointer exception on line containing the following: ``` ParseFile fileObject = (ParseFile) object.get("picture"); ``` tells me that `object` is null during the attempt to access the `get()` method. This tells me that your query is either malformed or has no matching objects on the server, mo...
Your code looks fine, you simply need to check if the current row has a file reference in it's `picture` column. If the column is empty then you will obviously get a null reference when reading it out as a `ParseFile`.
36,967,899
I'm trying to delete a row in an SQL database by an id. I have found questions here related to this but nothing seems to work, perhaps because my page is populated (dynamically?) based on selecting a variable. The rows are displayed on my page based on a dropdown (locationlab) and I have a delete button after each row....
2016/05/01
[ "https://Stackoverflow.com/questions/36967899", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3524358/" ]
You have two options. The shown code can be previewed by testing **[here](http://www.w3schools.com/html/tryit.asp?filename=tryhtml_intro)**. **(1)** Embed the video directy from DailyMotion (using i-frame) : ``` <html> <body> <iframe width="720" height="480" src="http://www.dailymotion.com/embed/video/x482s3s?autopl...
I assume you did something like this (looking in the HTML) to find the rtmp address: <https://msankhala.wordpress.com/2014/10/01/save-flash-player-video-rtmp-streaming-with-vlc-player/> I went four levels deep in iframes and I didn't find that address. Did you try on a VLC player? Good luck.
444,098
I have a battery pack consisting of 4 10 amp-hour 12 volt batteries wired in parallel. We recently bought a 2000 Watt rated HammerDown power inverter to run a 500 watt window air conditioner. The air conditioner is supposed to draw 5.6 amps. But when I connect the AC to the inverter the air conditioner always shuts off...
2019/06/17
[ "https://electronics.stackexchange.com/questions/444098", "https://electronics.stackexchange.com", "https://electronics.stackexchange.com/users/155516/" ]
Your compressor is likely run by an AC induction motor, and they take very large surge currents to start. Your inverter is rated at 2kW, and no matter how much battery capacity you have it will cut off when it reaches its overcurrent limit. If your mains voltage is 120VAC 40A would be 4080W, well above the rating of ...
John D has answered the inverter overload issue. I'll answer another part. > > With 40 amp hours shouldn't it be able to provide 40 amps of current at any moment (more than needed for surge)? > > > To understand the maximum current from the battery you need to consult the datasheet. 40 Ah is an *energy* rating (s...
444,098
I have a battery pack consisting of 4 10 amp-hour 12 volt batteries wired in parallel. We recently bought a 2000 Watt rated HammerDown power inverter to run a 500 watt window air conditioner. The air conditioner is supposed to draw 5.6 amps. But when I connect the AC to the inverter the air conditioner always shuts off...
2019/06/17
[ "https://electronics.stackexchange.com/questions/444098", "https://electronics.stackexchange.com", "https://electronics.stackexchange.com/users/155516/" ]
Your compressor is likely run by an AC induction motor, and they take very large surge currents to start. Your inverter is rated at 2kW, and no matter how much battery capacity you have it will cut off when it reaches its overcurrent limit. If your mains voltage is 120VAC 40A would be 4080W, well above the rating of ...
Motors when starting draw from 3x ( soft-start 3 phase type) to 5x typ to 8x with Start-Cap surge current to 12x for high-efficiency BLDC motors. (10x typ) **Your inverter is unable to handle the startup load.** It is intended for Blenders, Vacuums and Power Tools and not an air-conditioner compressor which has a much...
444,098
I have a battery pack consisting of 4 10 amp-hour 12 volt batteries wired in parallel. We recently bought a 2000 Watt rated HammerDown power inverter to run a 500 watt window air conditioner. The air conditioner is supposed to draw 5.6 amps. But when I connect the AC to the inverter the air conditioner always shuts off...
2019/06/17
[ "https://electronics.stackexchange.com/questions/444098", "https://electronics.stackexchange.com", "https://electronics.stackexchange.com/users/155516/" ]
John D has answered the inverter overload issue. I'll answer another part. > > With 40 amp hours shouldn't it be able to provide 40 amps of current at any moment (more than needed for surge)? > > > To understand the maximum current from the battery you need to consult the datasheet. 40 Ah is an *energy* rating (s...
Motors when starting draw from 3x ( soft-start 3 phase type) to 5x typ to 8x with Start-Cap surge current to 12x for high-efficiency BLDC motors. (10x typ) **Your inverter is unable to handle the startup load.** It is intended for Blenders, Vacuums and Power Tools and not an air-conditioner compressor which has a much...
33,861,916
I've seen a lot of answers to this question using jQuery. Like this: [Stop a gif animation onload, on mouseover start the activation](https://stackoverflow.com/questions/5818003/stop-a-gif-animation-onload-on-mouseover-start-the-activation) and [Animating a gif on hover](https://stackoverflow.com/questions/7473117/anim...
2015/11/23
[ "https://Stackoverflow.com/questions/33861916", "https://Stackoverflow.com", "https://Stackoverflow.com/users/-1/" ]
In pure HTML ``` <img ng-repeat="project in vm.projects" ng-src="{{project.gifUrl}}" ng-init="project.gifUrl=project.staticUrl" ng-mouseover="project.gifUrl=project.dynamicUrl" ng-mouseleave="project.gifUrl=project.staticUrl"> ``` Or a mixed solution: HTML ``` <div ng-controller="myControl...
Using the technique from [Animating a gif on hover](https://stackoverflow.com/questions/7473117/animating-a-gif-on-hover), create a [directive](https://docs.angularjs.org/guide/directive) to which you provide both the url for the static gif and the animated gif, and then make it toggle between the two images on mouseov...
12,496,218
I use python ftplib to upload binary file to remote ftp server, but it always transfers less than its actually size. ps: local env is windows, remote server is linux. I use: ``` 'ftp.storbinary('STOR %s' % filename,open(filename,'rb'))' ``` I think python's api read() is not work properly, it recognizes some spe...
2012/09/19
[ "https://Stackoverflow.com/questions/12496218", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1407394/" ]
I actually just fought through this issue. I had to close the file that was being written before I opened it to upload to the FTP server. ``` out2 = open('file.csv') for r1 in cursor: out2.write(str(r1)) out2.close() ftp_census = file_loc stor_census = str("STOR egocensus_" + demoFileDate + ".csv") fc = open(ftp...
Several hard tests have been made before I understood why. First, this is not a bug in python. Because the file to be transferred hasn't been flushed to disk from memory,for this: ``` f.retrbinary('RETR '+filename, filehandler.write, bufsize) ``` After doing this, file handler is not closed explicitly, `retrbinary`...
94,709
I have to remove these rivets (see pics). What tool can I use for that? [![enter image description here](https://i.stack.imgur.com/qtA2F.jpg)](https://i.stack.imgur.com/qtA2F.jpg) [![enter image description here](https://i.stack.imgur.com/pFaAr.jpg)](https://i.stack.imgur.com/pFaAr.jpg) [![enter image description h...
2016/07/20
[ "https://diy.stackexchange.com/questions/94709", "https://diy.stackexchange.com", "https://diy.stackexchange.com/users/56608/" ]
Those are [rivets](https://en.wikipedia.org/wiki/Rivet) (specifically pop-rivets), they are a permanent fastener not intended to be easily or routinely disassembled and reassembled. [![enter image description here](https://i.stack.imgur.com/ANWmg.jpg)](https://i.stack.imgur.com/ANWmg.jpg) There are many ways to remov...
I always drill. Works like a charm, rivet's metal is quite soft. On the third picture, rivet et gone already, you should be able to push it out.
11,690,351
Given a list of States, as in USA States, I am trying to write an algorithm to tell whether or not the States are contiguous. The order does not matter and states can be revisited. Examples: * `AZ, CA, OR, WA` are contiguous * `AZ, CA, NM, UT` are contiguous * `AZ, NM, OR, WA` are not contiguous Assumptions: 1. I ...
2012/07/27
[ "https://Stackoverflow.com/questions/11690351", "https://Stackoverflow.com", "https://Stackoverflow.com/users/644969/" ]
It sounds like the best solution would be just a breadth-first search through the graph of states. Something like (using the first list as an example): * Create a queue of states to examine. To start, it is empty. * Pick the a state on the list, e.g. `CA`, add it to the queue. Then loop as follows: * Dequeue a stat...
Have a look at [Flood Filling](https://stackoverflow.com/questions/1348783/finding-all-disconnected-subgraphs-in-a-graph) in graph theory. You would want to "paint" each connected node in your tree and then at the end check if any of your states remain unconnected. It doesn't matter how you traverse the graph to do the...
11,690,351
Given a list of States, as in USA States, I am trying to write an algorithm to tell whether or not the States are contiguous. The order does not matter and states can be revisited. Examples: * `AZ, CA, OR, WA` are contiguous * `AZ, CA, NM, UT` are contiguous * `AZ, NM, OR, WA` are not contiguous Assumptions: 1. I ...
2012/07/27
[ "https://Stackoverflow.com/questions/11690351", "https://Stackoverflow.com", "https://Stackoverflow.com/users/644969/" ]
It sounds like the best solution would be just a breadth-first search through the graph of states. Something like (using the first list as an example): * Create a queue of states to examine. To start, it is empty. * Pick the a state on the list, e.g. `CA`, add it to the queue. Then loop as follows: * Dequeue a stat...
Create a connectivity matrix of the subset of states in question (a `N*N` boolean matrix that includes a row and a column for each state in the subset, with `m[i,j]==true` if and only if states `i` and `j` are adjacent to each other). The run the following algorithm: ``` for (int k=0 ; k != N ; k++) for (int i=0 ...
2,990,525
The ellipse $E:=\lbrace(x,y) \in \mathbb{R^2}:x^2+y^2+xy-x-y \leq 1\rbrace$ is given. How to compute the area/Lebesgue measure of this set? Also, how an affine transformation $F: \mathbb{R^2} \to \mathbb{R^2}$ can be found such that $F(\lbrace (x,y) \in \mathbb{R^2}:x^2+y^2 \leq1 \rbrace)=E$? I know that the area of...
2018/11/08
[ "https://math.stackexchange.com/questions/2990525", "https://math.stackexchange.com", "https://math.stackexchange.com/users/604874/" ]
Let $A\subset[0,1]$ be a closed set of positive measure that doesn't contain any interval ([this](https://en.wikipedia.org/wiki/Smith%E2%80%93Volterra%E2%80%93Cantor_set), for instance). Then the function $\phi(x)=d(x,A)$ is Lipshchitz, hence absolutely continuous, and $\{\phi=0\}=A$ doesn't contain any interval.
No, any closed subset of $[0,1]$ can be the zero set of a $C^\infty$ function, and such subsets can have positive measure but no interior (e.g. a fat Cantor set).
5,312,000
I am trying to debug a program running on a remote solaris machine. I wanted to know path taken by the program during the execution just like stake trace like ``` Class A.method1 called method2 in class B Class B.method2 called method3 in class C .. ... Control returned from method2 in class B to method1 in Class A e...
2011/03/15
[ "https://Stackoverflow.com/questions/5312000", "https://Stackoverflow.com", "https://Stackoverflow.com/users/615971/" ]
If you want to trace the execution of your Java code you can use a tool called [InTrace](http://mchr3k.github.com/org.intrace/). InTrace supports outputting the trace from a Java program to disk or over the network to the InTrace UI. This should be ideal for debugging your Java program on a remote solaris machine. NO...
You could remote debug, which Eclipse supports, but may not be permitted by the system admin. The only other thing I can think of is lots and lots of logging
5,312,000
I am trying to debug a program running on a remote solaris machine. I wanted to know path taken by the program during the execution just like stake trace like ``` Class A.method1 called method2 in class B Class B.method2 called method3 in class C .. ... Control returned from method2 in class B to method1 in Class A e...
2011/03/15
[ "https://Stackoverflow.com/questions/5312000", "https://Stackoverflow.com", "https://Stackoverflow.com/users/615971/" ]
You can use Eclipse to debug remote applications, all you need to do is add a few startup parameters: <http://eclipse.dzone.com/articles/how-debug-remote-java-applicat>
Since, your remote machine runs under Solaris you could use DTrace to dynamically add probes to your running JVMs and the complete system.
5,312,000
I am trying to debug a program running on a remote solaris machine. I wanted to know path taken by the program during the execution just like stake trace like ``` Class A.method1 called method2 in class B Class B.method2 called method3 in class C .. ... Control returned from method2 in class B to method1 in Class A e...
2011/03/15
[ "https://Stackoverflow.com/questions/5312000", "https://Stackoverflow.com", "https://Stackoverflow.com/users/615971/" ]
You can use Eclipse to debug remote applications, all you need to do is add a few startup parameters: <http://eclipse.dzone.com/articles/how-debug-remote-java-applicat>
If you want to trace the execution of your Java code you can use a tool called [InTrace](http://mchr3k.github.com/org.intrace/). InTrace supports outputting the trace from a Java program to disk or over the network to the InTrace UI. This should be ideal for debugging your Java program on a remote solaris machine. NO...
5,312,000
I am trying to debug a program running on a remote solaris machine. I wanted to know path taken by the program during the execution just like stake trace like ``` Class A.method1 called method2 in class B Class B.method2 called method3 in class C .. ... Control returned from method2 in class B to method1 in Class A e...
2011/03/15
[ "https://Stackoverflow.com/questions/5312000", "https://Stackoverflow.com", "https://Stackoverflow.com/users/615971/" ]
You can use Eclipse to debug remote applications, all you need to do is add a few startup parameters: <http://eclipse.dzone.com/articles/how-debug-remote-java-applicat>
in such cases I have used Btrace <https://dzone.com/articles/introduction-btrace> , it doesn't require you to setup a remote debugger, nor to have the source code of your Java application. Another way is to run jdb <https://docs.oracle.com/javase/7/docs/technotes/tools/windows/jdb.html> and attach to the process - bu...
5,312,000
I am trying to debug a program running on a remote solaris machine. I wanted to know path taken by the program during the execution just like stake trace like ``` Class A.method1 called method2 in class B Class B.method2 called method3 in class C .. ... Control returned from method2 in class B to method1 in Class A e...
2011/03/15
[ "https://Stackoverflow.com/questions/5312000", "https://Stackoverflow.com", "https://Stackoverflow.com/users/615971/" ]
Since, your remote machine runs under Solaris you could use DTrace to dynamically add probes to your running JVMs and the complete system.
in such cases I have used Btrace <https://dzone.com/articles/introduction-btrace> , it doesn't require you to setup a remote debugger, nor to have the source code of your Java application. Another way is to run jdb <https://docs.oracle.com/javase/7/docs/technotes/tools/windows/jdb.html> and attach to the process - bu...
5,312,000
I am trying to debug a program running on a remote solaris machine. I wanted to know path taken by the program during the execution just like stake trace like ``` Class A.method1 called method2 in class B Class B.method2 called method3 in class C .. ... Control returned from method2 in class B to method1 in Class A e...
2011/03/15
[ "https://Stackoverflow.com/questions/5312000", "https://Stackoverflow.com", "https://Stackoverflow.com/users/615971/" ]
You can debug remotely with eclipse, see [this](http://www.eclipsezone.com/eclipse/forums/t53459.html)
in such cases I have used Btrace <https://dzone.com/articles/introduction-btrace> , it doesn't require you to setup a remote debugger, nor to have the source code of your Java application. Another way is to run jdb <https://docs.oracle.com/javase/7/docs/technotes/tools/windows/jdb.html> and attach to the process - bu...
5,312,000
I am trying to debug a program running on a remote solaris machine. I wanted to know path taken by the program during the execution just like stake trace like ``` Class A.method1 called method2 in class B Class B.method2 called method3 in class C .. ... Control returned from method2 in class B to method1 in Class A e...
2011/03/15
[ "https://Stackoverflow.com/questions/5312000", "https://Stackoverflow.com", "https://Stackoverflow.com/users/615971/" ]
Since, your remote machine runs under Solaris you could use DTrace to dynamically add probes to your running JVMs and the complete system.
You could remote debug, which Eclipse supports, but may not be permitted by the system admin. The only other thing I can think of is lots and lots of logging
5,312,000
I am trying to debug a program running on a remote solaris machine. I wanted to know path taken by the program during the execution just like stake trace like ``` Class A.method1 called method2 in class B Class B.method2 called method3 in class C .. ... Control returned from method2 in class B to method1 in Class A e...
2011/03/15
[ "https://Stackoverflow.com/questions/5312000", "https://Stackoverflow.com", "https://Stackoverflow.com/users/615971/" ]
If you want to trace the execution of your Java code you can use a tool called [InTrace](http://mchr3k.github.com/org.intrace/). InTrace supports outputting the trace from a Java program to disk or over the network to the InTrace UI. This should be ideal for debugging your Java program on a remote solaris machine. NO...
in such cases I have used Btrace <https://dzone.com/articles/introduction-btrace> , it doesn't require you to setup a remote debugger, nor to have the source code of your Java application. Another way is to run jdb <https://docs.oracle.com/javase/7/docs/technotes/tools/windows/jdb.html> and attach to the process - bu...
5,312,000
I am trying to debug a program running on a remote solaris machine. I wanted to know path taken by the program during the execution just like stake trace like ``` Class A.method1 called method2 in class B Class B.method2 called method3 in class C .. ... Control returned from method2 in class B to method1 in Class A e...
2011/03/15
[ "https://Stackoverflow.com/questions/5312000", "https://Stackoverflow.com", "https://Stackoverflow.com/users/615971/" ]
You can use Eclipse to debug remote applications, all you need to do is add a few startup parameters: <http://eclipse.dzone.com/articles/how-debug-remote-java-applicat>
You can debug remotely with eclipse, see [this](http://www.eclipsezone.com/eclipse/forums/t53459.html)
5,312,000
I am trying to debug a program running on a remote solaris machine. I wanted to know path taken by the program during the execution just like stake trace like ``` Class A.method1 called method2 in class B Class B.method2 called method3 in class C .. ... Control returned from method2 in class B to method1 in Class A e...
2011/03/15
[ "https://Stackoverflow.com/questions/5312000", "https://Stackoverflow.com", "https://Stackoverflow.com/users/615971/" ]
You can use Eclipse to debug remote applications, all you need to do is add a few startup parameters: <http://eclipse.dzone.com/articles/how-debug-remote-java-applicat>
You could remote debug, which Eclipse supports, but may not be permitted by the system admin. The only other thing I can think of is lots and lots of logging
86,092
Is there a correlation between companies that have mascots (i.e. Mailchimp's Freddie) and a companies that don't? Are there studies to show that having a mascot increases engagement/happiness etc? The dreaded paperclip from MS Word was generally used for educational/informative purposes, however Freddie behaves like a...
2015/10/21
[ "https://ux.stackexchange.com/questions/86092", "https://ux.stackexchange.com", "https://ux.stackexchange.com/users/67232/" ]
Yes, there are studies that show that having a mascot increases engagement etc. East Tennessee State University has published an Undergraduate Honours Thesis entitled: *[Analyzing the effects of brand mascots on social media: Johnson City Power Board case study](https://www.google.com.au/url?sa=t&rct=j&q=&esrc=s&sourc...
I know this is not the answer that you are looking for, but having looked at your question I can think of lots of reasons why such studies are not commonly done and perhaps not very visible or useful: * **Objectivity**: If the study is done by the company or business that created the mascot, they are hardly going to l...
51,753,005
I have a layout in my application which comprises of some text and a timestamp. I'm looking to have the timestamp (clock icon in the picture) be at the bottom left corner of the expanded widget, while the text ("what" string in the picture) should start from the top right. **Representation:** ``` |text| ...
2018/08/08
[ "https://Stackoverflow.com/questions/51753005", "https://Stackoverflow.com", "https://Stackoverflow.com/users/6822876/" ]
try using **alignment: Alignment.bottomRight** as a named parameter of **Container** class
Ok, so I modified your `Widget` and I added some Colors to the container to track the changes very easy: ``` double maxHeight = 130.0; Widget _buildLeft() { return Container( height: maxHeight, color: Colors.red, child: Column( mainAxisSize: MainAxisSize.min, ...
51,753,005
I have a layout in my application which comprises of some text and a timestamp. I'm looking to have the timestamp (clock icon in the picture) be at the bottom left corner of the expanded widget, while the text ("what" string in the picture) should start from the top right. **Representation:** ``` |text| ...
2018/08/08
[ "https://Stackoverflow.com/questions/51753005", "https://Stackoverflow.com", "https://Stackoverflow.com/users/6822876/" ]
Ok, so I modified your `Widget` and I added some Colors to the container to track the changes very easy: ``` double maxHeight = 130.0; Widget _buildLeft() { return Container( height: maxHeight, color: Colors.red, child: Column( mainAxisSize: MainAxisSize.min, ...
You can use a Container wrap the Align, This can stop Align from expanding itself ```dart Container( color: darkBlue, child: Align( alignment: Alignment.center, heightFactor: value, child: Container( // alignment: Alignment.center, //<--must not uncomment this padding: const EdgeInsets.all(16...
51,753,005
I have a layout in my application which comprises of some text and a timestamp. I'm looking to have the timestamp (clock icon in the picture) be at the bottom left corner of the expanded widget, while the text ("what" string in the picture) should start from the top right. **Representation:** ``` |text| ...
2018/08/08
[ "https://Stackoverflow.com/questions/51753005", "https://Stackoverflow.com", "https://Stackoverflow.com/users/6822876/" ]
try using **alignment: Alignment.bottomRight** as a named parameter of **Container** class
You can use a Container wrap the Align, This can stop Align from expanding itself ```dart Container( color: darkBlue, child: Align( alignment: Alignment.center, heightFactor: value, child: Container( // alignment: Alignment.center, //<--must not uncomment this padding: const EdgeInsets.all(16...
25,211,241
I have been using clock\_gettime functions with CLOCK\_MONOTONIC\_COARSE as the first parameter in my code like so: ``` struct timespec tmptv; clock_gettime(CLOCK_MONOTONIC_COARSE, &tmptv); ``` However, when I run gperftools cpu profiler on my code, I get a relatively high percentage of calls to \_\_sys\_clo...
2014/08/08
[ "https://Stackoverflow.com/questions/25211241", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2400549/" ]
Looks like it should still be a system call, if this patch is anything to go by: <http://lwn.net/Articles/342018/> It just doesn't call specific functions to fetch the EXACT time from some hardware registers, which, at least on some hardware, is quite slow. But there are lots of factors: What hardware is it? `clock...
For those interested, here are the timings for all those clock\_id. Measure done on a corei7 gen7, kernel 4.4, 64bits. With a scale of 100 for the fastest: ``` 100: CLOCK_REALTIME_COARSE and CLOCK_MONOTONIC_COARSE 410: CLOCK_REALTIME and CLOCK_MONOTONIC 5530: CLOCK_BOOTTIME 6630: CLOCK_PROCESS_CPUTIME_ID and CLOCK...
21,485,651
The `float targetVolume` in created in a `public void` method, but cannot be resolved in another `public void` method... ``` scheduleTaskExecutor.scheduleAtFixedRate(new Runnable() { public void run() { float x = (float) Math.random(); if (x < 0.5){ float targetVolum...
2014/01/31
[ "https://Stackoverflow.com/questions/21485651", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2690711/" ]
I think you've written too much code :-) The following is sufficient: ``` public class Foo { public bool Result { get; set; } public static implicit operator bool(Foo foo) { return !object.ReferenceEquals(foo, null) && foo.Result; } } ``` The compiler will then know how to implicitly conver...
I think that you explicitly covered all the bases in your code; if needed you must consider the ordering of parameters for the operator so if you want your `Equals` function to be called for both ordering of parameters what you did is right. However it looks a bit overkill in the case of comparing `Foo` to `bool` sinc...
515,810
Quotation marks or italics? His last words were "clock" and "good-bye." Clock and good-bye are used as words and are not quotations, but they are not unusual or in need of emphasis so I don't see the reason for italics. If the answer is personal preference, is one choice more popular, more formal than the other? I coul...
2019/10/18
[ "https://english.stackexchange.com/questions/515810", "https://english.stackexchange.com", "https://english.stackexchange.com/users/364798/" ]
If I understand your question correctly, you're asking for the proper way to denote that two specific words were those said by someone: quotation marks or italics. The answer to your question is ... Either. Quotation marks are perfectly appropriate for reported speech. It doesn't require a proper sentence for quota...
Of course they are *quotations*, that's the definition of "his words were"
515,810
Quotation marks or italics? His last words were "clock" and "good-bye." Clock and good-bye are used as words and are not quotations, but they are not unusual or in need of emphasis so I don't see the reason for italics. If the answer is personal preference, is one choice more popular, more formal than the other? I coul...
2019/10/18
[ "https://english.stackexchange.com/questions/515810", "https://english.stackexchange.com", "https://english.stackexchange.com/users/364798/" ]
It depends on whether you are describing reported speech or word used as words. The first uses quotations, while the second is either underlined or italicized, to differentiate it from reported speech, according to both the Chicago and MLA style manuals. There's a subtle difference between the two usages, where the fir...
Of course they are *quotations*, that's the definition of "his words were"
515,810
Quotation marks or italics? His last words were "clock" and "good-bye." Clock and good-bye are used as words and are not quotations, but they are not unusual or in need of emphasis so I don't see the reason for italics. If the answer is personal preference, is one choice more popular, more formal than the other? I coul...
2019/10/18
[ "https://english.stackexchange.com/questions/515810", "https://english.stackexchange.com", "https://english.stackexchange.com/users/364798/" ]
If I understand your question correctly, you're asking for the proper way to denote that two specific words were those said by someone: quotation marks or italics. The answer to your question is ... Either. Quotation marks are perfectly appropriate for reported speech. It doesn't require a proper sentence for quota...
It depends on whether you are describing reported speech or word used as words. The first uses quotations, while the second is either underlined or italicized, to differentiate it from reported speech, according to both the Chicago and MLA style manuals. There's a subtle difference between the two usages, where the fir...
6,815,212
I am showing a pop up with datagrid on it. When i try to go to next page the pop up closes because the page loads. What should i do to prevent the page to load or to not close the popup? BTW, I am using Visual Studio 2003 :|
2011/07/25
[ "https://Stackoverflow.com/questions/6815212", "https://Stackoverflow.com", "https://Stackoverflow.com/users/739461/" ]
There are many ways to solve your problem but the quickest/easiest is to simply wrap your DataGrid inside of an [UpdatePanel (MSDN)](http://msdn.microsoft.com/en-us/library/system.web.ui.updatepanel.aspx). The UpdatePanel will give the impression of an AJAXified DataGrid and it can be implemented with minimal code. T...
You can apply any one from following solutions 1. Use Iframe version of Popup. 2. Ajax : use ajax for changing page.
6,815,212
I am showing a pop up with datagrid on it. When i try to go to next page the pop up closes because the page loads. What should i do to prevent the page to load or to not close the popup? BTW, I am using Visual Studio 2003 :|
2011/07/25
[ "https://Stackoverflow.com/questions/6815212", "https://Stackoverflow.com", "https://Stackoverflow.com/users/739461/" ]
You can apply any one from following solutions 1. Use Iframe version of Popup. 2. Ajax : use ajax for changing page.
use ajax [update panel] it will help you to not load the page again otherwise put you data grid user control inside a page and load it the page will never be closed except if you close it :)
6,815,212
I am showing a pop up with datagrid on it. When i try to go to next page the pop up closes because the page loads. What should i do to prevent the page to load or to not close the popup? BTW, I am using Visual Studio 2003 :|
2011/07/25
[ "https://Stackoverflow.com/questions/6815212", "https://Stackoverflow.com", "https://Stackoverflow.com/users/739461/" ]
There are many ways to solve your problem but the quickest/easiest is to simply wrap your DataGrid inside of an [UpdatePanel (MSDN)](http://msdn.microsoft.com/en-us/library/system.web.ui.updatepanel.aspx). The UpdatePanel will give the impression of an AJAXified DataGrid and it can be implemented with minimal code. T...
use ajax [update panel] it will help you to not load the page again otherwise put you data grid user control inside a page and load it the page will never be closed except if you close it :)
378,422
Apparently I can't move files on different volumes using Directory.Move. I have read that I have to copy each file individually to the destination, then delete the source directory. Do I have any other option?
2008/12/18
[ "https://Stackoverflow.com/questions/378422", "https://Stackoverflow.com", "https://Stackoverflow.com/users/39677/" ]
Regardless of whether or not Directory.Move (or any other function) performed the move between volumes, it would essentially be doing a copy and delete anyway underneath. So if you want a speed increase, that's not going to happen. I think the best solution would be to write your own reusable move function, which would...
To my knowledge there is no other way however deleting a directory has a catch: Read Only Files might cause a `UnauthorizedAccessException` when deleting a directory and all of its contents. This recurses a directory and unsets all the read only flags. Call before `Directory.Delete`: ``` public void removeReadOnlyDee...
378,422
Apparently I can't move files on different volumes using Directory.Move. I have read that I have to copy each file individually to the destination, then delete the source directory. Do I have any other option?
2008/12/18
[ "https://Stackoverflow.com/questions/378422", "https://Stackoverflow.com", "https://Stackoverflow.com/users/39677/" ]
Regardless of whether or not Directory.Move (or any other function) performed the move between volumes, it would essentially be doing a copy and delete anyway underneath. So if you want a speed increase, that's not going to happen. I think the best solution would be to write your own reusable move function, which would...
An easier option would be, to add a reference to the `Microsoft.VisualBasic` namespace and use the `MoveDirectory` method, which can move across volumes. ``` Microsoft.VisualBasic.FileIO.FileSystem.MoveDirectory(sourceDirName, destDirName); ```
378,422
Apparently I can't move files on different volumes using Directory.Move. I have read that I have to copy each file individually to the destination, then delete the source directory. Do I have any other option?
2008/12/18
[ "https://Stackoverflow.com/questions/378422", "https://Stackoverflow.com", "https://Stackoverflow.com/users/39677/" ]
Regardless of whether or not Directory.Move (or any other function) performed the move between volumes, it would essentially be doing a copy and delete anyway underneath. So if you want a speed increase, that's not going to happen. I think the best solution would be to write your own reusable move function, which would...
Try to use this: ``` public static void RobustMove(string sourceDirectory, string destDirectory) { //move if directories are on the same volume if (Path.GetPathRoot(source) == Path.GetPathRoot(destination)) { Directory.Move(source, destination); } else { CopyDirectoryRec...
378,422
Apparently I can't move files on different volumes using Directory.Move. I have read that I have to copy each file individually to the destination, then delete the source directory. Do I have any other option?
2008/12/18
[ "https://Stackoverflow.com/questions/378422", "https://Stackoverflow.com", "https://Stackoverflow.com/users/39677/" ]
To my knowledge there is no other way however deleting a directory has a catch: Read Only Files might cause a `UnauthorizedAccessException` when deleting a directory and all of its contents. This recurses a directory and unsets all the read only flags. Call before `Directory.Delete`: ``` public void removeReadOnlyDee...
Try to use this: ``` public static void RobustMove(string sourceDirectory, string destDirectory) { //move if directories are on the same volume if (Path.GetPathRoot(source) == Path.GetPathRoot(destination)) { Directory.Move(source, destination); } else { CopyDirectoryRec...
378,422
Apparently I can't move files on different volumes using Directory.Move. I have read that I have to copy each file individually to the destination, then delete the source directory. Do I have any other option?
2008/12/18
[ "https://Stackoverflow.com/questions/378422", "https://Stackoverflow.com", "https://Stackoverflow.com/users/39677/" ]
An easier option would be, to add a reference to the `Microsoft.VisualBasic` namespace and use the `MoveDirectory` method, which can move across volumes. ``` Microsoft.VisualBasic.FileIO.FileSystem.MoveDirectory(sourceDirName, destDirName); ```
Try to use this: ``` public static void RobustMove(string sourceDirectory, string destDirectory) { //move if directories are on the same volume if (Path.GetPathRoot(source) == Path.GetPathRoot(destination)) { Directory.Move(source, destination); } else { CopyDirectoryRec...
45,003,755
When I run meteor it says "location is not defined" ``` // redirect on start to dashboard on file protocol if(location.origin === 'file://') { FlowRouter.wait(); FlowRouter.initialize({hashbang: true}); Meteor.startup(function() { FlowRouter.go('dashboard'); }); } ```
2017/07/10
[ "https://Stackoverflow.com/questions/45003755", "https://Stackoverflow.com", "https://Stackoverflow.com/users/6582640/" ]
Your **`UpdateProduct`** function expects a parameter of **`id`**, ``` <button id="btn-update-product" type="button" class="btn btn-warning" ng-click="updateProduct(passidhere)">Save changes</button> ```
Remove the id parameter from your `updateProduct` function as this is not used.
3,523,896
I have a code to pass the query from a one page that has a gridview hyperlink but what I didn't know is how to retrieve it.. Here is my code I hope you could help me fix this one.. thnx Have a nice day ^^, `Default1.aspx` (Gridview1) page: ``` <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns...
2010/08/19
[ "https://Stackoverflow.com/questions/3523896", "https://Stackoverflow.com", "https://Stackoverflow.com/users/423100/" ]
The each function allows you to iterate over each element that matches the selector used. You can see an example in the [jquery documentation](http://api.jquery.com/each/).
jQuery's each() method is used to iterate through the contents of a jQuery object. In your case I think you would just want to use a simple JavaScript 'For Loop' and append() an element containing the record's information each time.
3,523,896
I have a code to pass the query from a one page that has a gridview hyperlink but what I didn't know is how to retrieve it.. Here is my code I hope you could help me fix this one.. thnx Have a nice day ^^, `Default1.aspx` (Gridview1) page: ``` <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns...
2010/08/19
[ "https://Stackoverflow.com/questions/3523896", "https://Stackoverflow.com", "https://Stackoverflow.com/users/423100/" ]
There are two types of `.each()` method in jQuery. The first is a method of every jQuery object and iterates over the object, which usually contains an array of DOM elements. An example would be: ``` $('.someClass').each(function(i,val) { // "i" references the current index in the iteration // "val" reference...
The each function allows you to iterate over each element that matches the selector used. You can see an example in the [jquery documentation](http://api.jquery.com/each/).
3,523,896
I have a code to pass the query from a one page that has a gridview hyperlink but what I didn't know is how to retrieve it.. Here is my code I hope you could help me fix this one.. thnx Have a nice day ^^, `Default1.aspx` (Gridview1) page: ``` <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns...
2010/08/19
[ "https://Stackoverflow.com/questions/3523896", "https://Stackoverflow.com", "https://Stackoverflow.com/users/423100/" ]
There are two types of `.each()` method in jQuery. The first is a method of every jQuery object and iterates over the object, which usually contains an array of DOM elements. An example would be: ``` $('.someClass').each(function(i,val) { // "i" references the current index in the iteration // "val" reference...
jQuery's each() method is used to iterate through the contents of a jQuery object. In your case I think you would just want to use a simple JavaScript 'For Loop' and append() an element containing the record's information each time.
701
I am using Tridion 2009 SP1 for a client, we have jsp pages and vb script. Our client wants to switch to Tridion 2011 and have told to investigate Experience Manager. I tried searching on sdllivecontent but could find anything with this word. Can anyone direct me what actually is Experience Manager so that i can get ba...
2013/04/02
[ "https://tridion.stackexchange.com/questions/701", "https://tridion.stackexchange.com", "https://tridion.stackexchange.com/users/396/" ]
Experience Manager is the product formerly known as the SDL Tridion User Interface (UI) update, formerly known as SiteEdit. You can find information on Tridon World for UI Update (<https://www.sdltridionworld.com/downloads/documentation/UIU4SDLT2011SP1/index.aspx>) if you have access, as well on SDL Live Content (<ht...
The name *Experience Manager* (we usually abbreviate it here as XPM) is really only used in the official documentation on the latest release, version 2013. Before that (version 2011) the documentation refers to it as *user interface update for SDL Tridion 2011 SP1* which is basically the same as *SiteEdit* was for vers...
701
I am using Tridion 2009 SP1 for a client, we have jsp pages and vb script. Our client wants to switch to Tridion 2011 and have told to investigate Experience Manager. I tried searching on sdllivecontent but could find anything with this word. Can anyone direct me what actually is Experience Manager so that i can get ba...
2013/04/02
[ "https://tridion.stackexchange.com/questions/701", "https://tridion.stackexchange.com", "https://tridion.stackexchange.com/users/396/" ]
Experience Manager is the product formerly known as the SDL Tridion User Interface (UI) update, formerly known as SiteEdit. You can find information on Tridon World for UI Update (<https://www.sdltridionworld.com/downloads/documentation/UIU4SDLT2011SP1/index.aspx>) if you have access, as well on SDL Live Content (<ht...
See the naming history in the other answers, but the initial community posts were back when it was called New User interface. See overviews and impressions from: * [CreateAndBreak](http://www.createandbreak.net/2012/02/more-siteedit-insight.html) (my post) * [BuildingBlocks](http://blog.building-blocks.com/sdl-tridio...