qid
int64
1
74.7M
question
stringlengths
15
58.3k
date
stringlengths
10
10
metadata
list
response_j
stringlengths
4
30.2k
response_k
stringlengths
11
36.5k
427,223
I want to say "[Rieger](https://en.wikipedia.org/wiki/Joerg_Rieger) coined the notion of *deep solidarity*." However, I'm not sure about several aspects of this: 1. Can you *coin* a notion, or only a phrase? 2. Can I say he coined the phrase, even if other people used these words with their typical meanings, but he fi...
2018/01/20
[ "https://english.stackexchange.com/questions/427223", "https://english.stackexchange.com", "https://english.stackexchange.com/users/232549/" ]
To "coin" means to take a piece of nondescript metal and stamp it with a pattern that makes it a recognizable piece of money. In other words, create something of clear, discernible value out of raw materials. Other meanings are metaphors on that concept.
**1.** No. To coin means to create or stamp a phrase as your own e.g. 'shall I compare thee to a summer's day? Thou art more lovely and more temperate.'-William Shakespeare or Arnold Schwarzenegger's phrase-'I'll be back'. **2.** As I just said-no. It would have to be their own phrase or their catchphrase. **3.** Rieg...
427,223
I want to say "[Rieger](https://en.wikipedia.org/wiki/Joerg_Rieger) coined the notion of *deep solidarity*." However, I'm not sure about several aspects of this: 1. Can you *coin* a notion, or only a phrase? 2. Can I say he coined the phrase, even if other people used these words with their typical meanings, but he fi...
2018/01/20
[ "https://english.stackexchange.com/questions/427223", "https://english.stackexchange.com", "https://english.stackexchange.com/users/232549/" ]
To "coin" means to take a piece of nondescript metal and stamp it with a pattern that makes it a recognizable piece of money. In other words, create something of clear, discernible value out of raw materials. Other meanings are metaphors on that concept.
> > Can you coin a notion, or only a phrase? > > > You coin a phrase, not a notion. > > Can I say he coined the phrase, > > > I wouldn't call that particular phrase novel enough for anyone to say they coined it. You could say he developed an idea or methodology or whatever which he called *deep solidarity*,...
427,223
I want to say "[Rieger](https://en.wikipedia.org/wiki/Joerg_Rieger) coined the notion of *deep solidarity*." However, I'm not sure about several aspects of this: 1. Can you *coin* a notion, or only a phrase? 2. Can I say he coined the phrase, even if other people used these words with their typical meanings, but he fi...
2018/01/20
[ "https://english.stackexchange.com/questions/427223", "https://english.stackexchange.com", "https://english.stackexchange.com/users/232549/" ]
> > [coin (v.)](https://www.etymonline.com/word/coin) ...General sense of "**make, fabricate, invent**" (words) is from 1580s; phrase coin a phrase is attested from 1940 (to coin phrases is from 1898)... [from *Etymonline*] > > > As mentioned in both of the previous answers, the phrase **to coin** originally meant...
**1.** No. To coin means to create or stamp a phrase as your own e.g. 'shall I compare thee to a summer's day? Thou art more lovely and more temperate.'-William Shakespeare or Arnold Schwarzenegger's phrase-'I'll be back'. **2.** As I just said-no. It would have to be their own phrase or their catchphrase. **3.** Rieg...
427,223
I want to say "[Rieger](https://en.wikipedia.org/wiki/Joerg_Rieger) coined the notion of *deep solidarity*." However, I'm not sure about several aspects of this: 1. Can you *coin* a notion, or only a phrase? 2. Can I say he coined the phrase, even if other people used these words with their typical meanings, but he fi...
2018/01/20
[ "https://english.stackexchange.com/questions/427223", "https://english.stackexchange.com", "https://english.stackexchange.com/users/232549/" ]
> > [coin (v.)](https://www.etymonline.com/word/coin) ...General sense of "**make, fabricate, invent**" (words) is from 1580s; phrase coin a phrase is attested from 1940 (to coin phrases is from 1898)... [from *Etymonline*] > > > As mentioned in both of the previous answers, the phrase **to coin** originally meant...
> > Can you coin a notion, or only a phrase? > > > You coin a phrase, not a notion. > > Can I say he coined the phrase, > > > I wouldn't call that particular phrase novel enough for anyone to say they coined it. You could say he developed an idea or methodology or whatever which he called *deep solidarity*,...
46,959,462
I'm practicing NodeJS and trying to upload a landing page via FTP but it's not working online. Does anyone know if we have to do a special config for uploading the website to the web? In my localhost it's working perfectly. The problem comes when it goes online. It just shows: ``` Index of /landing [ICO] Name ...
2017/10/26
[ "https://Stackoverflow.com/questions/46959462", "https://Stackoverflow.com", "https://Stackoverflow.com/users/4572652/" ]
@Andrea Aime from the geoserver-users mailing list directed me to the solution here: <https://solveme.wordpress.com/2017/07/24/java-awt-awterror-assistive-technology-not-found-org-gnome-accessibility-atkwrapper-when-running-jasper-reports/> Adding this line to my dockerfile fixed the issue: ``` RUN sed -i 's/^assisti...
It would appear that for whichever reason, GeoServer (or rather, the Apache Batik library) has a problem rendering the SVG file you want to use for the icon: ``` 2017-10-26 16:24:03,845 ERROR [geoserver.ows] - java.lang.NoClassDefFoundError: Could not initialize class org.apache.batik.bridge.CursorManager at org.apac...
15,281,277
I have an abstract class and basically it defines a bunch of **constants,variables, abstract methods and non-abstract/regular methods**. It's typical structure is like this: ``` abstract class ClassName{ const CONSTANT_NAME = "test"; protected static $variable_1 = "value"; protected $variable_2 = "value_2"; protec...
2013/03/07
[ "https://Stackoverflow.com/questions/15281277", "https://Stackoverflow.com", "https://Stackoverflow.com/users/709101/" ]
Edit: The original answer was totally bogus, here's a better: How about `mat2str(mat)`? <http://www.mathworks.se/help/matlab/ref/format.html> > > str = mat2str(A) converts matrix A into a string. This string is > suitable for input to the eval function such that eval(str) produces > the original matrix to within ...
Alternative solution is [MATRIX2M](http://www.mathworks.com/matlabcentral/fileexchange/8933-matrix2m) from the FileExchange. It can work with 3D matrices as well, that `mat2str` cannot. Although the output is not as pretty. ``` >> x = rand([1 2 2]); >> Matrix2M('x') ans = x = zeros(1,2,2); x(1,1,1) = 0.162182308193242...
17,674,293
new to this site so i'll keep it brief: I have currently: ``` if ($http_user_agent ~* (A-certain-self-made-User-Agent-here)) { return 200; } ``` Which works very well. (Tested by switching 200 to 403). **My question is**: Is there a way in: /etc/nginx/sites-enabled/default to make it allow only...
2013/07/16
[ "https://Stackoverflow.com/questions/17674293", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2586891/" ]
Try this: ``` if ($http_user_agent !~* (A-certain-self-made-User-Agent-here)) { return 403; } ``` This should be a 'not match' on your certain user agent. [Reference info here: HttpRewriteModule](http://wiki.nginx.org/NginxHttpRewriteModule#if)
You can try the following in the proper location ``` set $isallowed = ""; if ($http_user_agent = allowed_user_agent) { set $isallowed "${isallowed}YES"; } if ($isallowed !~ YES) { rewrite ^ http://yourserver.com permanent; } ```
17,674,293
new to this site so i'll keep it brief: I have currently: ``` if ($http_user_agent ~* (A-certain-self-made-User-Agent-here)) { return 200; } ``` Which works very well. (Tested by switching 200 to 403). **My question is**: Is there a way in: /etc/nginx/sites-enabled/default to make it allow only...
2013/07/16
[ "https://Stackoverflow.com/questions/17674293", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2586891/" ]
``` if ($http_user_agent !~* "A-certain-self-made-User-Agent-here") { return 403; } ``` is working on my site.
You can try the following in the proper location ``` set $isallowed = ""; if ($http_user_agent = allowed_user_agent) { set $isallowed "${isallowed}YES"; } if ($isallowed !~ YES) { rewrite ^ http://yourserver.com permanent; } ```
56,337,528
I am using Picasso to inflate image from URL to Imageview: ``` @Override public void onBindViewHolder(@NonNull HeroesViewHolder holder, int position) { Hero currentHero = heroList.get(position); String str = String.join(",", currentHero.abilities); holder.heroTitle.setText(currentHero.ti...
2019/05/28
[ "https://Stackoverflow.com/questions/56337528", "https://Stackoverflow.com", "https://Stackoverflow.com/users/8943516/" ]
Please try below code : ``` Picasso.with(this) // Activity context .load(currentHero.image) // Set URL .resize(100,100) // Resize the image .placeholder(getResources().getDrawable(R.drawable.ic_defuser)) // Default Image .error(getResources().getDrawable(R.drawable.ic_defuser)) .int...
Try this ``` Picasso.with(getApplicationContext()) .load(img_url) .resize(5,5) .fit().centerCrop().into(methodImage); ```
44,672,203
I have implemented Metro Framework in my Windows Form Application. I want to change the style color to custom color. (As shown in the screenshot) How do I do this? [![Sample page](https://i.stack.imgur.com/0akMg.png)](https://i.stack.imgur.com/0akMg.png)
2017/06/21
[ "https://Stackoverflow.com/questions/44672203", "https://Stackoverflow.com", "https://Stackoverflow.com/users/6729409/" ]
You can use: ``` this.Style = MetroFramework.MetroColorStyle.<color>; ``` Possible colors: * Default * Black * White * Silver * Blue * Green * Lime * Teal * Orange * Brown * Pink * Magenta * Purple * Red * Yellow So for example: ``` this.Style = MetroFramework.MetroColorStyle.Red; ``` You can use this on any Me...
I am not sure if this will work, but try to use ``` this.BackColor = (your colour) ``` Also please let me know if this is working or not.
44,672,203
I have implemented Metro Framework in my Windows Form Application. I want to change the style color to custom color. (As shown in the screenshot) How do I do this? [![Sample page](https://i.stack.imgur.com/0akMg.png)](https://i.stack.imgur.com/0akMg.png)
2017/06/21
[ "https://Stackoverflow.com/questions/44672203", "https://Stackoverflow.com", "https://Stackoverflow.com/users/6729409/" ]
**Short answer:** You can't. A **workaround** would be to override the `OnPaint` method of the `MetroForm` and draw it yourself. For example: ``` protected override void OnPaint(PaintEventArgs e) { base.OnPaint(e); // custom draw the top border using (Brush b = new SolidBrush(Color.White)) { ...
I am not sure if this will work, but try to use ``` this.BackColor = (your colour) ``` Also please let me know if this is working or not.
44,672,203
I have implemented Metro Framework in my Windows Form Application. I want to change the style color to custom color. (As shown in the screenshot) How do I do this? [![Sample page](https://i.stack.imgur.com/0akMg.png)](https://i.stack.imgur.com/0akMg.png)
2017/06/21
[ "https://Stackoverflow.com/questions/44672203", "https://Stackoverflow.com", "https://Stackoverflow.com/users/6729409/" ]
**Short answer:** You can't. A **workaround** would be to override the `OnPaint` method of the `MetroForm` and draw it yourself. For example: ``` protected override void OnPaint(PaintEventArgs e) { base.OnPaint(e); // custom draw the top border using (Brush b = new SolidBrush(Color.White)) { ...
As already stated before, a custom color is not possible. However, you can use the already defined colors. (See @SomeCoder's answer) If you want to make a ComboBox to change the theme/style you don't have to make a big switch statement with all the themes/styles, you can simply do this: ``` private void ColorComboBox...
44,672,203
I have implemented Metro Framework in my Windows Form Application. I want to change the style color to custom color. (As shown in the screenshot) How do I do this? [![Sample page](https://i.stack.imgur.com/0akMg.png)](https://i.stack.imgur.com/0akMg.png)
2017/06/21
[ "https://Stackoverflow.com/questions/44672203", "https://Stackoverflow.com", "https://Stackoverflow.com/users/6729409/" ]
**Short answer:** You can't. A **workaround** would be to override the `OnPaint` method of the `MetroForm` and draw it yourself. For example: ``` protected override void OnPaint(PaintEventArgs e) { base.OnPaint(e); // custom draw the top border using (Brush b = new SolidBrush(Color.White)) { ...
Try to use: ``` this.Style={color}; ```
44,672,203
I have implemented Metro Framework in my Windows Form Application. I want to change the style color to custom color. (As shown in the screenshot) How do I do this? [![Sample page](https://i.stack.imgur.com/0akMg.png)](https://i.stack.imgur.com/0akMg.png)
2017/06/21
[ "https://Stackoverflow.com/questions/44672203", "https://Stackoverflow.com", "https://Stackoverflow.com/users/6729409/" ]
I know this is an old question but it might help others looking for answers in the future. If you are using the [nuget Metro Framework package](https://www.nuget.org/packages/MetroModernUI/) for C# in Visual Studio then you need to set the "UseCustomBackColor" of the object to true: ``` metroTile_YourTile.UseCustomBa...
As already stated before, a custom color is not possible. However, you can use the already defined colors. (See @SomeCoder's answer) If you want to make a ComboBox to change the theme/style you don't have to make a big switch statement with all the themes/styles, you can simply do this: ``` private void ColorComboBox...
44,672,203
I have implemented Metro Framework in my Windows Form Application. I want to change the style color to custom color. (As shown in the screenshot) How do I do this? [![Sample page](https://i.stack.imgur.com/0akMg.png)](https://i.stack.imgur.com/0akMg.png)
2017/06/21
[ "https://Stackoverflow.com/questions/44672203", "https://Stackoverflow.com", "https://Stackoverflow.com/users/6729409/" ]
I realise this is an old question but this was driving me mad and I couldn't find answers anywhere. I did, however, figure it out so thought I'd share... As long as you don't mind editing the source code a little, there is a way to add custom colors. **1. Start with the** `MetroColors` **Class**. Right at the bottom t...
As already stated before, a custom color is not possible. However, you can use the already defined colors. (See @SomeCoder's answer) If you want to make a ComboBox to change the theme/style you don't have to make a big switch statement with all the themes/styles, you can simply do this: ``` private void ColorComboBox...
44,672,203
I have implemented Metro Framework in my Windows Form Application. I want to change the style color to custom color. (As shown in the screenshot) How do I do this? [![Sample page](https://i.stack.imgur.com/0akMg.png)](https://i.stack.imgur.com/0akMg.png)
2017/06/21
[ "https://Stackoverflow.com/questions/44672203", "https://Stackoverflow.com", "https://Stackoverflow.com/users/6729409/" ]
I realise this is an old question but this was driving me mad and I couldn't find answers anywhere. I did, however, figure it out so thought I'd share... As long as you don't mind editing the source code a little, there is a way to add custom colors. **1. Start with the** `MetroColors` **Class**. Right at the bottom t...
I am not sure if this will work, but try to use ``` this.BackColor = (your colour) ``` Also please let me know if this is working or not.
44,672,203
I have implemented Metro Framework in my Windows Form Application. I want to change the style color to custom color. (As shown in the screenshot) How do I do this? [![Sample page](https://i.stack.imgur.com/0akMg.png)](https://i.stack.imgur.com/0akMg.png)
2017/06/21
[ "https://Stackoverflow.com/questions/44672203", "https://Stackoverflow.com", "https://Stackoverflow.com/users/6729409/" ]
**Short answer:** You can't. A **workaround** would be to override the `OnPaint` method of the `MetroForm` and draw it yourself. For example: ``` protected override void OnPaint(PaintEventArgs e) { base.OnPaint(e); // custom draw the top border using (Brush b = new SolidBrush(Color.White)) { ...
You can use: ``` this.Style = MetroFramework.MetroColorStyle.<color>; ``` Possible colors: * Default * Black * White * Silver * Blue * Green * Lime * Teal * Orange * Brown * Pink * Magenta * Purple * Red * Yellow So for example: ``` this.Style = MetroFramework.MetroColorStyle.Red; ``` You can use this on any Me...
44,672,203
I have implemented Metro Framework in my Windows Form Application. I want to change the style color to custom color. (As shown in the screenshot) How do I do this? [![Sample page](https://i.stack.imgur.com/0akMg.png)](https://i.stack.imgur.com/0akMg.png)
2017/06/21
[ "https://Stackoverflow.com/questions/44672203", "https://Stackoverflow.com", "https://Stackoverflow.com/users/6729409/" ]
I know this is an old question but it might help others looking for answers in the future. If you are using the [nuget Metro Framework package](https://www.nuget.org/packages/MetroModernUI/) for C# in Visual Studio then you need to set the "UseCustomBackColor" of the object to true: ``` metroTile_YourTile.UseCustomBa...
Try to use: ``` this.Style={color}; ```
44,672,203
I have implemented Metro Framework in my Windows Form Application. I want to change the style color to custom color. (As shown in the screenshot) How do I do this? [![Sample page](https://i.stack.imgur.com/0akMg.png)](https://i.stack.imgur.com/0akMg.png)
2017/06/21
[ "https://Stackoverflow.com/questions/44672203", "https://Stackoverflow.com", "https://Stackoverflow.com/users/6729409/" ]
I realise this is an old question but this was driving me mad and I couldn't find answers anywhere. I did, however, figure it out so thought I'd share... As long as you don't mind editing the source code a little, there is a way to add custom colors. **1. Start with the** `MetroColors` **Class**. Right at the bottom t...
You can use: ``` this.Style = MetroFramework.MetroColorStyle.<color>; ``` Possible colors: * Default * Black * White * Silver * Blue * Green * Lime * Teal * Orange * Brown * Pink * Magenta * Purple * Red * Yellow So for example: ``` this.Style = MetroFramework.MetroColorStyle.Red; ``` You can use this on any Me...
64,782
I'm trying to make a map for a post apocalyptic idea I have. The landscape is your typical barren frozen wasteland caused by radiation and a large drop of temperature. I need to make a map based on the area so I can keep track on where every location I create is. Any ideas where I can find a website to make this on?
2015/07/14
[ "https://rpg.stackexchange.com/questions/64782", "https://rpg.stackexchange.com", "https://rpg.stackexchange.com/users/23858/" ]
There is a lot of interesting generators at [Wizardawn](http://wizardawn.and-mag.com/). The [World Maps generator](http://wizardawn.and-mag.com/tool_world.php) with a Snow Climate is probably the closest to what you're looking for. You can use the Post-Apocalyptic Style if you want it to generate locations for you, or ...
[The Morrow Project](https://en.wikipedia.org/wiki/The_Morrow_Project) had rules for taking an existing map, and targeting nuclear missiles on it, and determining the results. I distinctly remember the example in the rulebook mentioning that the author had received a traffic ticket in a particular city, so used it for ...
64,782
I'm trying to make a map for a post apocalyptic idea I have. The landscape is your typical barren frozen wasteland caused by radiation and a large drop of temperature. I need to make a map based on the area so I can keep track on where every location I create is. Any ideas where I can find a website to make this on?
2015/07/14
[ "https://rpg.stackexchange.com/questions/64782", "https://rpg.stackexchange.com", "https://rpg.stackexchange.com/users/23858/" ]
There is a lot of interesting generators at [Wizardawn](http://wizardawn.and-mag.com/). The [World Maps generator](http://wizardawn.and-mag.com/tool_world.php) with a Snow Climate is probably the closest to what you're looking for. You can use the Post-Apocalyptic Style if you want it to generate locations for you, or ...
[Dundjinni](http://www.dundjinni.com/) can make fantasy or future maps, and thus should suit post-apocalyptic RPGs. See the site's gallery for various examples. This software comes in both trial and paid versions. [This generator](http://wizardawn.and-mag.com/tool_acity.php) also ought to help you immensely. It's free...
112,460
I have a new SSD and my old hard drive installed in my optibay. My old hard drive currently has a Mac OS system on it, and I want to just wipe it so I can use it for storing my videos, and pictures. How can I do this?
2013/12/02
[ "https://apple.stackexchange.com/questions/112460", "https://apple.stackexchange.com", "https://apple.stackexchange.com/users/2726/" ]
Can you boot into the laptop from the SSD OS while both drives are in your laptop? If so, just open disk utility, select your old HDD drive, and select the erase tab. From there you can reformat your hard drive.
Have you considered building your own Fusion drive using the SSD/HDD as a single combined drive to get the best of both worlds? Here is an example - <http://jollyjinx.tumblr.com/post/34638496292/fusion-drive-on-older-macs-yes-since-apple-has>.
112,460
I have a new SSD and my old hard drive installed in my optibay. My old hard drive currently has a Mac OS system on it, and I want to just wipe it so I can use it for storing my videos, and pictures. How can I do this?
2013/12/02
[ "https://apple.stackexchange.com/questions/112460", "https://apple.stackexchange.com", "https://apple.stackexchange.com/users/2726/" ]
Can you boot into the laptop from the SSD OS while both drives are in your laptop? If so, just open disk utility, select your old HDD drive, and select the erase tab. From there you can reformat your hard drive.
I have a point to add to this. As I understand you have left the HDD where it was, next to the battery and have replaced your optical drive with a SSD inside a carrier (similar to the one at hardwrk.com). This configuration is a waste because you have given your HDD the faster SATA connection on the MLB and your SSD th...
112,460
I have a new SSD and my old hard drive installed in my optibay. My old hard drive currently has a Mac OS system on it, and I want to just wipe it so I can use it for storing my videos, and pictures. How can I do this?
2013/12/02
[ "https://apple.stackexchange.com/questions/112460", "https://apple.stackexchange.com", "https://apple.stackexchange.com/users/2726/" ]
Best would be to re-install a clean system on the SSD althought you could user "**Carbon Copy Cloner**" to do so simply unticking your user folder. Then to cross link the system on the SSD and your data on the PHD (plates) you can do so several ways : * If you want to access all your data from the old hard disk simply...
Have you considered building your own Fusion drive using the SSD/HDD as a single combined drive to get the best of both worlds? Here is an example - <http://jollyjinx.tumblr.com/post/34638496292/fusion-drive-on-older-macs-yes-since-apple-has>.
112,460
I have a new SSD and my old hard drive installed in my optibay. My old hard drive currently has a Mac OS system on it, and I want to just wipe it so I can use it for storing my videos, and pictures. How can I do this?
2013/12/02
[ "https://apple.stackexchange.com/questions/112460", "https://apple.stackexchange.com", "https://apple.stackexchange.com/users/2726/" ]
Best would be to re-install a clean system on the SSD althought you could user "**Carbon Copy Cloner**" to do so simply unticking your user folder. Then to cross link the system on the SSD and your data on the PHD (plates) you can do so several ways : * If you want to access all your data from the old hard disk simply...
I have a point to add to this. As I understand you have left the HDD where it was, next to the battery and have replaced your optical drive with a SSD inside a carrier (similar to the one at hardwrk.com). This configuration is a waste because you have given your HDD the faster SATA connection on the MLB and your SSD th...
112,460
I have a new SSD and my old hard drive installed in my optibay. My old hard drive currently has a Mac OS system on it, and I want to just wipe it so I can use it for storing my videos, and pictures. How can I do this?
2013/12/02
[ "https://apple.stackexchange.com/questions/112460", "https://apple.stackexchange.com", "https://apple.stackexchange.com/users/2726/" ]
Have you considered building your own Fusion drive using the SSD/HDD as a single combined drive to get the best of both worlds? Here is an example - <http://jollyjinx.tumblr.com/post/34638496292/fusion-drive-on-older-macs-yes-since-apple-has>.
I have a point to add to this. As I understand you have left the HDD where it was, next to the battery and have replaced your optical drive with a SSD inside a carrier (similar to the one at hardwrk.com). This configuration is a waste because you have given your HDD the faster SATA connection on the MLB and your SSD th...
62,554,945
In file I need to read some inputs: this is an example: ``` 8 15 [1,1] v=5 s=4#o [4,2] v=1 s=9#x ``` ``` typedef struct{ int red2; int stupac2; int visina; int sirina; char boja[10]; }Tunel; FILE* fin = fopen("farbanje.txt", "r"); Tunel* tuneli = malloc(sizeof(Tunel)*50); // if(fin!=0) fsc...
2020/06/24
[ "https://Stackoverflow.com/questions/62554945", "https://Stackoverflow.com", "https://Stackoverflow.com/users/13794400/" ]
A simple way to do this is by converting the list into a dictionary and then creating a Data Frame from that dictionary as explained below: ``` l =[[0.0, 0.0, 0.0], [0.0, 0.0, 0.0]] # Creating a dictionary using dictionary comprehension d = {'col'+str(i) : l[i] for i in range(len(l))} df = pd.DataFrame(d) ``` [![o...
As your lists are arranged rather for rows than columns, I would first build the data frame as is and then transpose it: ``` data = [[0, 0, 0, 0,], [1, 1, 1, 1,]] columns = ['a', 'b', 'c', 'd'] df = pd.DataFrame(data, columns=columns) df = df.transpose() ```
62,554,945
In file I need to read some inputs: this is an example: ``` 8 15 [1,1] v=5 s=4#o [4,2] v=1 s=9#x ``` ``` typedef struct{ int red2; int stupac2; int visina; int sirina; char boja[10]; }Tunel; FILE* fin = fopen("farbanje.txt", "r"); Tunel* tuneli = malloc(sizeof(Tunel)*50); // if(fin!=0) fsc...
2020/06/24
[ "https://Stackoverflow.com/questions/62554945", "https://Stackoverflow.com", "https://Stackoverflow.com/users/13794400/" ]
A simple way to do this is by converting the list into a dictionary and then creating a Data Frame from that dictionary as explained below: ``` l =[[0.0, 0.0, 0.0], [0.0, 0.0, 0.0]] # Creating a dictionary using dictionary comprehension d = {'col'+str(i) : l[i] for i in range(len(l))} df = pd.DataFrame(d) ``` [![o...
one way to do this is using [transpose](https://pandas.pydata.org/pandas-docs/stable/reference/api/pandas.DataFrame.T.html): ``` df = pd.DataFrame(yourList).T ``` If you want to change the columns names you can add ``` df = df.add_prefix('col') ```
271,822
I am studying analysis and having difficulties with $\inf$, $\sup$, $\liminf$ and $\limsup$ as you can see from the title. As discussed in a number of math.SE questions, definitions for sequences, functions and sets differ from each other. I sense, I have to tackle with some problems which are really useful for the ped...
2013/01/06
[ "https://math.stackexchange.com/questions/271822", "https://math.stackexchange.com", "https://math.stackexchange.com/users/-1/" ]
Is there a particular text you are currently using? That might help in terms of suggesting supplementary texts (rather than possibly a duplicate!) --- Here are some lecture notes on [$\sup$ and $\inf$](http://www.math.ttu.edu/~drager/Classes/01Fall/reals/seqnotes.pdf), and here are some lecture notes on [$\lim \sup$ ...
I may suggest the book of Karl R. Stromberg "An Introduction to Classical Real Analysis".
18,235,104
``` SELECT t1.* FROM asterisk t1 WHERE EXISTS (SELECT * FROM asterisk t2 WHERE t2.id <> t1.id AND t2.unique_id = t1.unique_id AND t1.operator_dial = '203' AND t1.event ...
2013/08/14
[ "https://Stackoverflow.com/questions/18235104", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2682945/" ]
Try using joins instead of exists. ``` SELECT t1 * FROM asterisk t1 INNER JOIN asterisk t2 on t1.id=t2.id AND t2.unique_id = t1.unique_id AND t1.operator_dial = '203' AND t1.event = 'Dial' AND t2.event = 'Bridge' LEFT OUTER JOIN asterisk t3 on t2.unique_id=t3.unique_id AND t3.id <> t1.id AND t...
If I have not missed something, your query should look like this: ``` select t1.* from asterisk as t1 where t1.operator_dial = '203' and t1.event = 'Dial' and exists ( select * from asterisk as t2 where t2.id <> t1.id and t2.unique_id = t1.unique_id t2.event ...
18,235,104
``` SELECT t1.* FROM asterisk t1 WHERE EXISTS (SELECT * FROM asterisk t2 WHERE t2.id <> t1.id AND t2.unique_id = t1.unique_id AND t1.operator_dial = '203' AND t1.event ...
2013/08/14
[ "https://Stackoverflow.com/questions/18235104", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2682945/" ]
Try using joins instead of exists. ``` SELECT t1 * FROM asterisk t1 INNER JOIN asterisk t2 on t1.id=t2.id AND t2.unique_id = t1.unique_id AND t1.operator_dial = '203' AND t1.event = 'Dial' AND t2.event = 'Bridge' LEFT OUTER JOIN asterisk t3 on t2.unique_id=t3.unique_id AND t3.id <> t1.id AND t...
``` SELECT t1.* FROM Asterisk t1 INNER JOIN Asterisk t2 ON t1.unique_id = t2.unique_id AND t2.date > t1.date AND t2.event = 'Bridge' LEFT JOIN Asterisk t3 ON t1.unique_id = t3.unique_id AND t3.event = 'Unlink' WHERE t1.operator_dial = '203' AND t1.event = 'Dial' AND t3.id IS NULL ORDER BY t1.date LIMIT 1 ...
52,234,703
Write a function that returns true if the student has a higher average grade than another student given as a parameter. here my code ``` class Student { var id: Int = 0 var firstName: String = "" var lastName: String = "" init(id: Int,firstName: String,lastName: String){ self.id = id self.firstName = fi...
2018/09/08
[ "https://Stackoverflow.com/questions/52234703", "https://Stackoverflow.com", "https://Stackoverflow.com/users/10303642/" ]
If your only method of comparison is the student's grades, consider the following: ``` func hasHigherGradeThan(_ student: Student) -> Bool { //In your current construct, the parameter passed to "average" is not necessary, so I'm passing a 0 right now. return self.average(numbers: 0) > student.average(numbers...
It sounds to me like you are supposed to write a an instance method of your `Student` class that takes another `Student` as a parameter and compares the two: The function that compares 2 `Student` objects' average grades should not have any code dealing with specific students. It should be written as an instance metho...
40,241,811
I got a component, called Parent and it injects Child, another component. **Child** has props defined as following: ``` function mapStateToProps(state) { return { foo : 'some-value' } } ``` I would like to access `foo` in **Parent** component like that: ``` class Parent extends Component { render(){ //s...
2016/10/25
[ "https://Stackoverflow.com/questions/40241811", "https://Stackoverflow.com", "https://Stackoverflow.com/users/993554/" ]
There's not really a uniform answer to your issue. In general, you are vastly overusing `position: absolute` and `position: fixed` to put content where you want it. When you read these two paragraphs, the second one is about a full line below the first one. If I decided I didn't need the first paragraph and took it ou...
Have you tried using the position fixed? And I would only use left: 0 OR right: 0. I assume you want the footer to use the entire width of the screen with this. Try going for width: 100%; for this. ``` .footer{ position: fixed; left: 0px; bottom:0px; width:100%; } ``` If you want to have the footer centred add margi...
16,005,245
I am trying to run Gunicorn, and I am running into an error (pasted below). At present it looks like Gunicorn or one of its dependencies is attempting to read settings.LOGGING, and the settings.py file does not appear to define a settings.LOGGING. So I'd like to know what sort of literal or other code I can add so tha...
2013/04/14
[ "https://Stackoverflow.com/questions/16005245", "https://Stackoverflow.com", "https://Stackoverflow.com/users/116906/" ]
I had the same error and I fixed it by adding logging configuration to the project's settings file, I used the example from this page <https://docs.djangoproject.com/en/dev/topics/logging/> here is the code from my settings file ``` LOGGING = { 'version': 1, 'disable_existing_loggers': True, 'formatters'...
The error message implies that the configuration dictionary passed for logging configuration is missing a schema version. You'll need to show your dictionary to be sure, but that's certainly what the error you're getting is referring to. See [the docs](http://docs.python.org/2/library/logging.config.html#dictionary-sch...
16,005,245
I am trying to run Gunicorn, and I am running into an error (pasted below). At present it looks like Gunicorn or one of its dependencies is attempting to read settings.LOGGING, and the settings.py file does not appear to define a settings.LOGGING. So I'd like to know what sort of literal or other code I can add so tha...
2013/04/14
[ "https://Stackoverflow.com/questions/16005245", "https://Stackoverflow.com", "https://Stackoverflow.com/users/116906/" ]
The easiest way is to add in settings.py: ``` LOGGING = { 'version': 1, } ```
The error message implies that the configuration dictionary passed for logging configuration is missing a schema version. You'll need to show your dictionary to be sure, but that's certainly what the error you're getting is referring to. See [the docs](http://docs.python.org/2/library/logging.config.html#dictionary-sch...
16,005,245
I am trying to run Gunicorn, and I am running into an error (pasted below). At present it looks like Gunicorn or one of its dependencies is attempting to read settings.LOGGING, and the settings.py file does not appear to define a settings.LOGGING. So I'd like to know what sort of literal or other code I can add so tha...
2013/04/14
[ "https://Stackoverflow.com/questions/16005245", "https://Stackoverflow.com", "https://Stackoverflow.com/users/116906/" ]
I had the same error and I fixed it by adding logging configuration to the project's settings file, I used the example from this page <https://docs.djangoproject.com/en/dev/topics/logging/> here is the code from my settings file ``` LOGGING = { 'version': 1, 'disable_existing_loggers': True, 'formatters'...
The easiest way is to add in settings.py: ``` LOGGING = { 'version': 1, } ```
271,652
Hi How do i connect to MySql from another Ubuntu machine. I tried this ``` mysql -h 'IP' -P 3306 -u test -ptest ``` I get ERROR 2003 (HY000): Can't connect to MySQL server on 'IP' (111). then i tried ``` nmap -sS -O -p 3306 'IP' and it says 3306/tcp closed mysql ``` But in the MySql machine when i try it wit...
2011/05/19
[ "https://serverfault.com/questions/271652", "https://serverfault.com", "https://serverfault.com/users/73524/" ]
Two ways to check this: [1] in /etc/mysql/my.cnf if the database is configured to be listening on localhost (127.0.0.1) only. Look for the line ``` bind-address = 127.0.0.1 ``` and comment this line, follow by a restart of the database. I think this is your issue, since this is default in Ubuntu. [2] Run "n...
You must create an user that's allowed to connect to that MySQL server from the machine you want to connect from. mysql > create user 'user'@'ip\_from\_you\_want\_to\_connect' identified by 'password'. The trick is, in the create user syntax, what you put after the @ create user 'user'@'localhost' only gives permiss...
10,673
My sister bought me a cast iron ebelskiver pan, and I've not had much luck with each of the batches I've tried. They always burn or stick. I'm hopeful someone might have a tried-and-true technique for making them, and possibly a family recipe :)
2011/01/02
[ "https://cooking.stackexchange.com/questions/10673", "https://cooking.stackexchange.com", "https://cooking.stackexchange.com/users/2989/" ]
There are a number of things that you may or may not be doing that is causing the problem, so any of the following "solutions" may fix it for you. I am basing this on "burn" and "stick". 1. Make sure you've seasoned your cast iron. Oil it, bake it in the oven, let it cool. It will improve over a period of time. 2. Oil...
Regarding recipies, try throwing this one through Google Translate and pick any of the recipies you like: <http://www.dk-kogebogen.dk/opskrifter/retter-3.php?id=482> These are Danish recipies, and I believe ebelskivers (æbleskiver) to be a Danish thing. Have fun :)
10,673
My sister bought me a cast iron ebelskiver pan, and I've not had much luck with each of the batches I've tried. They always burn or stick. I'm hopeful someone might have a tried-and-true technique for making them, and possibly a family recipe :)
2011/01/02
[ "https://cooking.stackexchange.com/questions/10673", "https://cooking.stackexchange.com", "https://cooking.stackexchange.com/users/2989/" ]
Just to add on to the above answer (which is spot on): Add an oil coating after your pan has heated to cooking temperature completely, just before you add batter. The heat tends to allow the oil to coat more evenly and you'll need less oil overall to create a completely non-stick surface. Other than that, the more yo...
Regarding recipies, try throwing this one through Google Translate and pick any of the recipies you like: <http://www.dk-kogebogen.dk/opskrifter/retter-3.php?id=482> These are Danish recipies, and I believe ebelskivers (æbleskiver) to be a Danish thing. Have fun :)
10,673
My sister bought me a cast iron ebelskiver pan, and I've not had much luck with each of the batches I've tried. They always burn or stick. I'm hopeful someone might have a tried-and-true technique for making them, and possibly a family recipe :)
2011/01/02
[ "https://cooking.stackexchange.com/questions/10673", "https://cooking.stackexchange.com", "https://cooking.stackexchange.com/users/2989/" ]
I love ebelskivers, these are great little treats! The way to prevent them from sticking to the pan is brushing melted butter over it before you put the batter in. And make sure to season the cast iron. IF you are looking for easy step by step directions for making them feel free to check out my blog <http://cookingfor...
Regarding recipies, try throwing this one through Google Translate and pick any of the recipies you like: <http://www.dk-kogebogen.dk/opskrifter/retter-3.php?id=482> These are Danish recipies, and I believe ebelskivers (æbleskiver) to be a Danish thing. Have fun :)
283,654
Let $P$ be a convex polytope in $\mathbb{R}^3$ whose every vertex lies in the $\mathbb{Z}^3$ lattice. **Question:** If $P$ contains exactly one lattice point in its interior, what is the maximum possible volume of $P$? Notice that a convex lattice polytope with no interior lattice point can have arbitrarily large vo...
2017/10/17
[ "https://mathoverflow.net/questions/283654", "https://mathoverflow.net", "https://mathoverflow.net/users/36904/" ]
Depictions of the two lattice polyhedra mentioned so far (by Wlodek Kuperberg & js21): --- [![LatticeTwoPolyh](https://i.stack.imgur.com/sMy5i.jpg)](https://i.stack.imgur.com/sMy5i.jpg) Left: $(0,0,0),(4,0,0),(0,4,0),(0,0,4)$. Right: $(0,0,0), (2,0,0), (0,3,0), (0,0,12)$. ---
Just to extend the examples so far: Given a non-decreasing list of $n$ integers $a\_1 \leq a\_2 \leq \cdots \leq a\_n,$ consider the simplex with vertices at the origin and the points with all coordinates zero except $a\_i$ in the $i$th position. The volume is $\frac{\prod a\_i}{n!}.$ The point $(1,1,\cdots,1)$ is in t...
283,654
Let $P$ be a convex polytope in $\mathbb{R}^3$ whose every vertex lies in the $\mathbb{Z}^3$ lattice. **Question:** If $P$ contains exactly one lattice point in its interior, what is the maximum possible volume of $P$? Notice that a convex lattice polytope with no interior lattice point can have arbitrarily large vo...
2017/10/17
[ "https://mathoverflow.net/questions/283654", "https://mathoverflow.net", "https://mathoverflow.net/users/36904/" ]
Depictions of the two lattice polyhedra mentioned so far (by Wlodek Kuperberg & js21): --- [![LatticeTwoPolyh](https://i.stack.imgur.com/sMy5i.jpg)](https://i.stack.imgur.com/sMy5i.jpg) Left: $(0,0,0),(4,0,0),(0,4,0),(0,0,4)$. Right: $(0,0,0), (2,0,0), (0,3,0), (0,0,12)$. ---
this is a great question and fairly good answers are known for arbitrary dimensions. (I think there are works for $d=3$ but I am not sure.) The relevant papers are On lattice polytopes having interior lattice points, by J.M. Wills; J. Zaks; M.A. Perles . Elemente der Mathematik (1982) Volume: 37, page 44-45 (lower b...
283,654
Let $P$ be a convex polytope in $\mathbb{R}^3$ whose every vertex lies in the $\mathbb{Z}^3$ lattice. **Question:** If $P$ contains exactly one lattice point in its interior, what is the maximum possible volume of $P$? Notice that a convex lattice polytope with no interior lattice point can have arbitrarily large vo...
2017/10/17
[ "https://mathoverflow.net/questions/283654", "https://mathoverflow.net", "https://mathoverflow.net/users/36904/" ]
This is addressed in the 2013 paper (appeared in Advances in 2015) by [Averkov, Krumpelmann, Nill](https://arxiv.org/abs/1309.7967). The give a sharp bound for the volume of a lattice simplex with one interior lattice point (Theorem 2.2 in the paper), and an improved bound for a general lattice polyhedron with the same...
Depictions of the two lattice polyhedra mentioned so far (by Wlodek Kuperberg & js21): --- [![LatticeTwoPolyh](https://i.stack.imgur.com/sMy5i.jpg)](https://i.stack.imgur.com/sMy5i.jpg) Left: $(0,0,0),(4,0,0),(0,4,0),(0,0,4)$. Right: $(0,0,0), (2,0,0), (0,3,0), (0,0,12)$. ---
283,654
Let $P$ be a convex polytope in $\mathbb{R}^3$ whose every vertex lies in the $\mathbb{Z}^3$ lattice. **Question:** If $P$ contains exactly one lattice point in its interior, what is the maximum possible volume of $P$? Notice that a convex lattice polytope with no interior lattice point can have arbitrarily large vo...
2017/10/17
[ "https://mathoverflow.net/questions/283654", "https://mathoverflow.net", "https://mathoverflow.net/users/36904/" ]
This is addressed in the 2013 paper (appeared in Advances in 2015) by [Averkov, Krumpelmann, Nill](https://arxiv.org/abs/1309.7967). The give a sharp bound for the volume of a lattice simplex with one interior lattice point (Theorem 2.2 in the paper), and an improved bound for a general lattice polyhedron with the same...
Just to extend the examples so far: Given a non-decreasing list of $n$ integers $a\_1 \leq a\_2 \leq \cdots \leq a\_n,$ consider the simplex with vertices at the origin and the points with all coordinates zero except $a\_i$ in the $i$th position. The volume is $\frac{\prod a\_i}{n!}.$ The point $(1,1,\cdots,1)$ is in t...
283,654
Let $P$ be a convex polytope in $\mathbb{R}^3$ whose every vertex lies in the $\mathbb{Z}^3$ lattice. **Question:** If $P$ contains exactly one lattice point in its interior, what is the maximum possible volume of $P$? Notice that a convex lattice polytope with no interior lattice point can have arbitrarily large vo...
2017/10/17
[ "https://mathoverflow.net/questions/283654", "https://mathoverflow.net", "https://mathoverflow.net/users/36904/" ]
This is addressed in the 2013 paper (appeared in Advances in 2015) by [Averkov, Krumpelmann, Nill](https://arxiv.org/abs/1309.7967). The give a sharp bound for the volume of a lattice simplex with one interior lattice point (Theorem 2.2 in the paper), and an improved bound for a general lattice polyhedron with the same...
this is a great question and fairly good answers are known for arbitrary dimensions. (I think there are works for $d=3$ but I am not sure.) The relevant papers are On lattice polytopes having interior lattice points, by J.M. Wills; J. Zaks; M.A. Perles . Elemente der Mathematik (1982) Volume: 37, page 44-45 (lower b...
64,155,675
I have a workbook consisting of 44 sheets. In this workbook, I have a VBA code that **protects and unprotects** the sheets, **hides and unhides** sheets, **inserts and deletes** inserted sheets. How do I protect the workbook such that a user doesn't **delete**, **rename** or even **move** the sheets? I tried the **pr...
2020/10/01
[ "https://Stackoverflow.com/questions/64155675", "https://Stackoverflow.com", "https://Stackoverflow.com/users/10620833/" ]
One thing you could do is rename and move the Sheet any time it is activated. Each worksheet has a worksheet name(Sheet1) and a Caption("MyWorksheet"). If the user changes the caption, you will not be able to reference the caption, so reference the sheet name instead. You can set a sheet name or just reference the defa...
If you want to still protect the workbook, you can do this. You would have to add a button in the ribbon, worksheet, or a keyboard shortcut for the user to run it. ``` Sub newSheet() Dim sheetName As Variant sheetName = InputBox("What do you want to name the sheet?") ActiveWorkbook.Unprotect 'password if neede...
34,260,156
I have a WCF service which works fine offline However, when I publish it into Azure, it doesn't <http://ties532.cloudapp.net/Service1.svc> Notice `<customErrors mode="off"/>` in my web.config, which actually did not make any difference about error displaying... I know that I need to make some changes to the web.conf...
2015/12/14
[ "https://Stackoverflow.com/questions/34260156", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3605216/" ]
You can use a remote desktop connection to connect on your cloud service VM. <https://azure.microsoft.com/en-us/documentation/articles/cloud-services-nodejs-enable-remote-desktop/> Then use the VM Internet Explorer to test your website, I think you will have a more verbose error log. Regards, Florent.
Change off to Off - mode only accepts On|Off|RemoteOnly
34,260,156
I have a WCF service which works fine offline However, when I publish it into Azure, it doesn't <http://ties532.cloudapp.net/Service1.svc> Notice `<customErrors mode="off"/>` in my web.config, which actually did not make any difference about error displaying... I know that I need to make some changes to the web.conf...
2015/12/14
[ "https://Stackoverflow.com/questions/34260156", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3605216/" ]
You can use a remote desktop connection to connect on your cloud service VM. <https://azure.microsoft.com/en-us/documentation/articles/cloud-services-nodejs-enable-remote-desktop/> Then use the VM Internet Explorer to test your website, I think you will have a more verbose error log. Regards, Florent.
There is a common problem in Cloud Service project with referenced DLL not installed on the VM. In your Project references, can you configure all references with "Copy Local" property set to "TRUE" and then redeploy to Azure?
276,917
I have [javascript](https://stackoverflow.com/questions/tagged/javascript "show questions tagged 'javascript'") dupehammer superpowers. [This question](https://stackoverflow.com/q/26942674/1529630) has [javascript](https://stackoverflow.com/questions/tagged/javascript "show questions tagged 'javascript'") tag, but it'...
2014/11/16
[ "https://meta.stackoverflow.com/questions/276917", "https://meta.stackoverflow.com", "https://meta.stackoverflow.com/users/1529630/" ]
I think it's better to leave the post alone. Using your privilege to mark a post duplicate when you are not fully certain that the question is a duplicate is an abuse of the privilege. You could leave a comment indicating that the question is potentially a duplicate. You'll have to trust that other users that are certa...
Provided the OP has given a very strong signal I don't see the harm in this, because in the majority of cases it will be correct. In the event it wasn't correct it's still easy enough to reopen (worst case is a mod flag+explain). Close as duplicate isn't a permanent state (unlike a merge, which is *much* harder to get ...
276,917
I have [javascript](https://stackoverflow.com/questions/tagged/javascript "show questions tagged 'javascript'") dupehammer superpowers. [This question](https://stackoverflow.com/q/26942674/1529630) has [javascript](https://stackoverflow.com/questions/tagged/javascript "show questions tagged 'javascript'") tag, but it'...
2014/11/16
[ "https://meta.stackoverflow.com/questions/276917", "https://meta.stackoverflow.com", "https://meta.stackoverflow.com/users/1529630/" ]
I think it's better to leave the post alone. Using your privilege to mark a post duplicate when you are not fully certain that the question is a duplicate is an abuse of the privilege. You could leave a comment indicating that the question is potentially a duplicate. You'll have to trust that other users that are certa...
That's actually better suited for <https://math.stackexchange.com/> :D. *When voting to close, you should be something like 95% sure (YMMV). There are* n *votes needed to close a question. Compute the probability that a question gets closed by mistake...* Now seriously: You're maybe 5 times stronger than a normal vot...
276,917
I have [javascript](https://stackoverflow.com/questions/tagged/javascript "show questions tagged 'javascript'") dupehammer superpowers. [This question](https://stackoverflow.com/q/26942674/1529630) has [javascript](https://stackoverflow.com/questions/tagged/javascript "show questions tagged 'javascript'") tag, but it'...
2014/11/16
[ "https://meta.stackoverflow.com/questions/276917", "https://meta.stackoverflow.com", "https://meta.stackoverflow.com/users/1529630/" ]
Not sure if I'm fully convinced by my own first reaction, but I present it for voting: Suppose you didn't have dupehammer. Would you vote to close as dupe based on the (apparent) opinion of the OP that it is? If not, of course don't dupehammer it. If so, then you should vote to close despite having dupehammer, for tw...
Provided the OP has given a very strong signal I don't see the harm in this, because in the majority of cases it will be correct. In the event it wasn't correct it's still easy enough to reopen (worst case is a mod flag+explain). Close as duplicate isn't a permanent state (unlike a merge, which is *much* harder to get ...
276,917
I have [javascript](https://stackoverflow.com/questions/tagged/javascript "show questions tagged 'javascript'") dupehammer superpowers. [This question](https://stackoverflow.com/q/26942674/1529630) has [javascript](https://stackoverflow.com/questions/tagged/javascript "show questions tagged 'javascript'") tag, but it'...
2014/11/16
[ "https://meta.stackoverflow.com/questions/276917", "https://meta.stackoverflow.com", "https://meta.stackoverflow.com/users/1529630/" ]
Provided the OP has given a very strong signal I don't see the harm in this, because in the majority of cases it will be correct. In the event it wasn't correct it's still easy enough to reopen (worst case is a mod flag+explain). Close as duplicate isn't a permanent state (unlike a merge, which is *much* harder to get ...
That's actually better suited for <https://math.stackexchange.com/> :D. *When voting to close, you should be something like 95% sure (YMMV). There are* n *votes needed to close a question. Compute the probability that a question gets closed by mistake...* Now seriously: You're maybe 5 times stronger than a normal vot...
276,917
I have [javascript](https://stackoverflow.com/questions/tagged/javascript "show questions tagged 'javascript'") dupehammer superpowers. [This question](https://stackoverflow.com/q/26942674/1529630) has [javascript](https://stackoverflow.com/questions/tagged/javascript "show questions tagged 'javascript'") tag, but it'...
2014/11/16
[ "https://meta.stackoverflow.com/questions/276917", "https://meta.stackoverflow.com", "https://meta.stackoverflow.com/users/1529630/" ]
Not sure if I'm fully convinced by my own first reaction, but I present it for voting: Suppose you didn't have dupehammer. Would you vote to close as dupe based on the (apparent) opinion of the OP that it is? If not, of course don't dupehammer it. If so, then you should vote to close despite having dupehammer, for tw...
That's actually better suited for <https://math.stackexchange.com/> :D. *When voting to close, you should be something like 95% sure (YMMV). There are* n *votes needed to close a question. Compute the probability that a question gets closed by mistake...* Now seriously: You're maybe 5 times stronger than a normal vot...
63,586,168
version: '3.0' services: db: image: mysql volumes: - db\_data:/var/lib/mysql restart: always environment: MYSQL\_ROOT\_PASSWORD: 1234 MYSQL\_USER: wordpress MYSQL\_PASSWORD: 12345 wordpress1: depends\_on: -db image: wordpress:latest restart: always ports: -"8080:80" environment: WORDPRESS\_DB\_USER: wordpres...
2020/08/25
[ "https://Stackoverflow.com/questions/63586168", "https://Stackoverflow.com", "https://Stackoverflow.com/users/10519269/" ]
What you need is injecting parameters with koin. In the koin module, your definition should look like this: ``` single { activityContext -> SettingsDialogHelper(get(), activityContext } ``` Then in the injecting class, you pass the parameter at runtime. In your case, in MainActivity you can inject with: ``` privat...
Fragment ``` val dialogs: Dialogs by inject { parametersOf(requireActivity()) } ``` KoinModule ``` single<Dialogs>{activityContext -> DialogsImpl(activityContext.get())} ```
27,446,257
I'm writing code in a `JPanel`, it's all working fine. However, the categories are not displayed when I view the panel. Here's the code I wrote: ``` for(Category c : categories){ comboModel.addElement(c); NoResultsLabel.setVisible(false); } CategoriesCombo.setModel(comboModel); ``` So t...
2014/12/12
[ "https://Stackoverflow.com/questions/27446257", "https://Stackoverflow.com", "https://Stackoverflow.com/users/4154597/" ]
To do this, you're always going to cheat somehow, since the true filter applied to the true data doesn't behave the way you require. One of the best ways to cheat with your data is to **assume it's periodic**. This has the advantages that: 1) it's consistent with the data you actually have and all your changing is to...
The question is how to filter data and require that the left endpoint of the filtered result matches the left endpoint of the data, and same for the right endpoint. (That is, in general, the filtered result should be close to most of the data points, but not necessarily exactly match any of them, but what if you need a...
2,281,955
when using idle, I know you can reload a module if it's changed like this: ``` import foo reload(foo) ``` if I only import part of a module, is there a way to reload it in a similar matter? ``` from foo import bar ```
2010/02/17
[ "https://Stackoverflow.com/questions/2281955", "https://Stackoverflow.com", "https://Stackoverflow.com/users/89761/" ]
No, `reload` has to re-run the whole module. Note that `reload` is confusing and does not have the ability to be consistent. It's much better to restart the interpreter.
No. You'll have to import foo, then reload(foo), after all.
2,281,955
when using idle, I know you can reload a module if it's changed like this: ``` import foo reload(foo) ``` if I only import part of a module, is there a way to reload it in a similar matter? ``` from foo import bar ```
2010/02/17
[ "https://Stackoverflow.com/questions/2281955", "https://Stackoverflow.com", "https://Stackoverflow.com/users/89761/" ]
No, `reload` has to re-run the whole module. Note that `reload` is confusing and does not have the ability to be consistent. It's much better to restart the interpreter.
<http://docs.python.org/2/library/functions.html#reload> It says: > > "If a module imports objects from another module using from ... import > ..., calling reload() for the other module does not redefine the > objects imported from it — one way around this is to re-execute the > from statement, another is to use...
52,118,419
How do I add Poisson noise with a specific mean of Poisson distribution in Matlab? The code below gives me a completely white image. ``` img = im2double(phantom(512)); figure; imshow(img) mean = 1e9; R = poissrnd(mean, [512, 512]); J = img + R; figure; imshow(J); ```
2018/08/31
[ "https://Stackoverflow.com/questions/52118419", "https://Stackoverflow.com", "https://Stackoverflow.com/users/9893480/" ]
Typically, when adding Poisson noise to an image, you want to use the pixel's value as the mean (after scaling appropriately). This more closely would match Poisson noise in image acquisition. For example, say your image, which is in the range 0-1 after `im2double`, was acquired in a photon-limited microscope. And let...
The way you are doing it is good. Your mean is 1000000000 therefore the numbers are very very big. However to show an image with auto-scaled colormap, do: ``` img = im2double(phantom(512)); figure; imshow(img,[]) mean = 1e9; R = poissrnd(mean, [512, 512]); J = img + R; figure; imshow(J,[]); ``` Note the square bra...
5,182,275
What's the best way to do following: ``` SELECT * FROM users WHERE created >= today; ``` Note: created is a datetime field.
2011/03/03
[ "https://Stackoverflow.com/questions/5182275", "https://Stackoverflow.com", "https://Stackoverflow.com/users/276315/" ]
``` SELECT * FROM users WHERE created >= CURDATE(); ``` But I think you mean `created < today` You can compare datetime with date, for example: `SELECT NOW() < CURDATE()` gives `0`, `SELECT NOW() = CURDATE()` gives `1`.
If the column have index and a function is applied on the column then index doesn't work and full table scan occurs, causing really slow query. Bad Query; This would ignore index on the column date\_time ``` select * from users where Date(date_time) > '2010-10-10' ``` To utilize index on column **created** of type ...
5,182,275
What's the best way to do following: ``` SELECT * FROM users WHERE created >= today; ``` Note: created is a datetime field.
2011/03/03
[ "https://Stackoverflow.com/questions/5182275", "https://Stackoverflow.com", "https://Stackoverflow.com/users/276315/" ]
``` SELECT * FROM myTable WHERE DATE(myDate) = DATE(NOW()) ``` Read more: <http://www.tomjepson.co.uk/tutorials/36/mysql-select-where-date-today.html>
``` SELECT * FROM users WHERE created >= now() ```
5,182,275
What's the best way to do following: ``` SELECT * FROM users WHERE created >= today; ``` Note: created is a datetime field.
2011/03/03
[ "https://Stackoverflow.com/questions/5182275", "https://Stackoverflow.com", "https://Stackoverflow.com/users/276315/" ]
``` SELECT * FROM myTable WHERE DATE(myDate) = DATE(NOW()) ``` Read more: <http://www.tomjepson.co.uk/tutorials/36/mysql-select-where-date-today.html>
If the column have index and a function is applied on the column then index doesn't work and full table scan occurs, causing really slow query. Bad Query; This would ignore index on the column date\_time ``` select * from users where Date(date_time) > '2010-10-10' ``` To utilize index on column **created** of type ...
5,182,275
What's the best way to do following: ``` SELECT * FROM users WHERE created >= today; ``` Note: created is a datetime field.
2011/03/03
[ "https://Stackoverflow.com/questions/5182275", "https://Stackoverflow.com", "https://Stackoverflow.com/users/276315/" ]
``` SELECT * FROM myTable WHERE DATE(myDate) = DATE(NOW()) ``` Read more: <http://www.tomjepson.co.uk/tutorials/36/mysql-select-where-date-today.html>
``` SELECT * FROM users WHERE created >= NOW(); ``` if the column is datetime type.
5,182,275
What's the best way to do following: ``` SELECT * FROM users WHERE created >= today; ``` Note: created is a datetime field.
2011/03/03
[ "https://Stackoverflow.com/questions/5182275", "https://Stackoverflow.com", "https://Stackoverflow.com/users/276315/" ]
``` SELECT * FROM users WHERE created >= NOW(); ``` if the column is datetime type.
``` SELECT * FROM users WHERE created >= now() ```
5,182,275
What's the best way to do following: ``` SELECT * FROM users WHERE created >= today; ``` Note: created is a datetime field.
2011/03/03
[ "https://Stackoverflow.com/questions/5182275", "https://Stackoverflow.com", "https://Stackoverflow.com/users/276315/" ]
``` SELECT * FROM users WHERE created >= now() ```
you can return all rows and than use php datediff function inside an if statement, although that will put extra load on the server. ``` if(dateDiff(date("Y/m/d"), $row['date']) <=0 ){ }else{ echo " info here"; } ```
5,182,275
What's the best way to do following: ``` SELECT * FROM users WHERE created >= today; ``` Note: created is a datetime field.
2011/03/03
[ "https://Stackoverflow.com/questions/5182275", "https://Stackoverflow.com", "https://Stackoverflow.com/users/276315/" ]
``` SELECT * FROM users WHERE created >= CURDATE(); ``` But I think you mean `created < today` You can compare datetime with date, for example: `SELECT NOW() < CURDATE()` gives `0`, `SELECT NOW() = CURDATE()` gives `1`.
``` SELECT * FROM users WHERE created >= now() ```
5,182,275
What's the best way to do following: ``` SELECT * FROM users WHERE created >= today; ``` Note: created is a datetime field.
2011/03/03
[ "https://Stackoverflow.com/questions/5182275", "https://Stackoverflow.com", "https://Stackoverflow.com/users/276315/" ]
If the column have index and a function is applied on the column then index doesn't work and full table scan occurs, causing really slow query. Bad Query; This would ignore index on the column date\_time ``` select * from users where Date(date_time) > '2010-10-10' ``` To utilize index on column **created** of type ...
``` SELECT * FROM users WHERE created >= now() ```
5,182,275
What's the best way to do following: ``` SELECT * FROM users WHERE created >= today; ``` Note: created is a datetime field.
2011/03/03
[ "https://Stackoverflow.com/questions/5182275", "https://Stackoverflow.com", "https://Stackoverflow.com/users/276315/" ]
``` SELECT * FROM users WHERE created >= CURDATE(); ``` But I think you mean `created < today` You can compare datetime with date, for example: `SELECT NOW() < CURDATE()` gives `0`, `SELECT NOW() = CURDATE()` gives `1`.
``` SELECT * FROM myTable WHERE DATE(myDate) = DATE(NOW()) ``` Read more: <http://www.tomjepson.co.uk/tutorials/36/mysql-select-where-date-today.html>
5,182,275
What's the best way to do following: ``` SELECT * FROM users WHERE created >= today; ``` Note: created is a datetime field.
2011/03/03
[ "https://Stackoverflow.com/questions/5182275", "https://Stackoverflow.com", "https://Stackoverflow.com/users/276315/" ]
``` SELECT * FROM myTable WHERE DATE(myDate) = DATE(NOW()) ``` Read more: <http://www.tomjepson.co.uk/tutorials/36/mysql-select-where-date-today.html>
The below code worked for me. ``` declare @Today date Set @Today=getdate() --date will equal today Select * FROM table_name WHERE created <= @Today ```
1,198,119
How can I increase swap partition size? I would like to shrink the size of partition #5(`/dev/nvme0n1p5` which is a ZFS partition) by 6Gb and add it to partition #3(`/dev/nvme0n1p3`). I'm running Xubuntu 19.10 with ZFS as root. ### Notes: * Since none of the GUI Partition managers(GParted/Gnome Disks/KDE Partition ...
2019/12/23
[ "https://askubuntu.com/questions/1198119", "https://askubuntu.com", "https://askubuntu.com/users/32117/" ]
1. Install clang version 9 from the default Ubuntu repositories in Ubuntu 19.10 and later. ``` sudo apt install clang-9 ``` 2. `/usr/bin/c++` is actually a symbolic link to: ``` /etc/alternatives/c++ ``` which in turn is also a symbolic link to: ``` /usr/bin/g++ ``` so on Ubuntu c++ is g++ and g++ is g++ *expli...
Step 1: Install prerequisites ``` sudo apt-get install build-essential xz-utils curl ``` Step 2: Download the necessary binaries and extract them. ``` curl -SL http://releases.llvm.org/9.0.0/clang+llvm-9.0.0-x86_64-pc-linux-gnu.tar.xz | tar -xJC ``` Step 3: Renaming & moving the binaries. ``` mv clang+llvm-9.0.0...
10,761,978
I have headings separated onto different rows. Instead of having a heading that makes sense and is unique like "Litres of water dumped on Tuesday" I have: > > Litres of > water > dumped > on Tuesday > > > separated across 4 rows. I want to know how much water was dumped on Tuesday and there are multipl...
2012/05/25
[ "https://Stackoverflow.com/questions/10761978", "https://Stackoverflow.com", "https://Stackoverflow.com/users/768344/" ]
If I understand correctly, you need the entire header to be in a single cell, as opposed to split over four rows in four parts that have no useful meaning individually. You can do this using Excel's `CONCATENATE` function or, equivalently, the more succint `&` operator. Example: ![enter image description here](https...
Is this what you are trying? I am assuming that the data is arranged as shown in the snapshot. `=OFFSET(INDIRECT(CELL("Address",INDEX(A1:D4,MATCH(TRUE,COUNTIF(OFFSET(A1:D4,ROW(A1:D4)-CELL("Row",A1:D4),0,1),F1)>0,0),MATCH(F1,INDEX(A1:D4,MATCH(TRUE,COUNTIF(OFFSET(A1:D4,ROW(A1:D4)-CELL("Row",A1:D4),0,1),F1)>0,0),0),0))))...
60,583,414
I have a folder with a couple hundred .csv files that I'd like to import and merge. Each file contains two columns of data, but there are different numbers of rows, and the rows have different names. The columns don't have names (For this, let's say they're named `x` and `y`). How can I merge these all together? I'd ...
2020/03/08
[ "https://Stackoverflow.com/questions/60583414", "https://Stackoverflow.com", "https://Stackoverflow.com/users/7737143/" ]
Suggested solution using a function to calculate summary statistics right when loading data: ``` readCalc <- function(file_path) { df <- read.csv(file_path) return(data.frame(file=file_path, column = names(df), averages = apply(df, 2, mean), N = app...
Taken from here: [cbind a dataframe with an empty dataframe - cbind.fill?](https://stackoverflow.com/questions/7962267/cbind-a-dataframe-with-an-empty-dataframe-cbind-fill) ``` x <- c(1:6) y <- c(1:3) z <- c(1:10) cbind.fill <- function(...){ nm <- list(...) nm <- lapply(nm, as.matrix) n <- max(sapply(nm, nrow...
60,583,414
I have a folder with a couple hundred .csv files that I'd like to import and merge. Each file contains two columns of data, but there are different numbers of rows, and the rows have different names. The columns don't have names (For this, let's say they're named `x` and `y`). How can I merge these all together? I'd ...
2020/03/08
[ "https://Stackoverflow.com/questions/60583414", "https://Stackoverflow.com", "https://Stackoverflow.com/users/7737143/" ]
Here's a solution to read all your csv files from a folder called "data" and merge the y columns into a single dataframe. This assigns the file name as the column header. ``` library(tidyverse) # store csv file paths data_path <- "data" # path to the data files <- dir(data_path, pattern = "*.csv") # get file names...
Taken from here: [cbind a dataframe with an empty dataframe - cbind.fill?](https://stackoverflow.com/questions/7962267/cbind-a-dataframe-with-an-empty-dataframe-cbind-fill) ``` x <- c(1:6) y <- c(1:3) z <- c(1:10) cbind.fill <- function(...){ nm <- list(...) nm <- lapply(nm, as.matrix) n <- max(sapply(nm, nrow...
60,583,414
I have a folder with a couple hundred .csv files that I'd like to import and merge. Each file contains two columns of data, but there are different numbers of rows, and the rows have different names. The columns don't have names (For this, let's say they're named `x` and `y`). How can I merge these all together? I'd ...
2020/03/08
[ "https://Stackoverflow.com/questions/60583414", "https://Stackoverflow.com", "https://Stackoverflow.com/users/7737143/" ]
Suggested solution using a function to calculate summary statistics right when loading data: ``` readCalc <- function(file_path) { df <- read.csv(file_path) return(data.frame(file=file_path, column = names(df), averages = apply(df, 2, mean), N = app...
Here's a solution to read all your csv files from a folder called "data" and merge the y columns into a single dataframe. This assigns the file name as the column header. ``` library(tidyverse) # store csv file paths data_path <- "data" # path to the data files <- dir(data_path, pattern = "*.csv") # get file names...
7,479,224
I need to copy over only the latest folder from a folder. All the examples I see online are for copying just the newest file. Is it possible to copy over the latest folder via batch file?
2011/09/20
[ "https://Stackoverflow.com/questions/7479224", "https://Stackoverflow.com", "https://Stackoverflow.com/users/953814/" ]
``` CD folder FOR /F "USEBACKQ tokens=*" %%A IN (`DIR /A:D /O:-D`) DO ( XCOPY "%%A" "new folder" /E /H /K /Y GOTO:OUT ) :OUT ``` Change directory to the folder in question. Use a `FOR` loop over the listing of all folders in current folder, arrange them by date with the newest on top, then copy all the contents of...
Have you tried [Robocopy](http://technet.microsoft.com/en-us/library/cc733145%28WS.10%29.aspx)? Edit to address downvote ------------------------ ``` robocopy .\src .\dest /e /xo /dcopy:T ``` Options ``` /xo Excludes older files. /e Copies subdirectories. Note that this option includes empty directories. /dco...
14,067,134
I faced a null pointer exception when I tried to retrieve an object from a normal array. First I initialize the array with 10 `Line` objects and then set the values of each object inside the array. But when I retrieve the values of any objects, I found it to be 0's. Why does that happen? ``` import java.applet.*; impo...
2012/12/28
[ "https://Stackoverflow.com/questions/14067134", "https://Stackoverflow.com", "https://Stackoverflow.com/users/813159/" ]
The problem is that in init you're initializing `lines` to an array of 10 null references: ``` lines = new Line[10]; ``` Then in `paint` you're using that null reference: ``` if (lineCounter != lines.length - 1) { g.drawLine(lines[lineCounter].getX1(), lines[lineCounter].getY1(), l...
Have you checked if the line is indeed added to the array in `mouseReleased`?
14,067,134
I faced a null pointer exception when I tried to retrieve an object from a normal array. First I initialize the array with 10 `Line` objects and then set the values of each object inside the array. But when I retrieve the values of any objects, I found it to be 0's. Why does that happen? ``` import java.applet.*; impo...
2012/12/28
[ "https://Stackoverflow.com/questions/14067134", "https://Stackoverflow.com", "https://Stackoverflow.com/users/813159/" ]
The problem is that in init you're initializing `lines` to an array of 10 null references: ``` lines = new Line[10]; ``` Then in `paint` you're using that null reference: ``` if (lineCounter != lines.length - 1) { g.drawLine(lines[lineCounter].getX1(), lines[lineCounter].getY1(), l...
The problem is you are filling the array only in `mouseReleased()` function and `paint` method doesn't wait for mouse to release. So when the mouse is not released, `paint()` method tries to draw line. you just uncomment your check `if(lines[lineCounter]!=null)` and try, it should work. If you want to achieve anythin...
29,230,673
I am trying to get Checked numbers from checkbox. ``` <Window x:Class="WpfApplication6.MainWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:local ="clr-namespace:WpfApplication6" Title="MainWindow" Hei...
2015/03/24
[ "https://Stackoverflow.com/questions/29230673", "https://Stackoverflow.com", "https://Stackoverflow.com/users/4679715/" ]
Since all the items are in the list, and all items are bound to the checkbox `IsChecked` property, you can just search in your list using LINQ ``` TestList.Where(p=>p.check).Count(); ```
If you set the CommandParameter binding as {Binding} then it'll pass the CheckBox's DataContext (i.e. the entire DataStruct object) as the parameter. This should allow you to access all of the DataStruct properties, rather than just check. Note that many people consider this a violation of MVVM principles in that the V...
468,446
I'm running a computer vision model on a headless remote VM (Ubuntu 16.04) over X11Forwarding with good ol' Putty and Xming as my Windows X Server. All is well but seems there is no frame drop if the client-server bandwidth can't keep up, which means my application is slowed down and only renders a few frames a second...
2018/09/12
[ "https://unix.stackexchange.com/questions/468446", "https://unix.stackexchange.com", "https://unix.stackexchange.com/users/262170/" ]
I highly recommend [Xpra](https://www.xpra.org/) for this sort of use-case: not only does it provide the ability to disconnect and reconnect to X applications running on a remote host, it also supports a variety of [image encodings](https://github.com/Xpra-org/xpra/blob/master/docs/Usage/Encodings.md) to provide a dece...
According to [this related question](https://superuser.com/questions/1217280/why-is-x11-forwarding-so-inefficient), looks like `X11Forwarding` isn't the best option for graphics intesive applications, as the X11 protocol wasn't designed with bitmap drawing performance in mind. It basically sends *drawing instructions*...
468,446
I'm running a computer vision model on a headless remote VM (Ubuntu 16.04) over X11Forwarding with good ol' Putty and Xming as my Windows X Server. All is well but seems there is no frame drop if the client-server bandwidth can't keep up, which means my application is slowed down and only renders a few frames a second...
2018/09/12
[ "https://unix.stackexchange.com/questions/468446", "https://unix.stackexchange.com", "https://unix.stackexchange.com/users/262170/" ]
I highly recommend [Xpra](https://www.xpra.org/) for this sort of use-case: not only does it provide the ability to disconnect and reconnect to X applications running on a remote host, it also supports a variety of [image encodings](https://github.com/Xpra-org/xpra/blob/master/docs/Usage/Encodings.md) to provide a dece...
The pure X11 protocol does not lend well itself for guaranteeing transmission, and much over SSH. I recommend NoMachine. It can do bandwidth compression and network optimization. It also has clients for Mac, Windows and Linux. PS. NoMachine has the free and the paid versions. I always used the free. See [NoMachine]...
66,785,566
"[Kafka: Definitive guide](https://www.confluent.io/resources/kafka-the-definitive-guide/)" states that: > > Deletion of consumer groups is only supported for old consumer > clients. > > > But I could not find anywhere how exactly old should the Consumer Group be. How long should I wait until I can remove the new...
2021/03/24
[ "https://Stackoverflow.com/questions/66785566", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2056914/" ]
You've said you can't, but you can add the attribute defined in that string via `setAttribute`: ```js var ele = document.getElementById('divid'); var topic = 'topic-Close=SCENARIO_COPIER_POPUP_CLOSE '; const [name, value] = topic.split("=", 2); ele.setAttribute(name, value); console.log(ele.outerHTML); ``` ```html <...
Use data-attrName format for attribute name ``` ele.setAttribute("data-topic-Close", "SCENARIO_COPIER_POPUP_CLOSE") ```
33,412,567
i wanna use angular js with bootstrap, so plz suggest me how..? ``` <div ng-app="myApp" ng-controller="myCtrl" class="container"> <div class="row"> First Name: <input type="text" ng-model="firstName"> </div> Last Name: <input type="text" ng-model="lastName"> <br> <br> Full Name...
2015/10/29
[ "https://Stackoverflow.com/questions/33412567", "https://Stackoverflow.com", "https://Stackoverflow.com/users/5502456/" ]
You are using `HTMLWorker`. That class is deprecated: it is no longer supported as it has been abandoned in favor of [XML Worker](http://itextpdf.com/product/xml_worker). There are different ways to solve your problem. **Create multiple small HTML files instead of one big HTML** I wouldn't create one long table for e...
If your html content is fixed then you can with page break but if your HTML content is variable then it will be different to predict when page is start and finish.
33,412,567
i wanna use angular js with bootstrap, so plz suggest me how..? ``` <div ng-app="myApp" ng-controller="myCtrl" class="container"> <div class="row"> First Name: <input type="text" ng-model="firstName"> </div> Last Name: <input type="text" ng-model="lastName"> <br> <br> Full Name...
2015/10/29
[ "https://Stackoverflow.com/questions/33412567", "https://Stackoverflow.com", "https://Stackoverflow.com/users/5502456/" ]
You can append pagebreak after every tag and append before tag. This will give you a string like, ................. following is the code to split the html string. ``` Dim myString As String = sb.ToString() Dim mySplit As String = "pagebreak" Dim myResult() As String = myString.Split(New String() {mySplit}, StringSpl...
If your html content is fixed then you can with page break but if your HTML content is variable then it will be different to predict when page is start and finish.
33,412,567
i wanna use angular js with bootstrap, so plz suggest me how..? ``` <div ng-app="myApp" ng-controller="myCtrl" class="container"> <div class="row"> First Name: <input type="text" ng-model="firstName"> </div> Last Name: <input type="text" ng-model="lastName"> <br> <br> Full Name...
2015/10/29
[ "https://Stackoverflow.com/questions/33412567", "https://Stackoverflow.com", "https://Stackoverflow.com/users/5502456/" ]
You are using `HTMLWorker`. That class is deprecated: it is no longer supported as it has been abandoned in favor of [XML Worker](http://itextpdf.com/product/xml_worker). There are different ways to solve your problem. **Create multiple small HTML files instead of one big HTML** I wouldn't create one long table for e...
You can append pagebreak after every tag and append before tag. This will give you a string like, ................. following is the code to split the html string. ``` Dim myString As String = sb.ToString() Dim mySplit As String = "pagebreak" Dim myResult() As String = myString.Split(New String() {mySplit}, StringSpl...
278,802
Please help me to check convergence of $$\sum\_{n=2}^{k}(-1)^{[\sqrt n]}\frac{1}{\ln n}$$ I think it diverges, because it don't absolute converge, and it won't stabilze at large $n$, but how to prove it?
2013/01/14
[ "https://math.stackexchange.com/questions/278802", "https://math.stackexchange.com", "https://math.stackexchange.com/users/55440/" ]
Let $S\_k$ note the sum from 2 to k. Then for $ k \geq 2 $ we have $$ |S\_{ (k+1)^2 - 1 } - S\_{ k^2 - 1 }| = | \sum\_{j=k^2}^{(k+1)^2 - 1} (-1)^{\lfloor \sqrt{j} \rfloor} \dfrac{1}{\ln j}| = |(-1)^k| |\sum\_{j = k^2 }^{ (k+1)^2 - 1} \dfrac{1}{\ln j}| \geq (2k - 1 ) \times \dfrac{1}{\ln (k+1)^2} = \dfrac{2k-1}{2\ln (...
Let $s\_k$ be the $k$-th partial sum of our series. We show that the sequence $(s\_k)$ does not converge, by showing it is not a Cauchy sequence. Take $M=(2t)^2$ and $N=(2t+1)^2-1$. For any $n$ between $M$ and $N$, $\lfloor\sqrt{n}\rfloor=2t$, so $\lfloor \sqrt{n}\rfloor$ is even. Thus $s\_N-s\_M$ is a sum of positi...
17,388,379
Having several paths, like: ``` 1: /abc/def/some/common/part/xyz/file1.ext 2: /other/path/to/7433/qwe/some/common/part/anotherfile.ext 3: /misc/path/7433/qwe/some/common/part/filexx.ext 4: /2443/totally/different/path/file9988.ext 5: /abc/another/same/path/to/ppp/thisfile.ext 6: /deep1/deep2/another/same/path/to/diffo...
2013/06/30
[ "https://Stackoverflow.com/questions/17388379", "https://Stackoverflow.com", "https://Stackoverflow.com/users/734304/" ]
You need to use `setOnItemClickListener` in your activity class ``` lv.setOnItemClickListener(new OnItemClickListener() { public void onItemClick(AdapterView<?> arg0, View v, int arg2, long arg3) { TextView tv = (TextView) v.findViewById(R.id.txtV_player_input_position_title); S...
Try like this inside ur `OnItemClick` ``` TextView text = (TextView) arg1.findViewById(R.id.ID_OF_YOUR_TEXTVIEW); //arg1 is the View String val= text.getText().toString(); ```
3,349,759
I want to break a domain name into constituent words and numbers e.g. iamadomain11.com = ['i', 'am', 'a', 'domain', '11'] How do i do this? I am aware that there may be multiple sets possible, however, i am currently even ok, just getting 1 set of possibilities.
2010/07/28
[ "https://Stackoverflow.com/questions/3349759", "https://Stackoverflow.com", "https://Stackoverflow.com/users/348663/" ]
This is actually solved in the O'Reilly Media book, [*Beautiful Data*](http://oreilly.com/catalog/9780596157111/). In chapter 14, "Natural Language Corpus Data", he creates a splitter to do exactly as you want in Python using a giant freely available token frequency data set.
This is a fun problem! First you would need a dictionary. For performance reasons, store this in an hashset (probably can use the dictionary type in python). You could then iterate over each possible string, ("i", "ia", "iam",..."n11", "1", "11", "1") and check for matches in the dictionary. Then it's a matter of itera...
3,349,759
I want to break a domain name into constituent words and numbers e.g. iamadomain11.com = ['i', 'am', 'a', 'domain', '11'] How do i do this? I am aware that there may be multiple sets possible, however, i am currently even ok, just getting 1 set of possibilities.
2010/07/28
[ "https://Stackoverflow.com/questions/3349759", "https://Stackoverflow.com", "https://Stackoverflow.com/users/348663/" ]
This is actually solved in the O'Reilly Media book, [*Beautiful Data*](http://oreilly.com/catalog/9780596157111/). In chapter 14, "Natural Language Corpus Data", he creates a splitter to do exactly as you want in Python using a giant freely available token frequency data set.
This sounds similar to the problem of tokenising Chinese, where there are no spaces in between words. This paragraph is taken from 'Introduction to Information Retrieval' by Manning, Raghavan & Schütze, available online [here](http://nlp.stanford.edu/IR-book/html/htmledition/tokenization-1.html): > > This phenomenon ...
16,119,195
**how to use faultsequence of proxy in esb** i want to use faultsequence when occur a fault in EndPoint. for example i stop service1 using jconsole and want to route message to service2 when call proxy service. but when i call proxy using soapui it show fault this message : *The system is attempting to access an inact...
2013/04/20
[ "https://Stackoverflow.com/questions/16119195", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2116412/" ]
When your endpoint 1 is inactive it returns a soap fault and you want it to go to the fault sequence. But at the moment that fault sequence is considered as a response and it is sent to the client (soap ui). In WSO2 ESB 4.5.0 onwards, there is a new property FORCE\_ERROR\_ON\_SOAP\_FAULT added. By setting this propert...
I believe your exact scenario is apart of your main end point if it faild you need to route the message to secondary endpoint. Correct approach to your implementation is not using the fault sequence right approach is using fail over endpoint. You can find reference document at [1][2]. For sample you can refer "Sampl...
21,148,422
I am trying to re-calculate a few different columns of data for a particular EmployeeID. I want the hrs\_YTD column to keep a running total. What is a good way of updating this info? HRS\_YTD currently has 0.00 values. I wan't to achieve the results in the table below. ID | CHEKDATE | CHEKNUMBR | HRS | HRS\_YTD EN3...
2014/01/15
[ "https://Stackoverflow.com/questions/21148422", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1354960/" ]
havent tested this, but you can give this a try ``` DECLARE @k_external_id varchar(32) SET @k_external_id = 'EN344944' SELECT g1.primarykey, g1.ID,g1.CHEKDATE, g1.CHEKNUMBR, g1.HRS ,(SELECT SUM(g2.HRS) FROM dbo.gp_check_hdr g2 WHERE g2.ID = @k_external_id AND (...
The way I'd do this is a combination of a `computed column` and a `user defined function`. The function allows to aggregate the data. In a computed column, you can only work with fields of the same row, hence calling a function (which is allowed) is necessary. The computed column allows this to work continuously with...
21,148,422
I am trying to re-calculate a few different columns of data for a particular EmployeeID. I want the hrs\_YTD column to keep a running total. What is a good way of updating this info? HRS\_YTD currently has 0.00 values. I wan't to achieve the results in the table below. ID | CHEKDATE | CHEKNUMBR | HRS | HRS\_YTD EN3...
2014/01/15
[ "https://Stackoverflow.com/questions/21148422", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1354960/" ]
havent tested this, but you can give this a try ``` DECLARE @k_external_id varchar(32) SET @k_external_id = 'EN344944' SELECT g1.primarykey, g1.ID,g1.CHEKDATE, g1.CHEKNUMBR, g1.HRS ,(SELECT SUM(g2.HRS) FROM dbo.gp_check_hdr g2 WHERE g2.ID = @k_external_id AND (...
Your sub query should work just fine. I used a table variable in place of a temp table. I also limited the results inserted in the temp table to 2013 to simplify the final select statement and limit the results in the temp table to just what you need. The only other thing is joining the sub query to the main query us...
21,148,422
I am trying to re-calculate a few different columns of data for a particular EmployeeID. I want the hrs\_YTD column to keep a running total. What is a good way of updating this info? HRS\_YTD currently has 0.00 values. I wan't to achieve the results in the table below. ID | CHEKDATE | CHEKNUMBR | HRS | HRS\_YTD EN3...
2014/01/15
[ "https://Stackoverflow.com/questions/21148422", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1354960/" ]
The way I'd do this is a combination of a `computed column` and a `user defined function`. The function allows to aggregate the data. In a computed column, you can only work with fields of the same row, hence calling a function (which is allowed) is necessary. The computed column allows this to work continuously with...
Your sub query should work just fine. I used a table variable in place of a temp table. I also limited the results inserted in the temp table to 2013 to simplify the final select statement and limit the results in the temp table to just what you need. The only other thing is joining the sub query to the main query us...
43,541
FAR 91.144 states that flight restrictions may be issued by notam when barometric pressure exceeds 31" Hg. Why would such a restriction be necessary?
2017/09/06
[ "https://aviation.stackexchange.com/questions/43541", "https://aviation.stackexchange.com", "https://aviation.stackexchange.com/users/182/" ]
It is because standard altimeters are not adjustable beyond this range. The AIM 7-2-2 contains information on how to handle it: > > 2. When the barometric pressure exceeds 31.00 inches Hg. The following procedures will be placed in effect by NOTAM defining the geographic area affected: > > > (a) For all aircraft. S...
I think I found the answer. The Standard governing manufacture of sensitive altimeters is TSO-C10b. TSO-C10b cites SAE Aeronautical Standard AS 392C. This standard specifies two types of altimeters: * Those with a range to 35,000 feet. * Those with a range to 50,000 feet. Both are required to be adjustable for barome...
17,619
If you're networking with people who are not from the HR, how can you benefit from knowing them? For example, as a college student, if you reach out to those who are not from the HR but employees in the companies that you like, how can you use that to improve your odds of getting in? Would it be inappropriate to ask th...
2013/12/24
[ "https://workplace.stackexchange.com/questions/17619", "https://workplace.stackexchange.com", "https://workplace.stackexchange.com/users/12993/" ]
> > If you're networking with people who are not from the HR, how can you > benefit from knowing them? > > > In many small companies, there isn't an HR department you do realize, yes? In this case, everyone from the CEO and founders to the minions on the front line are all going to be outside of HR and knowing an...
These days most of the job opportunities are not advertised I think around 60-70%. So if you are only looking for new roles on job and another sites I am sure about that you chose the harder way. At the moment I am working as a tech talent scout and recognizing the same situation as I am mentioned that earlier. The bo...
17,619
If you're networking with people who are not from the HR, how can you benefit from knowing them? For example, as a college student, if you reach out to those who are not from the HR but employees in the companies that you like, how can you use that to improve your odds of getting in? Would it be inappropriate to ask th...
2013/12/24
[ "https://workplace.stackexchange.com/questions/17619", "https://workplace.stackexchange.com", "https://workplace.stackexchange.com/users/12993/" ]
These days most of the job opportunities are not advertised I think around 60-70%. So if you are only looking for new roles on job and another sites I am sure about that you chose the harder way. At the moment I am working as a tech talent scout and recognizing the same situation as I am mentioned that earlier. The bo...
Many times, people begin a task without considering the purpose or desired outcome. And when it comes out to be positive, we take that in our stride. Likewise, you don't know the employee of a company may indirectly help you apart from HR.
17,619
If you're networking with people who are not from the HR, how can you benefit from knowing them? For example, as a college student, if you reach out to those who are not from the HR but employees in the companies that you like, how can you use that to improve your odds of getting in? Would it be inappropriate to ask th...
2013/12/24
[ "https://workplace.stackexchange.com/questions/17619", "https://workplace.stackexchange.com", "https://workplace.stackexchange.com/users/12993/" ]
> > If you're networking with people who are not from the HR, how can you > benefit from knowing them? > > > In many small companies, there isn't an HR department you do realize, yes? In this case, everyone from the CEO and founders to the minions on the front line are all going to be outside of HR and knowing an...
Many times, people begin a task without considering the purpose or desired outcome. And when it comes out to be positive, we take that in our stride. Likewise, you don't know the employee of a company may indirectly help you apart from HR.
60,036,071
i've a problem to run a job in google dataprep. I set up a connection through an external database on google sql. In big query I imported the database connection. In google data prep I selected the table to do some operations. I tried to create a very simple flow by joining two tables. After that, run job. By doing t...
2020/02/03
[ "https://Stackoverflow.com/questions/60036071", "https://Stackoverflow.com", "https://Stackoverflow.com/users/7086629/" ]
`bigquery.jobs.create` is a role assigned to: * BigQuery Admin * BigQuery Job User * BigQuery User You'll need to assign one of these roles to the account running the tasks to proceed past this error. You can go to [IAM & Admin > Roles](https://console.cloud.google.com/iam-admin/roles) in the GCP panel to look at whi...
The **bigquery.jobs.create** permission has to be assigned to the compute service account **PROJECT\_NUMBER-compute@developer.gserviceaccount.com**. Try to add to that service account the permissions: * Storage/Storage Object Viewer * BigQuery/BigQuery User You can do it by going to the Hamburger Menu in the Console...
25,783,333
I'm trying to create a multidimensional array to keep strings in it, with a length of 5. However it seems to be problem when i try to print out a sinle element from the arrays. In my `printf("%s", a[0][0][5])` it should print out "hej0" in a `char array` last `[5]`stand for the amout of characters of the current eleme...
2014/09/11
[ "https://Stackoverflow.com/questions/25783333", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3721495/" ]
If you do : ``` printf("%s", a[0][0][5]); ``` You are trying to access the 6th character of the string pointed by `a[0][0]`, which is `"hej0"`. It has 4 characters and the fifth is the NULL terminating byte `\0` (so you are trying to read beyond the string). To print `"hej0"`: ``` printf("%s", a[0][0]); ```
First issue I have seen your code is that size of array should be `a[3][4][6]` not `a[3][4][5]`. Because your elements `"hej10"`, `"hej11"` required 6 bytes instead of 5. Also to print any particular element just provide base address like: ``` printf("%s", a[0][0]); ```
25,783,333
I'm trying to create a multidimensional array to keep strings in it, with a length of 5. However it seems to be problem when i try to print out a sinle element from the arrays. In my `printf("%s", a[0][0][5])` it should print out "hej0" in a `char array` last `[5]`stand for the amout of characters of the current eleme...
2014/09/11
[ "https://Stackoverflow.com/questions/25783333", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3721495/" ]
If you do : ``` printf("%s", a[0][0][5]); ``` You are trying to access the 6th character of the string pointed by `a[0][0]`, which is `"hej0"`. It has 4 characters and the fifth is the NULL terminating byte `\0` (so you are trying to read beyond the string). To print `"hej0"`: ``` printf("%s", a[0][0]); ```
First problem is, if you want to put a 5 char string into a char array, you need to make the array 6 chars big, as it is terminated by character `'\0'`. Second problem is, `a[0][0][5]` is the sixth element of the third row, which does not exist. Third problem would be, if you want to print the complete string you sho...
2,526,295
The question is as follows: > > The lengths of segments $PQ$ and $PR$ are 8 inches and 5 inches, respectively, and they make a 60 degree angle at $P$. Find the third side of another triangle that has a 5-inch side, an 8-inch side, and the same area as triangle $PQR$. > > > I found that the height of the triangle...
2017/11/18
[ "https://math.stackexchange.com/questions/2526295", "https://math.stackexchange.com", "https://math.stackexchange.com/users/375958/" ]
The complex Fourier expansion of a $T$-periodic function $t\mapsto ft)$ has the form $$f(t)\rightsquigarrow \sum\_{k=-\infty}^\infty c\_ke^{2k\pi i t/T}\ ,$$whereby the coefficients $c\_k$ are given by the formula $$c\_k={1\over T}\int\_{\rm 1\ full\ period}f(t)e^{-2k\pi i t/T}\>dt\qquad(k\in{\mathbb Z}) .\tag{1}$$ In ...
$$A(n) = \frac{1}{6}\int\_{-3}^3 e^{-t}e^{\frac{-2\pi int}{6}} dt = \frac{1}{6} \int\_{-3}^3 e^{(-(\frac{3+n\pi i }{3}t)}dt = \frac{1}{6} \frac{-3}{3+n\pi i} e^{(-(\frac{3+n\pi i }{3 }t)} \bigg| \_{-3}^3 \\ = \frac{-1}{2(3+n\pi i )} [e^{-(3+n\pi i ))} - e^{3+n\pi i }] = (\frac{1}{3+n\pi i })e^{n\pi i }\frac{(e^3-e^{-3}...
5,799,532
Can anyone tell me why the following dialog box does not show until the *asynchronous* thread has finished. I cannot figure this one out. This is running in the main UI thread. Not sure why a new thread would affect the flow of the main UI thread ``` dialog = new ProgressDialog(this); ...
2011/04/27
[ "https://Stackoverflow.com/questions/5799532", "https://Stackoverflow.com", "https://Stackoverflow.com/users/726541/" ]
You need to call the `start()` method of the anonymous Thread, not the `run()` method. From the [docs](http://download.oracle.com/javase/6/docs/api/java/lang/Thread.html#start()): > > public void start(): Causes this thread to begin execution; the Java Virtual Machine calls the run method of this thread. > > >
Don't expect threads to follow the flow of your code. I suggest to use AsyncTask and for showing the dialog you can show the dialog in onPreExecute() and remove it in onPostExecute() or may be you like to try runOnUiThread()