qid
int64
1
74.7M
question
stringlengths
0
58.3k
date
stringlengths
10
10
metadata
list
response_j
stringlengths
2
48.3k
response_k
stringlengths
2
40.5k
42,477,466
I create a class SecureImpalaDataSource that extends DriverManagerDataSource, and use `UserGroupInformation.doAs()` to get a Connection to impala with keytab file. But I get the error as follow: > > java.sql.SQLException: [Simba]ImpalaJDBCDriver Error > initialized or created transport for authentication: > [Simba...
2017/02/27
[ "https://Stackoverflow.com/questions/42477466", "https://Stackoverflow.com", "https://Stackoverflow.com/users/7627651/" ]
The result is that the HOST and the FQDN in my URL are inconsistent.
One way to authentication your jdbc connection is using ugi.doAs. Here is the sample code: ``` // 1. login use keytab System.setProperty("java.security.krb5.realm", "XXX.COM"); System.setProperty("java.security.krb5.kdc", "kdcXXX"); Configuration conf = new Configuration(); conf.set("hadoop.security.authentication", "...
57,864,063
I'm trying to build a Delete query for the below script which has multiple columns in group by. ``` select Test_1,Test_2,Test_3,Test_4,Test_5,Test_6,Test_7,Test_8,Test_9, Test_10,Test_11,Test_12,Test_13,Test_14,Test_15,Test_16,Test_17,Test_18,Test_19,Test_20, Test_21,Test_22,Test_23,Test_24,Test_25,Test_26,Test_27,Tes...
2019/09/10
[ "https://Stackoverflow.com/questions/57864063", "https://Stackoverflow.com", "https://Stackoverflow.com/users/4350901/" ]
Try `delete` statement with subquery: ``` delete tt from ( select row_number() over (partition by Test_1,Test_2,Test_3,Test_4,Test_5,Test_6,Test_7,Test_8,Test_9, Test_10,Test_11,Test_12,Test_13,Test_14,Test_15,Test_16,Test_17,Test_18,Test_19,Test_20, Test_21,Test_22,Test_23,Test_24,Test_25,Test_26,Test_2...
you can create a cte with your query and use it in the delete command: ``` with cte as ( select Test_1,Test_2,Test_3,Test_4,Test_5,Test_6,Test_7,Test_8,Test_9, Test_10,Test_11,Test_12,Test_13,Test_14,Test_15,Test_16,Test_17,Test_18, Test_19,Test_20,Test_21,Test_22,Test_23,Test_24,Test_25,Test_26, Test_...
43,405,850
I have a class named SampleEntity i.e a POJO which will help me create my dynamoDB table.The hash key and range key have been defined clearly in POJO object but still i get an exception that the hash key is not being defined ``` @DynamoDBTable(tableName = "sampletable1") public class SampleEntity { publ...
2017/04/14
[ "https://Stackoverflow.com/questions/43405850", "https://Stackoverflow.com", "https://Stackoverflow.com/users/7532704/" ]
There are two possible issues I can see (one that I ran into recently), but your setup is a little different than mine. You're using both @DynamoDBAttribute and @DynamoDBHashKey on a single item - that's not necessary, and might be messing it up, though I don't have time to test it right now. You should be able to jus...
I got the same exeption when tried to get the record by the `null` hashCode: ``` myClassMapper.load(MyClass.class, null)) ``` Try to set: ``` data.setField1("some_hash"); ```
64,930,778
I have created a simple `Angular` app and added a custom library (same project): `ng new my-library` `ng generate library my-library-lib` Then to test this simple library in a **different** project, I built the lib: `ng build my-library-lib` I linked the lib in dist folder and linked it to a different project and im...
2020/11/20
[ "https://Stackoverflow.com/questions/64930778", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3911422/" ]
If you are **asking about use in developer a local library** you should create your library in production ``` ng build my-lib --prod ``` then use `npm link` to create locally your library ``` cd dist cd my-lib npm link ``` If all is ok, you can import in another project of your computer, you can check if the lib ...
You can use this [GitHub repository](https://github.com/pyronlaboratory/ng-pyronlaboratory) for reference which demonstrates the setup and integration of the custom libraries using `npm link`. Angular CLI build command uses a different builder and invokes a different build tool for libraries than it does for applicati...
3,061,469
Thank you in advance for you ideas and input. I would like to periodically check to see if a third party program is currently running on a user's system from my program. I am currently launching the program as follows in C#: ``` String plinkConString = ""; // my connection string Process plink = Proce...
2010/06/17
[ "https://Stackoverflow.com/questions/3061469", "https://Stackoverflow.com", "https://Stackoverflow.com/users/344271/" ]
If you want to check whether the process is still up and running you can check the `HasExited` property: ``` Process plink = Process.Start(utilityPath + @"\putty.exe", plinkConString); .... bool isRunning = plink.HasExited; ``` The following code would check whether putty is running. It works also, if the program ha...
You can use `Process.WaitForExit()` or `Process.WaitForExit(int)`, or use the `Process.Exited` event handler. You may also be interested in `Monitor` if you want any more complex behaviour than that.
16,679,680
I'm a c# learner and now I've been facing this situation: Here is the sample of xml I'm working on ``` <User_Security> <bob> <group>s1, a2, b3</group> </bob> <alice> <group>y3, c2</group> </alice> </User_Security> ``` As you can see it uses the people as tag name not the tag data, so I cannot use ge...
2013/05/21
[ "https://Stackoverflow.com/questions/16679680", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1456899/" ]
Edit: I know that this doesn't answer the exact question of how to solve the problem with your current XML; but as many people have commented, your XML is subject to malformation and will cause you a lot of problems. I've worked with XML far more than any sane person should be coerced into doing and the advice I offer ...
If you really have to deal with such XML - get child nodes of "User\_Security" node and get node names : * [XmlNode.ChildNodes](http://msdn.microsoft.com/en-us/library/system.xml.xmlnode.childnodes.aspx) * [XmlNode.Name](http://msdn.microsoft.com/en-us/library/system.xml.xmlnode.name.aspx) Sample from [MSDN](http://m...
16,679,680
I'm a c# learner and now I've been facing this situation: Here is the sample of xml I'm working on ``` <User_Security> <bob> <group>s1, a2, b3</group> </bob> <alice> <group>y3, c2</group> </alice> </User_Security> ``` As you can see it uses the people as tag name not the tag data, so I cannot use ge...
2013/05/21
[ "https://Stackoverflow.com/questions/16679680", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1456899/" ]
Edit: I know that this doesn't answer the exact question of how to solve the problem with your current XML; but as many people have commented, your XML is subject to malformation and will cause you a lot of problems. I've worked with XML far more than any sane person should be coerced into doing and the advice I offer ...
It would be much more useful to restructure your XML as described by the 2nd poster. With that structure, you could easily do something like this (nodRoot is the User\_Security node): ``` foreach (XmlNode nodUser in nodRoot.ChildNodes) { string userName = nodUser.Attributes["Name"].Value; foreach (XmlNode nodGr...
16,679,680
I'm a c# learner and now I've been facing this situation: Here is the sample of xml I'm working on ``` <User_Security> <bob> <group>s1, a2, b3</group> </bob> <alice> <group>y3, c2</group> </alice> </User_Security> ``` As you can see it uses the people as tag name not the tag data, so I cannot use ge...
2013/05/21
[ "https://Stackoverflow.com/questions/16679680", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1456899/" ]
Edit: I know that this doesn't answer the exact question of how to solve the problem with your current XML; but as many people have commented, your XML is subject to malformation and will cause you a lot of problems. I've worked with XML far more than any sane person should be coerced into doing and the advice I offer ...
this will parse out what you want... ``` string xml = "<User_Security><bob><group>s1, a2, b3</group></bob><alice><group>y3, c2</group></alice></User_Security>"; var e = XElement.Load(new XmlTextReader(xml, XmlNodeType.Element, null)); var users = e.Elements() .Select(x => n...
43,863,779
Why do I get the attribute error when tried to split the string `full_name` on space and assign it to two variables? ``` class Person(object): def __init__(self, full_name): """Person initializer""" self.first_name, self.last_name = full_name.split() @property def first_name(self): ...
2017/05/09
[ "https://Stackoverflow.com/questions/43863779", "https://Stackoverflow.com", "https://Stackoverflow.com/users/5397845/" ]
You did not declare a setter of the property. Thus the property is readonly and you can not modify it. To solve it , add setter methods as follows: ``` @property def last_name(self, value): self._last_name = value @property def first_name(self, value): self._first_name = value @last_name.setter def last_name(...
``` class Person(object): def __init__(self, full_name): """Person initializer""" self._first_name, self._last_name = full_name.split() @property def first_name(self): return self._first_name @property def last_name(self): return self._last_name if __name__ == '__m...
43,863,779
Why do I get the attribute error when tried to split the string `full_name` on space and assign it to two variables? ``` class Person(object): def __init__(self, full_name): """Person initializer""" self.first_name, self.last_name = full_name.split() @property def first_name(self): ...
2017/05/09
[ "https://Stackoverflow.com/questions/43863779", "https://Stackoverflow.com", "https://Stackoverflow.com/users/5397845/" ]
You did not declare a setter of the property. Thus the property is readonly and you can not modify it. To solve it , add setter methods as follows: ``` @property def last_name(self, value): self._last_name = value @property def first_name(self, value): self._first_name = value @last_name.setter def last_name(...
No need of using `property` here ``` class Person(object): def __init__(self, full_name): """Person initializer""" self.first_name, self.last_name = full_name.split() if __name__ == '__main__': swadhi = Person("Swadhikar Chandramohan") print swadhi.first_name print swadhi.last_name ``...
43,863,779
Why do I get the attribute error when tried to split the string `full_name` on space and assign it to two variables? ``` class Person(object): def __init__(self, full_name): """Person initializer""" self.first_name, self.last_name = full_name.split() @property def first_name(self): ...
2017/05/09
[ "https://Stackoverflow.com/questions/43863779", "https://Stackoverflow.com", "https://Stackoverflow.com/users/5397845/" ]
No need of using `property` here ``` class Person(object): def __init__(self, full_name): """Person initializer""" self.first_name, self.last_name = full_name.split() if __name__ == '__main__': swadhi = Person("Swadhikar Chandramohan") print swadhi.first_name print swadhi.last_name ``...
``` class Person(object): def __init__(self, full_name): """Person initializer""" self._first_name, self._last_name = full_name.split() @property def first_name(self): return self._first_name @property def last_name(self): return self._last_name if __name__ == '__m...
32,417,242
i'm trying to schedule a task every 5 seconds, here what i did: ``` import schedule import time import tweepy from threading import Timer def job(): iGen = (i for i in range(1, 6)) for i in iGen: i += 1 mymessage = "My message here " + str(i) print(mymessage) schedule.every(5).seconds.do(job) whi...
2015/09/05
[ "https://Stackoverflow.com/questions/32417242", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2494799/" ]
When you do `pip install twisted`, you are installing Twisted *into* some Python environment, depending on which `python` executable you are invoking `pip` with. If you have a 2.7.5 environment and a 2.7.9 environment, `pip install` might be putting Twisted in a different place for each, depending on what other options...
Thanks Glyph, Finally I find following simple command could directly fix this problem, because Kivy use his own virtualenv environment, but I do appreciated your kindly help. *kivy -m pip install twisted* Best Wish to you,
32,417,242
i'm trying to schedule a task every 5 seconds, here what i did: ``` import schedule import time import tweepy from threading import Timer def job(): iGen = (i for i in range(1, 6)) for i in iGen: i += 1 mymessage = "My message here " + str(i) print(mymessage) schedule.every(5).seconds.do(job) whi...
2015/09/05
[ "https://Stackoverflow.com/questions/32417242", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2494799/" ]
I had the same import error problem, providing another possible solution here: I have zope.interface 4.4.2 installed, it turned out that my twisted version is too old. By upgrade twisted solved my problem. `pip install --upgrade twisted`
Thanks Glyph, Finally I find following simple command could directly fix this problem, because Kivy use his own virtualenv environment, but I do appreciated your kindly help. *kivy -m pip install twisted* Best Wish to you,
8,556,878
I have never worked with git before, and Im confused as to where to enter the "install the server" part to get this working.. <http://addyosmani.com/blog/autosave-changes-chrome-dev-tools/> Details in steps would be very helpful! Thanks!!
2011/12/19
[ "https://Stackoverflow.com/questions/8556878", "https://Stackoverflow.com", "https://Stackoverflow.com/users/765484/" ]
On the terminal / console / cmd / command-line of your OS, it says so in the article: > > To install, simply run the following from the command-line/console: > > > This has nothing to do with git. This is how you enter commands and git is just another command.
If it says "command not found" then git is not installed on your Mac. Install it from: [Git Download Site](http://git-scm.com/) and then try the instructions again.
2,178,196
Exercise: --------- > > $$\lim\limits\_{x \to 0}{\frac{\cos x - \cos 2x}{1 - \cos x}}$$ > > > --- I've posted my solution down below, however if there are more elegant approaches, feel free to include your own solutions.
2017/03/08
[ "https://math.stackexchange.com/questions/2178196", "https://math.stackexchange.com", "https://math.stackexchange.com/users/326673/" ]
By applying L'Hospital's rule twice, one has $$ \lim\limits\_{x \to 0}{\frac{\cos x - \cos 2x}{1 - \cos x}}=\lim\limits\_{x \to 0}{\frac{-\sin x +2 \sin 2x}{\sin x}}=\lim\limits\_{x \to 0}{\frac{-\cos x +4 \cos 2x}{\cos x}}=\frac{-1+4}1=3. $$
Step 1: find equivalent infinitesimals -------------------------------------- Recall: $\lim\limits\_{x \to 0}{\frac{\cos m - \cos n}{x^2}} = \frac{n^2 - m^2}{2}$. So: $\lim\limits\_{x \to 0}{\frac{\cos x - \cos 2x}{x^2}} = \frac{2^2 - 1^2}{2} = \frac{3}{2}$. To make $RHS = 1$: $\lim\limits\_{x \to 0}{\frac{\cos x - \c...
2,178,196
Exercise: --------- > > $$\lim\limits\_{x \to 0}{\frac{\cos x - \cos 2x}{1 - \cos x}}$$ > > > --- I've posted my solution down below, however if there are more elegant approaches, feel free to include your own solutions.
2017/03/08
[ "https://math.stackexchange.com/questions/2178196", "https://math.stackexchange.com", "https://math.stackexchange.com/users/326673/" ]
We have the double angle formula: $$\cos(2x)=2\cos^2(x)-1$$ Thus, it follows that $$\cos(x)-\cos(2x)=1+\cos(x)-2\cos^2(x)=(1-\cos(x))(2\cos(x)+1)$$ Thus, we find $$\frac{\cos(x)-\cos(2x)}{1-\cos(x)}=2\cos(x)+1$$ So the limit is directly $3$.
Step 1: find equivalent infinitesimals -------------------------------------- Recall: $\lim\limits\_{x \to 0}{\frac{\cos m - \cos n}{x^2}} = \frac{n^2 - m^2}{2}$. So: $\lim\limits\_{x \to 0}{\frac{\cos x - \cos 2x}{x^2}} = \frac{2^2 - 1^2}{2} = \frac{3}{2}$. To make $RHS = 1$: $\lim\limits\_{x \to 0}{\frac{\cos x - \c...
2,178,196
Exercise: --------- > > $$\lim\limits\_{x \to 0}{\frac{\cos x - \cos 2x}{1 - \cos x}}$$ > > > --- I've posted my solution down below, however if there are more elegant approaches, feel free to include your own solutions.
2017/03/08
[ "https://math.stackexchange.com/questions/2178196", "https://math.stackexchange.com", "https://math.stackexchange.com/users/326673/" ]
We have the double angle formula: $$\cos(2x)=2\cos^2(x)-1$$ Thus, it follows that $$\cos(x)-\cos(2x)=1+\cos(x)-2\cos^2(x)=(1-\cos(x))(2\cos(x)+1)$$ Thus, we find $$\frac{\cos(x)-\cos(2x)}{1-\cos(x)}=2\cos(x)+1$$ So the limit is directly $3$.
By applying L'Hospital's rule twice, one has $$ \lim\limits\_{x \to 0}{\frac{\cos x - \cos 2x}{1 - \cos x}}=\lim\limits\_{x \to 0}{\frac{-\sin x +2 \sin 2x}{\sin x}}=\lim\limits\_{x \to 0}{\frac{-\cos x +4 \cos 2x}{\cos x}}=\frac{-1+4}1=3. $$
2,178,196
Exercise: --------- > > $$\lim\limits\_{x \to 0}{\frac{\cos x - \cos 2x}{1 - \cos x}}$$ > > > --- I've posted my solution down below, however if there are more elegant approaches, feel free to include your own solutions.
2017/03/08
[ "https://math.stackexchange.com/questions/2178196", "https://math.stackexchange.com", "https://math.stackexchange.com/users/326673/" ]
By applying L'Hospital's rule twice, one has $$ \lim\limits\_{x \to 0}{\frac{\cos x - \cos 2x}{1 - \cos x}}=\lim\limits\_{x \to 0}{\frac{-\sin x +2 \sin 2x}{\sin x}}=\lim\limits\_{x \to 0}{\frac{-\cos x +4 \cos 2x}{\cos x}}=\frac{-1+4}1=3. $$
$=\dfrac{\cos x - \cos 2x}{1-\cos x}$ $=\dfrac{2\sin \left( \frac{x+2x}{2}\right) \sin \left( \frac{2x-x}{2}\right) }{2\sin^2 \left( \frac{x}{2}\right)}$ $=\dfrac{\sin 3x/2}{x} . \dfrac{x}{\sin x/2}$ $=\left(3/2\right) . \frac{1}{\left( 1/2\right)}$ $=3$ Formulae involved-- $\cos A - \cos B = 2\sin \frac{A+B}{2} ...
2,178,196
Exercise: --------- > > $$\lim\limits\_{x \to 0}{\frac{\cos x - \cos 2x}{1 - \cos x}}$$ > > > --- I've posted my solution down below, however if there are more elegant approaches, feel free to include your own solutions.
2017/03/08
[ "https://math.stackexchange.com/questions/2178196", "https://math.stackexchange.com", "https://math.stackexchange.com/users/326673/" ]
By applying L'Hospital's rule twice, one has $$ \lim\limits\_{x \to 0}{\frac{\cos x - \cos 2x}{1 - \cos x}}=\lim\limits\_{x \to 0}{\frac{-\sin x +2 \sin 2x}{\sin x}}=\lim\limits\_{x \to 0}{\frac{-\cos x +4 \cos 2x}{\cos x}}=\frac{-1+4}1=3. $$
If we evaluate directly we get the fraction $\frac{0}{0}$. So using L'Hopital's rule: $$ \lim\_{x \rightarrow 0} \frac{\cos x - \cos 2x}{1-\cos x} = \lim\_{x \rightarrow 0} \frac{-\sin x + 2\sin 2x}{\sin x} $$ Now, if we evaluate directly once more, we get the fraction $\frac{0}{0}$. So we use L'Hopital again to get: ...
2,178,196
Exercise: --------- > > $$\lim\limits\_{x \to 0}{\frac{\cos x - \cos 2x}{1 - \cos x}}$$ > > > --- I've posted my solution down below, however if there are more elegant approaches, feel free to include your own solutions.
2017/03/08
[ "https://math.stackexchange.com/questions/2178196", "https://math.stackexchange.com", "https://math.stackexchange.com/users/326673/" ]
We have the double angle formula: $$\cos(2x)=2\cos^2(x)-1$$ Thus, it follows that $$\cos(x)-\cos(2x)=1+\cos(x)-2\cos^2(x)=(1-\cos(x))(2\cos(x)+1)$$ Thus, we find $$\frac{\cos(x)-\cos(2x)}{1-\cos(x)}=2\cos(x)+1$$ So the limit is directly $3$.
$=\dfrac{\cos x - \cos 2x}{1-\cos x}$ $=\dfrac{2\sin \left( \frac{x+2x}{2}\right) \sin \left( \frac{2x-x}{2}\right) }{2\sin^2 \left( \frac{x}{2}\right)}$ $=\dfrac{\sin 3x/2}{x} . \dfrac{x}{\sin x/2}$ $=\left(3/2\right) . \frac{1}{\left( 1/2\right)}$ $=3$ Formulae involved-- $\cos A - \cos B = 2\sin \frac{A+B}{2} ...
2,178,196
Exercise: --------- > > $$\lim\limits\_{x \to 0}{\frac{\cos x - \cos 2x}{1 - \cos x}}$$ > > > --- I've posted my solution down below, however if there are more elegant approaches, feel free to include your own solutions.
2017/03/08
[ "https://math.stackexchange.com/questions/2178196", "https://math.stackexchange.com", "https://math.stackexchange.com/users/326673/" ]
We have the double angle formula: $$\cos(2x)=2\cos^2(x)-1$$ Thus, it follows that $$\cos(x)-\cos(2x)=1+\cos(x)-2\cos^2(x)=(1-\cos(x))(2\cos(x)+1)$$ Thus, we find $$\frac{\cos(x)-\cos(2x)}{1-\cos(x)}=2\cos(x)+1$$ So the limit is directly $3$.
If we evaluate directly we get the fraction $\frac{0}{0}$. So using L'Hopital's rule: $$ \lim\_{x \rightarrow 0} \frac{\cos x - \cos 2x}{1-\cos x} = \lim\_{x \rightarrow 0} \frac{-\sin x + 2\sin 2x}{\sin x} $$ Now, if we evaluate directly once more, we get the fraction $\frac{0}{0}$. So we use L'Hopital again to get: ...
66,030,130
I'am hosting my .Net Core / Angular application. When I visit the url of my application the first page makes more than 90 seconds to load. I found that these files are very Big (15MB): styles. J's, scripts. J's, main. J's, vendor. J's, pollyfills. J's. So I used this website to minifier the js code <https://jscompress....
2021/02/03
[ "https://Stackoverflow.com/questions/66030130", "https://Stackoverflow.com", "https://Stackoverflow.com/users/15138018/" ]
Apps using the **Database Inspector** may crash when running on the Android 11 emulator, with an error like the following appearing in logcat: ``` Fatal signal 11 (SIGSEGV), code 1 (SEGV_MAPERR) ``` To fix this issue, upgrade your Android 11 emulator to version 9 or higher by navigating to **Tools > SDK Manager**. ...
In my case I was receiving this kind of crash because I had the specified kind of function directly inside Stateless widget. It caused a crash on the screen open. ``` class Abc extends StatelessWidget { Abc(); final Function xyz = () async { ... } } ```
197,900
Whenever I format my computer, I usually just copy/paste all the .ttf and .fon files into the `Fonts` system folder. I can't be sure 100%, but I think that after I did that, Firefox stopped displaying some website's fonts correctly, and I mean the usual default ones, like Arial, Helvetica, etc. I don't have this prob...
2010/10/10
[ "https://superuser.com/questions/197900", "https://superuser.com", "https://superuser.com/users/50544/" ]
This specific problem is due to installing a version of the Helvetica font (very commonly used on the web) that either Windows or Firefox can't display. To confirm, all you have to do is paste the following text in your Firefox address bar and hit enter: ``` data:text/html, Helvetica <font face="Helvetica" size="25...
Go to your firefox preferences, under the "Content" tab there should be a "Default Font" combobox. Try switching the setting to one of the usual Microsoft fonts. If not, it is possible that you simply don't have the Microsoft fonts installed. Apparently, you can get some of the core fonts here: <http://web.nickshanks.c...
197,900
Whenever I format my computer, I usually just copy/paste all the .ttf and .fon files into the `Fonts` system folder. I can't be sure 100%, but I think that after I did that, Firefox stopped displaying some website's fonts correctly, and I mean the usual default ones, like Arial, Helvetica, etc. I don't have this prob...
2010/10/10
[ "https://superuser.com/questions/197900", "https://superuser.com", "https://superuser.com/users/50544/" ]
I was just struggling with the same problem (albeit with Google Chrome) and stumbled upon this topic. Because I'm using a PC at work, I don't have the privileges to make registry edits. I found another workaround however, which probably only works on Chrome, but at least it fixed the problem for me. So although it's no...
Go to your firefox preferences, under the "Content" tab there should be a "Default Font" combobox. Try switching the setting to one of the usual Microsoft fonts. If not, it is possible that you simply don't have the Microsoft fonts installed. Apparently, you can get some of the core fonts here: <http://web.nickshanks.c...
197,900
Whenever I format my computer, I usually just copy/paste all the .ttf and .fon files into the `Fonts` system folder. I can't be sure 100%, but I think that after I did that, Firefox stopped displaying some website's fonts correctly, and I mean the usual default ones, like Arial, Helvetica, etc. I don't have this prob...
2010/10/10
[ "https://superuser.com/questions/197900", "https://superuser.com", "https://superuser.com/users/50544/" ]
This specific problem is due to installing a version of the Helvetica font (very commonly used on the web) that either Windows or Firefox can't display. To confirm, all you have to do is paste the following text in your Firefox address bar and hit enter: ``` data:text/html, Helvetica <font face="Helvetica" size="25...
I was just struggling with the same problem (albeit with Google Chrome) and stumbled upon this topic. Because I'm using a PC at work, I don't have the privileges to make registry edits. I found another workaround however, which probably only works on Chrome, but at least it fixed the problem for me. So although it's no...
23,148,047
I am trying to write some code that takes an input file which is a paragraph of text(this paragraph has duplicates of certain words), I then want to write this text to an output file, however I do not want the duplicates of the words written to my output file, just unique words, this includes one copy of the duplicates...
2014/04/18
[ "https://Stackoverflow.com/questions/23148047", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3451196/" ]
Why should we bother. We can use jquery too. add jquery 1.10.3 in your code. and code below in your page where you want dropdownlistfor selected value write in View part ``` <script type="text/JavaScript"> $(document).ready(function () { $('#site').val(@Model.site_id); }); </script> @Html.DropDownListFor...
**C# code:** ``` public class MyClass { public int Id { get; set; } public string Name { get; set; } } var list = new[] { new MyClass { Id = 1, Name = "Name1" }, new MyClass { Id = 2, Name = "Name2" }, new MyClass { Id = 3, Name = "Name3" } }; var selectList = new SelectList(list, "Id", "Na...
21,166,864
Is this correct way of disposing and using ``` public partial class Form1 : Form { winappContext _context; public Form1() { InitializeComponent(); } private void Form1_Load(object sender, EventArgs e) { using (_context = new winappContext()) { _context = ne...
2014/01/16
[ "https://Stackoverflow.com/questions/21166864", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1073154/" ]
Neither. Assuming you don't *need* `_context` to be a field (there's no indication that you do) you should make it a local variable: ``` private void Form1_Load(object sender, EventArgs e) { using (winappContext _context = new winappContext()) { var query = from c in _context.Customers ...
The "using" mark the disposable object in () to be disposed after {} ends. so no. Dont dispose, its done for you.
21,166,864
Is this correct way of disposing and using ``` public partial class Form1 : Form { winappContext _context; public Form1() { InitializeComponent(); } private void Form1_Load(object sender, EventArgs e) { using (_context = new winappContext()) { _context = ne...
2014/01/16
[ "https://Stackoverflow.com/questions/21166864", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1073154/" ]
Neither. Assuming you don't *need* `_context` to be a field (there's no indication that you do) you should make it a local variable: ``` private void Form1_Load(object sender, EventArgs e) { using (winappContext _context = new winappContext()) { var query = from c in _context.Customers ...
You don't need to call the dispose object. The Using statement automatically release the resource and avoid you to call the Dispose method.
21,166,864
Is this correct way of disposing and using ``` public partial class Form1 : Form { winappContext _context; public Form1() { InitializeComponent(); } private void Form1_Load(object sender, EventArgs e) { using (_context = new winappContext()) { _context = ne...
2014/01/16
[ "https://Stackoverflow.com/questions/21166864", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1073154/" ]
Neither. Assuming you don't *need* `_context` to be a field (there's no indication that you do) you should make it a local variable: ``` private void Form1_Load(object sender, EventArgs e) { using (winappContext _context = new winappContext()) { var query = from c in _context.Customers ...
The two examples you have given are equivalent. The compiler goes away and converts your using command to a try...finally with the Dispose() command called in the finally brace.
131,583
I just installed Call of Duty 4 and when I try to run the single player mode nothing happens. I just see a quick flicker on the desktop but the game doesn't launch. When I try to run it again, it gives me this message: > > It appears that cod4 did not quit properly the last time it ran. Do you want to run the game i...
2013/09/21
[ "https://gaming.stackexchange.com/questions/131583", "https://gaming.stackexchange.com", "https://gaming.stackexchange.com/users/55672/" ]
I had this issue on Windows Vista (yep) and I assume its on Win 7 too. Plug something into the microphone audio jack.
It can be several options. First try to run the game as an administrator and see what happens. Also, if the game is not original you would need a good patch. And finally, uninstall and re-install the game. Sometimes the patches for multiplayer give these kind of problems. Back in the day, with the game beat couldn't pl...
131,583
I just installed Call of Duty 4 and when I try to run the single player mode nothing happens. I just see a quick flicker on the desktop but the game doesn't launch. When I try to run it again, it gives me this message: > > It appears that cod4 did not quit properly the last time it ran. Do you want to run the game i...
2013/09/21
[ "https://gaming.stackexchange.com/questions/131583", "https://gaming.stackexchange.com", "https://gaming.stackexchange.com/users/55672/" ]
The following 2 actions are known to solve most issues with the game crashing: * Enable stereo mix * Plug in an headset/mic Sources: <http://steamcommunity.com/app/7940/discussions/0/618453594765419915/> <http://steamcommunity.com/app/7940/discussions/0/864956555036760746/>
It can be several options. First try to run the game as an administrator and see what happens. Also, if the game is not original you would need a good patch. And finally, uninstall and re-install the game. Sometimes the patches for multiplayer give these kind of problems. Back in the day, with the game beat couldn't pl...
8,707,512
I am trying to pass parameter(s) to a web service call to flexigrid. I have setup the FlexiGrid to work just fine except when i try to pass one parameter to my web service call, but am seeing 500 Internal Server Error when trying to load the grid with that one parameter. Ideally, when the user clicks submit it then ...
2012/01/03
[ "https://Stackoverflow.com/questions/8707512", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1127126/" ]
Don't escape value. ``` $sql = "INSERT INTO `sc2broad_tesing1`.`Persons` (`re`) VALUES ('hello11')"; ```
I would also consider using bound parameters, as seen in [mysqli::prepare](http://www.php.net/manual/en/mysqli.prepare.php), if [Mysqli](http://php.net/manual/en/book.mysqli.php) is an option.
22,176,813
The example shown bellow is a simplified version of a signal path analysis that I am doing at the moment. For each index in the Input Array (*iArray*) there is an output (*oArray*) exactly at the same index. As you can see in the result, the recursive call will have duplicate analysis paths which are not important (*as...
2014/03/04
[ "https://Stackoverflow.com/questions/22176813", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3339244/" ]
A small improvement that can be done in the data structure used here is that, instead of `public static void recPathAnalysis(String signal, int level, String path)`, `public static void recPathAnalysis(String signal, int level, HashSet<Character> path)` can be used. Since you use `if (!path.contains(oArray[i]))` the co...
I am not sure I understand what your algorithm is about, but my general advice is to not print when you make the recursive call. instead you could try to work around like this: ``` if (level < 10) { for (int i = 0; i < iArray.length; i++) { if (signal.equals(iArray[i])) { if (!...
2,490,084
I am trying to make a custom AuthenticationProcessingFilter to save some user data in the session after successful login here's my filter: ``` package projects.internal; import java.io.IOException; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import org.springframewo...
2010/03/22
[ "https://Stackoverflow.com/questions/2490084", "https://Stackoverflow.com", "https://Stackoverflow.com/users/353682/" ]
I don't believe that's a valid filter position in Spring Security 3.0 schema. Check out [Security Namespace Configuration](http://static.springsource.org/spring-security/site/docs/3.0.x/reference/ns-config.html#ns-custom-filters). I don't see it listed anymore. Perhaps try `BASIC_AUTH_FILTER`
* `AUTHENTICATION_PROCESSING_FILTER` is not a valid filter alias, you should use `FORM_LOGIN_FILTER`. * `<custom-filter>` should be put inside `<http>`
44,004,555
[![enter image description here](https://i.stack.imgur.com/W3Zgd.png)](https://i.stack.imgur.com/W3Zgd.png) So only within my sidebar widgets does this bullet above the widgets occur. I am not sure what custom css code to use to get rid of this. That is why I uploaded the picture of the inspect element to see if anyon...
2017/05/16
[ "https://Stackoverflow.com/questions/44004555", "https://Stackoverflow.com", "https://Stackoverflow.com/users/8020359/" ]
You want to use [Enumerable#`any?`](https://ruby-doc.org/core-2.4.1/Enumerable.html#method-i-any-3F): ``` arr.any? { |substring| str.include?(substring) } ``` The solution is very efficient, because this method ensures *short-circuit evaluation*, meaning, that if you have array of 100000000 substrings and you want t...
Given: ``` arr = ["a", "b", "x"] str = "DoDox" ``` **EDIT**: As the other comments have pointed out, this is actually the fastest way, as it breaks the evaluation when a single true statement is found: ``` arr.any?{|substr| str.include?(substr)} ``` The [foldl](https://en.wikipedia.org/wiki/Fold_(higher-order_fun...
44,004,555
[![enter image description here](https://i.stack.imgur.com/W3Zgd.png)](https://i.stack.imgur.com/W3Zgd.png) So only within my sidebar widgets does this bullet above the widgets occur. I am not sure what custom css code to use to get rid of this. That is why I uploaded the picture of the inspect element to see if anyon...
2017/05/16
[ "https://Stackoverflow.com/questions/44004555", "https://Stackoverflow.com", "https://Stackoverflow.com/users/8020359/" ]
You want to use [Enumerable#`any?`](https://ruby-doc.org/core-2.4.1/Enumerable.html#method-i-any-3F): ``` arr.any? { |substring| str.include?(substring) } ``` The solution is very efficient, because this method ensures *short-circuit evaluation*, meaning, that if you have array of 100000000 substrings and you want t...
Construct a Regular Expression (without pipes and slashes and dots and other magic stuff): ``` arr = ["aa", "bb", "cc"] str = "mystringcc" reg = Regexp.union(arr) # That's all! p str.match?(reg) #=> true ```
44,004,555
[![enter image description here](https://i.stack.imgur.com/W3Zgd.png)](https://i.stack.imgur.com/W3Zgd.png) So only within my sidebar widgets does this bullet above the widgets occur. I am not sure what custom css code to use to get rid of this. That is why I uploaded the picture of the inspect element to see if anyon...
2017/05/16
[ "https://Stackoverflow.com/questions/44004555", "https://Stackoverflow.com", "https://Stackoverflow.com/users/8020359/" ]
You want to use [Enumerable#`any?`](https://ruby-doc.org/core-2.4.1/Enumerable.html#method-i-any-3F): ``` arr.any? { |substring| str.include?(substring) } ``` The solution is very efficient, because this method ensures *short-circuit evaluation*, meaning, that if you have array of 100000000 substrings and you want t...
The reason you are getting that error message is because the `*` operator is telling Ruby to pass all the items of `arr` to `str.include?`. For those `arr` items, that is equivalent to writing `str.include?("aa", "bb", "cc")`. As said in other answers, checking a condition is verified for any of the elements contained...
44,004,555
[![enter image description here](https://i.stack.imgur.com/W3Zgd.png)](https://i.stack.imgur.com/W3Zgd.png) So only within my sidebar widgets does this bullet above the widgets occur. I am not sure what custom css code to use to get rid of this. That is why I uploaded the picture of the inspect element to see if anyon...
2017/05/16
[ "https://Stackoverflow.com/questions/44004555", "https://Stackoverflow.com", "https://Stackoverflow.com/users/8020359/" ]
Construct a Regular Expression (without pipes and slashes and dots and other magic stuff): ``` arr = ["aa", "bb", "cc"] str = "mystringcc" reg = Regexp.union(arr) # That's all! p str.match?(reg) #=> true ```
Given: ``` arr = ["a", "b", "x"] str = "DoDox" ``` **EDIT**: As the other comments have pointed out, this is actually the fastest way, as it breaks the evaluation when a single true statement is found: ``` arr.any?{|substr| str.include?(substr)} ``` The [foldl](https://en.wikipedia.org/wiki/Fold_(higher-order_fun...
44,004,555
[![enter image description here](https://i.stack.imgur.com/W3Zgd.png)](https://i.stack.imgur.com/W3Zgd.png) So only within my sidebar widgets does this bullet above the widgets occur. I am not sure what custom css code to use to get rid of this. That is why I uploaded the picture of the inspect element to see if anyon...
2017/05/16
[ "https://Stackoverflow.com/questions/44004555", "https://Stackoverflow.com", "https://Stackoverflow.com/users/8020359/" ]
The reason you are getting that error message is because the `*` operator is telling Ruby to pass all the items of `arr` to `str.include?`. For those `arr` items, that is equivalent to writing `str.include?("aa", "bb", "cc")`. As said in other answers, checking a condition is verified for any of the elements contained...
Given: ``` arr = ["a", "b", "x"] str = "DoDox" ``` **EDIT**: As the other comments have pointed out, this is actually the fastest way, as it breaks the evaluation when a single true statement is found: ``` arr.any?{|substr| str.include?(substr)} ``` The [foldl](https://en.wikipedia.org/wiki/Fold_(higher-order_fun...
44,004,555
[![enter image description here](https://i.stack.imgur.com/W3Zgd.png)](https://i.stack.imgur.com/W3Zgd.png) So only within my sidebar widgets does this bullet above the widgets occur. I am not sure what custom css code to use to get rid of this. That is why I uploaded the picture of the inspect element to see if anyon...
2017/05/16
[ "https://Stackoverflow.com/questions/44004555", "https://Stackoverflow.com", "https://Stackoverflow.com/users/8020359/" ]
Construct a Regular Expression (without pipes and slashes and dots and other magic stuff): ``` arr = ["aa", "bb", "cc"] str = "mystringcc" reg = Regexp.union(arr) # That's all! p str.match?(reg) #=> true ```
The reason you are getting that error message is because the `*` operator is telling Ruby to pass all the items of `arr` to `str.include?`. For those `arr` items, that is equivalent to writing `str.include?("aa", "bb", "cc")`. As said in other answers, checking a condition is verified for any of the elements contained...
64,212,375
Since UILocalNotification was deprecated in iOS10, I'm having trouble understanding how to update the following code to the UNNotificationRequest framework. Im basically letting a user schedule a daily notification at a time of their choosing. For example, if they want to get a notification everyday at 11:00AM. The bel...
2020/10/05
[ "https://Stackoverflow.com/questions/64212375", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2360410/" ]
You can use `UNCalendarNotificationTrigger` for creating a notification that fires repeatedly using `UNUserNotificationCenter`. You can do something like this. The trick is to only have the time component in the Trigger date. ``` let center = UNUserNotificationCenter.current() let content = UNMutableN...
You can't schedule a notification that repeats daily. That notification would happen only once, and then you would have to schedule it again, which means that you would have to open the app again. There is BGTask API introduces in iOS 13, that can be used to perform some background tasks, but not this one, **you can n...
51,994,906
I'm using UWP and I'm trying to apply Color animation using Keyframes to a DropShadowPanel from the UWP Community Toolkit. but I haven't been able to succeed so far I've been able to apply DoubleAnimation to BlurRadius Property and Opacity Property but everytime I try to apply Color animation my program breaks. I als...
2018/08/23
[ "https://Stackoverflow.com/questions/51994906", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2284624/" ]
Although the `Color` property is a dependency property, it merely acts like a proxy that updates the `Color` of an inner `DropShadow` (see code below) that comes from `Windows.UI.Composition`. A traditional XAML storyboard simply won't work. ``` private void OnColorChanged(Color newValue) { if (_dropShadow != null...
As Erno de Weerd answered his code works but I'll like to complement this question with my answer firstable the answer from Erno works if apply like he showed. you could also can call the alias since DropShadowPanel is a third party control and belong to another namespace its necessarily to call the proper namespace in...
53,252
I'm using Lubuntu 11.10. Every time I shut down I can read FAIL in red letters, but I can not read more. So, how to read the log messages and try to solve the problem?
2012/10/29
[ "https://unix.stackexchange.com/questions/53252", "https://unix.stackexchange.com", "https://unix.stackexchange.com/users/19195/" ]
You need to edit all the /etc/rc6.d/\* files and redirect their output to some file, which you can read later. This redirection, will also tell you, which program `failed` and `why`. Additionally, you have to modify the `start-stop-daemon` by removing `--quiet` parameter and adding `-v` parameter in all those files. ...
Like Graeme said, with ro or dismounted filesystem, killed klogd there is no way to write such info to a file. A solution may be using a console ( serial port ) , defined in bootargs. Just connect null modem cable and another PC ( tablet or smartphone with appropriate adapter ) and terminal emulator.
53,252
I'm using Lubuntu 11.10. Every time I shut down I can read FAIL in red letters, but I can not read more. So, how to read the log messages and try to solve the problem?
2012/10/29
[ "https://unix.stackexchange.com/questions/53252", "https://unix.stackexchange.com", "https://unix.stackexchange.com/users/19195/" ]
Easiest solution might be to try taking a video instead of a photograph. You can step through it frame-by-frame later.
Error (and other) messages are usually hidden by `plymouth` for aesthetical reasons. Perhaps this helps: If you hit ESC during shutdown, `plymouth` shows the graphical console. Does that show you useful messages? Apart from that, there is little you can do if the machine actually crashes because it may not be able to...
53,252
I'm using Lubuntu 11.10. Every time I shut down I can read FAIL in red letters, but I can not read more. So, how to read the log messages and try to solve the problem?
2012/10/29
[ "https://unix.stackexchange.com/questions/53252", "https://unix.stackexchange.com", "https://unix.stackexchange.com/users/19195/" ]
After looking into how `bootlogd` actually manages to do the logging, it turns out that it can be persuaded to log the shutdown/reboot process as well as the startup one. `bootlogd` is started early in the boot process. It then does some magic with `tty` and `pts` devices to log all output to the terminal it is connect...
You need to edit all the /etc/rc6.d/\* files and redirect their output to some file, which you can read later. This redirection, will also tell you, which program `failed` and `why`. Additionally, you have to modify the `start-stop-daemon` by removing `--quiet` parameter and adding `-v` parameter in all those files. ...
53,252
I'm using Lubuntu 11.10. Every time I shut down I can read FAIL in red letters, but I can not read more. So, how to read the log messages and try to solve the problem?
2012/10/29
[ "https://unix.stackexchange.com/questions/53252", "https://unix.stackexchange.com", "https://unix.stackexchange.com/users/19195/" ]
For my laptop `sudo halt` will do software shutdown not hardware. i.e the screen and other hardware remain running. The last message in the screen will be > > System halted > > > At this point I just press the *Power button* and everything off. You can try this. You may also try `sudo halt --verbose`
Error (and other) messages are usually hidden by `plymouth` for aesthetical reasons. Perhaps this helps: If you hit ESC during shutdown, `plymouth` shows the graphical console. Does that show you useful messages? Apart from that, there is little you can do if the machine actually crashes because it may not be able to...
53,252
I'm using Lubuntu 11.10. Every time I shut down I can read FAIL in red letters, but I can not read more. So, how to read the log messages and try to solve the problem?
2012/10/29
[ "https://unix.stackexchange.com/questions/53252", "https://unix.stackexchange.com", "https://unix.stackexchange.com/users/19195/" ]
After looking into how `bootlogd` actually manages to do the logging, it turns out that it can be persuaded to log the shutdown/reboot process as well as the startup one. `bootlogd` is started early in the boot process. It then does some magic with `tty` and `pts` devices to log all output to the terminal it is connect...
Like Graeme said, with ro or dismounted filesystem, killed klogd there is no way to write such info to a file. A solution may be using a console ( serial port ) , defined in bootargs. Just connect null modem cable and another PC ( tablet or smartphone with appropriate adapter ) and terminal emulator.
53,252
I'm using Lubuntu 11.10. Every time I shut down I can read FAIL in red letters, but I can not read more. So, how to read the log messages and try to solve the problem?
2012/10/29
[ "https://unix.stackexchange.com/questions/53252", "https://unix.stackexchange.com", "https://unix.stackexchange.com/users/19195/" ]
Like Graeme said, with ro or dismounted filesystem, killed klogd there is no way to write such info to a file. A solution may be using a console ( serial port ) , defined in bootargs. Just connect null modem cable and another PC ( tablet or smartphone with appropriate adapter ) and terminal emulator.
Error (and other) messages are usually hidden by `plymouth` for aesthetical reasons. Perhaps this helps: If you hit ESC during shutdown, `plymouth` shows the graphical console. Does that show you useful messages? Apart from that, there is little you can do if the machine actually crashes because it may not be able to...
53,252
I'm using Lubuntu 11.10. Every time I shut down I can read FAIL in red letters, but I can not read more. So, how to read the log messages and try to solve the problem?
2012/10/29
[ "https://unix.stackexchange.com/questions/53252", "https://unix.stackexchange.com", "https://unix.stackexchange.com/users/19195/" ]
**Seeing the log in real time** I've found that during shutdown there is usually an Ubuntu logo and flashing lights, which is shown instead of a log of the shutdown process. If there are errors, then they're kind of shown, but messily. However, whilst shutting down, if I press the Windows key and `r` (`Meta``r`), then...
Like Graeme said, with ro or dismounted filesystem, killed klogd there is no way to write such info to a file. A solution may be using a console ( serial port ) , defined in bootargs. Just connect null modem cable and another PC ( tablet or smartphone with appropriate adapter ) and terminal emulator.
53,252
I'm using Lubuntu 11.10. Every time I shut down I can read FAIL in red letters, but I can not read more. So, how to read the log messages and try to solve the problem?
2012/10/29
[ "https://unix.stackexchange.com/questions/53252", "https://unix.stackexchange.com", "https://unix.stackexchange.com/users/19195/" ]
**Seeing the log in real time** I've found that during shutdown there is usually an Ubuntu logo and flashing lights, which is shown instead of a log of the shutdown process. If there are errors, then they're kind of shown, but messily. However, whilst shutting down, if I press the Windows key and `r` (`Meta``r`), then...
`/var/log/messages` will give you the data you need. if it's not sufficient for you, modify`/etc/syslog.conf` to log all the data (I would look to enable kernel errors logging, aka \*kern) but **REVERT IT BACK** after you reboot, or it will eat lots of space for the logs
53,252
I'm using Lubuntu 11.10. Every time I shut down I can read FAIL in red letters, but I can not read more. So, how to read the log messages and try to solve the problem?
2012/10/29
[ "https://unix.stackexchange.com/questions/53252", "https://unix.stackexchange.com", "https://unix.stackexchange.com/users/19195/" ]
You need to edit all the /etc/rc6.d/\* files and redirect their output to some file, which you can read later. This redirection, will also tell you, which program `failed` and `why`. Additionally, you have to modify the `start-stop-daemon` by removing `--quiet` parameter and adding `-v` parameter in all those files. ...
`/var/log/messages` will give you the data you need. if it's not sufficient for you, modify`/etc/syslog.conf` to log all the data (I would look to enable kernel errors logging, aka \*kern) but **REVERT IT BACK** after you reboot, or it will eat lots of space for the logs
53,252
I'm using Lubuntu 11.10. Every time I shut down I can read FAIL in red letters, but I can not read more. So, how to read the log messages and try to solve the problem?
2012/10/29
[ "https://unix.stackexchange.com/questions/53252", "https://unix.stackexchange.com", "https://unix.stackexchange.com/users/19195/" ]
There seems to be no way to log this data to a file. For the boot process, there is the `bootlogd` package which creates the file `/var/log/boot`, but nothing for the shutdown/reboot process. As far as I can see there is no way to log with `rsyslog` either, and even if there was, there are messages printed after `rsysl...
**Seeing the log in real time** I've found that during shutdown there is usually an Ubuntu logo and flashing lights, which is shown instead of a log of the shutdown process. If there are errors, then they're kind of shown, but messily. However, whilst shutting down, if I press the Windows key and `r` (`Meta``r`), then...
64,736,967
I see multiple examples of loading and processing data with Apache Ignite. But how do I export data from the ignite cache after it’s been processed?

 I'm looking forward to implement processing of some large CSV files on a cluster. Say it’s a simple transformation that preprocesses data in a specific column. After I’...
2020/11/08
[ "https://Stackoverflow.com/questions/64736967", "https://Stackoverflow.com", "https://Stackoverflow.com/users/118104/" ]
If you want to export the entire data set, then yes, [ScanQuery](https://ignite.apache.org/docs/latest/key-value-api/using-scan-queries) in combination with [AffinityRun](https://ignite.apache.org/docs/latest/distributed-computing/collocated-computations#colocating-by-partition) for every partition is probably the mos...
`sqlline` utility comes with Apache Ignite and it can also write CSV files with `!outputFormat csv`.
58,483,305
From a service constructor, I want to call 2 HttpClient.get asynchronously. When the constructor is completed, the 2 get requests have to be already completed. ```html public async ReadConfiguration () { await this.http.get ('http://localhost:80/api/Target.xml',{ responseType: 'text' }) .toPromise...
2019/10/21
[ "https://Stackoverflow.com/questions/58483305", "https://Stackoverflow.com", "https://Stackoverflow.com/users/6431715/" ]
Yes, code is working fine. Because your method `this.ReadConfiguration();` is asynchronous in nature, and it will run out of the normal flow and execute after some time which is working as expected.
You need to put an await in this line: ``` this.ReadConfiguration (); ``` Like this: ``` constructor(private http: HttpClient) { console.log ('-->constructor'); await this.ReadConfiguration (); console.log ('Done'); console.log ('<--constructor'); } ```
58,483,305
From a service constructor, I want to call 2 HttpClient.get asynchronously. When the constructor is completed, the 2 get requests have to be already completed. ```html public async ReadConfiguration () { await this.http.get ('http://localhost:80/api/Target.xml',{ responseType: 'text' }) .toPromise...
2019/10/21
[ "https://Stackoverflow.com/questions/58483305", "https://Stackoverflow.com", "https://Stackoverflow.com/users/6431715/" ]
The purpose of using the constructor is to create the component and to initiate the variables In your case you are looking for what we called it a 'HOOK' as ngOnInit that is executed after the Constructor. Please look at this : [Difference between Constructor and ngOnInit](https://stackoverflow.com/questions/35763730...
Yes, code is working fine. Because your method `this.ReadConfiguration();` is asynchronous in nature, and it will run out of the normal flow and execute after some time which is working as expected.
58,483,305
From a service constructor, I want to call 2 HttpClient.get asynchronously. When the constructor is completed, the 2 get requests have to be already completed. ```html public async ReadConfiguration () { await this.http.get ('http://localhost:80/api/Target.xml',{ responseType: 'text' }) .toPromise...
2019/10/21
[ "https://Stackoverflow.com/questions/58483305", "https://Stackoverflow.com", "https://Stackoverflow.com/users/6431715/" ]
The purpose of using the constructor is to create the component and to initiate the variables In your case you are looking for what we called it a 'HOOK' as ngOnInit that is executed after the Constructor. Please look at this : [Difference between Constructor and ngOnInit](https://stackoverflow.com/questions/35763730...
You need to put an await in this line: ``` this.ReadConfiguration (); ``` Like this: ``` constructor(private http: HttpClient) { console.log ('-->constructor'); await this.ReadConfiguration (); console.log ('Done'); console.log ('<--constructor'); } ```
58,483,305
From a service constructor, I want to call 2 HttpClient.get asynchronously. When the constructor is completed, the 2 get requests have to be already completed. ```html public async ReadConfiguration () { await this.http.get ('http://localhost:80/api/Target.xml',{ responseType: 'text' }) .toPromise...
2019/10/21
[ "https://Stackoverflow.com/questions/58483305", "https://Stackoverflow.com", "https://Stackoverflow.com/users/6431715/" ]
if you want to use your readconfiguration function your gonna need to use it like this: ``` constructor(private http: HttpClient) { console.log ('-->constructor'); this.ReadConfiguration().then(data => { console.log('done') console.log ('<--constructor'); }); } ``` and your...
You need to put an await in this line: ``` this.ReadConfiguration (); ``` Like this: ``` constructor(private http: HttpClient) { console.log ('-->constructor'); await this.ReadConfiguration (); console.log ('Done'); console.log ('<--constructor'); } ```
58,483,305
From a service constructor, I want to call 2 HttpClient.get asynchronously. When the constructor is completed, the 2 get requests have to be already completed. ```html public async ReadConfiguration () { await this.http.get ('http://localhost:80/api/Target.xml',{ responseType: 'text' }) .toPromise...
2019/10/21
[ "https://Stackoverflow.com/questions/58483305", "https://Stackoverflow.com", "https://Stackoverflow.com/users/6431715/" ]
As Youssef Tounoussi stated above, put the `ReadConfiguration` call in `async ngOnInit()`. In addition, to avoid the nested promise responses, you could rearrange the calls as shown below: ``` public async ReadConfiguration() { let res: string; try { // 1st call res = await this.http.get('h...
You need to put an await in this line: ``` this.ReadConfiguration (); ``` Like this: ``` constructor(private http: HttpClient) { console.log ('-->constructor'); await this.ReadConfiguration (); console.log ('Done'); console.log ('<--constructor'); } ```
58,483,305
From a service constructor, I want to call 2 HttpClient.get asynchronously. When the constructor is completed, the 2 get requests have to be already completed. ```html public async ReadConfiguration () { await this.http.get ('http://localhost:80/api/Target.xml',{ responseType: 'text' }) .toPromise...
2019/10/21
[ "https://Stackoverflow.com/questions/58483305", "https://Stackoverflow.com", "https://Stackoverflow.com/users/6431715/" ]
The purpose of using the constructor is to create the component and to initiate the variables In your case you are looking for what we called it a 'HOOK' as ngOnInit that is executed after the Constructor. Please look at this : [Difference between Constructor and ngOnInit](https://stackoverflow.com/questions/35763730...
if you want to use your readconfiguration function your gonna need to use it like this: ``` constructor(private http: HttpClient) { console.log ('-->constructor'); this.ReadConfiguration().then(data => { console.log('done') console.log ('<--constructor'); }); } ``` and your...
58,483,305
From a service constructor, I want to call 2 HttpClient.get asynchronously. When the constructor is completed, the 2 get requests have to be already completed. ```html public async ReadConfiguration () { await this.http.get ('http://localhost:80/api/Target.xml',{ responseType: 'text' }) .toPromise...
2019/10/21
[ "https://Stackoverflow.com/questions/58483305", "https://Stackoverflow.com", "https://Stackoverflow.com/users/6431715/" ]
The purpose of using the constructor is to create the component and to initiate the variables In your case you are looking for what we called it a 'HOOK' as ngOnInit that is executed after the Constructor. Please look at this : [Difference between Constructor and ngOnInit](https://stackoverflow.com/questions/35763730...
As Youssef Tounoussi stated above, put the `ReadConfiguration` call in `async ngOnInit()`. In addition, to avoid the nested promise responses, you could rearrange the calls as shown below: ``` public async ReadConfiguration() { let res: string; try { // 1st call res = await this.http.get('h...
10,132,936
I want to draw a dynamic graph with standard HTML/Javascript/JQuery (not HTML5). The nodes are divs with certain contents, and between them I need lines. At least horizontal and vertical. It's possible to add and remove nodes dynamically. It would be nice if the divs are draggable too, but is not necessary. Can this...
2012/04/12
[ "https://Stackoverflow.com/questions/10132936", "https://Stackoverflow.com", "https://Stackoverflow.com/users/930450/" ]
This would probably be easy to make with [JointJS](http://www.jointjs.com/ "JavaScript diagramming library"). It uses Raphael for handling the graphics, which is based on SVG but also support VML for IE. JointJS claims to support the following browsers: Firefox 3.0+, Safari 3.0+, Opera 9.5+, Google Chrome 4+ and Intern...
JQplot is great: <http://www.jqplot.com/> It has a very "Google analytics" feel to it right out of the box. It's built on jQuery which works great for what you've described.
10,132,936
I want to draw a dynamic graph with standard HTML/Javascript/JQuery (not HTML5). The nodes are divs with certain contents, and between them I need lines. At least horizontal and vertical. It's possible to add and remove nodes dynamically. It would be nice if the divs are draggable too, but is not necessary. Can this...
2012/04/12
[ "https://Stackoverflow.com/questions/10132936", "https://Stackoverflow.com", "https://Stackoverflow.com/users/930450/" ]
This would probably be easy to make with [JointJS](http://www.jointjs.com/ "JavaScript diagramming library"). It uses Raphael for handling the graphics, which is based on SVG but also support VML for IE. JointJS claims to support the following browsers: Firefox 3.0+, Safari 3.0+, Opera 9.5+, Google Chrome 4+ and Intern...
You can use Google Charts, Google Graph API [Examples.](https://google-developers.appspot.com/chart/interactive/docs/gallery)
10,132,936
I want to draw a dynamic graph with standard HTML/Javascript/JQuery (not HTML5). The nodes are divs with certain contents, and between them I need lines. At least horizontal and vertical. It's possible to add and remove nodes dynamically. It would be nice if the divs are draggable too, but is not necessary. Can this...
2012/04/12
[ "https://Stackoverflow.com/questions/10132936", "https://Stackoverflow.com", "https://Stackoverflow.com/users/930450/" ]
JQplot is great: <http://www.jqplot.com/> It has a very "Google analytics" feel to it right out of the box. It's built on jQuery which works great for what you've described.
You can use Google Charts, Google Graph API [Examples.](https://google-developers.appspot.com/chart/interactive/docs/gallery)
33,487,793
Where do I find the console output for tvos javascript in xcode or the sim? The answer is probably trivial, but I have not been able to figure it out. Thanks for your patience.
2015/11/02
[ "https://Stackoverflow.com/questions/33487793", "https://Stackoverflow.com", "https://Stackoverflow.com/users/5517618/" ]
To see a full console (for things like console.log) for JavaScript, open up Safari and after you've built your app inside XCode, click Develop > Simulator and you'll be able to see a console of your app.
You can see the output at the bottom of Xcode. Click on the triangle at the left side, if it is hidden [![enter image description here](https://i.stack.imgur.com/SdXhR.png)](https://i.stack.imgur.com/SdXhR.png)
40,203,574
Where does: admin --> `index.php?route=api/order/add&token=xxx` point to? Which controller file, method will this call?
2016/10/23
[ "https://Stackoverflow.com/questions/40203574", "https://Stackoverflow.com", "https://Stackoverflow.com/users/6926499/" ]
index.php?route=api/order/add&token=xxx points to catalog\controller\api
It will point to 1. Controller Folder (admin/api) 2. Controller File (admin/api/order.php) 3. Controller Function (admin/api/order.php => function token())
40,203,574
Where does: admin --> `index.php?route=api/order/add&token=xxx` point to? Which controller file, method will this call?
2016/10/23
[ "https://Stackoverflow.com/questions/40203574", "https://Stackoverflow.com", "https://Stackoverflow.com/users/6926499/" ]
index.php?route=api/order/add&token=xxx points to catalog\controller\api
It will point to method or function Add() in the order.php controller file in the api folder. There is no token() method as stated above. Token is just a token send with every request!
17,230,050
Im stumped at this point with my code here, im getting this generic error at the line where its supposed to copy and paste the selected range after creating the worksheet but its giving me this frustrating error - i dont know what im doing wrong here, please help guys, all help appreciated :) ``` Private Sub ExpBttn()...
2013/06/21
[ "https://Stackoverflow.com/questions/17230050", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2507972/" ]
You've set your range variable in the Case statement, so use it in the copy/paste ``` TgtRngR.Copy Destination:=Sheets("Exported_" & TgtNme).Range("A1:F18") ``` and ``` Sheets("Exported_" & TgtNme).Range("A1:F18") = TgtRngR ``` Also, your Case statment logic is incorrect. It should be something like ``` TgtNme =...
Please review your `Case` statement: * in the `Case` opener you use a (local) variable `Multi` * in the contition statements you use a different object `MultiPage1.Value` * both of them are not declared For me it looks as none of the `Case` branches are executed and hence `TgtRngR`, `TgtRngB`, `TgtNme` are undefined....
9,133,078
I do not understand the behavior. I have such example, need to catch html comment. ``` var str = '.. <!--My -- comment test--> '; var regex1 = /<!--[.]*-->/g; var regex2 = /<!--.*-->/g; alert(str.match(regex1)); // null alert(str.match(regex2)); // <!--My -- comment test--> ``` The second regex `regex2`...
2012/02/03
[ "https://Stackoverflow.com/questions/9133078", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1114926/" ]
The dot (`.`) does not mean "anything" inside a character class. Why would you need a character class to match anything?
The first doesn't because it doesn't mean the same. The first means to match the period character. The period character isn't a generic match when put inside of a [] set. (and if you think about it, this makes sense: why would you want to match anything inside a set of limited matching variables)
9,133,078
I do not understand the behavior. I have such example, need to catch html comment. ``` var str = '.. <!--My -- comment test--> '; var regex1 = /<!--[.]*-->/g; var regex2 = /<!--.*-->/g; alert(str.match(regex1)); // null alert(str.match(regex2)); // <!--My -- comment test--> ``` The second regex `regex2`...
2012/02/03
[ "https://Stackoverflow.com/questions/9133078", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1114926/" ]
The dot (`.`) does not mean "anything" inside a character class. Why would you need a character class to match anything?
> > RegExpressions `<!--[.]*-->` and `<!--.*-->` mean the same > > > This is not correct. The brackets `[]` indicate a character class, where any character in the class may be matched. `[.]` is the character class which contains the '`.`' character. Contrast this with `.`, which is a **pre-defined** character cl...
9,133,078
I do not understand the behavior. I have such example, need to catch html comment. ``` var str = '.. <!--My -- comment test--> '; var regex1 = /<!--[.]*-->/g; var regex2 = /<!--.*-->/g; alert(str.match(regex1)); // null alert(str.match(regex2)); // <!--My -- comment test--> ``` The second regex `regex2`...
2012/02/03
[ "https://Stackoverflow.com/questions/9133078", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1114926/" ]
Character class shorthands like `\w`, `\d` and `\s` mean exactly the same inside character classes as out, but metacharacters like `.` typically lose their special meanings inside character classes. That's why `/<!--[.]*-->/` didn't work as you expected: `[.]` matches a literal `.`. But `/<!--.*-->/` doesn't really wo...
The first doesn't because it doesn't mean the same. The first means to match the period character. The period character isn't a generic match when put inside of a [] set. (and if you think about it, this makes sense: why would you want to match anything inside a set of limited matching variables)
9,133,078
I do not understand the behavior. I have such example, need to catch html comment. ``` var str = '.. <!--My -- comment test--> '; var regex1 = /<!--[.]*-->/g; var regex2 = /<!--.*-->/g; alert(str.match(regex1)); // null alert(str.match(regex2)); // <!--My -- comment test--> ``` The second regex `regex2`...
2012/02/03
[ "https://Stackoverflow.com/questions/9133078", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1114926/" ]
Character class shorthands like `\w`, `\d` and `\s` mean exactly the same inside character classes as out, but metacharacters like `.` typically lose their special meanings inside character classes. That's why `/<!--[.]*-->/` didn't work as you expected: `[.]` matches a literal `.`. But `/<!--.*-->/` doesn't really wo...
> > RegExpressions `<!--[.]*-->` and `<!--.*-->` mean the same > > > This is not correct. The brackets `[]` indicate a character class, where any character in the class may be matched. `[.]` is the character class which contains the '`.`' character. Contrast this with `.`, which is a **pre-defined** character cl...
382,611
Whenever I connect my iPhone to my Mac (Lion), the Image capture app starts. How do I stop this? Image capture doesn't have any preferences.
2012/01/26
[ "https://superuser.com/questions/382611", "https://superuser.com", "https://superuser.com/users/13727/" ]
Found it! In Image Capture there's a section on the bottom-left. Make sure the iPhone is selected, otherwise the bottom settings will not appear. ![](https://i.stack.imgur.com/1QGi7.jpg) ![](https://i.stack.imgur.com/SUtI1.png)
Use iPhoto's preferences (General tab, the "Connecting camera opens" setting). ![enter image description here](https://i.stack.imgur.com/ev1dv.png)
21,960,154
I am parsing xls/csv files into database. For each file I have one table with columns named by hashes of file column names. For columns * Nazwisko * Imię * Adres1 * Adres2 * Miasto * Telefon * Kod * Email * Województwo I have SQL: ``` CREATE TABLE premium_import_temp_worksheet_9 ( id INTEGER...
2014/02/22
[ "https://Stackoverflow.com/questions/21960154", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3130209/" ]
> > 2.UINavigationController stores view controllers in `NSArray` > > > That is not a given. ``` @property(nonatomic,copy) NSArray *viewControllers; ``` That in no way indicates that there is an ivar called `_viewControllers` or anything like it. It just tells us that there is some method `-viewControllers` tha...
The `viewControllers` property of `UINavigationController` is defined as > > > ``` > @property(nonatomic, copy) NSArray *viewControllers > > ``` > > The view controllers currently on the navigation stack. > > > Then there is no problematic retain loop since the navigation controller removes any `UIViewControll...
65,375,206
I have multiple arrays which I'm trying to explode and divide all information inside. For some reason, I'm losing the information about main arrays when I do that. Arrays ``` [0] => Array ( [0] => 2020-11-01 / 2020-11-30 [1] => 2020-12-01 / 2020-12-31 ) [1] => Array ( [0] => 2020-11-01 / 2020-11-30 ...
2020/12/19
[ "https://Stackoverflow.com/questions/65375206", "https://Stackoverflow.com", "https://Stackoverflow.com/users/7195859/" ]
You are creating a new array instead of writing in the same indices that you are exploding, which you would do like this: ```php $arr = [ 0 => [ 0 => '2020-11-01 / 2020-11-30', 1 => '2020-12-01 / 2020-12-31', ], 1 => [ 0 => '2020-11-01 / 2020-11-30', 1 => '2020-12-01 / 2020-...
If you really want keep your original array intact. A solution is use another array to put your exploded array inside: ``` <?php $list = [ [ "2020-11-01 / 2020-11-30", "2020-11-01 / 2020-11-30", ], [ "2020-11-01 / 2020-11-30", "2020-11-01 / 2020-11-30", ] ]; $newArray = []; foreach ($list as ...
65,375,206
I have multiple arrays which I'm trying to explode and divide all information inside. For some reason, I'm losing the information about main arrays when I do that. Arrays ``` [0] => Array ( [0] => 2020-11-01 / 2020-11-30 [1] => 2020-12-01 / 2020-12-31 ) [1] => Array ( [0] => 2020-11-01 / 2020-11-30 ...
2020/12/19
[ "https://Stackoverflow.com/questions/65375206", "https://Stackoverflow.com", "https://Stackoverflow.com/users/7195859/" ]
You can achieve the result you want with a nested [`array_map`](https://www.php.net/manual/en/function.array-map.php) to explode the data in each value: ``` $data = array( array( "2020-11-01 / 2020-11-30", "2020-11-01 / 2020-11-30", ), array( "2020-11-01 / 2020-11-30", "2020-11-01 / 2020-11-30", ...
If you really want keep your original array intact. A solution is use another array to put your exploded array inside: ``` <?php $list = [ [ "2020-11-01 / 2020-11-30", "2020-11-01 / 2020-11-30", ], [ "2020-11-01 / 2020-11-30", "2020-11-01 / 2020-11-30", ] ]; $newArray = []; foreach ($list as ...
8,631,629
I would like to list the directory that my current website will be in as a browsable tree (similar to the way a web browser lists a directory if there are no index files present) - basically, an FTP listing. However, I can't use PHP because the server I'm developing for does not support PHP (or any similar tools as far...
2011/12/25
[ "https://Stackoverflow.com/questions/8631629", "https://Stackoverflow.com", "https://Stackoverflow.com/users/838060/" ]
I don't understand your problem completely, I see only one possible solution without a server side language. Include tree like structure for all directory components(path) links (native htmls) in index.html and apply some basic jquery animation to feel like tree structure.
Jquery / javascript are client side languages, you must have something on your server. Perhaps if you'll have a WebService on your server, you can call it with jquery and format it in your html.
8,631,629
I would like to list the directory that my current website will be in as a browsable tree (similar to the way a web browser lists a directory if there are no index files present) - basically, an FTP listing. However, I can't use PHP because the server I'm developing for does not support PHP (or any similar tools as far...
2011/12/25
[ "https://Stackoverflow.com/questions/8631629", "https://Stackoverflow.com", "https://Stackoverflow.com/users/838060/" ]
If your server is set to list directories, you can send an XHR for the directory you want and parse the returned HTML. However, you'd be better off providing a web service that lists directories for you.
Jquery / javascript are client side languages, you must have something on your server. Perhaps if you'll have a WebService on your server, you can call it with jquery and format it in your html.
8,631,629
I would like to list the directory that my current website will be in as a browsable tree (similar to the way a web browser lists a directory if there are no index files present) - basically, an FTP listing. However, I can't use PHP because the server I'm developing for does not support PHP (or any similar tools as far...
2011/12/25
[ "https://Stackoverflow.com/questions/8631629", "https://Stackoverflow.com", "https://Stackoverflow.com/users/838060/" ]
If your server is set to list directories, you can send an XHR for the directory you want and parse the returned HTML. However, you'd be better off providing a web service that lists directories for you.
I don't understand your problem completely, I see only one possible solution without a server side language. Include tree like structure for all directory components(path) links (native htmls) in index.html and apply some basic jquery animation to feel like tree structure.
6,603,917
I created a Facebook App ID and set the site URL to "localhost" so that after authenticating (via client-side JavaScript), I am redirected to my local machine while I'm developing the app. I'm curious to know if there's any risk in this setup, specifically, what would happen if my App ID were stolen. It seems like the...
2011/07/06
[ "https://Stackoverflow.com/questions/6603917", "https://Stackoverflow.com", "https://Stackoverflow.com/users/62694/" ]
You should not worry about. Facebook App ID can be easily retrieved from any site that uses facebook JS SDK. What you should worry about - is your `app secret key`
I also think this is risky, not for the localhost issue ( you can change it to other thing, like mylocal.develop, map it in the /etc/hosts, and authorize that in Facebook, as I did. It works ), but for the IP spoofing or domain spoofing by header forgery ( <https://en.wikipedia.org/wiki/IP_address_spoofing> ) Not sure...
51,062,755
I wonder how Fortran's I/O is expected to behave in case of a NULL character `ACHAR(0)`. The actual task is to fill an ASCII file by blocks of precisely eight characters. The strings are read from a binary and may contain non-printing characters. I tried with `gfortran` 4.8, 8.1 and `f2c`. If there is a NULL charac...
2018/06/27
[ "https://Stackoverflow.com/questions/51062755", "https://Stackoverflow.com", "https://Stackoverflow.com/users/9999705/" ]
This could be a way to get what you need: ``` select regexp_substr(narration, 'chgRs[^\/]+') as derived_narration, regexp_substr(narration, '(chgRs)(.+)(GSTR)', 1, 1, '', 2) as charges, regexp_substr(narration, '(GSTRs)(\d+\.\d+)', 1, 1, '', 2) as GST from yourTable ``` With your sample data: ``` SQL>...
``` with data as ( select 'MMT/PS/12345/Family/RAM/chgRs5.00GSTRs0.90' as narration from dual union select 'MMT/43425/chgRs5.00GSTRs0.90/1257874554' from dual union select 'MMT/XX/12345/Family/RAM/chgRs25.00GSTRs20.90' from dual union select 'ITI/4425/chgRs15.00GSTRs10.70/1257874554' from dual ) select ...
51,062,755
I wonder how Fortran's I/O is expected to behave in case of a NULL character `ACHAR(0)`. The actual task is to fill an ASCII file by blocks of precisely eight characters. The strings are read from a binary and may contain non-printing characters. I tried with `gfortran` 4.8, 8.1 and `f2c`. If there is a NULL charac...
2018/06/27
[ "https://Stackoverflow.com/questions/51062755", "https://Stackoverflow.com", "https://Stackoverflow.com/users/9999705/" ]
You do not need regular expressions: [SQL Fiddle](http://sqlfiddle.com/#!4/36f9bd/11) **Oracle 11g R2 Schema Setup**: ``` CREATE TABLE table_name ( NARRATION ) AS SELECT 'MMT/PS/12345/Family/RAM/chgRs5.00GSTRs0.90' FROM DUAL UNION ALL SELECT 'MMT/43425/chgRs5.00GSTRs0.90/1257874554' FROM DUAL UNION ALL SELECT 'MMT/X...
``` with data as ( select 'MMT/PS/12345/Family/RAM/chgRs5.00GSTRs0.90' as narration from dual union select 'MMT/43425/chgRs5.00GSTRs0.90/1257874554' from dual union select 'MMT/XX/12345/Family/RAM/chgRs25.00GSTRs20.90' from dual union select 'ITI/4425/chgRs15.00GSTRs10.70/1257874554' from dual ) select ...
63,210,920
Im using expo-location to monitor my users location as it updates The `Location.watchPositionAsync(options, callback)` function in particular. Its outputting the correct location but its not setting that output as the state using `setLocation` `location` is returning the following : ``` Object { "remove": [Functi...
2020/08/01
[ "https://Stackoverflow.com/questions/63210920", "https://Stackoverflow.com", "https://Stackoverflow.com/users/13033540/" ]
I had the same problem not getting any location with `watchPositionAsync()` It seems there is a bug (or it is intended this way, idk). **You must set accuracy to high to get location object**. It does not work with other accuracy options (as it also does not work with default). ```js let location = await Location.wat...
I fixed my issue by simply making a deep copy of the location returned **Please correct me if my logic is wrong** I changed this ``` let locations = await Location.watchPositionAsync({ accuracy: Location.Accuracy.Balanced, timeInterval: 10000, distanceInterval: 1 }, (loc) => setLocation(loc.coords)); ``` To this ...
63,210,920
Im using expo-location to monitor my users location as it updates The `Location.watchPositionAsync(options, callback)` function in particular. Its outputting the correct location but its not setting that output as the state using `setLocation` `location` is returning the following : ``` Object { "remove": [Functi...
2020/08/01
[ "https://Stackoverflow.com/questions/63210920", "https://Stackoverflow.com", "https://Stackoverflow.com/users/13033540/" ]
I had the same problem not getting any location with `watchPositionAsync()` It seems there is a bug (or it is intended this way, idk). **You must set accuracy to high to get location object**. It does not work with other accuracy options (as it also does not work with default). ```js let location = await Location.wat...
``` export default function App() { const [location, setLocation] = useState(null); const [status, requestPermission] = Location.useForegroundPermissions(); useEffect(() => { (async () => { let { status } = await Location.requestForegroundPermissionsAsync(); if (status !== 'granted') { se...
63,210,920
Im using expo-location to monitor my users location as it updates The `Location.watchPositionAsync(options, callback)` function in particular. Its outputting the correct location but its not setting that output as the state using `setLocation` `location` is returning the following : ``` Object { "remove": [Functi...
2020/08/01
[ "https://Stackoverflow.com/questions/63210920", "https://Stackoverflow.com", "https://Stackoverflow.com/users/13033540/" ]
I had the same problem not getting any location with `watchPositionAsync()` It seems there is a bug (or it is intended this way, idk). **You must set accuracy to high to get location object**. It does not work with other accuracy options (as it also does not work with default). ```js let location = await Location.wat...
``` import React, { useState, useEffect } from 'react'; import { Platform, Text, View, StyleSheet } from 'react-native'; import Device from 'expo-device'; import * as Location from 'expo-location'; export default function App() { const [location, setLocation] = useState(null); const [errorMsg, setErrorMsg] = useSt...
330,760
How do I create a Group Policy that will prevent my users from accessing specific web-sites? I am at the 2008r2 functional level.
2011/11/14
[ "https://serverfault.com/questions/330760", "https://serverfault.com", "https://serverfault.com/users/100883/" ]
You need to set up an outbound proxy (Threat Management Gateway, Squid, etc) and use Group Policy to force Internet Explorer to pass all traffic though this proxy if it is not in-line. If you make the proxy in-line, then all traffic will, obviously, pass through it regardless of IE settings, making the GPO pointless. ...
There's no built in standard way to achieve this using Group Policy.
330,760
How do I create a Group Policy that will prevent my users from accessing specific web-sites? I am at the 2008r2 functional level.
2011/11/14
[ "https://serverfault.com/questions/330760", "https://serverfault.com", "https://serverfault.com/users/100883/" ]
There's no built in standard way to achieve this using Group Policy.
For a Computer policy, one possible method is to use a hosts file. You could create a custom hosts file that contains the names that you want to block, and deploy that using the Group Policy Preferences feature to copy files. (Computer Configuration > Preferences > Windows settings > Files). Keep in mind that this ap...
330,760
How do I create a Group Policy that will prevent my users from accessing specific web-sites? I am at the 2008r2 functional level.
2011/11/14
[ "https://serverfault.com/questions/330760", "https://serverfault.com", "https://serverfault.com/users/100883/" ]
You need to set up an outbound proxy (Threat Management Gateway, Squid, etc) and use Group Policy to force Internet Explorer to pass all traffic though this proxy if it is not in-line. If you make the proxy in-line, then all traffic will, obviously, pass through it regardless of IE settings, making the GPO pointless. ...
For a Computer policy, one possible method is to use a hosts file. You could create a custom hosts file that contains the names that you want to block, and deploy that using the Group Policy Preferences feature to copy files. (Computer Configuration > Preferences > Windows settings > Files). Keep in mind that this ap...
50,222,417
I am having a website (Angular App) which I can reach on <https://localhost:4200> and a server (pure REST API) that is on <https://localhost:8443>. Since the REST endpoints are secured, a user must login on my server. Obviously I want users to be able to signup using Facebook and further communicate with my server af...
2018/05/07
[ "https://Stackoverflow.com/questions/50222417", "https://Stackoverflow.com", "https://Stackoverflow.com/users/826983/" ]
I tried [bkcura's answer](https://stackoverflow.com/a/51081414/5784648) but it didnt work and the same error still appear. So I tried to use the new Circle feature (orbs) to mix two orbs: * [React](https://github.com/thefrontside/circleci-react-orb) * [Cypress](https://github.com/cypress-io/circleci-orb) And it work...
See the docs here: <https://docs.cypress.io/guides/guides/continuous-integration.html#Example-circle-yml-v2-config-file-with-yarn> You need to not cache `node_modules`, and instead cache `~/.cache`: ``` version: 2 jobs: build: docker: - image: cypress/base:8 environment: ## this enables ...
15,005,703
I'm really confused about this. I have a reasonably dynamic page on a test site which uses Bootstrap's carousel (but I'm hoping it's my code, not theirs, that's wrong). Test page can be found here: <http://bit.ly/ZjLl19> What you'll notice is as follows... * The page starts to load * The staff portraits begin to app...
2013/02/21
[ "https://Stackoverflow.com/questions/15005703", "https://Stackoverflow.com", "https://Stackoverflow.com/users/257796/" ]
It's actually an easy fix. Simply apply the active class to the first element to show it (Or which ever one you want to display first). Otherwise you're waiting until dom has loaded and the carousel has been initialised to do that for you. So this below would do the trick and display the carousel immediately without h...
I would suggest you to do the following : 1. Reduce the size of your images . 2. Combine your css files into one . 3. Combine js files . 4. Gzip css and js files . Compression will drastically improve load time . 5. Minify css and js , removing unwanted space in these files will reduce the size of them. 6. You can tak...
15,005,703
I'm really confused about this. I have a reasonably dynamic page on a test site which uses Bootstrap's carousel (but I'm hoping it's my code, not theirs, that's wrong). Test page can be found here: <http://bit.ly/ZjLl19> What you'll notice is as follows... * The page starts to load * The staff portraits begin to app...
2013/02/21
[ "https://Stackoverflow.com/questions/15005703", "https://Stackoverflow.com", "https://Stackoverflow.com/users/257796/" ]
***Points to note:*** 1) You paused your carousel on init. This may explain the initial pause. The carousel auto continues to the next slide, showing the subsequent slides after the default delay, [which apparently is 5000ms](http://twitter.github.com/bootstrap/javascript.html#carousel). ``` $('.carousel.paused-by-de...
I would suggest you to do the following : 1. Reduce the size of your images . 2. Combine your css files into one . 3. Combine js files . 4. Gzip css and js files . Compression will drastically improve load time . 5. Minify css and js , removing unwanted space in these files will reduce the size of them. 6. You can tak...
15,005,703
I'm really confused about this. I have a reasonably dynamic page on a test site which uses Bootstrap's carousel (but I'm hoping it's my code, not theirs, that's wrong). Test page can be found here: <http://bit.ly/ZjLl19> What you'll notice is as follows... * The page starts to load * The staff portraits begin to app...
2013/02/21
[ "https://Stackoverflow.com/questions/15005703", "https://Stackoverflow.com", "https://Stackoverflow.com/users/257796/" ]
***Points to note:*** 1) You paused your carousel on init. This may explain the initial pause. The carousel auto continues to the next slide, showing the subsequent slides after the default delay, [which apparently is 5000ms](http://twitter.github.com/bootstrap/javascript.html#carousel). ``` $('.carousel.paused-by-de...
It's actually an easy fix. Simply apply the active class to the first element to show it (Or which ever one you want to display first). Otherwise you're waiting until dom has loaded and the carousel has been initialised to do that for you. So this below would do the trick and display the carousel immediately without h...
143,273
> > It sounds like that she started cooking > > > versus > > It sounds like she started cooking. > > > 1- Are these the same or different? 2- Are they complex sentences?
2017/09/27
[ "https://ell.stackexchange.com/questions/143273", "https://ell.stackexchange.com", "https://ell.stackexchange.com/users/62819/" ]
> > [1]\* *It sounds like* [*that* *she started* [*cooking*]]. > > > [2] *It sounds like* [*she started* [*cooking*]]. > > > [1] is ungrammatical because with prepositional governors such as "like", only non-expandable content clauses are permitted, i.e. the subordinator "that" is inadmissible here. [2] is a c...
Both "like" and "that" can function as subordinating conjunctions.  Using both to introduce a single subordinate clause is an error.  "That" doesn't co-locate well with the verbs "sounds" and "looks", although it appears regularly alongside similar verbs such as "appears" and "seems".  Yes, "It sounds like she star...
25,045,630
I need to join two tables where the common column-id that I want to use has a different name in each table. The two tables have a "false" common column name that does not work when dplyr takes the default and joins on columns "id". Here's some of the code involved in this problem ``` library(dplyr) library(RMySQL) S...
2014/07/30
[ "https://Stackoverflow.com/questions/25045630", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3681063/" ]
In the next version of dplyr, you'll be able to do: ``` inner_join(members, administrators, by = c("id" = "idmember")) ```
Looks like this is an unresolved issue: <https://github.com/hadley/dplyr/issues/177> However you can use merge: ``` ❥ admin <- as.tbl(data.frame(id = c("1","2","3"),false = c(TRUE,FALSE,FALSE))) ❥ members <- as.tbl(data.frame(idmember = c("1","2","4"),false = c(TRUE,TRUE,FALSE))) ❥ merge(admin,members, by.x = "id", b...
20,850,237
I have banged my head for the past 4 hours and I cant understand why my second trim is creating duplicates. This code with no trim works well and produces what I want. ``` <h1>Offline Phones</h1> <?php // Query For All Peers exec("/usr/sbin/asterisk -r -x 'sip show peers'", $response); foreach($response as $line) { ...
2013/12/31
[ "https://Stackoverflow.com/questions/20850237", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3148002/" ]
You missed the `{}` brackets. All the code that you want run after the `if` should be contained there. so ``` if (strpos($offline, "UNKNOWN")>0) $clean_offline = trim($offline, '(Unspecified) D N A 0 UNKNOWN'); { echo "<span style='color:red;'>$clean_offline</span><br>"; } ``` should be ``` if (strpos($offline, ...
This does not look correct: ``` foreach($response as $line) { $offline = $line; if (strpos($offline, "UNKNOWN")>0) $clean_offline = trim($offline, '(Unspecified) D N A 0 UNKNOWN'); { echo "<span style='color:red;'>$clean_offline</span><br>"; } } ``` It should look like this: ``` foreach($r...
2,993,951
(For this example) ListBox l is bound to CustomObjectCollection c. Does l call c's Constructor? What if c is a Generic Object? `**In XAML (1)**` `<ListBox Content={Binding CustomObjectCollection}/>` `**In Codebehind**` `CustomObjectCollection<MyClass> c;` `**In XAML (2)**` `<ListBox Content={Binding Cus...
2010/06/07
[ "https://Stackoverflow.com/questions/2993951", "https://Stackoverflow.com", "https://Stackoverflow.com/users/296722/" ]
You should bind to a property. If the source object needs to be constructed, then it has to be done in the code behind. ``` <ListBox ItemsSource={Binding ListSource} /> ``` ``` //Codebehind class MyControl : UserControl { public CustomObjectCollection ListSource {get; private set;} public MyControl() { ...
A couple things: 1. You can only bind to public properties. It appears you have `c` declared as a member variable, but not a property. So this binding will not succeed. 2. There is no way to bind using a `Content` property on `ListBox`. I think what you are trying to do is better accomplished using the [`ItemsSource`]...
101,681
I've created several small sheets, all with the same number of columns, and I'd like to produce one large sheet consisting of all the rows from the smaller sheets. I don't want to perform any deduplication, since each row contains important data. Is there any way I can do this? The closest thing I've been able to fin...
2017/01/03
[ "https://webapps.stackexchange.com/questions/101681", "https://webapps.stackexchange.com", "https://webapps.stackexchange.com/users/143433/" ]
Give row numbers instead of column letters, and separate the ranges by semicolon `;` (vertical stacking instead of horizontal). ``` ={Sheet1!1:3; Sheet2!2:7} ``` This assumes both sheets 1 and 2 have the same number of columns. If this is not the case, you'll need to specify which columns you want: ``` ={Sheet1!A1:...
Formula ======= ``` =FILTER({Sheet1!A:D; Sheet2!A:D},LEN({Sheet1!A:A; Sheet2!A:A})) ``` Explanation =========== Doing operations with open ended references usually introduces a lot of blank rows or columns. If you are not aware of this, this could lead to confusions, as it look to happened to the OP. Besides the u...
50,211,357
i am using this code in order to get persons info by email to post it on web page In API documentation (<https://dashboard.clearbit.com/docs?shell#oauth>) http request looks like this ```html HTTP REQUEST GET https://person.clearbit.com/v2/combined/find?email=:email ``` I am try to do this in PHP (p.s. I hid my ke...
2018/05/07
[ "https://Stackoverflow.com/questions/50211357", "https://Stackoverflow.com", "https://Stackoverflow.com/users/9752002/" ]
You missed something here, Angular needs double curly braces to render scope variables in the template (when you won't use it in the directive, such as ngIf, etc.): ``` <div *ngIf="artist.images.length > 0"> <div style="background-image: url("{{ artist.images[2].url }}")"> </div> </div> ```
This is probably what you're looking for: ``` <div *ngIf="artist.images.length > 0"> <div ng-style="{'background-image': 'url('+artist.images[2].url+')'}"></div> </div> ```
50,211,357
i am using this code in order to get persons info by email to post it on web page In API documentation (<https://dashboard.clearbit.com/docs?shell#oauth>) http request looks like this ```html HTTP REQUEST GET https://person.clearbit.com/v2/combined/find?email=:email ``` I am try to do this in PHP (p.s. I hid my ke...
2018/05/07
[ "https://Stackoverflow.com/questions/50211357", "https://Stackoverflow.com", "https://Stackoverflow.com/users/9752002/" ]
You missed something here, Angular needs double curly braces to render scope variables in the template (when you won't use it in the directive, such as ngIf, etc.): ``` <div *ngIf="artist.images.length > 0"> <div style="background-image: url("{{ artist.images[2].url }}")"> </div> </div> ```
Have you tried: ``` <div *ngIf="artist.images.length > 0"> <img [src]="url"> </div> ``` Where `url` is your image url.
50,211,357
i am using this code in order to get persons info by email to post it on web page In API documentation (<https://dashboard.clearbit.com/docs?shell#oauth>) http request looks like this ```html HTTP REQUEST GET https://person.clearbit.com/v2/combined/find?email=:email ``` I am try to do this in PHP (p.s. I hid my ke...
2018/05/07
[ "https://Stackoverflow.com/questions/50211357", "https://Stackoverflow.com", "https://Stackoverflow.com/users/9752002/" ]
You missed something here, Angular needs double curly braces to render scope variables in the template (when you won't use it in the directive, such as ngIf, etc.): ``` <div *ngIf="artist.images.length > 0"> <div style="background-image: url("{{ artist.images[2].url }}")"> </div> </div> ```
beside the double curly braces enguerranws mentioned ... according to the [spotify docs](https://beta.developer.spotify.com/console/get-several-artists/) it should state: ``` <div *ngIf="artist.images.length > 0"> <div style="background-image: url("{{ data.artists[0].images[0].url }}")"> </div> </div> ```
50,211,357
i am using this code in order to get persons info by email to post it on web page In API documentation (<https://dashboard.clearbit.com/docs?shell#oauth>) http request looks like this ```html HTTP REQUEST GET https://person.clearbit.com/v2/combined/find?email=:email ``` I am try to do this in PHP (p.s. I hid my ke...
2018/05/07
[ "https://Stackoverflow.com/questions/50211357", "https://Stackoverflow.com", "https://Stackoverflow.com/users/9752002/" ]
The answer working in Angular 5: ``` [ngStyle]="{'background': 'url('+artist.images[2].url+')'}" ```
You missed something here, Angular needs double curly braces to render scope variables in the template (when you won't use it in the directive, such as ngIf, etc.): ``` <div *ngIf="artist.images.length > 0"> <div style="background-image: url("{{ artist.images[2].url }}")"> </div> </div> ```