text:
Home Bits of Torah Truth Bits of Torah Truths, Parashat Vayechi, Why Judah?
Bits of Torah Truth
Bits of Torah Truths, Parashat Vayechi, Why Judah?
This week's reading from Parashat Vayechi (Bereshit / Genesis 47:28-50:26) contains the final chapters of the book of Genesis. The opening verses tell us that Jacob lived in the land of Egypt seventeen years and his total life span was 147 years. Before Jacob died he asked Joseph saying 47:30 but when I lie down with my fathers, you shall carry me out of Egypt and bury me in their burial place.' And he said, 'I will do as you have said.' (NASB) Jacob tells Joseph that his two sons (Manasseh and Ephraim) will be his (48:5) and declares that Joseph's descendents after him shall be called after their names (48:6). Jacob blesses Joseph's children placing Ephraim (second born) before Manasseh (first born) saying the younger will be greater than the older (48:10-20). Jacob then proceeds to proclaim a blessing over his children. In the midst of Jacob's blessing over his sons he provides us with a Messianic expectation in his statements to Judah saying, 49:10 The scepter shall not depart from Judah, Nor the ruler's staff from between his feet, Until Shiloh comes, And to him shall be the obedience of the peoples. (NASB) The statements that Jacob declares over Judah appear to make a distinction between him and his brothers. Studying Judah's life, why are such great things said about Judah as compared to his brothers? What is it about Judah that sets him apart to be given a messianic expectation of greatness?
ספר בראשית פרק מט
ח יְהוּדָה אַתָּה יוֹדוּךָ אַחֶיךָ יָדְךָ בְּעֹרֶף אֹיְבֶיךָ יִשְׁתַּחֲווּ לְךָ בְּנֵי אָבִיךָ: ט גּוּר אַרְיֵה יְהוּדָה מִטֶּרֶף בְּנִי עָלִיתָ כָּרַע רָבַץ כְּאַרְיֵה וּכְלָבִיא מִי יְקִימֶנּוּ: י לֹא-יָסוּר שֵׁבֶט מִיהוּדָה וּמְחֹקֵק מִבֵּין רַגְלָיו עַד כִּי-יָבֹא שִׁילֹה וְלוֹ יִקְּהַת עַמִּים: יא אֹסְרִי לַגֶּפֶן עִירֹה [עִירוֹ] וְלַשּׂרֵקָה בְּנִי אֲתֹנוֹ כִּבֵּס בַּיַּיִן לְבֻשׁוֹ וּבְדַם-עֲנָבִים סוּתֹה [סוּתוֹ] : יב חַכְלִילִי עֵינַיִם מִיָּיִן וּלְבֶן-שִׁנַּיִם מֵחָלָב:
Bereshit / Genesis 49:8-12
49:8 'Judah, your brothers shall praise you; Your hand shall be on the neck of your enemies; Your father's sons shall bow down to you. 49:9 'Judah is a lion's whelp; From the prey, my son, you have gone up. He couches, he lies down as a lion, And as a lion, who dares rouse him up? 49:10 'The scepter shall not depart from Judah, Nor the ruler's staff from between his feet, Until Shiloh comes, And to him shall be the obedience of the peoples. 49:11 'He ties his foal to the vine, And his donkey's colt to the choice vine; He washes his garments in wine, And his robes in the blood of grapes. 49:12 'His eyes are dull from wine, And his teeth white from milk. (NASB)
Judah was not a perfect character according to the Torah's description of his life. The Scriptures tell us that he was the one who was motivated by profit to get rid of their brother Joseph (Bereshit / Genesis 37:26). He did not behave as a righteous man in faith with his daughter-in-law Tamar (Bereshit / Genesis 38:26) , and he had sex with her as a prostitute (Bereshit / Genesis 38:18). He did however show good character when he interceded and offered himself as a substitute for Benjamin his brother (Bereshit / Genesis 44:18-34). Jacob describes the blessing over Judah saying his brothers will praise him, he will be as a lion, the scepter will not pass from between his feet, and to him will be the obedience of the people. These things are describing a person having a leadership position among his brothers. Why do you think the Lord chose Judah as the one to pass on these things?
Studying Midrash Rabbah, it is interesting to note that Parashat 97, the entire midrash is devoted to Jacob blessing his sons. According to the midrash, Judah takes pre-eminence in the rabbinic discussions on Jacob's blessing over his sons. A few select sections from Midrash Rabbah Bereshit, Parashat 97 are shown here to illustrate what the rabbis have to say about Judah.
Midrash Rabbah Bereshit, Parashat 97
Judah, Thee will your brother praise (Bereshit / Genesis 49:8). Because you confessed, your brethren will praise you in this world and in the future world. And in accordance with the blessing of his father Jacob thirty kings were descended from him, as it says, Now these are the generations of Perez… David (Ruth 4:18); count David, Solomon, Rehoboam, Abijah, Asa, Jehoshaphat until Jeconiah and Zedekiah and you will find thirty. And so it will be in the future world (the Messianic Era), And David MY servant will be their prince for ever (Ezekiel 37:25).
From the tribe of Judah sacrifices were first offered at the dedication of the Altar; from the tribe of Judah came forth Caleb. Furthermore, Judah was the first in the journeys of Israel, as it says, And in the first place the standard of the camp of the children of Judah set forward (Bamidbar / Numbers 10:14); likewise when they pitched their camps; Now these that pitch on the east side toward the sun rising will be of the standard of the camp of Judah (Bamidbar / Numbers 2:3).
From Judah there came forth Othniel, the first of the Princes who were the Judges, as it says, And when the children of Israel cried unto the Lord, the Lord raised up a savior to the children of Israel, who saved them, even Othniel the son of Kenaz, Caleb's younger brother (Joshua 3:9). From the tribe of Judah came forth Boaz. The throne of Israel was given to Judah through the righteous David, to him and to his sons was a covenant made with salt, as it says, and the Lord said unto Samuel, How long will you mourn for Saul? Fill your horn with oil and go, I will send you to Jesse the Beth-lehemite; for I have provided unto Me a king among his sons (1 Samuel 17:1), wherever "unto Me" occurs it means for all time.
Furthermore, the royal Messiah will be descended from the tribe of Judah, as it says, And it will come to pass in that day, that the root of Jesse, that stands for an ensign of the peoples, unto him will the nations seek (Isaiah 11:10). Thus, from the tribe of Judah were descended Solomon, who built the first Temple, him will be descended the royal Messiah, who will rebuild the Temple. Thus, we find these two tribes, Judah and Levi, are the most distinguished in their lineage of all Israel since in them were royalty and priesthood.
In Midrash Rabbah Bereshit, Parashat 97, the rabbis say that Judah's brethren will praise him in this world and in the world to come. How did his brother praise him in this world? The rabbis say this leadership position among his brothers meant that kings of Israel would come from Judah. The connection is made to David and the Future Messiah, God's ultimate leader, who would eventually come from the tribe of Judah. Various examples are given in the Tanach to demonstrate Judah's pre-eminence, Judah sacrificed first to dedicate the altar, Caleb came from Judah, and Judah was the first to lead the way being encamped on the east side of Israel (Bamidbar / Numbers 2:3). The midrash provides examples of princes. Midrash Rabbah states that "the royal Messiah will be descended from the tribe of Judah, as it says, And it will come to pass in that day, that the root of Jesse, that stands for an ensign of the peoples, unto him will the nations seek" (Isaiah 11:10). It is interesting to note the messianic significance of this blessing, both the Aramaic Targumim and the rabbis attest that these verses speak of the Messiah.
The Torah states, 49:10 'The scepter shall not depart from Judah, Nor the ruler's staff from between his feet, Until Shiloh comes, And to him shall be the obedience of the peoples. It is interesting to note, in the narrative in the Torah, the leadership prophecy took some 640 years to fulfill in part with the reign of David, the first of Judah's dynasty of kings. In addition to this, the prophecy took some 1600 years to be complete in Yeshua the Messiah. Note from David until the time of king Herod, a prince of Judah was head over Israel (One could consider Daniel as a leader in the captivity in Babylon.). The promise was that Israel would keep this scepter until Shiloh comes. Even under foreign servitude, Israel had a limited right to self-rule, until the first century. at which time, under Herod and the Romans, Israel's right to capital punishment was taken away.
The remaining portion of the blessing to Judah says, 49:11 'He ties his foal to the vine, And his donkey's colt to the choice vine; He washes his garments in wine, And his robes in the blood of grapes. 49:12 'His eyes are dull from wine, And his teeth white from milk. (NASB) This is a close description of Yeshua's life and of Judah's wealth. The blessing contains a description of the choice vine, whose garments are washed in wine, and whose teeth are white from milk. Wine as a reference to the dulling of pain, and milk to nourishment, life, and health.
In looking at the life of Judah and his character, there is some difficulty to see why the tribe of Judah should become so prominent among the tribes of Israel. In the narrative from the last three Parshiot, we learn that Joseph lived a righteous life. In Parashat Vayechi Joseph was blessed with the birthright in place of Reuben, the firstborn. We learn how the name of "Israel" is passed on to his two sons, Ephraim and Manasseh. The rabbis pick up on this in the rabbinic literature and consequentially us Ephraim as a reference to all of Israel. According to the Scriptures, the Lord God chose Judah and his descendants to occupy a special place in His plan through the ages. The prophecy God gave to Jacob at the end of his life concerning his sons' descendants "in the latter days" revealed a special blessing for the tribe of Judah (Bereshit / Genesis 49:1-10). In Jacob's blessing of Judah, he said, "Judah, you are he whom your brothers shall praise; your hand shall be on the neck of your enemies; your father's children shall bow down before you. Judah is a lion's whelp; from the prey, my son, you have gone up. He bows down, he lies down as a lion; and as a lion, who shall rouse him? The scepter shall not depart from Judah, nor a lawgiver from between his feet, until Shiloh comes; and to Him shall be the obedience of the people" (Bereshit / Genesis 49:8-10). The Lord God looked at Judah as a strong warrior and likening him to a young lion sleeping in its den after devouring its prey. Perhaps it was this strength of character and determination that God foresaw in this tribe that influenced Him to choose Judah to be His lawgiver and the tribe from which His Son would later be born (Hebrews 7:14). David was inspired by Bereshit / Genesis 49 to twice say in the Psalms that "Judah is My lawgiver" (Tehillim / Psalms 60:7 and 108:8). The Apostle Paul said, "What advantage then has the Jew? … Much in every way! Chiefly because to them were committed the oracles [that which was spoken or commanded] of God" (Romans 3:1-2). Throughout the centuries, Judah (the Yehudim) have faithfully preserved the Scriptures. After the death of Joshua, God chose the tribe of Judah to take the lead in conquering the nations who were living in the land promised to the children of Abraham (Judges 1:2). The book of Judges in the first few chapters tell us that the tribe of Judah was aggressive and strong in driving out the Canaanites in the southern half of the land of Canaan. In the time of King David, the tabernacle of God had long been in Shiloh in the territory of Joseph. David set the stage for the temple to be built on Mount Zion, the place where the Scriptures say Zion "which He (God) loved," will be moved to the tribe of Judah (Tehillim / Psalm 78:67-70). The Lord God chose David to be His shepherd and Jerusalem (Mount Zion) for His place to dwell. The Lord also chose David to hold the "scepter," a symbol of kingship that would always remain in the tribe of Judah (Bereshit / Genesis 49:10, Tehillim / Psalm 89:34-37). The prophet Zechariah, following the prophecy of the invasion of Israel and Jerusalem, announced the good news of the coming of the Messiah saying, "And in that day His feet will stand on the Mount of Olives. … And the LORD shall be King over all the earth" (Zechariah 14:4, 9). The prophet Jeremiah also spoke of this same time when he said, "In His days Judah will be saved, and Israel will dwell safely; now this is His name by which He will be called: THE LORD OUR RIGHTEOUSNESS" (Jeremiah 23:6).
The good news that comes from the tribe of Judah into this world is the "Lion of the tribe of Judah," Yeshua the Messiah (Revelation 5:5), who came, laid his life down for ours, and raised from the grave to life everlasting. O one day he will return to establish the Kingdom of God on earth, and the tribe of Judah, all of Israel will finally accept the Lord's Redeemer (Romans 11:26). Have you accepted, believed, and received the Lord's redeemer in your life? BTT_Parashat Vayechi-2014
Previous articleTehillim / Psalms 57, Part 2, In the Shadow of His Wings
Next articleBits of Torah Truths, Parashat Shemot, Spiritual Complacency
Dr Duane D Miller PhD-LIVE-Serving Demons and Being Set Free, פרשת האזינו, Parashat Ha'azinu, Bits of Torah Truths – Digging Deeper
Serving Demons and Being Set Free, פרשת האזינו, Parashat Ha'azinu, Bits of Torah Truths – Digging Deeper
The Perfect Shape? The Ancient Universal Equation for the Shape of an Egg – A Spiritual Insight
Parashat Vayikra, The Salt of the Covenant of our God
Dr. Duane D Miller PhD – LIVE – ישעיהו א:י-כ /...
Bits of Torah Truths, Parashat Vayigash, Believing a lie and taking...
Watch Dr. Duane D. Miller PhD Discuss the Acceptance of Demonic...


including currently available Bolivicereus, and Bolivicereus for which we do not have a current source.
Search and Shop also allows for searches with just bits of the name: cap iki Useful if you only have part of the name. Spaces are used as wildcards: Bolivicereus.


SNP Member of the European Parliament Alyn Smith has today, Tuesday, highlighted the poor performance of the UK in reducing inequality.
The MEP has highlighted a publication by Eurostat, the European statistics agency, that demonstrates the UK measure of "severely materially deprived people" has risen by 84% from 2008 to 2013 compared to an EU average rise of 13%.
Belgium (5.6%), Czech Republic (6.6%), Denmark (3.8%), Germany (5.5%), Estonia (7.6%), France (5.4%), Luxembourg (1.8%), Netherlands (2.5%), Austria (4.2%), Finland (2.5%), Sweden (1.4%), Iceland (1.9%), Norway (1.9%) or Switzerland (1%).
Currently eight of every 100 UK citizens will be severely deprived contrasting with just one Swede, two Icelanders or Norwegians and five French or German citizens.
The UK in particular has performed poorly as the number of severely materially deprived people has grown by 84% (from 4.5% to 8.3%) instead of a 13% (from 8.5% to 9.6%) increase EU wide.
"This is a grim picture from across Europe, and it proves that too many people are struggling to get by in too many countries. But it also disproves the myth that the UK is somehow doing well. Relative to a number of other European countries, UK poverty levels compare very badly, and UK inequality is not getting better, it is getting worse.
"These figures underline that Scotland could do better, and can only add to the consensus in Scotland that we need full job creating and welfare powers to spur our economy and protect our most vulnerable."


Bring on some Christmas fun by putting color on this free and unique set of candy cane coloring pages. The sweet is not only yummy to savor but also holds a significant position in Christmas decorations. Just the sight of candy cane adornments on a Christmas tree lights up so many hearts. The candy canes can also be made into reindeer and wreaths for the front door. Children can't keep their eyes off the printable page that depicts a candy cane inserted in a Christmas stocking and decked with ribbons. The printable pages are all Christmas bells, holly leaves and ribbon bows apart from the sweet candies. Kiddos are sure going to raid their color boxes for their reds and greens for this activity. They are going to love Olaf of Frozen fame holding a candy cane in his twig hand. One of the candy canes has a Santa hat on while another one has Santa Claus himself by its side. The candy canes would look best when the stripes on them are painted alternately in reds leaving the intermediate stripes plain white.


Anyone who doesn't believe this isn't headed to insurrection – may want to take note of this. There has been a massive effort by Scientists, Government Worker, and Hackers to back up US Databases to European Servers in order to protect the data, starting the day after it was announced the Chumph "won" the presidency. Such effort goes far beyond what this article discusses – an an all out effort to protect information from the Chumph's filthy racist scum.
So far, we can see that the Chumph has suborned some of Homeland Security's TSA people. Specifically at Dulles Airport in Washington, DC – where TSA/Homeland Security refused the Legal orders of a Federal High Court in violation of the Constitution, and their charter. While officers from the same department carried out the Court Orders in the rest of the country. This is the beginning of a Constitutional Crisis, and with the Chumph doubling-down on his Executive Order is an Impeachable Offense which is a violation of his Oath of Office.


text:
Yu v Registrar-General of New South Wales
our new case in the Supreme Court of NSW
NEW SOUTH WALES SUPREME COURT
Yu v Registrar-General of New South Wales [2010] NSWSC 353
FILE NUMBER(S):
HEARING DATE(S):
JUDGMENT DATE:
EX TEMPORE DATE:
PARTIES:
Plaintiff: Hengfeng Yu
1st Defendant: Registrar-General of New South Wales
2nd Defendant: Wun Cheung Chan
3rd Defendant: Council of the Law Society of New South Wales
JUDGMENT OF:
White J
LOWER COURT JURISDICTION:
LOWER COURT FILE NUMBER(S):
LOWER COURT JUDICIAL OFFICER:
COUNSEL:
Plaintiff: J Gormley
1st Defendant: n/a
2nd Defendant: n/a
3rd Defendant: Ms L Tang
SOLICITORS:
Plaintiff: Wang & Associate Solicitors
3rd Defendant: Law Society of NSW
CATCHWORDS:
PRACTICE AND PROCEDURE – service of originating process – whether court has power to dispense with service without substituted service – order for substituted service under rule 10.14 of Uniform Civil Procedure Rules – requirements for substituted service
LEGISLATION CITED:
Legal Profession Act 2004 (NSW)
Evidence Act 1995 (NSW)
Procedural and other rulings
CASES CITED:
Laurie v Carroll (1958) 98 CLR 310
White v Weston [1968] 2 QB 647
Porter v Freudenberg [1915] 1 KB 857
Chappell v Coyle (1985) 2 NSWLR 73
TEXTS CITED:
Dicey, Conflict of Law, 6th ed (1949)
DECISION:
Refer to paras 28 and 29 of judgment.
IN THE SUPREME COURT
OF NEW SOUTH WALES
EQUITY DIVISION
2010/67122 Hengfeng Yu v Registrar-General of New South Wales & 2 Ors
1 HIS HONOUR: These proceedings were commenced on 16 March 2010. The plaintiff alleges, and has filed affidavits which unless contradicted would prove, that the second defendant, Mr Chan, defrauded the plaintiff and by forgery became registered as the proprietor of a property in Granville which is beneficially owned by the plaintiff.
2 The affidavits read by the plaintiff establish that the plaintiff retained Mr Chan as his solicitor to purchase the property, that the vendor of the property signed a contract with the plaintiff and executed a transfer of the property in favour of the plaintiff, that the plaintiff provided the purchase price, but Mr Chan registered himself as the owner of the property and forged a transfer for that to be done.
3 The plaintiff deposes that Mr Chan told him that he, Mr Chan, was required to hold the original contract for five years and that he did not know and was not told that the transfer was to be registered. He was unaware that the property for which he paid was registered in Mr Chan's name. It appears that Mr Chan raised moneys on the security of the property by executing a mortgage in favour of Nationwide Capital Pty Limited. Mr Chan's practising certificate has been suspended.
4 In October 2008 a manager was appointed to Mr Chan's practice pursuant to s 623(2) of the Legal Profession Act 2004 (NSW). A claim has been made on the Fidelity Fund. The Fidelity Fund has paid the moneys necessary to discharge the mortgage.
5 The plaintiff's current solicitor now holds the certificate of title to the property which is still registered in the name of Mr Chan. The plaintiff seeks orders for the cancellation of the certificate of title and the issue of a new certificate of title by the Registrar-General in his name.
6 The difficulty in the present application is that Mr Chan has not been served. The plaintiff did not know his whereabouts, or whether he was in Australia when proceedings were commenced. The manager appointed to Mr Chan's practice, a Mr Collins, deposes that it appeared that Mr Chan had occupied part of the first floor of the office premises as his place of residence. It does not seem that he still resides there.
7 Mr Collins spoke to Mr Chan in May 2009 and arranged an appointment which Mr Chan was to attend. Mr Collins has had no further contact with Mr Chan since that conversation and has had no response to his correspondence. Mr Collins has advertised in the Law Society Journal seeking information as to Mr Chan's whereabouts but has not received any reply from anyone to that advertisement.
8 The matter has been placed in the hands of the police. The plaintiff's solicitor deposes that on 22 March 2010 he was told by a Detective Constable Williams that he was in the process of investigating Mr Chan's whereabouts and would be knocking on some doors soon. Detective Constable Williams told the plaintiff's solicitor that:
"We have an idea of who to ask but we can't say where he is, he could be overseas by now."
9 More recently, Detective Constable Williams has told another solicitor in the firm acting for the plaintiff that he has been told by the Department of Immigration that Mr Chan left the country on 13 August 2009 and his whereabouts are currently unknown. Detective Constable Williams said that he would try to find out from the Immigration Department which country Mr Chan is in at the moment, and once located he would talk to his supervisor about seeking an extradition order, but whether that would be practicable would depend on what country he was in.
10 I was told by the plaintiff's solicitor that Detective Williams also conveyed that the Department of Immigration understood that Mr Chan had left Australia for Hong Kong.
11 No order has been made for substituted service. Today the plaintiff seeks the final substantive relief in the statement of claim and seeks an order that service on Mr Chan be dispensed with.
12 The first question is whether there is power to make such an order. The action between the plaintiff and Mr Chan is personal action. It is not an action in rem. In Laurie v Carroll (1958) 98 CLR 310 at 323-324, the High Court quoted with approval from Dicey, Conflict of Law, 6th ed (1949) at 172 that:
"The service of the writ or something equivalent thereto is absolutely essential as the foundation of the court's jurisdiction. Where a writ cannot legally be served upon a defendant the Court can exercise no jurisdiction over him. In an action in personam the converse of this statement holds good and wherever a defendant can be legally served with the writ, there the court, on service of being effected, has jurisdiction to entertain an action against him. Hence in an action in personam the rules as to the legal service of a writ define the limits of the court's jurisdiction. Now, a defendant who is in England can always, on the plaintiff's taking proper steps, be legally served with a writ. The service should be personal, but if personal service cannot be effected the court may allow substituted or other service."
13 No order for substituted service has been made. There is no direct evidence that Mr Chan was outside Australia when the proceedings were commenced. But pursuant to s 75 of the Evidence Act 1995 (NSW) I can act on the hearsay evidence to which I have referred.
14 The fact that Mr Chan was apparently outside Australia when proceedings were commenced does not deprive the Court of jurisdiction. Service could be effected outside Australia pursuant to r 11.2 and paragraph (j) of schedule 6 to the Uniform Civil Procedure Rules.
15 The question is whether I can make the orders sought when Mr Chan has not been served, and no order has been made for substituted service. It is submitted for the plaintiff that I could dispense with service pursuant to r 10.1 of the Uniform Civil Procedure Rules. That rule provides relevantly:
"10.1(1) Unless the court orders otherwise, a party that files a document must as soon as practicable serve copies of the document on each other active party."
16 No authority was cited in support of the submission that that rule authorised the Court's dispensing with service of the originating process. Any rule for dispensing with service of originating process is to be strictly construed. In White v Weston [1968] 2 QB 647, Sachs LJ said (at 660) that:
"… only an explicit and clear provision in a statute, or in rules having statutory force, can operate to deprive a citizen of this right to receive notice of the commencement of the process against him …"
17 Rule 10.1 is a general rule relating to service of documents in proceedings. It contemplates that at the time documents that have been filed are to be served there will be other active parties. Prior to service of the originating process the defendants could not be said to be active parties.
18 Other rules such as r 10.15 dealing with service of originating process in proceedings for possession of land make express provision for modifying the rules in relation to service of originating process. In my view, r 10.1(1) does not dispense with what is otherwise an essential requirement for the Court to have jurisdiction.
19 It seems to me that I do not have jurisdiction to make the orders sought unless and until an order is made for substituted service pursuant to r 10.14 and that order is complied with.
20 That rule provides:
"10.14 Substituted and informal service generally
(1) If a document that is required or permitted to be served on a person in connection with any proceedings:
(a) cannot practicably be served on the person, or
(b) cannot practicably be served on the person in the manner provided by law,
the court may, by order, direct that, instead of service, such steps be taken as are specified in the order for the purpose of bringing the document to the notice of the person concerned.
(2) An order under this rule may direct that the document be taken to have been served on the person concerned on the happening of a specified event or on the expiry of a specified time.
(3) If steps have been taken, otherwise than under an order under this rule, for the purpose of bringing the document to the notice of the person concerned, the court may, by order, direct that the document be taken to have been served on that person on a date specified in the order.
(4) Service in accordance with this rule is taken to constitute personal service."
21 It was submitted for the plaintiff that I should make an order nunc pro tunc directing that service of the documents which has been effected on the Law Society and on the police be taken to be sufficient service under r 10.14(1).
22 It does not appear to me that service which has been effected on the Law Society and on the police was effected for the purpose of bringing these proceedings and the documents filed in them to the notice of Mr Chan. The Law Society is itself a defendant, as relief is claimed in the statement of claim against it in relation to orders the plaintiff sought pursuant to s 445 of the Legal Profession Act for indemnity in relation to costs.
23 It does not appear that the Law Society was asked to pass on the documents to Mr Chan, as distinct from passing them on to the manager of Mr Chan's practice, Mr Collins. Nor is it at all probable that the police would be expected to pass on the documents to Mr Chan for whom they are still looking. Detective Constable Williams had said "Obviously I don't want to call Bob Chan."
24 I do not consider that the service which has already been effected on those persons could be construed as being service made for the purpose of bringing the documents to Mr Chan's notice.
25 There is no doubt that r 10.14(1)(a) and (b) are both satisfied. There is authority that for substituted service to be permitted it must be clearly shown that the documents to be served are likely to reach the defendant or to come to his knowledge if the method of substituted service which is asked for by the plaintiff is adopted (Porter v Freudenberg [1915] 1 KB 857 at 888; Chappell v Coyle (1985) 2 NSWLR 73 at 76 ff).
26 However it is not a requirement of the rule that steps taken pursuant to an order made under r 10.14 be likely to bring the document to the notice of the person concerned before an order can be made directing that the person be taken to have been served. Rather, steps must be taken for the purpose of bringing the document to the notice of the person concerned.
27 There is no address known to the plaintiff at which documents could be left which might be thought would then come to the notice of Mr Chan. It is possible that advertisements in a national paper in Australia and in a major newspaper in Hong Kong would achieve that purpose.
28 Accordingly, pursuant to r 10.14, I direct that instead of service of the statement of claim and affidavits filed in these proceedings on the second defendant the plaintiff, within 28 days, advertise in The Australian newspaper and in the South China Morning Post in Hong Kong the fact that proceedings have been instituted by the plaintiff in the Supreme Court of New South Wales against the second defendant in which orders are sought that the Registrar-General cancel the certificate of title in the name of second defendant in respect of the land referred to in paragraph 2 of the statement of claim, and the Registrar-General issue a new certificate of title showing the plaintiff as the registered proprietor of that property, and also stating that information and documents in relation to the proceedings can be obtained from the plaintiff's legal representative, Mr Jay Wang of Wang & Associate Solicitors and providing the contact details of Mr Wang. The advertisement should also state that the proceedings will be returnable before the Court on 20 May 2010 and if there is no appearance by Mr Chan or a person on his behalf at that time orders may be made in his absence.
29 Assuming that the order for substituted service is complied with, then the documents will be taken to have been personally served on Mr Chan and on the next occasion the Court would have jurisdiction to make the orders sought. If short minutes are handed up on that occasion they should include an order for the plaintiff to deliver the duplicate certificate of title presently held by him or his solicitor to the Registrar-General for cancellation.

redpajama_set_name: RedPajamaCommonCrawl


text:
Which? blasts big six energy firms over paltry price reductions
Updated February 3, 2015 09:56 GMT
Consumer group Which? said recent reductions to energy bills should be twice the size of the concessions on offer and should have come a lot sooner.
Which? said the "big six" energy firms, which together supply 95% of consumers, should be reducing prices by up to 10.3%.
The consumer body says that energy firms have failed to align retail prices with wholesale gas prices. Meanwhile, energy has cost consumers £2.9bn over the last year, or about £145 per household.
Which? executive director Richard Lloyd said: "Our analysis places a massive question mark over how suppliers have been setting prices over the last two years.
"They now need to explain to their customers why bills don't fall further in response to dropping wholesale prices. Energy bills are consistently the top consumer concern so it's about time people got a fair deal."
Npower, British Gas, E.On, Scottish Power and SSE recently announced that they will be reducing bills by between 3.5% and 5%. EDF Energy will reduce prices by 1.3%. Meanwhile, wholesale gas prices have fallen by 20% since the start of December 2014.
The consumer body says that energy firms have failed to align retail prices with wholesale gas prices, which have cost consumers £2.9bn over the last year - £145 per household.
Which? says that it has submitted the findings of its research to the Competition and Markets Authority.
"While the competition inquiry should establish beyond doubt whether the price people are paying today is right, consumers will now look to politicians of every party to set out how they'll deliver fair and affordable energy prices in the future," added Lloyd.
Energy UK calls Ofgem \'outdated, biased and inaccurate\' as report voices competition concerns
EDF Energy: Last of \'big six\' to drop gas prices will offer 1.3% reduction
SSE to slash gas prices by 4.1% from end of April
Npower announces 5.1% energy price reduction from mid-February


text:
layout: post
title: Automate Pod Spec Pushing
modified:
categories: blog
excerpt: If you have ever used private pods, you are probably familiar with the process of updating the version number, lint the pod, and then push it up to your private repo...
tags: []
image:
  feature:
date: 2015-11-28T20:13:00+01:00
---

If you have ever used private pods, you are probably familiar with the process of updating the version number, lint the pod, and then push it up to your private repo. If you on top of that use git-flow as you work process, which I highly recommend that you do, you have to decide when to push your spec. Should you do this on the developing branch, the release branch or on the master branch. Well the pod will probably refer to the version you tag the commit with, so it makes sense to push the spec on the master branch.

But if the library you have is a multiplatform library, you may not be the one developing this library, and it may not even be developed on OS X. This means you or someone else on a mac will have to deal with updating the pod spec. Of course this is possible, but it is actually alot of extra work, let me try to describe the process.

First of all, the person responsible for the library have to publish the release branch, then you (or whoever will update the pod spec) will have to pull the release branch, update the pod with the new version. Then you lint, to check if everything is ok, but you do not want to push the pod yet, as anyone else using this pod, might update, and get the new version, which is not available yet because you are still on the release branch, and the tag does not exist yet. So you have to push the release branch, wait for the responsible person to finish the release, and once everything is in the master branch, with tag and all, you can push the pod. After you pull the repo again of course.

Dealing with all this is somewhat cumbersome, so I propose a different solution:
Let your CI do the job.

Here is how I have done it.

1. Create a template for you podspec in the repo of the source code.
2. Create a script that can update the version, and push the spec.
3. Make the script available to your CI.
4. Whenever the master branch is beeing built on your CI the script will automatically run, updating the version to the current tag, lint the spec and push it.

I have even done this for the develop branch so that it is possible to get snapshot versions of the library, to develop things in parallell. An extra added bonus is that if the linting fails on your CI you will know immediately you have to fix something, be that new source files or other dependencies. Also you can have the version in you pod formatted like this: x.y.z-SNAPSHOT so anyone using that pod knows it is under development.

This actually makes sense in several ways. You skip the whole cycle of pulling and pushing the release branch of the library. The pod repo will be updated every time your CI builds either the snapshot or the final release. You don't have to fiddle around with manually updating the spec.

Let me know if you have any opinions in regard to this.

redpajama_set_name: RedPajamaGithub


text:
@interface BranchProvider : ARAnalyticalProvider

- (id)initWithAPIKey:(NSString *)key;

@end


Today was a super-long day spent visiting a bunch of New York City highlights – actually two museums and three parks.
It was cool to walk through the world-famous Central Park, and soon we found ourselves at the Metropolitan Museum of Art. After a quick peek into the gift shop and a glance at the map, we went to the Egyptian wing to view the antiquities and the amazing Temple of Dendur. This room is so impressive yet tranquil. I loved it! I remember this room from when I visited New York in the 90s and it was just as stunning today as it was back then.
From there we continued on through the American wing, then across to the Greek and Roman exhibits. They were impressive as well, and just imagining these ancient works of art in their original time and settings was mind-boggling.
There is so much to see at the Met, but we had a lot on our agenda so we grabbed a coffee and a sandwich at the cafe and made our way to our next destination.
We arrived at the High Line after a short trek across Central Park, then a quick subway ride. The High Line is an elevated walkway on the western side of the island, and is actually a State Park (our second park of the day for those keeping score). I imagine it would be a wonderful walk on an early autumn evening, but in the middle of a July day, it was kind of too crowded and hot. It was difficult to stop and just kick back. And I couldn't find a nice way to photograph it. But it was still fun to walk a bit on it.
And it was a nice route to take to get to our next destination, the Whitney Museum.
After leaving the Whitney, we took the subway back to the Roosevelt to pick up our bags, then decided to take an Uber to our Airbnb, which was up in Harlem. The drive up Madison Avenue to 126th was straight, but what a crazy ride… weaving in and out of traffic. Whew!
We settled into the Airbnb and chatted with our host who lived in the apartment above where we were staying and she gave us some good tips for our stay in NYC. But we couldn't rest for very long because we had tickets to the big game between the Mets and the Yankees. ⚾ Thankfully, it was a quick subway ride from Harlem to the Bronx and soon we were in our seats up in the nosebleed section. Yes, our third park of the day was a ballpark: Yankee Stadium!
Before going back to our Airbnb, we decided to get a bite to eat at Harlem Shake, which is a really cool diner with a bit of a Jamaican vibe to it. I ordered the Harlem Jerk, which was a burger with jerk-flavored fries on top. It was delicious! I washed it down with a Harlem lager, and Bay had a shake. A yummy way to end a long day.
Today we made a pilgrimage of sorts to the home of our favorite baseball team, the Los Angeles Dodgers. We've done the tour before, by it was my nephew's first time so we decided to all take it again. I'm glad we did, because the tour has been improved since we took it a few years ago, with more interesting historical facts, a tour of the press box, and generally more time to spend in each location, including the dugout.
Well, the Dodgers made it to game 7 of the World Series, but unfortunately lost to the Houston Astros. It was tough to watch but I think they still had an amazing year, with many records broken. There's always next year, right?
It's funny, but I stress out so much when the Dodgers play, that now that the series is over, the stress has left me. Even with a loss, the uncertainty is gone. So I'm sure I will have better days ahead!
Tonight during the game, we enjoyed another fantastic and delicious dinner of Japanese style hamburg steak over rice, with a wine sauce and egg. I guess you could also say it was a super-fancy loco moco. In fact, we had a Hawaiian-style macaroni salad to go with it. So yummy!


A good number of us are wondering about what is visiting to happen next. The right way good would that automatically be if we could realize that the future before this kind of arrives There are several practices that the guys and women believe in. some imagine in reading the palms, some believe making astrology based on the meeting and time and a lot other believe on tarot cards reading. Tarot reading are believed in a tool that can predict that this future for a precise event. When you will definitely be in a situation just what is confusing and manage not know if a person will need to proceed as well as that then Tarot searching can help you arrive the way. There may be many area of existence that can be sorted out out with the improve of tarot reading akin to job, relationships, family issues, finance, how to together with enemies and many increasing.
When you don't comprehend the direction that your days are moving in then a practiced tarot readier can help you out find the correct walk. Tarot reading is based on tarot cards that mystical tools that features different things in particular occasions. There are something more important drawn on different enjoying and a professional tarot cards card reader can only real tell you what it indicates for the respective position. There are different people who have different option regarding this. Some suspect that death card symbolize health issues of the person or simply close relative. Some believes that reading individual card will bring catastrophe. But none of them are true the details are not to get skeptical because of this and leave one particular prediction to the tarot cards card reader.
If you think that particular tarot card can anticipate future then you get completely wrong. It clearly tells the possible product but there is a chance that it will undoubtedly come true. tarot readings will depend on the belief regarding art form that varies from person to woman / man.


text:
Indust
Small Systems
By Shawn Whitmer & Heather Jennings
Paper Champion
Wastewater nutrient changes lead to savings for mill owners
The pulp and papermaking industry is very water-intensive and ranks third in the world in terms of freshwater withdrawal—as much as 60 cu m of water per ton of paper produced. As pulp and paper mills strive to survive in increasingly difficult economic times, many mills attempt to improve and expand their production processes. Consequently, this generates larger volumes of contaminated wastewater and increased use of chemicals to deal with that contamination. The treatment systems can easily become unbalanced or insufficient to meet the increased loadings.
Wastewater Microorganisms & Nutrition
Microorganisms are the backbone of biological treatment processes and require specific micro- and macronutrients to efficiently and cost-effectively treat wastewater. Under the right conditions, microorganisms consume and digest contaminants, usually converting them to small amounts of water and harmless gasses such as carbon dioxide and methane (process dependent). A stable microbial ecosystem requires specific macronutrients (nitrogen, phosphorous, sulfur, potassium, etc.) and micronutrients (zinc, manganese, molybdenum, etc.), as well as a carbon source in order for microorganisms to survive, replicate and consume/treat wastes. Each vitamin and mineral is essential to microbial growth and metabolism and has a unique and specific function to perform. Signs of nutrient deficiency include sludge bulking, foaming, poor settleability, inefficient removal of suspended solids, odor, excess sludge accumulation and inefficient removal of BOD or COD. For example, many foaming and sludge-bulking issues are due to excessive filamentous bacteria that thrive in nutrient-deficient environments and prevent settling. Bioavailable nutrients can improve the treatment process while reducing the overall volume of essential chemical nutrients used. This facilitates the growth of healthy microorganisms, which in turn leads to more stable and efficient wastewater treatment processes.
More stable processes allow for desirable higher microbial life-form development, such as amoebas, ciliates, rotifers, etc. These higher life forms are necessary for efficient wastewater treatment, as they feed mainly on loose bacterial cells. Lack of these higher life forms leads to sludge buildup and inefficient and costly mill operations.
Treatment Solution
Super Phos, a Probiotic Solutions product, is a tech-grade white phosphoric acid and monoammonium phosphate source that is pre-complexed with Micro Carbon Technology (MCT), a proprietary process that converts a soft, humic material into extremely small oxygen-rich carbon molecules. The MCT process results in a carbon source that is an ultra-efficient carrier—due to the micro-carbon molecule's low molecular weight, greater specific surface area and higher cation exchange capacity—to deliver readily bioavailable nutrients to microorganisms.
Mill #1 has the capacity to produce 1,800,000 metric tons of pulp and 3,100,000 metric tons of paper a year. Its wastewater system consists of four parallel sequencing batch reactors (SBR), followed by an aeration system that treats 50,000 cu m per day and meets all national and local standards.
For this study, Tank 3 and Tank 4 were selected, while Tank 1 and Tank 2 were maintained under normal operations. Tank 3 was used to test the replacement of typical liquid phosphoric acid with Super Phos, and Tank 4 was the control. Testing occurred over seven days. Super Phos incrementally replaced the typical phosphoric acid over the course of three days to a final reduced ratio of 1:4 to minimize any potential impacts to Tank 3.
The COD removal rates, average MLSS and average SV30 were monitored for both tanks during the test. It was found that both tanks were statistically equivalent in all three metrics, with Tank 3 having a COD removal rate that was 3% better with 75% less phosphorus added (see Table 1).
Cost savings are found when systems run efficiently. Bioavailable phosphorus is absolutely necessary to develop and maintain a healthy microbial population leading to an efficient wastewater treatment system. Utilizing a bioavailable phosphorus source such as Super Phos with Micro Carbon Technology improves system performance while greatly reducing the volume of phosphorus required and lowering effluent phosphorus levels. This leads to cost savings that mill owners are looking for while maintaining the treatment system's operational effectiveness.
Probiotic Solutions
1331 W. Houston Ave.
http://www.probiotic.com
The Water & Wastes Digest staff invites industry professionals to nominate the water and wastewater projects they deem most remarkable and innovative for recognition in the Annual Reference Guide issue. All projects must have been in the design or construction phase over the last 18 months.
Top Projects Nomination Form
Industrial Top Projects
Cabinets house the ballasts to protect important electronics, which are out of the water channel, while also enabling quick access for maintenance
UV Treatment System Fills the Bill for Water Reuse
House & Senate Disagree on PFAS Amendment
©2019 Scranton Gillette Communications
Sitemap | Privacy Policy | Cookie Policy | Terms & Conditions


text:
Q: What is the fastest way to check if two given numbers are coprime? One way is to calculate their gcd and check if it is 1.
Is there some faster way?

A: if you're running on a machine for which division/remainder is significantly more expensive than shifts, consider binary GCD.

A: The Euclidean algorithm (computes gcd) is very fast. When two numbers are drawn uniformly at random from [1, n], the average number of steps to compute their gcd is O(log n). The average computation time required for each step is quadratic in the number of digits.
There are alternatives that perform somewhat better (i.e., each step is subquadratic in the number of digits), but they are only effective on very large integers. See, for example, On Schönhage's algorithm and subquadratic integer gcd computation.

redpajama_set_name: RedPajamaStackExchange


text:
Tomislav Sunic
Tomislav Sunic was born in Zagreb, Croatia, in 1953. The son of a Catholic dissident, he studied French and English Language and Literature at the University of Zagreb until 1978. From 1980-1982, he worked as a "lobbyist" in Algeria for the multinational company Sequipag – Ingra, before receiving a Master's degree at California State University, Sacramento, in 1985. He received a doctorate in political science in 1988 from the University of California, Santa Barbara.
From 1988 until 1993, he taught at California State University, the University of California, and Juniata College in Pennsylvania. Thereafter, he served in various diplomatic positions with the Croatian government in Zagreb, London, Copenhagen, and Brussels until 2001. He has also taught at the Anglo-American College in Prague. He currently resides in Zagreb, where he continues to work as a freelance writer, including as a contributor on political semiotics and the spirit of Communist totalitarianism to the French quarterly Catholica.
He has published a number of books, including Homo Americanus: Child of the Postmodern Age (BookSurge, 2007), Against Democracy and Equality: The European New Right (Arktos, 2011), and Titans are in Town (Arktos, 2017).


text:
Шарбыш — посёлок в Нижнеингашском районе Красноярского края. Входит в состав городского поселения Нижний Ингаш.

География
Посёлок находится в восточной части края, в пределах таёжной лесорастительной зоны, при железнодорожной линии Красноярск — Тайшет, при автодороге , на расстоянии приблизительно 8 километров (по прямой) к востоку-юго-востоку (ESE) от Нижнего Ингаша, административного центра района. Абсолютная высота — 289 метров над уровнем моря.
Климат
Климат характеризуется как резко континентальный, с продолжительной морозной малоснежной зимой и коротким жарким летом. Зима продолжается в течение 6-7 месяцев. Абсолютный минимум температуры воздуха составляет −51 °C (по данным метеостанции г. Канска). Продолжительность периода с температурой более 10˚С составляет 100—110 дней. Среднегодовое количество атмосферных осадков составляет 484 мм.

История
Основан в 1903 году. По данным 1926 года в разъезде Шарбыш (Шабрино) имелось 5 хозяйств и проживало 22 человека (11 мужчин и 11 женщин). В национальном составе населения того периода преобладали русские. В административном отношении входила в состав Нижне-Ингашского района Канского округа Сибирского края.

Население

 Половой состав
По данным Всероссийской переписи населения 2010 года в гендерной структуре населения мужчины составляли 50 %, женщины — соответственно также 50 %.

 Национальный состав
Согласно результатам переписи 2002 года, в национальной структуре населения русские составляли 95 % из 80 чел.

Примечания

Населённые пункты Нижнеингашского района

redpajama_set_name: RedPajamaWikipedia


Yes, unfortunately, it is true! The certified organic strawberries that you carefully choose aren't organic for real!Apparently, the organic strawberries that you purchase for 50% to 100% more than ordinary berries, are being disinfected with harmful toxic chemicals at the early stages of their life, such as methyl bromide.
It is sprayed on the strawberry fruit in order to sterilize the soil, before it is planted. Hence, it literally destroys everything it touches. Yet, there have been created numerous hybridized kinds of seed which are able to grow in sterile soil only.
"For most of agriculture's 10,000-year history, farmers have succeeded or failed based on their ability to nurture life within the soil. The microorganisms and earthworms that thrive in healthy soil metabolize nutrients and make them available for crops.
They also convert animal and vegetable waste into humus, thus regenerating their own habitat and maintaining that thin layer of topsoil on which all terrestrial life depends.
Therefore, we can conclude that all strawberries are chemically treated with these harmful products and pesticides, no matter if they will be organically or conventionally grown afterwards.
These berries are prone to pests, so in order to raise the production, as well as to increase the profits, they are subjected to many toxic chemicals in the monocrop strawberry farms in which they are grown.
The biggest strawberry producer in the world is the U.S., particularly California, which exports around 75 % of the fresh and processed strawberries.
So, around 90 percent of the fresh strawberries in theU.S. have been grown in California. Also, it is the location of most of the world's strawberry nursery plants. Yet, there is no organic nursery located there.
In order to really grow organic strawberries, one needs to rotate them with other crops, such as broccoli or an appropriate cover crop. Broccoli can effectively protect strawberries as it acts as a natural fungicide as well.
Moreover, methyl bromide has also been linked to the farm workers' raised risk of prostate cancer. Its commercial use has been banned in 2010, by the U.S. agreement to the Montreal Protocol. commercial use was supposedly banned. Yet, this ban does not apply to the strawberry field fumigation and some other common agriculture applications.
Namely, over 9.5 million pounds of pesticides, among which over 3 million pounds of methyl bromide, are used to kill pests in strawberries every year.
Also, Methyl Iodide as a replacement is not much better.
In California in 2010, it was approved by the FDA for restricted use, but numerous experts and scientists, including five Nobel laureates, warn about its harmful environmental effects and devastating health impact.
"Everyone agrees, without exception, that methyl iodide is a very toxic compound. It's very reactive. That means it interacts with living tissue in very toxic ways, causing cell damage and damage to cell structures, DNA, or chromosomes," "The upshot is it can cause a lot of health effects, including cancer and damage to tissues that are developing.
On the other hand, Jim Cochran was a real organic farmer and he grew organic strawberries on his 75-acre farm in Davenport, without using any pesticide for three decades.
So, organic farmers are actually allowed to buy a non- organic started material by the Federal and state organic regulations, and still sell their products as organic.
California "doesn't have a single organic berry nursery—hence the practice of relying on plants that grew on fumigant-using nurseries."-was stated in the NY Times.
Yet, crop rotation and organic methods are more expensive and in general, the yields are a little lower. Cochran adds "The multi-crop organic farm is vastly more complex than the single-crop chemical strawberry farm.
Therefore, if you are interested in growing your own strawberries, you should not use seeds from the strawberries purchased at the market.
Moreover, a popular kind of strawberries is the Everbearing. It actually gives fruits during the entire growing season, from early spring, throughout the entire summer, and until early fall.
Use a garden tower when you need to transplant the seedlings. Note that the best conditions for growing strawberries include loamy and well- drained soil and lots of sun.
The video above will not indicate that organic strawberry starter plants which can be bought at local nurseries are far from organic, it does say that even organic strawberries are often sprayed with a copper fungicide after fruiting.


text:
Q: ERROR SparkContext: Error initializing SparkContext. java.lang.RuntimeException: java.lang.NoSuchFieldException: DEFAULT_TINY_CACHE_SIZE I am trying to run a spark job but getting below error.
21/12/24 15:40:43 ERROR SparkContext: Error initializing SparkContext.
java.lang.RuntimeException: java.lang.NoSuchFieldException: DEFAULT_TINY_CACHE_SIZE
    at org.apache.spark.network.util.NettyUtils.getPrivateStaticField(NettyUtils.java:131)
    at org.apache.spark.network.util.NettyUtils.createPooledByteBufAllocator(NettyUtils.java:118)
    at org.apache.spark.network.server.TransportServer.init(TransportServer.java:95)

Here is the netty dependencies which are being used:
netty-3.7.0.Final.jar netty-all-4.0.43.Final.jar
netty-buffer-4.1.69.Final.jar netty-codec-4.1.69.Final.jar
netty-codec-http-4.1.69.Final.jar netty-codec-socks-4.1.60.Final.jar
netty-common-4.1.69.Final.jar netty-handler-4.1.69.Final.jar
netty-handler-proxy-4.1.60.Final.jar netty-resolver-4.1.69.Final.jar
netty-transport-4.1.69.Final.jar
netty-transport-native-epoll-4.1.69.Final.jar
netty-transport-native-epoll-4.1.60.Final-linux-x86_64.jar
netty-transport-native-kqueue-4.1.69.Final.jar
netty-transport-native-kqueue-4.1.60.Final-osx-x86_64.jar
netty-transport-native-unix-common-4.1.69.Final.jar

I have tried with netty-all version 4.0.43 also but somehow i get same error.
spark version used: 2.2.3
Can anyone please help me why this issue is coming.

A: Ensure you force the same netty version for everything. You have multiple versions on the Classpath. Just use 4.1.72.Final


text:
package com.intellij.framework.detection.impl;

import com.intellij.framework.detection.DetectedFrameworkDescription;
import com.intellij.openapi.application.PathManagerEx;
import com.intellij.openapi.diagnostic.Logger;
import com.intellij.openapi.project.Project;
import com.intellij.openapi.project.ProjectUtil;
import com.intellij.openapi.vfs.VirtualFile;
import com.intellij.util.containers.ContainerUtil;
import com.intellij.util.containers.MultiMap;
import com.intellij.util.indexing.FileBasedIndex;
import com.intellij.util.io.DataExternalizer;
import com.intellij.util.io.EnumeratorStringDescriptor;
import com.intellij.util.io.IOUtil;
import com.intellij.util.io.PersistentHashMap;
import gnu.trove.TIntHashSet;
import gnu.trove.TIntIterator;
import org.jetbrains.annotations.NotNull;

import java.io.DataInput;
import java.io.DataOutput;
import java.io.IOException;
import java.nio.file.Path;
import java.util.*;

public final class DetectedFrameworksData {
  private static final Logger LOG = Logger.getInstance(DetectedFrameworksData.class);
  private PersistentHashMap<String, TIntHashSet> myExistentFrameworkFiles;
  private final MultiMap<String, DetectedFrameworkDescription> myDetectedFrameworks;
  private final Object myLock = new Object();

  public DetectedFrameworksData(@NotNull Project project) {
    myDetectedFrameworks = new MultiMap<>();
    Path file = ProjectUtil.getProjectCachePath(project, getDetectionDirPath(), true).resolve("files");
    try {
      myExistentFrameworkFiles = new PersistentHashMap<>(file, EnumeratorStringDescriptor.INSTANCE, new TIntHashSetExternalizer());
    }
    catch (IOException e) {
      LOG.info(e);
      IOUtil.deleteAllFilesStartingWith(file);
      try {
        myExistentFrameworkFiles = new PersistentHashMap<>(file, EnumeratorStringDescriptor.INSTANCE, new TIntHashSetExternalizer());
      }
      catch (IOException e1) {
        LOG.error(e1);
      }
    }
  }

  public void saveDetected() {
    try {
      myExistentFrameworkFiles.close();
    }
    catch (IOException e) {
      LOG.info(e);
    }
  }

  public Collection<VirtualFile> retainNewFiles(@NotNull String detectorId, @NotNull Collection<? extends VirtualFile> files) {
    synchronized (myLock) {
      TIntHashSet existentFilesSet = null;
      try {
        existentFilesSet = myExistentFrameworkFiles.get(detectorId);
      }
      catch (IOException e) {
        LOG.info(e);
      }

      List<VirtualFile> newFiles = new ArrayList<>();
      for (VirtualFile file : files) {
        final int fileId = FileBasedIndex.getFileId(file);
        if (existentFilesSet == null || !existentFilesSet.contains(fileId)) {
          newFiles.add(file);
        }
      }
      return newFiles;
    }
  }

  public Set<String> getDetectorsForDetectedFrameworks() {
    synchronized (myLock) {
      return new HashSet<>(myDetectedFrameworks.keySet());
    }
  }

  public Collection<? extends DetectedFrameworkDescription> updateFrameworksList(String detectorId,
                                                                                Collection<? extends DetectedFrameworkDescription> frameworks) {
    synchronized (myLock) {
      final Collection<DetectedFrameworkDescription> oldFrameworks = myDetectedFrameworks.remove(detectorId);
      myDetectedFrameworks.putValues(detectorId, frameworks);
      if (oldFrameworks != null && !oldFrameworks.isEmpty() && !frameworks.isEmpty()) {
        return ContainerUtil.subtract(frameworks, oldFrameworks);
      }
      return frameworks;
    }
  }

  public void putExistentFrameworkFiles(String id, Collection<? extends VirtualFile> files) {
    synchronized (myLock) {
      TIntHashSet set = null;
      try {
        set = myExistentFrameworkFiles.get(id);
      }
      catch (IOException e) {
        LOG.info(e);
      }
      if (set == null) {
        set = new TIntHashSet();
        try {
          myExistentFrameworkFiles.put(id, set);
        }
        catch (IOException e) {
          LOG.info(e);
        }
      }
      for (VirtualFile file : files) {
        set.add(FileBasedIndex.getFileId(file));
      }
    }
  }

  private static class TIntHashSetExternalizer implements DataExternalizer<TIntHashSet> {
    @Override
    public void save(@NotNull DataOutput out, TIntHashSet value) throws IOException {
      out.writeInt(value.size());
      final TIntIterator iterator = value.iterator();
      while (iterator.hasNext()) {
        out.writeInt(iterator.next());
      }
    }

    @Override
    public TIntHashSet read(@NotNull DataInput in) throws IOException {
      int size = in.readInt();
      final TIntHashSet set = new TIntHashSet(size);
      while (size-- > 0) {
        set.add(in.readInt());
      }
      return set;
    }
  }

  @NotNull
  private static Path getDetectionDirPath() {
    return PathManagerEx.getAppSystemDir().resolve("frameworks").resolve("detection");
  }
}


text:
Q: android : Get data Using volley (key : header) sorry for my beginner question, i being learning about volley . ok just to the point
i want to get data using volley but in this case not using url but using key and header
example :
in retrofit when i try to get all json's data i do this (the part of code):
  //Add Interceptor
                    RequestInterceptor requestInterceptor = new RequestInterceptor() {
                        @Override
                        public void intercept(RequestFacade request) {
                            request.addHeader("theApiKey", "23xsd94832ccsdf4jzcxz");
                        }
                    };

but how when i using volley?
when it just using url, i do this (the part of code) :
 protected void onStart() {
        super.onStart();
        mQueue = CustomVolleyRequestQueue.getInstance(this.getApplicationContext())
                .getRequestQueue();
        String url = "http://api.openweathermap.org/data/2.5/weather?q=London,uk";
        final CustomJSONObjectRequest jsonRequest = new CustomJSONObjectRequest(Request.Method
                .GET, url,
                new JSONObject(), this, this);
        jsonRequest.setTag(REQUEST_TAG);

        mButton.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                mQueue.add(jsonRequest);
            }
        });
    }

my question, how if there is no url but key and xxxssddcdsvsdfd ?
thanks.


text:
In re Lindsay [1835] NSWSupC 17
lunacy - death, proof of - succession
In banco, 7 March 1835
Source: Sydney Herald, 12 March 1835
Mr. Kerr moved in the matters of William Lindsay, a gentleman, who resided at Petersham, but who under aberration of mind had strayed away about two months ago, and not having been seen since heard of by his friends, it was suspected he had destroyed himself, that citation, issue, and letter of administration be granted to one Abel Salter, first cousin of the said William Lindsay; there was a quantity of goods now on board the Lonach addressed to the unfortunate gentleman, and it was necessary that some person be authorised to take possession of them. The supposed deceased had left a will in the hands of William Dawes, Esq. The Court enquired if it was the general impression that he was dead, and if any pains had been taken to ascertain the fact. Mr. Kerr replied in the affirmative; the opinion of his friends was that he had destroyed himself. He had made attempts on his life on former occasions under aberration of mind; there could be no doubt of his death. The Court granted the motion.


text:
Agnus-Dei Media
The Hub of Excellent Religious Content
News From Ghana
News Across The Globe
Choir Events
Little Night of Music
Catholic Priest builds first-ever Palliative Care Centre in Ghana
ByAgnus-Dei
Jul 23, 2021 AGNUS-DEI MEDIA, Koforidua Diocese, Monsignor Alex Bobby Benson
KOFORIDUA DIOCESE
BY AGNUS-DEI MEDIA
Monsignor Alex Bobby Benson
Monsignor Alex Bobby Benson, a Catholic Priest in the Koforidua Diocese has built the first-ever Palliative Care Centre in Ghana to offer medical care for individuals living with HIV and all other terminally ill patients who would, in turn, receive medical or palliative care, along with treatment intended to contain their condition.
On July 30, 2021, Msgr Bobby Benson would mark his 40th ordination anniversary at Osabene in Koforidua with the paramount aim of raising funds to give the facility an up to the mark standard to serve its purpose
He says "as a priest, I have always lamented seeing people suffer hence looking at the last moments of those living with HIV and AIDS, I have decided to build a palliative centre to cater for the dying patients who still need love until they take their last breath".
DRIVEN PASSION
first-ever Palliative Care Centre in Ghana
The journey which began about 20 years ago was birthed by Msgr Bobby Benson's quest to help trim down the level of societal stigma against persons who had fallen prey to HIV and afford such individuals "a deep sense of belonging".
He started off with caring for such persons as a chaplain at St Dominic's Hospital, Akwatia where he doubled as a counsellor for people who had been rejected by family and society at large because they were living with HIV and AIDS.
Coupled with his shepherding duties, Monsignor Benson made it a point to bring HIV and AIDS patients together regularly for a meeting he called "THE FAMILY GATHERING" in his residence at the Hospital to share their life stories, good moments and sorrowful moments and others and to see the way forward as far as their day to day lives were concerned and dine together and hoped such moments could be extended to more people.
After working for some years at St. Dominic's as a Chaplain, his Bishop by then, Most Rev. Charles Gabriel Palmer-Buckle, transferred him to Koforidua to expose his ministry towards the sick especially those living with HIV and AIDS.
Arriving in Koforidua in 2002, he rented a house and named it Mathew 25 House which still renders such services to clients.
He has, since 2002, welcomed all persons who test positive for HIV and carries out his work as a counsellor to the patients, while further assisting them by providing food, paying health bills, providing accommodation and paying the school fees for wards of his clients.
As a compassionate Father, Monsignor Benson and his team of counsellors hold monthly meetings where they provide the patients with psychosocial support, share meals together and encourage them to know there is still a chance to live and be happy despite the stigma of society.
In January 2014, he took the step of bringing his dreams into reality and had a groundbreaking ceremony for the construction of a palliative care centre and hopes to complete it to serve humanity.
To sustain the course, Msgr Benson is appealing to well-meaning individuals and organisations to help complete the project and meet other rising demands.
He says although he had been able to cater for the patients through many benevolent Individuals, Church groups and Societies among others, the growing population however meant a rise in needs, hence his plea.
KINDLY FIND DETAILS BELOW TO SUPPORT THIS COURSE
A/C name: MATTHEW 25 HOSPICE ACCOUNT
A/C number: 1305039605001
Bank name: National Investment Bank (NIB)
Branch: Koforidua
Swift code: NIBGGHAC
MOBILE MONEY ACCOUNT(S)
+233: 0242557782
We hope for a positive response from you after reading this story.
Agnus-Dei
Ho Diocesan Youth elect new Youth Leaders
Bro Pius Agyeman, Longest-serving SVD in Ghana reported dead
By Agnus-Dei
Be true ministers of Christ, securely grounded in faith- Bishop Fianu to newly ordained Deacons.
Jan 7, 2022 Agnus-Dei
News News From Ghana PRIESTS
Seek to mirror God's goodness in your lives- Rev. Fr. Combey admonishes
Jesuit vocation camp slated for January 28
Categories Select Category A LITTLE NIGHT OF MUSIC (1) BISHOPS (96) Featured (1) GUESTS (26) HOLY (10) HOMILY (12) MAAME KROBO (1) Music (3) News (402) Homily (1) News Across The Globe (236) NEWS FROM AFRICA (100) News From Ghana (222) Newsbeat (1) Photography (1) PODCAST (1) PRIESTS (138) SPORTS (1) Uncategorized (54)
https://www.agnusdeimedia.com/wp-content/uploads/2020/06/06-Ave-Maria.mp3
Kitwe Catholic Priest Rev. Fr. Chansa found dead in his room
Jan 12, 2022 Edith Mensah
Monsignor Turro, a priest for over 70 years, turns 100 this month
News News Across The Globe
Catholic priest in India will face trial for alleged hate speech
Jan 11, 2022 Agnus-Dei
Proudly powered by WordPress | Theme: News Talk by Themeansar.


Prof. Taner Akcam dropped a bombshell during a lecture at the Glendale Public Library last month, when he revealed that a confidential source in Istanbul had informed him about the Turkish government's scheme to bribe American scholars to deny the Armenian Genocide.
While no one should accuse academics of receiving funds from the Turkish government or its proxies without solid evidence, it would be enlightening if any of them would voluntarily come forward and disclose whether they have been funded by Turkish sources!
… is very important because it is an example of how the Turkish government with its paid "historian prostitutes" of America is trying to take out the *legality* out of the genocide (by making it not pre-meditated). Why is this important? Because then the Armenian Genocide will be a footnote in history and Armenians will have no case for reparations and we can all kiss our western provinces goodbye. When this happens, the Turks will shed crocodile tears along with Armenians every April 24, knowing they have successfully gotten away with the biggest crime in Human history.
The Turkish State itself is a terrorist illegitimate entity: none of its so-called 'judicial' decisions have any validity in the civilized world. A country that works actively to deny the Armenian Genocide is by definition illegitimate and guilty. The illegitimate Turkish State calling Kurds or anyone else 'terrorist' is no different than the illegitimate, criminal Nazi State calling the French Resistance members terrorists.
Do you have more of the like ?You make Akçam all the more interesting .By the way,are you sure Armen is a the right name for you?Something like Abdul or Ahmet would be somewhat more fitting.
I'm surprised this is news. It was my belief that the Turkish government paid "scholars" to deny the Armenian Genocide, whether by funding trips, paying speaking engagements, or help publishing books. See: Sam Weems, Justin McCarthy.
This article should be broadcasted in newspapers and T.V.s in the US in whichever way possible as a counter measure against Turkish goverment activities.
Why the Turkeys goverenment, and it's paid lobbiest, academics and foreign politicians want to sink beneath Adolph Hitler, who did not deniey the Armenian Genocide, and used it as an example to the german nation to murder six million innocent Jews.
Although it would not be the least bit surprising, you need more than this to expose it. You need hard evidence, as mentioned in the last paragraph. Otherwise you'll get sued. And I would love to have to see such evidence expose the Turkish government. I wish I knew how to make this happen.
The early symptoms of the implosion of the turkish denialistic taboo cracks are beginning to appear!
you know why akcam hates Turkey ? Because his citizenship was cancelled. he has no home !!! poor man !!!
Hey Necati Genis, I see you found refuge @ another Armenian site: can't stay away from Armenians, can you ?
It's OK: your promise was specifically to AW, so we'll wait an see.
As to Mr. Akcam: who needs Turkish citizenship ?. If it is so valuable, why are millions of Turks living illegally in Europe ? Why are Turks desperate to get into US and obtain US Citizenship ?
Mr. Akcam is living very happily in the USA, where he can speak his mind without being harassed by the Turkish State. He is a great man; we are lucky to have him in the US, before Turks could murder him, like they murdered his friend Hrant Dink.
Akcam hates his own race because in the 1970's, he joined a militant leftist group called THKP-C, where he and his group plotted to attack NATO targets, blow up US Ambassdor Komer's limousine, and also plotted kill even civilians in Turkey. Akcam was a former member of a leftist group that was reminiscent to those Red Brigades in West Europe and Japan. This is a fact. He even had links with the PKK, and even the leader of the terrorist PKK thinks he's a two faced liar. Even pro Armenians don't trust a word that comes out of Akcam's mouth.
Of course, we have known for a long, long time that the ITS (Institute for Turkish studies) in the U.S. is supported and/or influenced by the Turkish government and that some of the people in that organization say that there was no Genocide.
The fact is that it is very hard to "prove" that a particular academician has actually been paid directly by Turkey to say there was no genocide. Turkey can easily funnel money, grants, travel expenses, special favors, and who-knows-what to academicians, organizations, and university programs and claim that these are not intended to "influence" anything. Or Turkey can claim that it is merely funding historical research.
None of this is really anything that we did not know before. I recall that perhaps 25 or so years ago the Armenian Assembly of America looked into the Turkish and non-Turkish academicians who had an ad in the NY Times in which they cast doubt on the Genocide. The Assembly found that some of them had been the recipients of grant money, funds, or support from Turkish sources. Maybe the Assembly will pull out that report again.
While this is all a matter of concern, I think we also ought to look at how we are losing the public relations campaign on Artsakh/Karabagh. For the last couple of years Azerbaijan has been doing a pretty good, if predictably crude, job of making itself appear to be the victim of Armenians. Armenia's leaders, in the meantime, seem to be oblivious to this. They like to say things like "the whole world knows who is the guilty party: Azerbaijan." The world knows no such thing, and even if it had at one point, it has totally forgotten. Then there is the Russian factor. I believe that Russia, for its own purposes of wooing Azerbaijan, does not want Armenians to make a strong case. Russia has ordered Armenia to lie low.
This is one reason that Armenia's public relations are so utterly *horrible*, in my opinion.
The turks that enter this site and write under Armenian names is 'living proof' that the article is true and is a large nail in turkeys coffin.
What's wrong about stating the facts about Mr. Taner Akcam. He ran away from Turkey in the 1970s, joining terror groups like DEV-YOL and THKP-C, plotting to bomb NATO targets, kill American politicians, bomb Ambassor Komer's limousine, destroy Turkey's Secular Democracy and trade it in for a Communist Regime. Also, he had links with the PKK and even a terrorist leader, Abdullah Ocalan, thinks he is a phony two faced liar who always makes a clown out of himself.
"Kemalism, the name given to the ideology imposed on the people by Mustafa Kemal Atatürk is a corporatist, partly fascist ideology, intolerant of dissent and opposition. Practice persistently over the last 80+ years, with the backing and manipulation of CIA and Pentagon the Kemalist Turkish Republic was developed at the same time Mussolini was imposing his fascist regime on Italy and modeled in the same single-party totalitarian style. Turkey is one of three countries that has someone's name (a person) in their constitution, others being North Korea and Iran. In Turkey, kemalism is considered 'above politics' and any political party not completely conforming to it will be shut, as it's done 27 times before. The 'divine dictator' Mustafa Kemal Atatürk's hegemonic ideology is accompanied by his ever-present image all over the place, ad nauseam. In the absence of free thought, the country is full with his pictures, statues and all kind of consumer items with his pictures on. The whole country is like a absurd 19. century 'Rise of Fascism' play, adapted to the modern times. AND 70+ MiLLiON PEOPLE!
After the ottoman empire broke down within a decade, the dictator 'Ataturk' managed to convince-fool-lie-threaten and kill his way to the absolute power, committing his own GENOCIDE in DERSiM in 1935 against Kurds and they've been oppressing, assimilating and persecuting KURDS, which is THE LARGEST NATION WITHOUT A COUNTRY.
It is all the plan of the Turkish Lobbying aka the Gulen Movement Missionaries which are also the lobbying arm for the Azerbaijani government and State Oil (SOCOR) Exiled Turkish Imam stated on Turkish broadcast "they were reversing the games in the next 10 years" "you must move into the arteries of the system until you reach all power centers" besides dominating education worldwide, media, politics, police, judicary system and now they have dominated the top brass of Turkish Military. They have employed the same plans worldwide, in the USA they operate the largest network of charter schools, many are attached to the local universities.
One of the educational goals of the Gulen Movement is to have a Turkish professor at each university in the USA. THey will buy their way in if need be as they have done at George Mason University or the Catholic University of Australia which has a "Gulen Chair".
This cult even operates 2 colleges in North America, one in Texas and one in Chicago.
They also have programs where seniors can study abroad in Turkey, usually at one of the Gulen controlled universities like Fatih University. Academia from all over the USA get to also enjoy staged tours to Turkey and visit some of Gulen's schools, Gulen's propaganda rag "Todays Zaman" and always a stop at the Grand Mosque formerly the St. Hagia Sofia, to take a picture in front of the mosque which is now a museum but only islamic prayers are allowed there not the religion of the people who built it.
Their educational arm is strong in the USA, since 1999 – in just 14 short years the Gulen Missionaries have done a great job. They know which politicians to give a "peace award" to or the famous trip to Turkey to buy favors. But what they don't have is the hearts and minds of Americans who will stop them.
At Harvard University they have tried and tried, but Economics Professor Dr. Dani Rodrik (Jewish from Turkey) besides being anti-Gulen – Rodrik is the son in law of General Dogan one of the Generals taken town in Gulen's scandalous Sledgehammer or Ergenekon trials to replace with Gulenist Military. They hate Rodrik, as he is a respected Professor the other professors will listen to. But Dr. Jill Carroll and Dr. Rose Ebaugh are paid puppets of the Gulen Movement/Turkey. THey tend to go after the Religious departments or Sociology Professors which are perceived as being more "tolerant" to them.


text:
Cherry Juice and Lefsa Get FDA's Attention
By Dan Flynn on April 11, 2011
Juice, bread, and the Norwegian flatbread called lefsa are not the kind of products that come to mind when one thinks about the risk of foodborne illnesses.
But a series of inspections by the U.S. Food and Drug Administration (FDA) call that conventional wisdom into question.
Each of those products was being made in a facility that FDA recently inspected and found conditions that it said cause the products to be considered adulterated.
On Jan. 5, FDA sent a warning letter to Santaquin, UT-based Rowley's South Ridge Farms Inc. about its juice processing facility. It said "serious deviations" were found last Sept. 28-30 in Rowley's juice Hazard Analysis and Critical Control Point (HACCP) plan.
"Accordingly, your refrigerated juice products from fresh pressed apples and from concentrated cherry juice are adulterated, in that they have been prepared, packed, or held under insanitary conditions whereby they may have been rendered injurious to health," the warning letter said.
Rowley's does not have a HACCP plan for its red tart cherry and red barn cider fresh pressed pasteurized apple juice, the FDA said. The agency also said the Utah company lacked sanitation records in the following areas:
— water and ice safety
— condition and cleanliness of food contact surfaces, including utensils, gloves, and outer garments
— prevention of cross contamination
— maintenance of hand washing , hand sanitizing, and toilet facilities
— protection of food contact surfaced
— proper labeling storage, and use of toxic compounds
— control of employee health conditions
— exclusion of posts from the food plant
FDA said Rowley's is not performing 5-log pathogen reduction for its red tart cherry juice. A 5-log reduction means the number of germs is 100,000 times smaller.
In a March 8 warning letter from FDA to Colorado Springs, CO-based Wimberger's Old World Bakery, the federal agency said an inspection of the bakery last Oct. 20-20 resulted in a finding that its bread was adulterated.
FDA charged Wimberger's with failure to take effective measures to control pests, including live and dead flour beetle insects and beetles in the larval stage. It said fruit flies, ants and flies were observed in the processed bread dough product, raw ingredient container, finished bread, production equipment, oven and production rooms.
FDA also had concerns about the cleaning processes at the bakery.
At Ulen, MN-based Lena's Lefsa Inc., FDA inspected last Oct. 29 through Nov. 2 and issued a warning letter March 28.
FDA found the Norwegian staple to be misbranded because wheat is an ingredient, but was not identified as an allergen as required by federal law.
Labels used by Lena's also do not declare product ingredients that contain two or more ingredients, FDA said.
The three companies were asked to respond to FDA within 15 working days with information on how they were going to correct the violations.
Tags: bread, cherry juice, warning letter


Thanjavur creates best honeymoon memories that last a lifetime with the Indian honeyoomoners. Honeymoon destinations in Thanjavur offers best honeymoon tour packages to experience spectacular scenery, remarkable adventures, attractive accommodations and welcoming people. Here's a list of best Thanjavur honeymoon packages with prices and places to visit with your loved one. Newly married couples can plan their short trip to Thanjavur for honeymoon. For cheap Thanjavur honeymoon packages download ClearHolidays travel app today.


text:
/*************************************************************************/
/*  syntax_highlighter.h                                                 */
/*************************************************************************/
/*                       This file is part of:                           */
/*                           GODOT ENGINE                                */
/*                      https://godotengine.org                          */
/*************************************************************************/
/* Copyright (c) 2007-2021 Juan Linietsky, Ariel Manzur.                 */
/* Copyright (c) 2014-2021 Godot Engine contributors (cf. AUTHORS.md).   */
/*                                                                       */
/* Permission is hereby granted, free of charge, to any person obtaining */
/* a copy of this software and associated documentation files (the       */
/* "Software"), to deal in the Software without restriction, including   */
/* without limitation the rights to use, copy, modify, merge, publish,   */
/* distribute, sublicense, and/or sell copies of the Software, and to    */
/* permit persons to whom the Software is furnished to do so, subject to */
/* the following conditions:                                             */
/*                                                                       */
/* The above copyright notice and this permission notice shall be        */
/* included in all copies or substantial portions of the Software.       */
/*                                                                       */
/* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,       */
/* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF    */
/* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.*/
/* IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY  */
/* CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,  */
/* TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE     */
/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.                */
/*************************************************************************/

#ifndef SYNTAX_HIGHLIGHTER_H
#define SYNTAX_HIGHLIGHTER_H

#include "core/io/resource.h"

class TextEdit;

class SyntaxHighlighter : public Resource {
	GDCLASS(SyntaxHighlighter, Resource)

private:
	Map<int, Dictionary> highlighting_cache;
	void _lines_edited_from(int p_from_line, int p_to_line);

protected:
	ObjectID text_edit_instance_id; // For validity check
	TextEdit *text_edit = nullptr;

	static void _bind_methods();

public:
	Dictionary get_line_syntax_highlighting(int p_line);
	virtual Dictionary _get_line_syntax_highlighting(int p_line) { return Dictionary(); }

	void clear_highlighting_cache();
	virtual void _clear_highlighting_cache() {}

	void update_cache();
	virtual void _update_cache() {}

	void set_text_edit(TextEdit *p_text_edit);
	TextEdit *get_text_edit();

	SyntaxHighlighter() {}
	virtual ~SyntaxHighlighter() {}
};

///////////////////////////////////////////////////////////////////////////////

class CodeHighlighter : public SyntaxHighlighter {
	GDCLASS(CodeHighlighter, SyntaxHighlighter)

private:
	struct ColorRegion {
		Color color;
		String start_key;
		String end_key;
		bool line_only = false;
	};
	Vector<ColorRegion> color_regions;
	Map<int, int> color_region_cache;

	Dictionary keywords;
	Dictionary member_keywords;

	Color font_color;
	Color member_color;
	Color function_color;
	Color symbol_color;
	Color number_color;

protected:
	static void _bind_methods();

public:
	virtual Dictionary _get_line_syntax_highlighting(int p_line) override;

	virtual void _clear_highlighting_cache() override;
	virtual void _update_cache() override;

	void add_keyword_color(const String &p_keyword, const Color &p_color);
	void remove_keyword_color(const String &p_keyword);
	bool has_keyword_color(const String &p_keyword) const;
	Color get_keyword_color(const String &p_keyword) const;

	void set_keyword_colors(const Dictionary p_keywords);
	void clear_keyword_colors();
	Dictionary get_keyword_colors() const;

	void add_member_keyword_color(const String &p_member_keyword, const Color &p_color);
	void remove_member_keyword_color(const String &p_member_keyword);
	bool has_member_keyword_color(const String &p_member_keyword) const;
	Color get_member_keyword_color(const String &p_member_keyword) const;

	void set_member_keyword_colors(const Dictionary &p_color_regions);
	void clear_member_keyword_colors();
	Dictionary get_member_keyword_colors() const;

	void add_color_region(const String &p_start_key, const String &p_end_key, const Color &p_color, bool p_line_only = false);
	void remove_color_region(const String &p_start_key);
	bool has_color_region(const String &p_start_key) const;

	void set_color_regions(const Dictionary &p_member_keyword);
	void clear_color_regions();
	Dictionary get_color_regions() const;

	void set_number_color(Color p_color);
	Color get_number_color() const;

	void set_symbol_color(Color p_color);
	Color get_symbol_color() const;

	void set_function_color(Color p_color);
	Color get_function_color() const;

	void set_member_variable_color(Color p_color);
	Color get_member_variable_color() const;
};

#endif


A firefighter encounters many situations that require decisive action, but one that influenced Waterloo firehouse chef Patrick Mathieu more than most was the simple question posed to him at mealtime: "are you gonna cook, or clean up?"
The Firehouse Chef is an account of Mathieu's culinary experience as a Canadian firefighter, preparing meals for his fellow firemen that have kept them well-nourished for over 15 years.
Whether you're looking for a simple starter, a gourmet dessert, or a hearty main, these recipes have been tried and tasted by test audiences who are not afraid to speak their mind! Filled with colourful anecdotes and sumptuous photography, get ready as Patrick Mathieu and firehouse chefs from across the country set the culinary world ablaze with the season's hottest cookbook.
Firefighter Patrick is a very passionate foodie and self-taught chef who followed in his French-Canadian family's traditions of firefighting and cooking from the heart. He has cultivated his love for cooking in the firehouse and, alongside his wife Andrea Lauren, is the proud owner of StationHouse Catering and Private Chef Services. Patrick is also a culinary instructor, a food and recipe columnist for Firefighting in Canada Magazine, and appeared on Season 2 of the Food Network's Chopped Canada. He lives just outside Waterloo, Ontario with his wife and two children.
Click here to see the Crisp Braised Duck Legs with Apricots and Brandy recipe.