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
22,099
Let's say we have this: > > Yo sé. > > Tú sabes. > > Él sabe. > > Nosotros sabemos. > > Vosotros sabéis. > > Ellos saben. > > > So far so good. However: > > Tú y yo sabemos. --> Person: Nosotros? > > Tú y él sabéis. --> Person: Vosotros? > > Nosotros y ellos sabemos. --> Person: Noso...
2017/09/08
[ "https://spanish.stackexchange.com/questions/22099", "https://spanish.stackexchange.com", "https://spanish.stackexchange.com/users/-1/" ]
### Castellano Sí, hay una prioridad con las personas a la hora de concordar el verbo, lo he descubierto investigando para [mi pregunta](https://spanish.stackexchange.com/questions/22087/concordancia-del-verbo-en-sujetos-compuestos) sobre sujetos compuestos. La primera persona tiene prioridad sobre las demás y la segu...
It all depends on what you want to emphasise. Tu y yo sabemos = Nostros sabemos. The thing is that when you say "nosotros" it could be an unlimited number of people. Let's put an example: * Me and you know he is cheating on her .- Here the emphasis is that you and me know something. I am not talking about other p...
41,718,413
I have two submit button in a form I want to disable button2 on click (submit) & when user click button1, button2 will enable. Sorry for silly question I am newbie. ```js $(document).ready(function(){ $(document).on("click", ".test2", function() { if ($('#test2').is(':visible')) { ...
2017/01/18
[ "https://Stackoverflow.com/questions/41718413", "https://Stackoverflow.com", "https://Stackoverflow.com/users/7335669/" ]
change `$(document).on("click", ".test2", function() {` to `$(document).on("click", "#test2", function() {` Once Button hidden, it will not visible, since you are using click event on same button which you want to hide, your **else** is useless in this case. When you submit form, and came back to this form/p...
How about this? Add `disabled` to `#test2` and remove it when `#test` is clicked. ```html <!DOCTYPE html> <html> <head> <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.1.1/jquery.min.js"></script> <script type="text/javascript"> $(document).ready(function () { $("#test")...
41,718,413
I have two submit button in a form I want to disable button2 on click (submit) & when user click button1, button2 will enable. Sorry for silly question I am newbie. ```js $(document).ready(function(){ $(document).on("click", ".test2", function() { if ($('#test2').is(':visible')) { ...
2017/01/18
[ "https://Stackoverflow.com/questions/41718413", "https://Stackoverflow.com", "https://Stackoverflow.com/users/7335669/" ]
change `$(document).on("click", ".test2", function() {` to `$(document).on("click", "#test2", function() {` Once Button hidden, it will not visible, since you are using click event on same button which you want to hide, your **else** is useless in this case. When you submit form, and came back to this form/p...
I would change the js & html a bit. Why? Cause if you want to disable the button2 on submit and enable it when the button1 is clicked, it's best to not put two submits in the `form`. We put one submit `button`, to trigger the `form` submit, and an `<a>` tag to enable the button2 (the `<a>` tag won't trigger the submi...
41,718,413
I have two submit button in a form I want to disable button2 on click (submit) & when user click button1, button2 will enable. Sorry for silly question I am newbie. ```js $(document).ready(function(){ $(document).on("click", ".test2", function() { if ($('#test2').is(':visible')) { ...
2017/01/18
[ "https://Stackoverflow.com/questions/41718413", "https://Stackoverflow.com", "https://Stackoverflow.com/users/7335669/" ]
Clicke event is bidden on class change it to id ``` $(document).on("click", "#test2", function() ``` Here is a sample code. ```html <!DOCTYPE html> <html> <head> <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.1.1/jquery.min.js"></script> <script type="text/javascript"> $(document...
How about this? Add `disabled` to `#test2` and remove it when `#test` is clicked. ```html <!DOCTYPE html> <html> <head> <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.1.1/jquery.min.js"></script> <script type="text/javascript"> $(document).ready(function () { $("#test")...
41,718,413
I have two submit button in a form I want to disable button2 on click (submit) & when user click button1, button2 will enable. Sorry for silly question I am newbie. ```js $(document).ready(function(){ $(document).on("click", ".test2", function() { if ($('#test2').is(':visible')) { ...
2017/01/18
[ "https://Stackoverflow.com/questions/41718413", "https://Stackoverflow.com", "https://Stackoverflow.com/users/7335669/" ]
Clicke event is bidden on class change it to id ``` $(document).on("click", "#test2", function() ``` Here is a sample code. ```html <!DOCTYPE html> <html> <head> <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.1.1/jquery.min.js"></script> <script type="text/javascript"> $(document...
I would change the js & html a bit. Why? Cause if you want to disable the button2 on submit and enable it when the button1 is clicked, it's best to not put two submits in the `form`. We put one submit `button`, to trigger the `form` submit, and an `<a>` tag to enable the button2 (the `<a>` tag won't trigger the submi...
37,872,461
I'm processing a JSON file to generate two JSON files using Spark (version 1.6.1). The size of input file is about 30~40G (100M records). For the generated files, the bigger one is about 10G ~ 15G (30M records), the smaller one is about 500M ~ 750M (1.5M records). both result files are facing the below problems: I in...
2016/06/17
[ "https://Stackoverflow.com/questions/37872461", "https://Stackoverflow.com", "https://Stackoverflow.com/users/4730817/" ]
What's happening is that you are **repartitioning** **after** your **sort** action. `repartition` reshuffles the data in the RDD randomly to create either more or fewer partitions and balance it across them. This always shuffles all data over the network. Under the hood, it uses `coalesce` and `shuffle` to redistrib...
Since the partition count is set to 1 in your example, which means the partition is reduced to 1. To decrease the number of partitions in the rdd, spark provides a transformation coalesce (with shuffle=false) which preserves the order. As eliasah, mentioned that repartition under the hood using coalesce. It calls coa...
2,143,831
I want to make simple functions that given an offset (and knowing the base address of a library) can retrieve or set the value located in there. Questions: What are the pratical differences between types of memory? What I want to know exactly is: with what do I have to be concerned with, to make it work transparentl...
2010/01/27
[ "https://Stackoverflow.com/questions/2143831", "https://Stackoverflow.com", "https://Stackoverflow.com/users/246100/" ]
Read, Write and Execute is possible under Linux, due to the nature of their elf32 linker when compiling programs, for instance, you can have one segment as read only, in another segment you can have it write only. Not sure if a linker under Windows can do that, I know they can have a segment that is shared by other pro...
I don't know about \*nix, but on Windows, you will not be able to write everywhere within a library. (Windows documentation calls them modules) Pages in a library will be 4k or 8k in size (I think 8k was only on the Alpha AXP, which is obsolete now). The base address will be a multiple of 64k. Pages will either be cop...
2,143,831
I want to make simple functions that given an offset (and knowing the base address of a library) can retrieve or set the value located in there. Questions: What are the pratical differences between types of memory? What I want to know exactly is: with what do I have to be concerned with, to make it work transparentl...
2010/01/27
[ "https://Stackoverflow.com/questions/2143831", "https://Stackoverflow.com", "https://Stackoverflow.com/users/246100/" ]
Read, Write and Execute is possible under Linux, due to the nature of their elf32 linker when compiling programs, for instance, you can have one segment as read only, in another segment you can have it write only. Not sure if a linker under Windows can do that, I know they can have a segment that is shared by other pro...
You didn't state what language you are programming in, so I'm going to assume C and derivatives. If you have an address, you can read the the byte at that address by casting it to a pointer and dereferencing: ``` unsigned char value = *(unsigned char *)address; ``` And if you want to write it: ``` *(unsigned char ...
2,143,831
I want to make simple functions that given an offset (and knowing the base address of a library) can retrieve or set the value located in there. Questions: What are the pratical differences between types of memory? What I want to know exactly is: with what do I have to be concerned with, to make it work transparentl...
2010/01/27
[ "https://Stackoverflow.com/questions/2143831", "https://Stackoverflow.com", "https://Stackoverflow.com/users/246100/" ]
Read, Write and Execute is possible under Linux, due to the nature of their elf32 linker when compiling programs, for instance, you can have one segment as read only, in another segment you can have it write only. Not sure if a linker under Windows can do that, I know they can have a segment that is shared by other pro...
I'm not sure under Windows, but in \*nix I believe `mmap` may do the job... maybe, writing into dynamically linked memory is dangerous at best still though. From your comments I would guess you would want to do something like ``` //in the library void myfunction(){ int x; x=x+1; } //in the client uint8_t *ptr=...
30,504,641
I'm trying to use SUBCLU in ELKI, but in order to figure things out I've tried DBSCAN, and even KMEANSLloyd, just so I know how to input data with high dimensions. Unfortunately I can only enter up to 14 Dimensions, any higher and the program starts complaining that I've not entered a parameter for "bubble.scaling", ev...
2015/05/28
[ "https://Stackoverflow.com/questions/30504641", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3930228/" ]
Turns out I wasn't formatting the CSV file properly. Rather than having a CSV file with just the data in it seperated by spaces for dimensionality, I needed to also include the headers. As I wasn't using randomly generated information and I didn't know the number of clusters beforehand, this is what the CSV looked like...
I had the same problem. Im my case it turned out that my csv file contained only integer columns, which were seen as string data type instead of numeric data type. By setting the dbc.parser to CategoricalDataAsNumberVectorParser, the outofbounds error disappeared.
14,799,596
It's my first time creating a website with PHP and MySQL. How do I query the results of a Mysql search to display only the results from the last 7 days? The columns in my database are: ``` Id Name Date Mensage ```
2013/02/10
[ "https://Stackoverflow.com/questions/14799596", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2059110/" ]
There's a few ways to do this. Here's one. ``` SELECT * FROM tablename WHERE `date` > CURRENT_DATE - INTERVAL 7 DAY ``` And another: ``` SELECT * FROM tablename WHERE DATEDIFF(`date`, CURRENT_DATE) < 7 ``` FYI, you should not name your columns using [reserved keywords](http://dev.mysql.com/doc/refman/5.5/en/reser...
Get the last 7 days date ``` SELECT DATE_SUB(NOW(),INTERVAL 7 DAY); ``` Get the current ``` SELECT NOW(); ``` There is complete query example by combine two above parts ``` SELECT * FROM `table` WHERE `date_created` BETWEEN DATE_SUB(NOW(),INTERVAL 7 DAY) AND NOW(); ``` By use this query you could get data fro...
115,511
In any place in the world or in Europe, should the prayer be directed to the east (מזרח) always, or it's different from country to country or continent to continent?
2020/07/27
[ "https://judaism.stackexchange.com/questions/115511", "https://judaism.stackexchange.com", "https://judaism.stackexchange.com/users/11222/" ]
[Berachot 30a](https://www.sefaria.org/Berakhot.30a.9?lang=bi): > > הָיָה עוֹמֵד בְּחוּץ לָאָרֶץ — יְכַוֵּין אֶת לִבּוֹ כְּנֶגֶד אֶרֶץ יִשְׂרָאֵל, שֶׁנֶּאֱמַר: ״וְהִתְפַּלְלוּ אֵלֶיךָ דֶּרֶךְ אַרְצָם״. הָיָה עוֹמֵד בְּאֶרֶץ יִשְׂרָאֵל — יְכַוֵּין אֶת לִבּוֹ כְּנֶגֶד יְרוּשָׁלַיִם, שֶׁנֶּאֱמַר: ״וְהִתְפַּלְלוּ אֶל ה׳ ...
The reason for facing Yerushalayim is to improve kavana. Hence, if there is some extenuating circumstance, prayers may be in any direction needed to improve kavana. For instance, I was once on a flight from NY to Israel where there was a minyan in the back of the plane. Now, regardless of which view you have of the dir...
115,511
In any place in the world or in Europe, should the prayer be directed to the east (מזרח) always, or it's different from country to country or continent to continent?
2020/07/27
[ "https://judaism.stackexchange.com/questions/115511", "https://judaism.stackexchange.com", "https://judaism.stackexchange.com/users/11222/" ]
[Mishnah Berurah 94:11](https://www.sefaria.org/Mishnah_Berurah.94.11?lang=bi&with=all&lang2=en) writes in the name of the Levush that during prayer one should face the precise location of Jerusalem; thus one would only face directly east if his location was at the same latitude as Jerusalem (although see the end of th...
The reason for facing Yerushalayim is to improve kavana. Hence, if there is some extenuating circumstance, prayers may be in any direction needed to improve kavana. For instance, I was once on a flight from NY to Israel where there was a minyan in the back of the plane. Now, regardless of which view you have of the dir...
37,889,260
I'm trying to make my first iOS app, and the tutorial asked me to use UIAlertView. XCode informed me that this was deprecated and that I should use UIAlertController. I replaced the instances of UIAlertView with UIAlertController and am still running into problems: it says, "No visible @interface for 'UIAlertController...
2016/06/17
[ "https://Stackoverflow.com/questions/37889260", "https://Stackoverflow.com", "https://Stackoverflow.com/users/4253848/" ]
[UIAlertController](https://developer.apple.com/library/ios/documentation/UIKit/Reference/UIAlertController_class/) has a different interface than UIAlertView. You must use a different constructor that takes in just the title, message, and preferred style. Then you can add actions to the UIAlertController once defined...
UIAlertController is not UIAlertView The way you initialize it and display it is different. Here's how: ``` // Init the alert UIAlertController* alert = [UIAlertController alertControllerWithTitle:@"My Alert" message:@"This is an alert." ...
37,889,260
I'm trying to make my first iOS app, and the tutorial asked me to use UIAlertView. XCode informed me that this was deprecated and that I should use UIAlertController. I replaced the instances of UIAlertView with UIAlertController and am still running into problems: it says, "No visible @interface for 'UIAlertController...
2016/06/17
[ "https://Stackoverflow.com/questions/37889260", "https://Stackoverflow.com", "https://Stackoverflow.com/users/4253848/" ]
[UIAlertController](https://developer.apple.com/library/ios/documentation/UIKit/Reference/UIAlertController_class/) has a different interface than UIAlertView. You must use a different constructor that takes in just the title, message, and preferred style. Then you can add actions to the UIAlertController once defined...
If you are deploying your application for iOS 8 then just change the deployment target to iOS 8 after this you will not find any depreciation for using `AlertView`. `AlertView` is depreciated in iOS 9 and above but below iOS 9 it still works fine.
37,889,260
I'm trying to make my first iOS app, and the tutorial asked me to use UIAlertView. XCode informed me that this was deprecated and that I should use UIAlertController. I replaced the instances of UIAlertView with UIAlertController and am still running into problems: it says, "No visible @interface for 'UIAlertController...
2016/06/17
[ "https://Stackoverflow.com/questions/37889260", "https://Stackoverflow.com", "https://Stackoverflow.com/users/4253848/" ]
UIAlertController is not UIAlertView The way you initialize it and display it is different. Here's how: ``` // Init the alert UIAlertController* alert = [UIAlertController alertControllerWithTitle:@"My Alert" message:@"This is an alert." ...
If you are deploying your application for iOS 8 then just change the deployment target to iOS 8 after this you will not find any depreciation for using `AlertView`. `AlertView` is depreciated in iOS 9 and above but below iOS 9 it still works fine.
12,557,144
I'm currently reviewing Xamarin as an option for developing a tablet app (right now aim for iOS and Android but in the future think of porting it to Win8 tablets) Data to be stored is really sensitive so security is my main concern. So far I'm thinking of two options: a) SQLite + SQLCipher: Assuming that Win8 tablet...
2012/09/23
[ "https://Stackoverflow.com/questions/12557144", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1221375/" ]
I have written a plugin for to address secure storage. It works cross platform and secures the data natively on each platform. It is open source. Please check it out. <https://www.nuget.org/packages/sameerIOTApps.Plugin.SecureStorage/> Blog: <https://sameer.blog/2018/01/19/whats-new-in-secure-storage-2-0/> Let me kn...
We use SQLite + SQLCipher in our solution, it works really well on a cross-platform environment. If I am not mistaken there is no problem with using SQLCipher because it uses AES. I would suggest you to check it anyway but I don't think it's a concern. SQLCipher itself doesn't make the data impossible to read, maybe yo...
5,878
- Is there a unique class of Biblical Hebrew words of the form "פעיל"?- Is the putative class of Biblical Hebrew words strictly a class of nouns or adjectives?- If not, is it strictly divisible into two classes - one of nouns and one of adjectives? **Examples:** Nouns: [אסיף](http://he.wikisource.org/wiki/%D7%A7%D7%98...
2011/02/13
[ "https://judaism.stackexchange.com/questions/5878", "https://judaism.stackexchange.com", "https://judaism.stackexchange.com/users/3/" ]
First of all, note that some of these פעיל words have a dagesh in the second radical and some don't: saviv, 'abbir. Some have no dagesh, and shva: brit. So, you'd have to consider whether these are the "same". As to syntax, there is no real difference between nouns and adjectives.
I don't know if I am on the wrong track here, but adjectives of the form ..y. usually correspond to English [something]able. akhil = edible qari = legible
5,878
- Is there a unique class of Biblical Hebrew words of the form "פעיל"?- Is the putative class of Biblical Hebrew words strictly a class of nouns or adjectives?- If not, is it strictly divisible into two classes - one of nouns and one of adjectives? **Examples:** Nouns: [אסיף](http://he.wikisource.org/wiki/%D7%A7%D7%98...
2011/02/13
[ "https://judaism.stackexchange.com/questions/5878", "https://judaism.stackexchange.com", "https://judaism.stackexchange.com/users/3/" ]
First of all, note that some of these פעיל words have a dagesh in the second radical and some don't: saviv, 'abbir. Some have no dagesh, and shva: brit. So, you'd have to consider whether these are the "same". As to syntax, there is no real difference between nouns and adjectives.
DISCLAIMER: This is just my superficial analysis, not based on scholarly research (alas), nor based on any sources. Along the lines of Andrew J. Brehm's answer, I think there is something to the notion that this form (or class, if you prefer) indicates that the noun is "fit for" the associated verb when such a verb is...
8,867
[Genesis 6:1-2](http://esv.to/Gen6) (ESV emphasis mine): > > When man began to multiply on the face of the land and daughters were born to them, **the sons of God** saw that the daughters of man were attractive. And they took as their wives any they chose. > > > Who are these "sons of God" (*bene elohim*) in Gene...
2014/04/12
[ "https://hermeneutics.stackexchange.com/questions/8867", "https://hermeneutics.stackexchange.com", "https://hermeneutics.stackexchange.com/users/33/" ]
Are the 'sons of God' genetic progeny or an 'offshoot' of humanity? ------------------------------------------------------------------- I support Samuel's argument against the 'sons of God' as angels - it is well founded, if not widely accepted. But what does the word *bene* really mean? A common error of understand...
> > The sons of God saw the daughters of men that they were fair; and they > took them wives of all which they chose. > > > This passage, like all of scripture, must be interpretted in the light of 2 Timothy 3:16,17 > > All Scripture is given by inspiration of God and is profitable for > doctrine, for reproof, f...
8,867
[Genesis 6:1-2](http://esv.to/Gen6) (ESV emphasis mine): > > When man began to multiply on the face of the land and daughters were born to them, **the sons of God** saw that the daughters of man were attractive. And they took as their wives any they chose. > > > Who are these "sons of God" (*bene elohim*) in Gene...
2014/04/12
[ "https://hermeneutics.stackexchange.com/questions/8867", "https://hermeneutics.stackexchange.com", "https://hermeneutics.stackexchange.com/users/33/" ]
**The sons of God and the daughters of men (Genesis 6:2). [1.]** (*I.*) Three possible views. John Walton: > > This issue is one of the thorniest in Old Testament interpretation. > …The earliest view, held unanimously until the second century A.D. as > far as we know, is that “the sons of God” were angelic beings. ...
I am not a theological expert so forgive my lack of scholarly exposition. However according to Job 1:6 and Job 2:1 in the KJV & NKJV we see the Angels being called sons of God. Couple that with the book of Jude 6 - 7 that says Angels that did not keep their principality..... but descended to the earth... to commit forn...
8,867
[Genesis 6:1-2](http://esv.to/Gen6) (ESV emphasis mine): > > When man began to multiply on the face of the land and daughters were born to them, **the sons of God** saw that the daughters of man were attractive. And they took as their wives any they chose. > > > Who are these "sons of God" (*bene elohim*) in Gene...
2014/04/12
[ "https://hermeneutics.stackexchange.com/questions/8867", "https://hermeneutics.stackexchange.com", "https://hermeneutics.stackexchange.com/users/33/" ]
There are three common views on the identity of the 'sons of God' marrying the 'daughters of men' in Genesis 6.1-4: 1. Descendants of Seth married descendants of Cain 2. Nobles married commoners 3. Angels married human women --- 1. Descendants of Seth married descendants of Cain =====================================...
Peace. The “sons of God” are those who are led by the Spirit of God and are not living according to the spirit of the world that natural men are living after…. living after the earthly wisdom: envy, strife, hatred of one another, wrath, etc. > > Romans 8:12-14 KJV (12) *Therefore, brethren, we are debtors, not to >...
8,867
[Genesis 6:1-2](http://esv.to/Gen6) (ESV emphasis mine): > > When man began to multiply on the face of the land and daughters were born to them, **the sons of God** saw that the daughters of man were attractive. And they took as their wives any they chose. > > > Who are these "sons of God" (*bene elohim*) in Gene...
2014/04/12
[ "https://hermeneutics.stackexchange.com/questions/8867", "https://hermeneutics.stackexchange.com", "https://hermeneutics.stackexchange.com/users/33/" ]
**WHO ARE THE SONS OF THE TRUE GOD MENTIONED IN GENESIS 6:2?** Biblical facts say that angels on occasions materialized and took human form, they also ate and drunk with men,Genesis 19:1-3 (NASB) says: The Doom of Sodom > > 1" Now the two angels came to Sodom in the evening as Lot was sitting > in the gate of Sod...
I am not a theological expert so forgive my lack of scholarly exposition. However according to Job 1:6 and Job 2:1 in the KJV & NKJV we see the Angels being called sons of God. Couple that with the book of Jude 6 - 7 that says Angels that did not keep their principality..... but descended to the earth... to commit forn...
8,867
[Genesis 6:1-2](http://esv.to/Gen6) (ESV emphasis mine): > > When man began to multiply on the face of the land and daughters were born to them, **the sons of God** saw that the daughters of man were attractive. And they took as their wives any they chose. > > > Who are these "sons of God" (*bene elohim*) in Gene...
2014/04/12
[ "https://hermeneutics.stackexchange.com/questions/8867", "https://hermeneutics.stackexchange.com", "https://hermeneutics.stackexchange.com/users/33/" ]
Are the 'sons of God' genetic progeny or an 'offshoot' of humanity? ------------------------------------------------------------------- I support Samuel's argument against the 'sons of God' as angels - it is well founded, if not widely accepted. But what does the word *bene* really mean? A common error of understand...
**WHO ARE THE SONS OF THE TRUE GOD MENTIONED IN GENESIS 6:2?** Biblical facts say that angels on occasions materialized and took human form, they also ate and drunk with men,Genesis 19:1-3 (NASB) says: The Doom of Sodom > > 1" Now the two angels came to Sodom in the evening as Lot was sitting > in the gate of Sod...
8,867
[Genesis 6:1-2](http://esv.to/Gen6) (ESV emphasis mine): > > When man began to multiply on the face of the land and daughters were born to them, **the sons of God** saw that the daughters of man were attractive. And they took as their wives any they chose. > > > Who are these "sons of God" (*bene elohim*) in Gene...
2014/04/12
[ "https://hermeneutics.stackexchange.com/questions/8867", "https://hermeneutics.stackexchange.com", "https://hermeneutics.stackexchange.com/users/33/" ]
Are the 'sons of God' genetic progeny or an 'offshoot' of humanity? ------------------------------------------------------------------- I support Samuel's argument against the 'sons of God' as angels - it is well founded, if not widely accepted. But what does the word *bene* really mean? A common error of understand...
I am not a theological expert so forgive my lack of scholarly exposition. However according to Job 1:6 and Job 2:1 in the KJV & NKJV we see the Angels being called sons of God. Couple that with the book of Jude 6 - 7 that says Angels that did not keep their principality..... but descended to the earth... to commit forn...
8,867
[Genesis 6:1-2](http://esv.to/Gen6) (ESV emphasis mine): > > When man began to multiply on the face of the land and daughters were born to them, **the sons of God** saw that the daughters of man were attractive. And they took as their wives any they chose. > > > Who are these "sons of God" (*bene elohim*) in Gene...
2014/04/12
[ "https://hermeneutics.stackexchange.com/questions/8867", "https://hermeneutics.stackexchange.com", "https://hermeneutics.stackexchange.com/users/33/" ]
There are three common views on the identity of the 'sons of God' marrying the 'daughters of men' in Genesis 6.1-4: 1. Descendants of Seth married descendants of Cain 2. Nobles married commoners 3. Angels married human women --- 1. Descendants of Seth married descendants of Cain =====================================...
The sons of God in Genesis 6 are angels, it makes no sense to say that the sons of God are those led by the Spirit of God or those that call upon the name of Yahuah. Yahushua (Jesus) gave the sons of men power to become sons of God, those that believe upon His name. And we are now equal to the angels and are now the so...
8,867
[Genesis 6:1-2](http://esv.to/Gen6) (ESV emphasis mine): > > When man began to multiply on the face of the land and daughters were born to them, **the sons of God** saw that the daughters of man were attractive. And they took as their wives any they chose. > > > Who are these "sons of God" (*bene elohim*) in Gene...
2014/04/12
[ "https://hermeneutics.stackexchange.com/questions/8867", "https://hermeneutics.stackexchange.com", "https://hermeneutics.stackexchange.com/users/33/" ]
**The sons of God and the daughters of men (Genesis 6:2). [1.]** (*I.*) Three possible views. John Walton: > > This issue is one of the thorniest in Old Testament interpretation. > …The earliest view, held unanimously until the second century A.D. as > far as we know, is that “the sons of God” were angelic beings. ...
The sons of God in Genesis 6 are angels, it makes no sense to say that the sons of God are those led by the Spirit of God or those that call upon the name of Yahuah. Yahushua (Jesus) gave the sons of men power to become sons of God, those that believe upon His name. And we are now equal to the angels and are now the so...
8,867
[Genesis 6:1-2](http://esv.to/Gen6) (ESV emphasis mine): > > When man began to multiply on the face of the land and daughters were born to them, **the sons of God** saw that the daughters of man were attractive. And they took as their wives any they chose. > > > Who are these "sons of God" (*bene elohim*) in Gene...
2014/04/12
[ "https://hermeneutics.stackexchange.com/questions/8867", "https://hermeneutics.stackexchange.com", "https://hermeneutics.stackexchange.com/users/33/" ]
While the book of Enoch is a respected and quoted widely to bring the view that angels were sons of God, the view does not align with the rest of the scripture. We read in the book of Hebrews: “Hebrews 1:5 5 For unto which of the angels said he at any time, Thou art my Son, this day have I begotten thee? And again, I ...
Peace. The “sons of God” are those who are led by the Spirit of God and are not living according to the spirit of the world that natural men are living after…. living after the earthly wisdom: envy, strife, hatred of one another, wrath, etc. > > Romans 8:12-14 KJV (12) *Therefore, brethren, we are debtors, not to >...
8,867
[Genesis 6:1-2](http://esv.to/Gen6) (ESV emphasis mine): > > When man began to multiply on the face of the land and daughters were born to them, **the sons of God** saw that the daughters of man were attractive. And they took as their wives any they chose. > > > Who are these "sons of God" (*bene elohim*) in Gene...
2014/04/12
[ "https://hermeneutics.stackexchange.com/questions/8867", "https://hermeneutics.stackexchange.com", "https://hermeneutics.stackexchange.com/users/33/" ]
> > The sons of God saw the daughters of men that they were fair; and they > took them wives of all which they chose. > > > This passage, like all of scripture, must be interpretted in the light of 2 Timothy 3:16,17 > > All Scripture is given by inspiration of God and is profitable for > doctrine, for reproof, f...
Peace. The “sons of God” are those who are led by the Spirit of God and are not living according to the spirit of the world that natural men are living after…. living after the earthly wisdom: envy, strife, hatred of one another, wrath, etc. > > Romans 8:12-14 KJV (12) *Therefore, brethren, we are debtors, not to >...
50,411,987
Given a weighted directed graph, how can the Dijkstra algorithm be modified to test for the presence of multiple lowest-cost paths between a given pair of nodes? My current algorithm is as follows: (credit to Weiss) ``` /** * Single-source weighted shortest-path algorithm. (Dijkstra) * using priority queues based ...
2018/05/18
[ "https://Stackoverflow.com/questions/50411987", "https://Stackoverflow.com", "https://Stackoverflow.com/users/9554946/" ]
Replace field `prev`, the link to previous vertex with a collection `prevs`, and change the code slightly: ``` ... if( w.dist >= v.dist + cvw ) { if ( w.dist > v.dist + cvw ) { w.dist = v.dist +cvw; w.prevs.clear(); } w.prevs.add(v); ...
If you only want to find a single other equal-cost path ------------------------------------------------------- Let's suppose you already ran Dijkstra's algorithm once to get a shortest path `P`. You can add a tiny cost `epsilon` to each edge in `P` and run Dijkstra's a second time on the modified graph to get a new p...
61,309,074
Im going to search for every occurrence of a character in a .txt file. It is "�" or better known as 0xFFFD. Well, i get everything to work if i am searching for a normal string, but i don't get to work this special character. Imagine i have a specific line in a text file referred by $line and the special character im t...
2020/04/19
[ "https://Stackoverflow.com/questions/61309074", "https://Stackoverflow.com", "https://Stackoverflow.com/users/13356032/" ]
My suspicion is the file is encoded as utf8nobom, and you're using powershell 5, which won't recognize the encoding automatically. For that you have to specify the encoding: ``` get-content file -encoding utf8 | select-string � you cann cho�se f�r everyone ``` UTF8 encodes � as "EF BF BD": ``` format-hex file ...
Can you try this. ``` if($line -match $SearchCharacter) { Write-Host "Character involved" } else { Write-Host "Character not involved" } ```
35,974,207
I have this link-to that will be enabled/disabled depending on the property "linkDisabled". Initially the property will be true and this link-to will be disabled. ``` {{#link-to "databinding2" disabled=linkDisabled}}Databinding2{{/link-to}} ``` Whenever I click on this button I want to toggle the link between disabl...
2016/03/13
[ "https://Stackoverflow.com/questions/35974207", "https://Stackoverflow.com", "https://Stackoverflow.com/users/5026644/" ]
In case you insist on using set/get: ``` Ember.set(this, 'linkDisabled', !(Ember.get(this, 'linkDisabled'))); ``` But I would recommend to use `Ember.Object.toggleProperty()`, [API link here](http://emberjs.com/api/classes/Ember.Object.html#method_toggleProperty), try sth like: ``` this.toggleProperty('linkDisabled...
As of Ember 3.\* the way to do this is: ``` {{!-- Statically --}} {{link-to 'photoGallery' disabled=true}} {{!-- Dynamically --}} {{link-to 'photoGallery' disabledWhen=controller.someProperty}} ``` [Source in Ember API Docs](https://www.emberjs.com/api/ember/3.2/classes/Ember.Templates.helpers/methods/get?anchor=li...
65,331,412
I/P: Employee DF ``` Name | Project | A | p1,p2 | B | p1 | C | p2 ``` O/P: Project DF ``` | proj| Count| | p1 | 2 | | p2 | 2 | ``` I need to count the number of employees working on each project. I tried below snippet but it's not giving me the correct answer: ``` df = s...
2020/12/16
[ "https://Stackoverflow.com/questions/65331412", "https://Stackoverflow.com", "https://Stackoverflow.com/users/14840088/" ]
You have to create custom projection ```cs var query = from c in db.VW_Customer select new OrderReport { id = c.id, name = c.name orders = db.VW_Order.Where(o => o.Customer_id == c.id) .Select(o => new Order { item = o.Item, price = o.Price }) ...
I found out in order to use Eager Loading (first solution by @Svyatoslav) I had to make few adjustments. *Note: If you are doing DB First and you regenerate the model all changes will be lost* I had to explicitly set the key property in the Model with the ["Key"] attribute ``` Public Class VW_Customer { [Key] ...
139,834
I've noticed *and used* the new (at least for me) button `Leave Open`, but I can't find any explanation as to the implication of clicking it. I've found a highly voted [status-declined](/questions/tagged/status-declined "show questions tagged 'status-declined'") question: [How about a “Vote not to close” option to co...
2012/07/15
[ "https://meta.stackexchange.com/questions/139834", "https://meta.stackexchange.com", "https://meta.stackexchange.com/users/184576/" ]
Questions' close votes [age away](https://meta.stackexchange.com/questions/97556/close-votes-expire-too-soon-for-low-traffic-tags) much slower if the question has less than 100 views, so as to give enough folks time to see and review it. Questions with close votes stay in the review queue until they are closed or the v...
> > Is this that is happening? > > > I wish! As explained in [New Feature: Community Review Tasks - Now in Beta](https://meta.stackexchange.com/q/139536): > > "Do Not Close" just removes it from the queue right now -- it doesn't affect close votes. > > >
22,509,052
Here is my Main.java class ``` import java.util.*; public class Main { public static void main(String[] args) { Scanner input = new Scanner(System.in); int roomNum=0; Room[] myHotel = new Room[10]; for (int x =0; x<10; x++){ myHotel[x] = new Room(); } ...
2014/03/19
[ "https://Stackoverflow.com/questions/22509052", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3438048/" ]
You can't access to it! because it's a template. and not a created control.
You should look at `FrameworkElement.GetTemplateChild` method, it is intended for that purpose. However, this requires you to subclass the `ItemsControl`, as this method is protected. If you need to avoid this, then you can traverse the visual tree of `ItemsControl` using the `VisualTreeHelper.GetChild` method analyzi...
22,509,052
Here is my Main.java class ``` import java.util.*; public class Main { public static void main(String[] args) { Scanner input = new Scanner(System.in); int roomNum=0; Room[] myHotel = new Room[10]; for (int x =0; x<10; x++){ myHotel[x] = new Room(); } ...
2014/03/19
[ "https://Stackoverflow.com/questions/22509052", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3438048/" ]
You can't access to it! because it's a template. and not a created control.
You'll need to traverse the visual descendants of the `ItemsControl` and look for a `Panel` meeting either of the following criteria: ``` if (panel.IsItemsHost && panel.TemplatedParent == itemsControl) /* You've found the ItemsPanel. */; var itemsPresenter = panel.TemplatedParent as ItemsPresenter; if (itemsPrese...
444,065
Во фразе "До свиданья, наш ласковый миша!" - из песни на закрытии Олимпиады-80 - слово "миша" с прописной или строчной?
2018/09/14
[ "https://rus.stackexchange.com/questions/444065", "https://rus.stackexchange.com", "https://rus.stackexchange.com/users/1197/" ]
Медвежонок Миша (или Мишка) — талисман XXII летних Олимпийских игр, проходивших в 1980 году в Москве. Имя Миша (Мишка, Михаил, Михаил Потапыч) — традиционное русское прозвище медведя, под которым он выступает во многих русских народных сказках. Песня называется [**"До свиданья, Москва"**](http://www.norma40.ru/ch...
Понятно, что ответ зависит от того, является ли в данной фразе "миша" именем собственным или нарицательным для "медведя". Насколько помню, символ Олимпиады-80 был медведь по имени Миша. В песне мы прощались с конкретным медведем. И, скорее всего, к нему обращались по имени. То есть, с большой буквы. Но это можно трак...
444,065
Во фразе "До свиданья, наш ласковый миша!" - из песни на закрытии Олимпиады-80 - слово "миша" с прописной или строчной?
2018/09/14
[ "https://rus.stackexchange.com/questions/444065", "https://rus.stackexchange.com", "https://rus.stackexchange.com/users/1197/" ]
Медвежонок Миша (или Мишка) — талисман XXII летних Олимпийских игр, проходивших в 1980 году в Москве. Имя Миша (Мишка, Михаил, Михаил Потапыч) — традиционное русское прозвище медведя, под которым он выступает во многих русских народных сказках. Песня называется [**"До свиданья, Москва"**](http://www.norma40.ru/ch...
Поищите в Интернете, в Нацкорпусе — везде Миша с заглавной. В конце концов, у слов песни есть автор, и он так решил. И это логично, так как у олимпийских талисманов, как правило, было имя собственное (1972 - такса Вальдих, 1976 - бобр Амик, 1980 - медвежонок Миша, 1984 - орлёнок Сэм, 1988 - тигренок Ходори, 1992 - щено...
52,406,411
I have a multi-module maven based project with the following module structure: ``` -- --A pom.xml --B pom.xml -pom.xml ``` I added a dependency in the *parent* .pom file. Now i want to use resources from that added dependency in the *A* module. Is there a way to copy only external resources to the *A* modu...
2018/09/19
[ "https://Stackoverflow.com/questions/52406411", "https://Stackoverflow.com", "https://Stackoverflow.com/users/8222921/" ]
So i found next solution. It isn't optimal but it works and does what i want. It extracts resource files from external jar (maven dependency) and copy it to class path resources. It isn't optimal because i have to remove empty directory after files moving in needed place. ``` <build> <plugins> <p...
You have to add dependency to the module that should use it. Then you can use [maven dependency plugin](https://maven.apache.org/plugins/maven-dependency-plugin/unpack-dependencies-mojo.html) to get resources from that dependency.
52,406,411
I have a multi-module maven based project with the following module structure: ``` -- --A pom.xml --B pom.xml -pom.xml ``` I added a dependency in the *parent* .pom file. Now i want to use resources from that added dependency in the *A* module. Is there a way to copy only external resources to the *A* modu...
2018/09/19
[ "https://Stackoverflow.com/questions/52406411", "https://Stackoverflow.com", "https://Stackoverflow.com/users/8222921/" ]
So i found next solution. It isn't optimal but it works and does what i want. It extracts resource files from external jar (maven dependency) and copy it to class path resources. It isn't optimal because i have to remove empty directory after files moving in needed place. ``` <build> <plugins> <p...
You can define dependencies of modules A and B in parent POM under section. Then reference them in child POM (A or B) in section. This way you can make sure only a single version of given dependency is used throughout all of child modules. All the information on dependency management in maven is documented at <https:/...
19,266,178
I've been searching for some ways to detect the **iPad3** and **iPad4** devices. I'm adding meta viewport dynamically. I wanted to see desktop version and remove the viewport in **Desktop**, **iPad3** & **iPad4** but in mobile of course add viewport to see mobile version. **Please Check my init function in var ApplyVi...
2013/10/09
[ "https://Stackoverflow.com/questions/19266178", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2749701/" ]
Yes you can get rid of it, but it makes compilation notably faster by allowing the compiler to not recompile a ton (there's really a lot of code in there) of Windows SDK headers. [MSDN has more details](http://msdn.microsoft.com/en-us/library/szfdksca.aspx).
It's simply a way of speeding up compilation, by creating a single file containing all declarations and definitions from multiple header files. Often this file is in a post-parsed format, so the compiler don't have to parse it again.
112,657
When making changes to my Magento 2 site, I usually run a few of the command line commands to 'refresh' my site to see the changes I've made. The problem is, I'm not too sure what each command really does and when to use a particular one... Meaning I usually run a lot of them 'just to make sure' the site's refreshed an...
2016/04/26
[ "https://magento.stackexchange.com/questions/112657", "https://magento.stackexchange.com", "https://magento.stackexchange.com/users/38665/" ]
I am sharing some magento 2 useful commands here: Magento 2 Upgrade Command: ``` php bin/magento setup:upgrade ``` Magento 2 reindex Command: ``` php bin/magento indexer:reindex ``` Magento 2 flush cache Command: ``` php bin/magento cache:flush ``` Magento 2 static content deploy Command: ``` php bin/magento...
* `php magento/bin cache:clean` : It cleans a cache type = deletes all items from enabled Magento cache types only. This option does not affect other processed or applications because it cleans only the cache that Magento uses. Disabled cache types are not cleaned. Equivalent of clicking the **Flush Magento Cache** but...
112,657
When making changes to my Magento 2 site, I usually run a few of the command line commands to 'refresh' my site to see the changes I've made. The problem is, I'm not too sure what each command really does and when to use a particular one... Meaning I usually run a lot of them 'just to make sure' the site's refreshed an...
2016/04/26
[ "https://magento.stackexchange.com/questions/112657", "https://magento.stackexchange.com", "https://magento.stackexchange.com/users/38665/" ]
I am sharing some magento 2 useful commands here: Magento 2 Upgrade Command: ``` php bin/magento setup:upgrade ``` Magento 2 reindex Command: ``` php bin/magento indexer:reindex ``` Magento 2 flush cache Command: ``` php bin/magento cache:flush ``` Magento 2 static content deploy Command: ``` php bin/magento...
**`php magento/bin cache:clean`** Cleaning a cache type deletes all items from enabled Magento cache types only. In other words, this option does not affect other processes or applications because it cleans only the cache that Magento uses. Disabled cache types are not cleaned. if your cache are enable in admin that t...
17,728,595
I have 2 arrays(which could be more too) and they might have scattering data. ``` Date | Apple Date | Banana ----------------- ------------------- 1 | 5 1 | 3 4 | 5 3 | 1 5 | 5 ...
2013/07/18
[ "https://Stackoverflow.com/questions/17728595", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2075839/" ]
Best thing i came up with is this: ``` for($i=0; $i<5; $i++){ $t = $i; $t1 = $t+3; $te= $i+5; $ti = $i+10; $a[] = array( 'date' => $t, 'bannana' => $te, 'tea' => $ti, ); $b[] = array( 'date' => $t1, 'l...
Using for loops, you can iterate through the array that is to be added, find an existing 'Date' entry in the master table or create a new one that matches the current 'Date' value of the array being added. If the data of an entry in the master table requires a new attribute type (e.g. Apple, Banana) that it doesn't hav...
17,728,595
I have 2 arrays(which could be more too) and they might have scattering data. ``` Date | Apple Date | Banana ----------------- ------------------- 1 | 5 1 | 3 4 | 5 3 | 1 5 | 5 ...
2013/07/18
[ "https://Stackoverflow.com/questions/17728595", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2075839/" ]
Based on @Hristo response, I modified the code and it worked the following way. By this way, I get the expected output. Below is not the exact code that I used. I have modified to be in alignment with my example posted in the question. Will this work well in a huge array? ``` $finalArray = array(); foreach ...
Using for loops, you can iterate through the array that is to be added, find an existing 'Date' entry in the master table or create a new one that matches the current 'Date' value of the array being added. If the data of an entry in the master table requires a new attribute type (e.g. Apple, Banana) that it doesn't hav...
7,490,188
I am using an arrayList in one of my code. I am finding it difficult to retrieve elements out of an arraylist. it gives me an error when i use this: `getit = newlist.get(g);` Basically I want the string variable `getit` to store the value of the gth element of the arraylist called 'newlist' and then use it. Could s...
2011/09/20
[ "https://Stackoverflow.com/questions/7490188", "https://Stackoverflow.com", "https://Stackoverflow.com/users/943262/" ]
There is one more way: T4 Templates. See here: <http://msdn.microsoft.com/en-us/data/gg558520> The resulting CS file is generated at build time. This means you could potentially loop your classes using refelection and the result would be what you have now manually created in your "SuperClass". The cool thing really i...
You cannot do this easily in C#. You could inherit from one of the classes, and create delegates for the other, or you can manually create delegates for both (by delegate, I just mean a method that delegates to the member object, not anything to do with the `delegate` keyword or class). If you use a product such a Res...
7,490,188
I am using an arrayList in one of my code. I am finding it difficult to retrieve elements out of an arraylist. it gives me an error when i use this: `getit = newlist.get(g);` Basically I want the string variable `getit` to store the value of the gth element of the arraylist called 'newlist' and then use it. Could s...
2011/09/20
[ "https://Stackoverflow.com/questions/7490188", "https://Stackoverflow.com", "https://Stackoverflow.com/users/943262/" ]
There is one more way: T4 Templates. See here: <http://msdn.microsoft.com/en-us/data/gg558520> The resulting CS file is generated at build time. This means you could potentially loop your classes using refelection and the result would be what you have now manually created in your "SuperClass". The cool thing really i...
The question is rather old already, and there's one more solution available today: [Expose.Fody](https://github.com/kedarvaidya/Expose.Fody). This is a plugin for Fody, which is a general-purpose IL-weaving tool. To quote the Expose's description, > > Exposes members and optionally implements interface of a field dec...
7,490,188
I am using an arrayList in one of my code. I am finding it difficult to retrieve elements out of an arraylist. it gives me an error when i use this: `getit = newlist.get(g);` Basically I want the string variable `getit` to store the value of the gth element of the arraylist called 'newlist' and then use it. Could s...
2011/09/20
[ "https://Stackoverflow.com/questions/7490188", "https://Stackoverflow.com", "https://Stackoverflow.com/users/943262/" ]
Well, if you're using composition (as you are) there is no "easier way"; you just have to wrap the methods you want to expose. If you want to expose all of the methods of the composed type, then why are you using composition in the first place? You may as well just expose `SecurityClass` and `NetworkDevice` via public ...
You can make class1 public and then reference them directly: ``` SuperClass.class1.MethodFirst(); ``` Of course, static methods will be ok, you will have to construct class1 for instance methods.
7,490,188
I am using an arrayList in one of my code. I am finding it difficult to retrieve elements out of an arraylist. it gives me an error when i use this: `getit = newlist.get(g);` Basically I want the string variable `getit` to store the value of the gth element of the arraylist called 'newlist' and then use it. Could s...
2011/09/20
[ "https://Stackoverflow.com/questions/7490188", "https://Stackoverflow.com", "https://Stackoverflow.com/users/943262/" ]
There is one more way: T4 Templates. See here: <http://msdn.microsoft.com/en-us/data/gg558520> The resulting CS file is generated at build time. This means you could potentially loop your classes using refelection and the result would be what you have now manually created in your "SuperClass". The cool thing really i...
Unfortunately there is no magic ways to do that as multiple type inheritance is not allowed in .NET.
7,490,188
I am using an arrayList in one of my code. I am finding it difficult to retrieve elements out of an arraylist. it gives me an error when i use this: `getit = newlist.get(g);` Basically I want the string variable `getit` to store the value of the gth element of the arraylist called 'newlist' and then use it. Could s...
2011/09/20
[ "https://Stackoverflow.com/questions/7490188", "https://Stackoverflow.com", "https://Stackoverflow.com/users/943262/" ]
There is one more way: T4 Templates. See here: <http://msdn.microsoft.com/en-us/data/gg558520> The resulting CS file is generated at build time. This means you could potentially loop your classes using refelection and the result would be what you have now manually created in your "SuperClass". The cool thing really i...
in C#, you cannot combine class hierarchies the way you can in Java but you can enforce a contract through iterfaces. Create an interface for Class1 and Class2 then have SuperClass implement those interfaces. You'll still code up the method calls, but at least you'll have some compile-time checking in place. Perhaps ...
7,490,188
I am using an arrayList in one of my code. I am finding it difficult to retrieve elements out of an arraylist. it gives me an error when i use this: `getit = newlist.get(g);` Basically I want the string variable `getit` to store the value of the gth element of the arraylist called 'newlist' and then use it. Could s...
2011/09/20
[ "https://Stackoverflow.com/questions/7490188", "https://Stackoverflow.com", "https://Stackoverflow.com/users/943262/" ]
Well, if you're using composition (as you are) there is no "easier way"; you just have to wrap the methods you want to expose. If you want to expose all of the methods of the composed type, then why are you using composition in the first place? You may as well just expose `SecurityClass` and `NetworkDevice` via public ...
in C#, you cannot combine class hierarchies the way you can in Java but you can enforce a contract through iterfaces. Create an interface for Class1 and Class2 then have SuperClass implement those interfaces. You'll still code up the method calls, but at least you'll have some compile-time checking in place. Perhaps ...
7,490,188
I am using an arrayList in one of my code. I am finding it difficult to retrieve elements out of an arraylist. it gives me an error when i use this: `getit = newlist.get(g);` Basically I want the string variable `getit` to store the value of the gth element of the arraylist called 'newlist' and then use it. Could s...
2011/09/20
[ "https://Stackoverflow.com/questions/7490188", "https://Stackoverflow.com", "https://Stackoverflow.com/users/943262/" ]
Well, if you're using composition (as you are) there is no "easier way"; you just have to wrap the methods you want to expose. If you want to expose all of the methods of the composed type, then why are you using composition in the first place? You may as well just expose `SecurityClass` and `NetworkDevice` via public ...
The question is rather old already, and there's one more solution available today: [Expose.Fody](https://github.com/kedarvaidya/Expose.Fody). This is a plugin for Fody, which is a general-purpose IL-weaving tool. To quote the Expose's description, > > Exposes members and optionally implements interface of a field dec...
7,490,188
I am using an arrayList in one of my code. I am finding it difficult to retrieve elements out of an arraylist. it gives me an error when i use this: `getit = newlist.get(g);` Basically I want the string variable `getit` to store the value of the gth element of the arraylist called 'newlist' and then use it. Could s...
2011/09/20
[ "https://Stackoverflow.com/questions/7490188", "https://Stackoverflow.com", "https://Stackoverflow.com/users/943262/" ]
Well, if you're using composition (as you are) there is no "easier way"; you just have to wrap the methods you want to expose. If you want to expose all of the methods of the composed type, then why are you using composition in the first place? You may as well just expose `SecurityClass` and `NetworkDevice` via public ...
You cannot do this easily in C#. You could inherit from one of the classes, and create delegates for the other, or you can manually create delegates for both (by delegate, I just mean a method that delegates to the member object, not anything to do with the `delegate` keyword or class). If you use a product such a Res...
7,490,188
I am using an arrayList in one of my code. I am finding it difficult to retrieve elements out of an arraylist. it gives me an error when i use this: `getit = newlist.get(g);` Basically I want the string variable `getit` to store the value of the gth element of the arraylist called 'newlist' and then use it. Could s...
2011/09/20
[ "https://Stackoverflow.com/questions/7490188", "https://Stackoverflow.com", "https://Stackoverflow.com/users/943262/" ]
Well, if you're using composition (as you are) there is no "easier way"; you just have to wrap the methods you want to expose. If you want to expose all of the methods of the composed type, then why are you using composition in the first place? You may as well just expose `SecurityClass` and `NetworkDevice` via public ...
Unfortunately there is no magic ways to do that as multiple type inheritance is not allowed in .NET.
7,490,188
I am using an arrayList in one of my code. I am finding it difficult to retrieve elements out of an arraylist. it gives me an error when i use this: `getit = newlist.get(g);` Basically I want the string variable `getit` to store the value of the gth element of the arraylist called 'newlist' and then use it. Could s...
2011/09/20
[ "https://Stackoverflow.com/questions/7490188", "https://Stackoverflow.com", "https://Stackoverflow.com/users/943262/" ]
There is one more way: T4 Templates. See here: <http://msdn.microsoft.com/en-us/data/gg558520> The resulting CS file is generated at build time. This means you could potentially loop your classes using refelection and the result would be what you have now manually created in your "SuperClass". The cool thing really i...
You can make class1 public and then reference them directly: ``` SuperClass.class1.MethodFirst(); ``` Of course, static methods will be ok, you will have to construct class1 for instance methods.
17,351,069
I make the following query ``` neo4j-sh (?)$ start n=node(*) where n.name =~ 'u(.*)' return n; ==> +-----------------------+ ==> | n | ==> +-----------------------+ ==> | Node[311]{name:"u1"} | ==> | Node[312]{name:"u2"} | ==> | Node[313]{name:"u3"} | ==> | Node[314]{name:"u4"} | ``` I wan...
2013/06/27
[ "https://Stackoverflow.com/questions/17351069", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1848018/" ]
You can't do that in Cypher (as far as I know)--regex is just for matching. If it's always just a single letter in front of it, you can take the substring: ``` start n=node(*) set n.userId = substring(n.name, 1) ```
I had the same issue, so I developed a tiny Neo4j server plugin that lets you run regular expressions over REST API and against string node properties for matching/splitting/substituting purposes. It can return the results inside Neo4j console or save them to a property. Have a look at it, maybe you find it useful: <h...
17,351,069
I make the following query ``` neo4j-sh (?)$ start n=node(*) where n.name =~ 'u(.*)' return n; ==> +-----------------------+ ==> | n | ==> +-----------------------+ ==> | Node[311]{name:"u1"} | ==> | Node[312]{name:"u2"} | ==> | Node[313]{name:"u3"} | ==> | Node[314]{name:"u4"} | ``` I wan...
2013/06/27
[ "https://Stackoverflow.com/questions/17351069", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1848018/" ]
You can't do that in Cypher (as far as I know)--regex is just for matching. If it's always just a single letter in front of it, you can take the substring: ``` start n=node(*) set n.userId = substring(n.name, 1) ```
You should be able to use matched groups with an APOC `apoc.text.regexGroups` function: ``` MATCH (a:AppJar)-[:CONTAINS]->(b) WHERE b.fileName STARTS WITH "/BOOT-INF/lib/event-" WITH a, b, last(last(apoc.text.regexGroups(b.fileName, '/BOOT-INF/lib/event-([\\d\\.]+).jar'))) as version SET b.version = version RETURN a.a...
17,351,069
I make the following query ``` neo4j-sh (?)$ start n=node(*) where n.name =~ 'u(.*)' return n; ==> +-----------------------+ ==> | n | ==> +-----------------------+ ==> | Node[311]{name:"u1"} | ==> | Node[312]{name:"u2"} | ==> | Node[313]{name:"u3"} | ==> | Node[314]{name:"u4"} | ``` I wan...
2013/06/27
[ "https://Stackoverflow.com/questions/17351069", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1848018/" ]
I had the same issue, so I developed a tiny Neo4j server plugin that lets you run regular expressions over REST API and against string node properties for matching/splitting/substituting purposes. It can return the results inside Neo4j console or save them to a property. Have a look at it, maybe you find it useful: <h...
You should be able to use matched groups with an APOC `apoc.text.regexGroups` function: ``` MATCH (a:AppJar)-[:CONTAINS]->(b) WHERE b.fileName STARTS WITH "/BOOT-INF/lib/event-" WITH a, b, last(last(apoc.text.regexGroups(b.fileName, '/BOOT-INF/lib/event-([\\d\\.]+).jar'))) as version SET b.version = version RETURN a.a...
48,968
If enjambment is continuing to read from one line the the next without a pause, does this mean that liaisons should be made between lines as well? Example from Hugo’s le revenant: > > La mère dont je vais vous parler demeurait > > À Blois > > > I listened to a couple of readings online that did not make the l...
2021/11/04
[ "https://french.stackexchange.com/questions/48968", "https://french.stackexchange.com", "https://french.stackexchange.com/users/29365/" ]
There are [three types](https://en.wikipedia.org/wiki/Liaison_(French)#Constraints_on_liaison) of liaisons in French: mandatory, impossible and optional. The liaison in "*demeurait‿à Blois*" is optional (and rare in modern French), that's probably why you didn't find it in online readings. If the liaison was mandator...
<https://fripou.forumgratuit.org/t2684-la-liaison-prosodie> This site suggests that liaison should not be made between lines.
42,760,853
I am trying to convert a dictionary with a tuple keys and a list value to dataframe, like key1, key2, value. Here is the dictionary: ``` dict_f = {'(4312,5135)':[0,0.11,0.22],'(1515,32)':[0.92,0.11,0.65],'(42,56)':[0.2,0.5,0.23]} ``` I tried like this: ``` pd.DataFrame({'Keys': dict_f.keys(), 'Values': dict_f.value...
2017/03/13
[ "https://Stackoverflow.com/questions/42760853", "https://Stackoverflow.com", "https://Stackoverflow.com/users/7353499/" ]
It seems you need `MultiIndex` from `keys` of `dict`: ``` df = pd.DataFrame(dict_f) df.columns = df.columns.str.strip('()').str.split(',', expand=True) print (df) 1515 42 4312 32 56 5135 0 0.92 0.20 0.00 1 0.11 0.50 0.11 2 0.65 0.23 0.22 print (df.columns) MultiIndex(levels=[['1515', '42', '4...
``` def pkl_dict_to_df(df): data_df = pd.DataFrame({'keys': df.keys(), 'features': df.values()}) data_df['key1'] = data_df['keys'].apply(lambda x: x[0]) data_df['key2'] = data_df['keys'].apply(lambda x: x[1]) return data_df[['key1','key2','features']] ``` I solve it by the code above ,...
36,510,075
So I have been trying to implement the Dijkstra Algorithm to find the shortest path within a graph, but am running into several errors as I go along. First off, here's the actual question and the components I was given with it. "Write a c++ function to implement Dijkstra's algorithm on a graph. The graph implementatio...
2016/04/08
[ "https://Stackoverflow.com/questions/36510075", "https://Stackoverflow.com", "https://Stackoverflow.com/users/5948268/" ]
Anything declared in the loop is scoped to that loop and cannot be accessed outside the curly braces. In fact, you don't even need a loop to create a new scope. [More Info](https://stackoverflow.com/questions/7880658/what-is-the-scope-of-a-while-and-for-loop) The variable minDistance in declared inside the while loop.
You need to initialize minDistance outside the scope of the while loop. ``` int minDistance=INT_MAX; while(!ending->visited){ ... minDistance=someOtherValue ... } tmp->distance=minDistance; ``` The value of minDistance can be changed inside of the loop.
36,510,075
So I have been trying to implement the Dijkstra Algorithm to find the shortest path within a graph, but am running into several errors as I go along. First off, here's the actual question and the components I was given with it. "Write a c++ function to implement Dijkstra's algorithm on a graph. The graph implementatio...
2016/04/08
[ "https://Stackoverflow.com/questions/36510075", "https://Stackoverflow.com", "https://Stackoverflow.com/users/5948268/" ]
Anything declared in the loop is scoped to that loop and cannot be accessed outside the curly braces. In fact, you don't even need a loop to create a new scope. [More Info](https://stackoverflow.com/questions/7880658/what-is-the-scope-of-a-while-and-for-loop) The variable minDistance in declared inside the while loop.
solved also never seems to be populated. You have : ``` vector<vertex *> solved; ... for(int i=0;i<solved.size();i++){ vertex * s=solved[i]; ``` those are all the cases where i can find "solved" and no values are ever put in it so the for loop should never run because solved.size() is always equal to 0
12,380,209
Is there a way to create linked list in objective c. I'm a newbie and so far I've researched in apple developer guides, there isn't any function predefined for linked list. Is doubly linked list same as linked list in objective-c? Please help.
2012/09/12
[ "https://Stackoverflow.com/questions/12380209", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1661826/" ]
First thing to keep in mind is that Objective-C *is* C, it's just a lot more, too. Next thing is that Objects are passed around as (essentially) pointers (which the compiler knows point to objects). So you can certainly make and manage your own linked list, and you can do it with structs *or* objects. With objects (...
Please check my implementation of some of the common data structures like linked list, stack, binary search tree in objective C. <https://github.com/udaypatial/Data-Structures-in-Objective-C>
42,447,513
I am currently using a asp.net webform to pull data from a database in mssql. I have three tables (tOptions, tModel, tOptions\_Model) and the datafields are (OptionsID, Options, ModelID, Model). What the form does, is when you select one of the models from the dropdownlist, it will send a sql query to grab all of the o...
2017/02/24
[ "https://Stackoverflow.com/questions/42447513", "https://Stackoverflow.com", "https://Stackoverflow.com/users/7120046/" ]
Too many sins commited ``` // Extract method: do not cram everything into single IndexChanged private void CoreAddOptions() { // Do not open a global connection // Wrap IDisposable into using using (SqlConnection conn = new SqlConnection(ConnectionString)) { conn.Open(); // Make Sql Readable...
Create a stored procedure and pass validated parameters to it. This mitigates against SQL injection and allows you to test your code more easily. Wrap all resources in a using statement to ensure they are disposed of.
63,843,469
I want to find pandas equivalent of sql... ``` select sum(t.col1 * t.col2) / sum(t.col3) from table as t group by t.col4 ``` I did ``` df.groupby(['col4'])[['col3']].sum() ``` but it only produce the sum(t.3)... is there a one-line statement to achieve this kind of task in pandas?
2020/09/11
[ "https://Stackoverflow.com/questions/63843469", "https://Stackoverflow.com", "https://Stackoverflow.com/users/7946082/" ]
Try: ```py df['n'] = df['col1'].mul(df['col2']) gr = df.groupby(['col4']) res = gr['n'].sum().div(gr['col3'].sum()) ```
Try this: ``` df_grouped = df.groupby(['col4']) col1 = df_grouped['col1'] col2 = df_grouped['col2'] col3 = df_grouped['col3'] col1col2 = col1.mul(col2).sum() res = col1col2.div(col3.sum()) ``` I'm not sure if it's correct or not but I hope it helps.
1,109,021
I'm trying to approximate $\coth(x)$ around $x = 0$, up to say, third order in $x$. Now obviously a simple taylor expansion doesn't work, as it diverges around $x = 0$. I'm not quite sure how to proceed from here. I had a look at [Series expansion of $\coth x$ using the Fourier transform](https://math.stackexchange.co...
2015/01/18
[ "https://math.stackexchange.com/questions/1109021", "https://math.stackexchange.com", "https://math.stackexchange.com/users/121217/" ]
The series representation **must** reflect that divergence at $x=0$. Thus, $$\begin{align}\coth{x} &= \frac{1+\frac{x^2}{2!}+\frac{x^4}{4!}+O(x^6)}{\frac{x}{1!}+\frac{x^3}{3!}+\frac{x^5}{5!}+O(x^7)} \\ &= \frac1{x} \frac{1+\frac{x^2}{2!}+\frac{x^4}{4!}+O(x^6)}{1+\frac{x^2}{3!}+\frac{x^4}{5!}+O(x^6)}\\&= \frac1{x} \lef...
There is a simple way of approximating $\coth$ by noticing that it is a logarithmic derivative. Since: $$ \frac{\sinh z}{z}=\prod\_{n=1}^{+\infty}\left(1+\frac{z^2}{\pi^2 n^2}\right)\tag{1} $$ by the Weierstrass product for the (hyperbolic) sine function, we have: $$ \log\sinh z-\log z = \sum\_{n=1}^{+\infty}\log\left(...
1,109,021
I'm trying to approximate $\coth(x)$ around $x = 0$, up to say, third order in $x$. Now obviously a simple taylor expansion doesn't work, as it diverges around $x = 0$. I'm not quite sure how to proceed from here. I had a look at [Series expansion of $\coth x$ using the Fourier transform](https://math.stackexchange.co...
2015/01/18
[ "https://math.stackexchange.com/questions/1109021", "https://math.stackexchange.com", "https://math.stackexchange.com/users/121217/" ]
The series representation **must** reflect that divergence at $x=0$. Thus, $$\begin{align}\coth{x} &= \frac{1+\frac{x^2}{2!}+\frac{x^4}{4!}+O(x^6)}{\frac{x}{1!}+\frac{x^3}{3!}+\frac{x^5}{5!}+O(x^7)} \\ &= \frac1{x} \frac{1+\frac{x^2}{2!}+\frac{x^4}{4!}+O(x^6)}{1+\frac{x^2}{3!}+\frac{x^4}{5!}+O(x^6)}\\&= \frac1{x} \lef...
$$\coth x=\frac{e^x+e^{-x}}{e^x-e^{-x}}\\\sim\frac{1+x^2/2!+x^4/4!+...}{x+x^3/3!+x^5/5!+...}\\\sim\frac1x(1+x^2/2!+x^4/4!+...)(1-(x^2/3!+x^4/5!+..))\\=\frac1x+\frac x3+...$$
1,109,021
I'm trying to approximate $\coth(x)$ around $x = 0$, up to say, third order in $x$. Now obviously a simple taylor expansion doesn't work, as it diverges around $x = 0$. I'm not quite sure how to proceed from here. I had a look at [Series expansion of $\coth x$ using the Fourier transform](https://math.stackexchange.co...
2015/01/18
[ "https://math.stackexchange.com/questions/1109021", "https://math.stackexchange.com", "https://math.stackexchange.com/users/121217/" ]
Note that $\coth\left(x\right)=\,{\rm i}\cot\left(\,{\rm i}x\right)$. With *Euler Reflection Formula* we have: \begin{align} \coth\left(x\right)&=\frac{\,{\rm i}}{\pi}\left[\pi\cot\left(\pi\,\frac{\,{\rm i}x}{\pi}\right)\right] =\frac{\,{\rm i}}{\pi} \Psi\left(1 - \frac{\,{\rm i}x}{\pi}\right) -\frac{\,{\rm i}}{\pi}\,\...
Here's a somewhat different approach, which can be extended by using the power series of $\cosh$ and $\sinh$ as others have. $$\coth(x) = \frac{\cosh(x)}{\sinh(x)} = \frac{1}{x} \frac{\cosh(x)}{\frac{\sinh(x)}{x}} \\ = \frac{1}{x} \frac{\cosh(x)}{1+\left ( \frac{\sinh(x)}{x} - 1 \right )} \\ = \frac{1}{x} \cosh(x) \su...
1,109,021
I'm trying to approximate $\coth(x)$ around $x = 0$, up to say, third order in $x$. Now obviously a simple taylor expansion doesn't work, as it diverges around $x = 0$. I'm not quite sure how to proceed from here. I had a look at [Series expansion of $\coth x$ using the Fourier transform](https://math.stackexchange.co...
2015/01/18
[ "https://math.stackexchange.com/questions/1109021", "https://math.stackexchange.com", "https://math.stackexchange.com/users/121217/" ]
There is a simple way of approximating $\coth$ by noticing that it is a logarithmic derivative. Since: $$ \frac{\sinh z}{z}=\prod\_{n=1}^{+\infty}\left(1+\frac{z^2}{\pi^2 n^2}\right)\tag{1} $$ by the Weierstrass product for the (hyperbolic) sine function, we have: $$ \log\sinh z-\log z = \sum\_{n=1}^{+\infty}\log\left(...
My copy of the classic "Handbook of Mathematical Functions" by Abramowitz and Stegun says $$ \mathrm{coth}(z) = \frac{1}{z} + \frac{z}{3} - \frac{z^3}{45} + \frac{2}{945} z^5 - \ldots + \frac{2^{2n}B\_{2n}}{(2n)!} z^{2n-1} $$ where $B\_n$ is the $n^{th}$ Bernoulli number. Note in particular the difference in the $z^...
1,109,021
I'm trying to approximate $\coth(x)$ around $x = 0$, up to say, third order in $x$. Now obviously a simple taylor expansion doesn't work, as it diverges around $x = 0$. I'm not quite sure how to proceed from here. I had a look at [Series expansion of $\coth x$ using the Fourier transform](https://math.stackexchange.co...
2015/01/18
[ "https://math.stackexchange.com/questions/1109021", "https://math.stackexchange.com", "https://math.stackexchange.com/users/121217/" ]
$$\coth x=\frac{e^x+e^{-x}}{e^x-e^{-x}}\\\sim\frac{1+x^2/2!+x^4/4!+...}{x+x^3/3!+x^5/5!+...}\\\sim\frac1x(1+x^2/2!+x^4/4!+...)(1-(x^2/3!+x^4/5!+..))\\=\frac1x+\frac x3+...$$
My copy of the classic "Handbook of Mathematical Functions" by Abramowitz and Stegun says $$ \mathrm{coth}(z) = \frac{1}{z} + \frac{z}{3} - \frac{z^3}{45} + \frac{2}{945} z^5 - \ldots + \frac{2^{2n}B\_{2n}}{(2n)!} z^{2n-1} $$ where $B\_n$ is the $n^{th}$ Bernoulli number. Note in particular the difference in the $z^...
1,109,021
I'm trying to approximate $\coth(x)$ around $x = 0$, up to say, third order in $x$. Now obviously a simple taylor expansion doesn't work, as it diverges around $x = 0$. I'm not quite sure how to proceed from here. I had a look at [Series expansion of $\coth x$ using the Fourier transform](https://math.stackexchange.co...
2015/01/18
[ "https://math.stackexchange.com/questions/1109021", "https://math.stackexchange.com", "https://math.stackexchange.com/users/121217/" ]
The series representation **must** reflect that divergence at $x=0$. Thus, $$\begin{align}\coth{x} &= \frac{1+\frac{x^2}{2!}+\frac{x^4}{4!}+O(x^6)}{\frac{x}{1!}+\frac{x^3}{3!}+\frac{x^5}{5!}+O(x^7)} \\ &= \frac1{x} \frac{1+\frac{x^2}{2!}+\frac{x^4}{4!}+O(x^6)}{1+\frac{x^2}{3!}+\frac{x^4}{5!}+O(x^6)}\\&= \frac1{x} \lef...
Note that $\coth\left(x\right)=\,{\rm i}\cot\left(\,{\rm i}x\right)$. With *Euler Reflection Formula* we have: \begin{align} \coth\left(x\right)&=\frac{\,{\rm i}}{\pi}\left[\pi\cot\left(\pi\,\frac{\,{\rm i}x}{\pi}\right)\right] =\frac{\,{\rm i}}{\pi} \Psi\left(1 - \frac{\,{\rm i}x}{\pi}\right) -\frac{\,{\rm i}}{\pi}\,\...
1,109,021
I'm trying to approximate $\coth(x)$ around $x = 0$, up to say, third order in $x$. Now obviously a simple taylor expansion doesn't work, as it diverges around $x = 0$. I'm not quite sure how to proceed from here. I had a look at [Series expansion of $\coth x$ using the Fourier transform](https://math.stackexchange.co...
2015/01/18
[ "https://math.stackexchange.com/questions/1109021", "https://math.stackexchange.com", "https://math.stackexchange.com/users/121217/" ]
The series representation **must** reflect that divergence at $x=0$. Thus, $$\begin{align}\coth{x} &= \frac{1+\frac{x^2}{2!}+\frac{x^4}{4!}+O(x^6)}{\frac{x}{1!}+\frac{x^3}{3!}+\frac{x^5}{5!}+O(x^7)} \\ &= \frac1{x} \frac{1+\frac{x^2}{2!}+\frac{x^4}{4!}+O(x^6)}{1+\frac{x^2}{3!}+\frac{x^4}{5!}+O(x^6)}\\&= \frac1{x} \lef...
My copy of the classic "Handbook of Mathematical Functions" by Abramowitz and Stegun says $$ \mathrm{coth}(z) = \frac{1}{z} + \frac{z}{3} - \frac{z^3}{45} + \frac{2}{945} z^5 - \ldots + \frac{2^{2n}B\_{2n}}{(2n)!} z^{2n-1} $$ where $B\_n$ is the $n^{th}$ Bernoulli number. Note in particular the difference in the $z^...
1,109,021
I'm trying to approximate $\coth(x)$ around $x = 0$, up to say, third order in $x$. Now obviously a simple taylor expansion doesn't work, as it diverges around $x = 0$. I'm not quite sure how to proceed from here. I had a look at [Series expansion of $\coth x$ using the Fourier transform](https://math.stackexchange.co...
2015/01/18
[ "https://math.stackexchange.com/questions/1109021", "https://math.stackexchange.com", "https://math.stackexchange.com/users/121217/" ]
There is a simple way of approximating $\coth$ by noticing that it is a logarithmic derivative. Since: $$ \frac{\sinh z}{z}=\prod\_{n=1}^{+\infty}\left(1+\frac{z^2}{\pi^2 n^2}\right)\tag{1} $$ by the Weierstrass product for the (hyperbolic) sine function, we have: $$ \log\sinh z-\log z = \sum\_{n=1}^{+\infty}\log\left(...
Here's a somewhat different approach, which can be extended by using the power series of $\cosh$ and $\sinh$ as others have. $$\coth(x) = \frac{\cosh(x)}{\sinh(x)} = \frac{1}{x} \frac{\cosh(x)}{\frac{\sinh(x)}{x}} \\ = \frac{1}{x} \frac{\cosh(x)}{1+\left ( \frac{\sinh(x)}{x} - 1 \right )} \\ = \frac{1}{x} \cosh(x) \su...
1,109,021
I'm trying to approximate $\coth(x)$ around $x = 0$, up to say, third order in $x$. Now obviously a simple taylor expansion doesn't work, as it diverges around $x = 0$. I'm not quite sure how to proceed from here. I had a look at [Series expansion of $\coth x$ using the Fourier transform](https://math.stackexchange.co...
2015/01/18
[ "https://math.stackexchange.com/questions/1109021", "https://math.stackexchange.com", "https://math.stackexchange.com/users/121217/" ]
Here's a somewhat different approach, which can be extended by using the power series of $\cosh$ and $\sinh$ as others have. $$\coth(x) = \frac{\cosh(x)}{\sinh(x)} = \frac{1}{x} \frac{\cosh(x)}{\frac{\sinh(x)}{x}} \\ = \frac{1}{x} \frac{\cosh(x)}{1+\left ( \frac{\sinh(x)}{x} - 1 \right )} \\ = \frac{1}{x} \cosh(x) \su...
My copy of the classic "Handbook of Mathematical Functions" by Abramowitz and Stegun says $$ \mathrm{coth}(z) = \frac{1}{z} + \frac{z}{3} - \frac{z^3}{45} + \frac{2}{945} z^5 - \ldots + \frac{2^{2n}B\_{2n}}{(2n)!} z^{2n-1} $$ where $B\_n$ is the $n^{th}$ Bernoulli number. Note in particular the difference in the $z^...
1,109,021
I'm trying to approximate $\coth(x)$ around $x = 0$, up to say, third order in $x$. Now obviously a simple taylor expansion doesn't work, as it diverges around $x = 0$. I'm not quite sure how to proceed from here. I had a look at [Series expansion of $\coth x$ using the Fourier transform](https://math.stackexchange.co...
2015/01/18
[ "https://math.stackexchange.com/questions/1109021", "https://math.stackexchange.com", "https://math.stackexchange.com/users/121217/" ]
Note that $\coth\left(x\right)=\,{\rm i}\cot\left(\,{\rm i}x\right)$. With *Euler Reflection Formula* we have: \begin{align} \coth\left(x\right)&=\frac{\,{\rm i}}{\pi}\left[\pi\cot\left(\pi\,\frac{\,{\rm i}x}{\pi}\right)\right] =\frac{\,{\rm i}}{\pi} \Psi\left(1 - \frac{\,{\rm i}x}{\pi}\right) -\frac{\,{\rm i}}{\pi}\,\...
My copy of the classic "Handbook of Mathematical Functions" by Abramowitz and Stegun says $$ \mathrm{coth}(z) = \frac{1}{z} + \frac{z}{3} - \frac{z^3}{45} + \frac{2}{945} z^5 - \ldots + \frac{2^{2n}B\_{2n}}{(2n)!} z^{2n-1} $$ where $B\_n$ is the $n^{th}$ Bernoulli number. Note in particular the difference in the $z^...
135,818
I know a lot of posts have been made on this topic, but, I have tried everything. I wanted to move my hot water tank from the first floor of my house to the crawl space. My old unit was performing well, but, the plumber I hired recommended a new unit (mine was 12 years old). Prior to replacement, my hot water worked pe...
2018/03/19
[ "https://diy.stackexchange.com/questions/135818", "https://diy.stackexchange.com", "https://diy.stackexchange.com/users/83729/" ]
If you increase the diameter of the branch you also increase the time it takes for you to get hot water. In my climate I also like to get ground temperature water so having large branch lines increases the amount of water I have to dump before I get rid of the water in the pipe from the supply entrance to my faucet. Th...
Personally I would just live with the trunk and branch. It will be very expensive to replumb the house.
135,818
I know a lot of posts have been made on this topic, but, I have tried everything. I wanted to move my hot water tank from the first floor of my house to the crawl space. My old unit was performing well, but, the plumber I hired recommended a new unit (mine was 12 years old). Prior to replacement, my hot water worked pe...
2018/03/19
[ "https://diy.stackexchange.com/questions/135818", "https://diy.stackexchange.com", "https://diy.stackexchange.com/users/83729/" ]
PEX is a dimensionally equivalent product. That means the OD outside diameter is equivalent to the OD of copper. The ID inside diameter is less than the ID of copper. The PEX fittings fit inside the PEX tubing acting as flow restriction and thus volume of water. Do not think that the rules of thumb for copper are equiv...
Personally I would just live with the trunk and branch. It will be very expensive to replumb the house.
135,818
I know a lot of posts have been made on this topic, but, I have tried everything. I wanted to move my hot water tank from the first floor of my house to the crawl space. My old unit was performing well, but, the plumber I hired recommended a new unit (mine was 12 years old). Prior to replacement, my hot water worked pe...
2018/03/19
[ "https://diy.stackexchange.com/questions/135818", "https://diy.stackexchange.com", "https://diy.stackexchange.com/users/83729/" ]
If you increase the diameter of the branch you also increase the time it takes for you to get hot water. In my climate I also like to get ground temperature water so having large branch lines increases the amount of water I have to dump before I get rid of the water in the pipe from the supply entrance to my faucet. Th...
If the manifold cost is not exorbitant, I would definitely go with your plan. I can hardly believe that anyone would use a 1/2" line for a trunk. I'd be tempted to use a 1" trunk if you have the crimp tool or can borrow one--especially to feed the manifolds (and your incoming line is 1" or larger).
135,818
I know a lot of posts have been made on this topic, but, I have tried everything. I wanted to move my hot water tank from the first floor of my house to the crawl space. My old unit was performing well, but, the plumber I hired recommended a new unit (mine was 12 years old). Prior to replacement, my hot water worked pe...
2018/03/19
[ "https://diy.stackexchange.com/questions/135818", "https://diy.stackexchange.com", "https://diy.stackexchange.com/users/83729/" ]
PEX is a dimensionally equivalent product. That means the OD outside diameter is equivalent to the OD of copper. The ID inside diameter is less than the ID of copper. The PEX fittings fit inside the PEX tubing acting as flow restriction and thus volume of water. Do not think that the rules of thumb for copper are equiv...
If the manifold cost is not exorbitant, I would definitely go with your plan. I can hardly believe that anyone would use a 1/2" line for a trunk. I'd be tempted to use a 1" trunk if you have the crimp tool or can borrow one--especially to feed the manifolds (and your incoming line is 1" or larger).
277,175
Let's say you have a spline, indexes go from top to bottom: [![enter image description here](https://i.stack.imgur.com/qdS6F.png)](https://i.stack.imgur.com/qdS6F.png) I want to make each point in the line lower than the previous, so that line always goes down, and never goes up. I made this node setup, which looks a...
2022/10/18
[ "https://blender.stackexchange.com/questions/277175", "https://blender.stackexchange.com", "https://blender.stackexchange.com/users/32374/" ]
Unfortunately, there are no loops in *Geometry Nodes*... Even with `Accumulate Field` you will not be able to achieve a solution here. But with the following tricks you can achieve the goal: Blender <= 3.3 ============== [![enter image description here](https://i.stack.imgur.com/0c6ic.png)](https://i.stack.imgur.co...
Here's a solution using multiple stages to determine the minimum for all points: [![](https://blend-exchange.com/embedImage.png?bid=n0ENymZa)](https://blend-exchange.com/b/n0ENymZa/) [![enter image description here](https://i.stack.imgur.com/n2cLL.gif)](https://i.stack.imgur.com/n2cLL.gif) This problem can't be solv...
15,062
How do I convert function input parameters to the right type? I want to return a string that has part of the URL passed into it removed. **This works, but it uses a hard-coded string:** ``` function CleanUrl($input) { $x = "http://google.com".Replace("http://", "") return $x } $SiteName = CleanUrl($HostHead...
2008/08/18
[ "https://Stackoverflow.com/questions/15062", "https://Stackoverflow.com", "https://Stackoverflow.com/users/636/" ]
``` function CleanUrl([string] $url) { return $url.Replace("http://", "") } ```
This worked for me: ``` function CleanUrl($input) { return $input.Replace("http://", "") } ```
15,062
How do I convert function input parameters to the right type? I want to return a string that has part of the URL passed into it removed. **This works, but it uses a hard-coded string:** ``` function CleanUrl($input) { $x = "http://google.com".Replace("http://", "") return $x } $SiteName = CleanUrl($HostHead...
2008/08/18
[ "https://Stackoverflow.com/questions/15062", "https://Stackoverflow.com", "https://Stackoverflow.com/users/636/" ]
The concept here is correct. The problem is with the variable name you have chosen. $input is a reserved variable used by PowerShell to represent an array of pipeline input. If you change your variable name, you should not have any problem. PowerShell does have [a replace operator](https://technet.microsoft.com/en-us...
``` function CleanUrl([string] $url) { return $url.Replace("http://", "") } ```
15,062
How do I convert function input parameters to the right type? I want to return a string that has part of the URL passed into it removed. **This works, but it uses a hard-coded string:** ``` function CleanUrl($input) { $x = "http://google.com".Replace("http://", "") return $x } $SiteName = CleanUrl($HostHead...
2008/08/18
[ "https://Stackoverflow.com/questions/15062", "https://Stackoverflow.com", "https://Stackoverflow.com/users/636/" ]
Steve's answer works. The problem with your attempt to reproduce ESV's script is that you're using `$input`, which is a reserved variable (it automatically collects multiple piped input into a single variable). You should, however, use .Replace() unless you need the extra feature(s) of -replace (it handles regular exp...
``` function CleanUrl([string] $url) { return $url.Replace("http://", "") } ```
15,062
How do I convert function input parameters to the right type? I want to return a string that has part of the URL passed into it removed. **This works, but it uses a hard-coded string:** ``` function CleanUrl($input) { $x = "http://google.com".Replace("http://", "") return $x } $SiteName = CleanUrl($HostHead...
2008/08/18
[ "https://Stackoverflow.com/questions/15062", "https://Stackoverflow.com", "https://Stackoverflow.com/users/636/" ]
The concept here is correct. The problem is with the variable name you have chosen. $input is a reserved variable used by PowerShell to represent an array of pipeline input. If you change your variable name, you should not have any problem. PowerShell does have [a replace operator](https://technet.microsoft.com/en-us...
This worked for me: ``` function CleanUrl($input) { return $input.Replace("http://", "") } ```
15,062
How do I convert function input parameters to the right type? I want to return a string that has part of the URL passed into it removed. **This works, but it uses a hard-coded string:** ``` function CleanUrl($input) { $x = "http://google.com".Replace("http://", "") return $x } $SiteName = CleanUrl($HostHead...
2008/08/18
[ "https://Stackoverflow.com/questions/15062", "https://Stackoverflow.com", "https://Stackoverflow.com/users/636/" ]
Steve's answer works. The problem with your attempt to reproduce ESV's script is that you're using `$input`, which is a reserved variable (it automatically collects multiple piped input into a single variable). You should, however, use .Replace() unless you need the extra feature(s) of -replace (it handles regular exp...
This worked for me: ``` function CleanUrl($input) { return $input.Replace("http://", "") } ```
15,062
How do I convert function input parameters to the right type? I want to return a string that has part of the URL passed into it removed. **This works, but it uses a hard-coded string:** ``` function CleanUrl($input) { $x = "http://google.com".Replace("http://", "") return $x } $SiteName = CleanUrl($HostHead...
2008/08/18
[ "https://Stackoverflow.com/questions/15062", "https://Stackoverflow.com", "https://Stackoverflow.com/users/636/" ]
The concept here is correct. The problem is with the variable name you have chosen. $input is a reserved variable used by PowerShell to represent an array of pipeline input. If you change your variable name, you should not have any problem. PowerShell does have [a replace operator](https://technet.microsoft.com/en-us...
Steve's answer works. The problem with your attempt to reproduce ESV's script is that you're using `$input`, which is a reserved variable (it automatically collects multiple piped input into a single variable). You should, however, use .Replace() unless you need the extra feature(s) of -replace (it handles regular exp...
30,213,220
I am in need to validate phone number & email address in same input field that if user enters letters then it should be show email validation & if user tries to enter phone number it should show the phone number validation. Please help on this issue. I am using bootstrap validator from this <http://1000hz.github.io/boo...
2015/05/13
[ "https://Stackoverflow.com/questions/30213220", "https://Stackoverflow.com", "https://Stackoverflow.com/users/4895440/" ]
Sounds like the above answer is good, but wanted to pass along my response as well. Looks like the same but may have more robust phone number handling.Also demos jquery form submit event handling which is a pattern I prefer. <https://jsfiddle.net/joedonahue/8vasb4nu/9/> ``` <!--HTML--> <form id="myform" name="myform" ...
Email and phone validation using jquery..**[DEMO](https://jsfiddle.net/sheshu036/h4m311cL/2/)** ``` $('#sub').click(function(){ var ep_emailval = $('#email').val(); console.log(ep_emailval); var intRegex = /[0-9 -()+]+$/; if(intRegex.test(ep_emailval)) { console.log("is phone"); if((ep_emailval.length < 9) ...
69,790
Who should I ask to proofread my MSc dissertation? Is proofreading required?
2016/06/04
[ "https://academia.stackexchange.com/questions/69790", "https://academia.stackexchange.com", "https://academia.stackexchange.com/users/55174/" ]
There's no formal process that you are required to use for proofreading, but it's certainly required in the sense that your dissertation should not be full of typos. You are the most important proofreader. You care the most and have special expertise on the specific topic you are writing about, and eliminating errors ...
**Easy and Rewarding Solution!**: First, find a trust worthy class mate who DOES NOT do the simillar dissertation. Second, offer to read his/her dissetation, in exchange he/she read yours. Third, discuss each other dessertation after the reading is done. Fourth, fix your issues. Fifth: repeat if you have more time unti...
69,790
Who should I ask to proofread my MSc dissertation? Is proofreading required?
2016/06/04
[ "https://academia.stackexchange.com/questions/69790", "https://academia.stackexchange.com", "https://academia.stackexchange.com/users/55174/" ]
There's no formal process that you are required to use for proofreading, but it's certainly required in the sense that your dissertation should not be full of typos. You are the most important proofreader. You care the most and have special expertise on the specific topic you are writing about, and eliminating errors ...
I'm now reading the Msc dissertation of a friend but being brutally honest in my comments which she happens to like. It does help that I once was an archaeology student myself. But I think that the more people who read your dissertation before you hand it in, the better. The process of writing up a dissertation isn't j...
69,790
Who should I ask to proofread my MSc dissertation? Is proofreading required?
2016/06/04
[ "https://academia.stackexchange.com/questions/69790", "https://academia.stackexchange.com", "https://academia.stackexchange.com/users/55174/" ]
I'm now reading the Msc dissertation of a friend but being brutally honest in my comments which she happens to like. It does help that I once was an archaeology student myself. But I think that the more people who read your dissertation before you hand it in, the better. The process of writing up a dissertation isn't j...
**Easy and Rewarding Solution!**: First, find a trust worthy class mate who DOES NOT do the simillar dissertation. Second, offer to read his/her dissetation, in exchange he/she read yours. Third, discuss each other dessertation after the reading is done. Fourth, fix your issues. Fifth: repeat if you have more time unti...
43,144,707
I'm trying to get past 7 days and next 7 days date start data and end date using javascript date function. For example : Today 31 march 2017 , When i click previous button, it will calculate from previous date ie: start and end date , (24 March 2017 to 30 March 2017) , again click previous (17 March 2017 to 23 March 2...
2017/03/31
[ "https://Stackoverflow.com/questions/43144707", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1630082/" ]
After doing some searching around and looking at other peoples event handlers I managed to solve this by changing: ``` if($eventName == 'vtiger.entity.beforesave') { if('currentamount' > 20000){ echo "Please go back and enter less than 20000"; exit; }...
In my opinion you should use the recordPreSave function. It's allow you to display an information/error message before to save data on the database Here is an example: In your Edit.js: ``` donCache : {}, checkDon : function(details) { // alert("checkOverlap"); var aDeferred = jQuery.Deferred(); ...
43,144,707
I'm trying to get past 7 days and next 7 days date start data and end date using javascript date function. For example : Today 31 march 2017 , When i click previous button, it will calculate from previous date ie: start and end date , (24 March 2017 to 30 March 2017) , again click previous (17 March 2017 to 23 March 2...
2017/03/31
[ "https://Stackoverflow.com/questions/43144707", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1630082/" ]
After doing some searching around and looking at other peoples event handlers I managed to solve this by changing: ``` if($eventName == 'vtiger.entity.beforesave') { if('currentamount' > 20000){ echo "Please go back and enter less than 20000"; exit; }...
Oh. you have 1 invalid error here. please change: ``` if($eventName == 'vtiger.entity.beforesave') { $currentAmount = $entityData->get('currentamount'); if($currentAmount > 20000){ echo "Please go back and enter less than 20000"; exit; } } ```
4,456,149
Here is my OnClick event: ``` protected void Submit_Click(object sender, EventArgs e) { try { using (SqlConnection con = new SqlConnection(conString)) { using (SqlCommand cmd = new SqlCommand("administratorUpdate", con)) { cmd.Parameters.Add("@originalID"...
2010/12/15
[ "https://Stackoverflow.com/questions/4456149", "https://Stackoverflow.com", "https://Stackoverflow.com/users/316429/" ]
Are you executing the command? ``` using (SqlConnection con = new SqlConnection(conString)) { conn.Open(); //this was missing using (SqlCommand cmd = new SqlCommand("administratorUpdate", con)) { cmd.Parameters.Add("@originalID", SqlDbType.VarChar).Value = IDHF.Value; ...
My trick here is to do this in debug mode without the Try / Catch. The error(s) generated will point to the problem.
47,386,824
i'm trying to make a sorting function and pipe for a table by following [this link](http://www.advancesharp.com/blog/1211/angular-2-search-and-sort-with-ngfor-repeater-with-example) and here is the [plunker](https://plnkr.co/edit/8JxX7HVnO6pJ5M3nSfZq?p=preview) of that example. From the example that i'm following the t...
2017/11/20
[ "https://Stackoverflow.com/questions/47386824", "https://Stackoverflow.com", "https://Stackoverflow.com/users/5819392/" ]
Try to initialize your productList with an empty array: ``` // component.ts: productList: Product[] = []; ``` For more security, to prevent calling *array.prototype.sort* on a variable that is undefined instead of an array, you can add the code below in your filter: ``` transform(records: any, args ? : any): any {...
change the prdSort filter to pass only the property name which you want to be sorted. ``` <tr *ngFor="let product of productList | prdSort: 'prdName' "> ``` You can also include pagination too in the same line
47,386,824
i'm trying to make a sorting function and pipe for a table by following [this link](http://www.advancesharp.com/blog/1211/angular-2-search-and-sort-with-ngfor-repeater-with-example) and here is the [plunker](https://plnkr.co/edit/8JxX7HVnO6pJ5M3nSfZq?p=preview) of that example. From the example that i'm following the t...
2017/11/20
[ "https://Stackoverflow.com/questions/47386824", "https://Stackoverflow.com", "https://Stackoverflow.com/users/5819392/" ]
Try to initialize your productList with an empty array: ``` // component.ts: productList: Product[] = []; ``` For more security, to prevent calling *array.prototype.sort* on a variable that is undefined instead of an array, you can add the code below in your filter: ``` transform(records: any, args ? : any): any {...
As @Faly answered this almost perfectly, but your pipe use is invalid in my guess. From this ``` <tr *ngFor="let product of productList | paginate: { itemsPerPage: 3, currentPage: p } | prdSort: {property: column, direction: direction} "> ``` Change to this ``` <tr *ngFor="let product of productList | paginate: { ...
47,386,824
i'm trying to make a sorting function and pipe for a table by following [this link](http://www.advancesharp.com/blog/1211/angular-2-search-and-sort-with-ngfor-repeater-with-example) and here is the [plunker](https://plnkr.co/edit/8JxX7HVnO6pJ5M3nSfZq?p=preview) of that example. From the example that i'm following the t...
2017/11/20
[ "https://Stackoverflow.com/questions/47386824", "https://Stackoverflow.com", "https://Stackoverflow.com/users/5819392/" ]
As @Faly answered this almost perfectly, but your pipe use is invalid in my guess. From this ``` <tr *ngFor="let product of productList | paginate: { itemsPerPage: 3, currentPage: p } | prdSort: {property: column, direction: direction} "> ``` Change to this ``` <tr *ngFor="let product of productList | paginate: { ...
change the prdSort filter to pass only the property name which you want to be sorted. ``` <tr *ngFor="let product of productList | prdSort: 'prdName' "> ``` You can also include pagination too in the same line
9,182,137
How would ya'll recommend that I convert a FlowDocument to PDF to be attached to an EMail? The FlowDocument is dynamic, not static. I would prefer to be able to store the PDF in memory as a byte[], rather than on disk, but that is negotiable. Thanks for your help!
2012/02/07
[ "https://Stackoverflow.com/questions/9182137", "https://Stackoverflow.com", "https://Stackoverflow.com/users/205241/" ]
I am assuming you want this to occur programmatically rather than as a manual process. **Method 1:** Install a PDF driver such as [Amyuni](http://www.amyuni.com/en/enduser/pdfconverterend) or [PrimoPDF](http://www.primopdf.com/). Print your FlowDocument with the desired PrintTicket / page size, to the print driver. Th...
I managed to get this working with the PDFCreator printer driver. You need to install the driver for this to work, so it may not be an ideal solution for some people. There is a COM interface available. The code more or less looks something like this: ``` PDFCreator.clsPDFCreator _PDFCreator; PDFCreato...
9,182,137
How would ya'll recommend that I convert a FlowDocument to PDF to be attached to an EMail? The FlowDocument is dynamic, not static. I would prefer to be able to store the PDF in memory as a byte[], rather than on disk, but that is negotiable. Thanks for your help!
2012/02/07
[ "https://Stackoverflow.com/questions/9182137", "https://Stackoverflow.com", "https://Stackoverflow.com/users/205241/" ]
I am assuming you want this to occur programmatically rather than as a manual process. **Method 1:** Install a PDF driver such as [Amyuni](http://www.amyuni.com/en/enduser/pdfconverterend) or [PrimoPDF](http://www.primopdf.com/). Print your FlowDocument with the desired PrintTicket / page size, to the print driver. Th...
When I needed to do this I saved the FlowDocument as an XPS file and finally converted to PDF with PDFSharp and deleted the XPS file ``` var test = (IDocumentPaginatorSource)flowDoc; XpsDocument xpsDocument = new XpsDocument(xpsFileLocation, FileAccess.ReadWrite); XpsDocumentWriter writer = XpsDocument.CreateXpsDocume...
9,182,137
How would ya'll recommend that I convert a FlowDocument to PDF to be attached to an EMail? The FlowDocument is dynamic, not static. I would prefer to be able to store the PDF in memory as a byte[], rather than on disk, but that is negotiable. Thanks for your help!
2012/02/07
[ "https://Stackoverflow.com/questions/9182137", "https://Stackoverflow.com", "https://Stackoverflow.com/users/205241/" ]
You have two options that I know of. The first is to use a proprietary library called [NiPDF](http://nixps.com/nipdf/index.html), alternatively you can use Word Interop. 1. Save the FlowDocument to a DOCX file using [Open XML SDK](http://msdn.microsoft.com/en-us/library/bb448854.aspx) 2. Use Word Interop to load the ...
Another option to look at is [FlowDocumentConverter](https://github.com/marcpiechura/FlowDocumentConverter). This is available in a [NuGet package](https://www.nuget.org/packages/FlowDocumentConverter/), but per [documentation](https://github.com/marcpiechura/FlowDocumentConverter) does have a 10 page limitation.
9,182,137
How would ya'll recommend that I convert a FlowDocument to PDF to be attached to an EMail? The FlowDocument is dynamic, not static. I would prefer to be able to store the PDF in memory as a byte[], rather than on disk, but that is negotiable. Thanks for your help!
2012/02/07
[ "https://Stackoverflow.com/questions/9182137", "https://Stackoverflow.com", "https://Stackoverflow.com/users/205241/" ]
Disclaimer: I am writer of XamlToPDF Library, however it is free for any type of use. <http://xamltopdf.codeplex.com/> Its very easy to create PDF, it supports Tables and images as well.
I managed to get this working with the PDFCreator printer driver. You need to install the driver for this to work, so it may not be an ideal solution for some people. There is a COM interface available. The code more or less looks something like this: ``` PDFCreator.clsPDFCreator _PDFCreator; PDFCreato...