Thursday 16 January 2014

Secularists and Separationists are Terrorists!

Secularists and Separationists are Terrorists!



1.Mayor James Bellar: Secularists and Separationists are Terrorists!

Description:24-10-2011 · Usually terrorists are people who break the law
to achieve some political goal. But what about people who insist that the
law be followed and challenge ...



2.Mayor James Bellar: Secularists and Separationists are ...

Description:24-10-2011 · Mayor James Bellar: Secularists and
Separationists are Terrorists. Oct 24, 2011 | Posted by: roboblogger |
Full story: About.com



3.Separationists and the Separation of Church and State: Who Are ...

Description:As a general rule, separationists are those who support the
separation between church and state. The level of support will vary,
however. The strictest of ...



4.Terrorist strikes continue with impunity specially in BJP ...

Description:27-07-2008 · ... Terrorist strikes continue with impunity
specially in BJP ruled ... They say the so called secularists may be
having a hand in engineering these ...



5.National Secular Society - Christian Terrorists

Description:Christian Terrorists. Last week the usual Christian
complainers were on their high horse over an episode of the BBC series
Spooks.



6.Redefine (a) SECULARISM (b) RELIGION (c) POLITICS, of INDIA ...

Description:05-12-2008 · ... SECULARISM (b) RELIGION (c) POLITICS, of
INDIA, in the purview of Mumbai Terrorist Attack (s ... If media call the
jihadis as muslim terrorists, ...



7.Secularism for Congress is appeasement of terrorists: BJP ...

Description:17-01-2011 · ... Congress and accused it of appeasing
terrorists and engaging in a loot ... of secularism is this," he asked.
Terrorists and criminals have no religion ...



8.Islamic terrorism - Wikipedia, the free encyclopedia

Description:Islamic terrorist organizations have been known to engage in
tactics including suicide ... and leaders opposed Western society for what
they see as immoral secularism.



9.Anti-Separation - Secularists Admit Our Christian History

Description:Recorded by Secularists Who Opposed It. Separationists will
occasionally (and desperately) assert that even before the Constituiton
was ratified, ...



10.Terrorism in India - Wikipedia, the free encyclopedia

Description:All five terrorists were also killed by the security forces
and were identified as Pakistani nationals. ... Secularism; Separatist
movements; Crime: Corruption; Groom ...

Atheist vs. Agnostic - What's the Difference Between an Atheist and an Agnostic?

Atheist vs. Agnostic - What's the Difference Between an Atheist and an
Agnostic?



1.Atheist vs. Agnostic - What's the Difference Between an ...

Description:The difference between being an atheist and being an agnostic
should be pretty clear: atheism is about belief. Agnosticism is about
knowledge. Atheists don't believe ...



2.Atheism vs. Agnosticism: What's the Difference Between Atheism ...

Description:Atheism vs. Agnosticism What's the Difference? ... Atheist vs.
Agnostic - What's the Difference Between ... Atheism vs. Agnosticism:
What's the Difference Between ...



3.What is the Difference Between an Atheist and an Agnostic?

Description:The primary difference between an atheist and an agnostic is
that the atheist does not ... Someone needs to learn more about atheism
and agnosticism before ...



4.Agnostic vs Atheist - Difference and Comparison | Diffen

Description:What's the difference between Agnostic and Atheist? Agnostics
claim either that it is not possible to have absolute or certain knowledge
of God or gods; or ...



5.Difference Between Agnostic and Atheist

Description:02-07-2011 · Agnostic vs Atheist There are many religions ...
while agnosticism is a belief that proving the existence of ... Difference
Between Agnostic and Atheist



6.Atheist Vs. Agnostic - Buzzle

Description:Atheist Vs. Agnostic This article is my understanding of the
atheist vs. agnostic issue. These two terms are often used interchangeably
but are very different from ...



7.What is the difference between an Agnostic and an Atheist

Description:Difference between atheist and agnostic? ... (including
agnosticism) ... What is the difference between agnostic atheism and
nihilism?



8.Atheism and Agnosticism (Stanford Encyclopedia of Philosophy)

Description:09-03-2004 · • What's New • Archives • ... The main purpose of
this article is to explore the differences between atheism and
agnosticism, ... atheist or agnostic.



9.Atheist vs Agnostic - Atheism

Description:We should be careful not to assume the difference between
atheist and agnostic ... difference between weak ... An Agnostic? ↑
Atheism vs. Agnosticism What's ...



10.What is the Difference Between an Atheist and Agnostic

Description:What is the difference between an atheist and agnostic? ...
that Agnosticism is just a subset of atheism, ... vs. Agnosticism - What's
the Difference Between ...

Wednesday 15 January 2014

Joseph Lagu -- Biography of Joseph Lagu

Joseph Lagu -- Biography of Joseph Lagu



1.Joseph Lagu -- Biography of Joseph Lagu - African History ...

Description:Joseph Lagu was born in the village of Momokwe, ... Joseph
Lagu -- Biography of Joseph Lagu; Advertise on About.com; Our Story; News;
SiteMap; All Topics; Reprints; Help;



2.Joseph Lagu - Wikipedia, the free encyclopedia

Description:Joseph Lagu (born 21 November 1931, in a hamlet called Momokwe
in Moli, northern region of Madiland, about 80 miles south of Juba, Sudan,
currently South Sudan) is a ...



3.Joseph Lagu - IMDb

Description:bing.com/videos



4.Joseph Lagu | Fundstellen im Internet | cyclopaedia.net

Description:Joseph Lagu, Self: Sudanna al Habib ... LATEST HEADLINES.
Steven Spielberg, Javier Bardem, Steve Zaillian Circle Montezuma-Cortez
Epic From Script By Blacklisted ...



5.Joseph Lagu | South Sudan | ZoomInfo.com

Description:Fundstellen zu "Joseph Lagu" im Internet, an Universitäten und
in der Literatur... cyclopaedia.net



6.Joseph Lagu (Open Library)

Description:View Joseph Lagu's business profile as Special Advisor To
President at South Sudan and see work history, ... biography, work
history, affiliations and more.



7.Sudan: odyssey through a state : from ruin to hope - Joseph ...

Description:Joseph Lagu Close. Subjects. Politics and government,
Biography, History, Politicians. Places. Southern Region (Sudan) Lists You
could add Joseph Lagu to a list if ...



8.Joseph Lagu | PaanLuel Wël: South Sudanese Bloggers.

Description:Joseph Lagu: Publisher: MOB Center for Sudanese Studies ...
Subjects: History › Africa › East. Biography & Autobiography / Political
History / Africa / East ...



9.Joseph Laguerre's Photos, Phone, Email, Address - Spokeo

Description:Posts about Joseph Lagu written by PaanLuel Wël ... "We the
willing, led by the unknowing, are doing the impossible for the
ungrateful.



10.Joseph Laguerre's Photos, Phone, Email, Address - Spokeo

Description:Joseph Lagu -- Biography of Joseph Lagu - African History ...
about.com. Founder and leader of the Sudanese rebel group Anya Nya.

This Day in African History: August 01

This Day in African History: August 01



1.This Day in African History: August 01

Description:A chronicle of events in African history on 1 August ... 1932,
1 August An initiative is started to end slavery in Abyssinia by Emperor
Haile Salasse.



2.This Day in African History: August

Description:... which happened in African history in the month of August.
... Day in African History: August 01 ... events in African history on 10
August. This Day in ...



3.This Day | History - History.co.uk | Shows, Videos, Topics and ...

Description:This Day; Topics. History of South Africa; History of WW2; ...
01 August - World War I. ... This day in history. prev;



4.On this day, 01 January, in African-American history ...

Description:On this day, 01 January, in African-American history... image
created by author. ... Free copies of "This Day in African-American
History, ...



5.Today in History | South African History Online

Description:1 AUGUST 1818 - The ... This Day in History Extra Dates ...
Copyright © South African History Online ...



6.This day in African-American History - 18 January - Worldnews.com

Description:19-01-2012 · On this day in African-American History... 1898 -
Author George Dawson was born in Marshall, ... This day in
African-American History - 12 January 2012-01-13.



7.This day in African-American History - 01 March - National ...

Description:On this day in African-American History ... This day in
African-American History - 01 March image created by Faydra Deon. This day
in African-American History ...



8.This Day | History

Description:This Day; Topics. History of South Africa; History of WW2; ...
This day in history. prev; August;



9.This day in African-American History - 17 January - Worldnews.com

Description:18-01-2012 · This day in African-American History - 27 January
2012-01-27. ... The Examiner On this day in African-American History...
1850 - Charlotte Ray, ...



10.Today in History | South African History Online

Description:This Day in History Extra Dates : : : | : : What happened ...
All Rights Reserved | Copyright © South African History Online ...

This Day in African History: August 15

This Day in African History: August 15



1.This Day in African History: August 15

Description:1925, 15 August It is reported that over 5,000 rebel tribesmen
have unconditionally surrendered to European Colonial forces in Morocco.
1960, 15 August



2.This Day | History - History.co.uk | Shows, Videos, Topics and ...

Description:This Day; Topics. History of South Africa; History of WW2; ...
This day in history. prev; August;



3.This Day in African History: August 13

Description:A chronicle of events in African history on 13 August.
Education; African History. Search. African History People / Places; ...
This Day in African History: August 15;



4.Today in History | South African History Online

Description:The post offices at Waldau and the Waterberg in German South
West Africa ... to see historic events that happened on that day ... South
African History Online ...



5.This Day in History: August 15 | Infoplease.com

Description:Day in History; Home; World. Countries; Atlas; News; History;
... August 15: Yesterday Tomorrow: 1057. ... or choose another day:



6.This Day in Black History: Aug. 15, 1938 | News | BET

Description:15-08-2013 · This Day in Black History: Aug. 15, 1938 . ...
Filed Under South Africa, Iraq War, Maxine Waters, apartheid, This Day in
Black History, Rodney King ...



7.This Day in History — History.com — What Happened Today in ...

Description:Like This Day In History on Facebook. Also on This Day ...
Johnson appoints first African-American cabinet ... August September. 1;
2; 3; 4; 5; 6; 7; 8; 9; 10; 11; 12 ...



8.This Day in History for 15th August | HistoryOrb.com

Description:This day in history for the 15th of August. ... which famous
people were born and who died on 15 Aug. HistoryOrb.com. ... South African
head ...



9.This Week in History: August 15

Description:This Week in History, August 22-28: ... August 22 On this day
in 1885, African-American labor organizer and political activist John C.
Artemus was born.



10.August 15 Events in History - BrainyHistory

Description:August 15 in history. ... China commemorates victims of the
Zhouqu landslide with a day of mourning : ... South African President
Nelson Mandela receives Anne Frank ...

Write a Review -- Best African History Related Film -- Your African History Movie Review

Write a Review -- Best African History Related Film -- Your African
History Movie Review



1.Write a Review -- Best African History Related Film -- Your ...

Description:What is the best African history related movie you have seen?
Share your film review here.



2.Write a Review: Best African History Related Film

Description:What is the best African history related movie you have seen?
Share your film review here.



3.Movies about Africa - Best Movies Set in Africa - Africa Movies

Description:This top 10 African movie list reflects my ... Best African
History Related Film -- Your African History... Write a Review: Write a
Review -- Best African History ...



4.Favorite Movie Set in Africa - Favorite African Movie - Best ...

Description:My favorite African film "The Ghost and The Darkness" based on
a true story of 1890's it gives me the goosebumps with its hair raising
scenes. Val Kilmer and Michael ...



5.World Music Documentary Review: Bela Fleck's Throw Down Your Heart

Description:17-08-2009 · ... alone are worth watching the movie ... a
Review -- Best African History Related Film ... Your... Write a Review --
Best African History ...



6.African movies. Films from or about Africa on VHS and DVD

Description:... while the best African movies can ... February 20th 2005 a
South African movie by the director Mark ... Don't expect a film intended
history ...



7.Black History Month Documentaries - Documentaries for Black ...

Description:This list of documentaries that reveal important aspects of
black history and culture in America are a great way to celebrate Black
History Month.



8.Coin Collecting: South African 1960 coin set, South Africa

Description:Related Articles. Write a Review: Write a Review -- Best
African History Related Film -- Your African History Movie Review; Truth
and Reconciliation Committee -- What ...



9.African Films Movies and Video on the Internet

Description:African Movie Place ... presents "The Best of the Best in the
African Diaspora" film and television ... African Film Festival, etc.
Links to related film ...



10.The African American History of Manhasset & Great Neck (Video ...

Description:The African American History of Manhasset & Great Neck is a
vast and dynamic history. ... Industry information at your fingertips. ...
write review | 1 critic. The ...
1.#EANF#

Description:#EANF#



2.#EANF#

Description:#EANF#



3.#EANF#

Description:#EANF#



4.#EANF#

Description:#EANF#



5.#EANF#

Description:#EANF#



6.#EANF#

Description:#EANF#



7.#EANF#

Description:#EANF#



8.#EANF#

Description:#EANF#



9.#EANF#

Description:#EANF#



10.#EANF#

Description:#EANF#

php - Setting a cookie before page is refreshed/closed -


I'm asking for a little more community again.

I am modifying a Joomla "quiz" component the way I treat it the way I want it. Now what I am trying to do is to change the "refresh" behavior of the component. Originally, there is a time table in each quiz, i.e., at a time when the quiz for the user is not yet accessible, then when the timer meets 0, the quiz gets credited, but the default behavior of this component It creates that whenever the page is refreshed, the timer will reset to the initial set time (let, 10 minutes)

It is a matter of continuing the timer in a refresh case. I want to be able not.

I have not used PHP 3 or 4 years ago, so I lost a little.

To be able to achieve the desired behavior, I am setting a cookie that sets the initial time (when the quiz was opened) and "now" time store (load it to 0 But I want to "update" the cookie to reload on refresh).

With the initial time and now over time, I can calculate how much time has passed and place where the timer was released.

The thing is, I am trying to "update" the JavaScript to "update" the cookie so that I can manage to get refresh time in the cookie. But for some reason, it is not doing anything. Even when I go to see cookie content, the cookie is set even when it is set.

I know that to update the cookie, I have to remove it and then have to set it up, but I have failed.

This sample code is:

  // This cookie (via PHP) is responsible for setting:  quiz- & gt; time_limit); // $ var = implode (',', $ data); If defined ($ _ cookie [$ name]) {/ *, then the timer * /} and {setcookie ($ name, implode (',', $ data, $ end update) ; } Echo $ _COOKIE [$ name]; Echo "
"; Copy $ this- & gt; Quiz-> Time_limit; ? & Gt;

and find out the "Refresh" event (which will run PHP with Javascript):

  window.onbeforeunload = function () {& Lt; ? Php $ name = "progress"; $ List = explosion ($ _ cookie [$ name]); // Delete cookies cookie ($ name, "", time () - 3600); // Update field $ list ['1'] = time (); // Now - Fresh time $ list ['2'] = $ list ['1'] - $ list ['0']; // time_diff // set cookie set againCookie ($ name, implode (',', $ list), time () + 3600); ? & Gt; }   

Can someone indicate what is wrong with this code?

The comment states that, javascript can not run PHP code like that ... but if If you use AJAX then you can Now with the code we posted, if you load your page in the browser and see the code, then your function will look like this:

  window.onbeforeunload () {}   

So there is no wonder that when you are closing your browser, then nothing is happening with your cookies. Now, without looking at your other works, it really does not Is telling what is happening, but you can get PHP and JavaScript Can be used, but in a different fashion. I explain it with an example.

  window.onbeforeunload () {var name = & lt ;? Php $ name = 'Steve'; Echo ($ name); ? & Gt ;; Console.log (name); }   

If you had this code and the page has been loaded in the browser, you will no longer see the PHP code, instead you should see:

  window .onbeforeunload () {var name = 'Steve'; Console.log (name); }   


With that being said, here are some links that you can find useful
  • < / Li>


.net - C# configuring TCPClient client's port -


I communicate with TCPClient () in C # The device on the LAN has to be assigned to me only the target IP and port number.

Now I'm coding this much like this. However, it specifies that the client port from my PC should have more than 1024 . How do I configure it? Does this mean that the VS automatically takes care of that not specified?

The port can be used to specify the port (just for address part IPAddress Use any. ). As on the document and, by default, more than 1024 ports will be used.

jquery - HTML Javascript Calender -


I'm trying to integrate a simple calendar into my website but I'm still able to find any good. I am not because of which I am posting this question.

I need a calendar that I can mark the dates and when the user clicks on it, then he will be able to see the incident against that pop against that incident or please tell me please Is there any open source calendar available that provides such functionality on JS and HTML? Any help would be appreciated, thanks,

You use datepicker for your needs this way can do. This is almost the best.

This date picture displays inline

Add to stack from ArrayList (Java) -


I have an ArrayList that is pre-defined with hardcoded values. How do I add it to the stack? The idea is to show the Stack class pop, push, peak function.

  ArrayList & lt; String & gt; Al = New Arrestist & lt; String & gt; (); Al.add ('a'); Al.add ("b"); Al.add ('C'); Stack & LT; String & gt; St = new stack & lt; String & gt; (); St.push (al); ** // It does not seem to work. Do I have to loop it somehow? ** System.out.println (st);   

Thanks!

Like many collection sections, a method provides:

  St.addAll (al)    

ios - Animate by alternating different UIImages -


I have two different images, which are essentially just the opposite of each other, I create a somewhat moving effect To do them want to animate them back and forth. I have FinishLaunching done in AppDelegate:

  myImageWalk = [[UIImageView alloc] initWithFrame: CGRectMake (0,0, 320, 568)]; [Self.meamwalk set image: [self loading image]]; [Add window subeview: myImageWalk]; [Window loujewivytroprint: my imager]; After that, in App Delegate, I also have:  
  - (UIImage *) loading image {NSARA * AnimationFrame = [NSARRArrayView Object: [ UIImage Image Named: @ "Original Page"], [UIImage imageNamed: @ "second.png"], [UIImage imageNamed: @ "original.png"], [UIImage imageNamed: @ "second.png"], [UIImage imageNamed : @ "Original page": [UIImage imageNamed: @ "second.png"], [UIImage imageNamed: @ "original.png"], [UIImage imageNamed: @ "second.png"], [UIImage imageNamed: @ "Original PGN "], [UIImage Image Named: @" Second Page "], [UIImage Image Named: @" Original Page "], [UIImage Image No Dated: @ "Second page"], [UIImage Image Named: @ "Original Page"], [UIImage imageNamed: @ "second.png"], [UIImage imageNamed: @ "original.png"], [UIImage imageNamed: @ "Second.png"], [UIImage imageNamed: @ "original.png"], [UIImage imageNamed: @ "second.png"], zero]; Return [UIImage Animated Image With Vision: Animation Frame Duration: 6.0f]; }   

But, nothing happens, no image is ever displayed. What am i doing wrong

Below are some code you can try to note that you need to repeat the series of images Not: Set the required duration for only one loop.

  myImageWalk = [[UIImageView alloc] initWithFrame: CGRectMake (0,0, 320, 568)]; MyImageWalk.image = [self loading image]; Self.myImageWalk.animationRepeatCount = 0; [Add window subeview: myImageWalk]; [Window loujewivytroprint: my imager]; // When you want to start animation [self-irregular images]; // Then at some reasonable time later: [self-stopping images]; - (UIImage *) Loading Image {NSArray * AnimationFrame = [NSARRAR with Objects: [UIImage imageNamed: @ "original.png"], [UIImage imageNamed: @ "second.png"], zero]; Return [UIImage Animated Image With Vision: Animation Frame Duration: 6.0f]; } - (zero) animated images (if (! [My] image walk is animating) {[self. Iijjok startAnnaming];}} - (zero) stop animation images {if ([self. Is my image walk animating]) { Selfmemiwok stop animation]; }}   

Note: Unless it is a test app or class assignment, you should move this argument from AppDelegate to ViewContoller, as it was done during DidFinishLaunching The best practice is to reduce.

python - Slicing Data From a Dictionary -


I have a code that will properly return the list of xyz coordinates (or list of xyz coordinates) my problem is that I want to use different numbers directly from those lists, but I can only access the entire list at a time. My code: import such as np a = [([2, -2, 0.2 9]), ([-2, 0, 1.9]), ([2, 1, 2.35] ]), ([2, -3, 2.9 6])] B = [0,2,3] Merijip = list (zip (a, b)) = = {myZip in x}: result.setdefault (x) [1], []) .andand (x [0]) xyz = [] for each_index in B: xyz.append (Results [every_index]) print (xyz) xyz.clear ()

will return:

  [[[2, -2, 0.2 9]]] [[-2, 0, 1. 9]]] [[[2, 1] , 2.35]]]   

Now I want to divide it into x and y so x = [2, -2,2] and y = [- 2,0,1]. I have tried to piece it straight, but I get an error about the pieces and not the whole, not the tuples. I also tried to change the numpy using np.hsplit. How can this be achieved? Thanks guys (or girls).

edit

I know that in these cases it will only be printed at a time, but in my real world example, there are such times Where it will return ([x, y, x], [x, y, z]).

Use a list comprehension:

  gt; & Gt; X = [result [i] [0] [0] i for b]> gt; & Gt; & Gt; Y = [result [i] [0] [1] i for b]> gt; & Gt; & Gt; Print x, y [2, -2, 2] [-2, 0, 1]    

java - Can I use JPQL to query a MySQL database which was populated by loading CSV files? -


This is a noob question, so please cooper with me.

I am populating a MySQL DB with data from an Excel spreadsheet, a part of the functionality of a Java web app, which is deployed on the Zebus. This can be achieved in 2 ways:

  1. To use JSX / Apache POI to parse spreadsheet data and to make the unit "beans" which is then used for DB Are persistent.

  2. Using the script to convert the spreadsheet into a CSV file and then load the CSV files in DB.

    My question is: If I can do scripting / CSV route, can I still use JPQL to query the DP or in the Java code, I can use basic SQL queries Have to take the support?

    Using JPQL to query independently of the method used to generate a table The data stored in the table does not know which way it was inserted.

    JPA has not been notified about the changes made to the data through the script, but there is no additional cash and transactions in the case of specific usage which is not the problem, because the query database Hit and distribute fresh data

django user authentication, shoulid admin be used or created from view? -


I'm completely new on Django. I've done all the tutorials and now my site is able to reach a page Want to create a simple user authentication for

My question is whether I should use admin authentication or not? Or will I create my consumer view with a username and password and use the DEGENGO authentication API?

To clarify, I have a page that I want to protect and only see when the user has permission. Is there a proper thing in the Django Administrator built in? It seems that the Django administrator has to allow a new model to create new records related to the app.

Thank you!

I would like to use built in Dijono authentication system. You can say, mobile number and twitter handle, you can extend the user model of the degego : mobile = Model. Richfield (max_long = 12) twitter = model.carfield (max_long = 100)

Not only will you get properties such as email, username, etc. from the user's model of the Django, but you can also add custom attributes that you can store in the database.

The easiest way to secure your pages will be to use the decorator and to ensure that you have included the login and logout URL of Django,



javascript - JSON Serialization error with simplejson -


मेरे पास निम्न कोड है:

  डेटा = {'सेवाएं': [u ' आईट्यून्स '],' ऑर्डर ': [यूटीस्टऑर्डर, यू'टेस्ट_एप्रिल_टाइट्स_आईटीयुन्स'], 'प्रदाता': ''} एचटीपीआरपीएसपैक्स (सरलजान डंप्स (डेटा)) फ़ाइल "/ सिस्टम / लायबरी / फ्रैमवर्क्स / पीथन.फ्रेमवर्क / संस्करण / 2.7 / lib / python2.7 / json / encoder.py "डिफ़ॉल्ट 178. बढ़ाएँ TypeError (repr (o) +" JSON धारावाहिक नहीं है ") अपवाद प्रकार: TypeError at / reports / change_dropdown / अपवाद मूल्य: [u 'ITunes'] JSON धारावाहिक नहीं है   

इस डिक्शनरी को इसके अंदर की सूची के साथ क्रमबद्ध करने के लिए मुझे क्या करना होगा?

समस्या यह है कि itunes एक गैर- JSON संगत प्रकार है।

गैर- JSON संगत प्रकार जब serializing:

  simplejson.dumps (डेटा, डिफ़ॉल्ट = str))   

या यहां तक ​​कि:

  डेफ हेन्डलर (वैल): यदि आईस्टेंस (वैल, यूनिकोड) वापसी स्ट्र (वाल) अन्य: वापसी वैल दूसरे विकल्प का लाभ आप सेट (जैसे, सूची में परिवर्तित) कर सकते हैं, दिनांक (जैसे, इंट टाइटलस्टैम्प में कनवर्ट करें), सरलजसन डंप्स (डेटा, डिफॉल्ट = हैंडलर))   

, आदि।

sql - Return a value when a different value changes -


I have a query that returns the following returns, EXCEPT for the previous column, which I need to know How to do that surgeon For each given ObservationID , I will have to return the date on which the status changes; A CD () function that takes some situations and not just offset. Can it be done?

I need to calculate the column change date; It should be the last date that the situation was not the current situation.

  + --------------- + -------- + ----------- + - ------ + ------------- + | Overview | Region | Date | Position | Change date | & Lt; - this field + --------------- + -------- + ----------- + ------- - + ------------- + | 1 | 10 | 1/3/2012 | Ice | 1/4/2012 | | 2 | 10 | 1/4/2012 | Water | 1/6/2012 | | 3 | 10 | 1/5/2012 | Water | 1/6/2012 | | 4 | 10 | 1/6/2012 | Gas | 1/7/2012 | | 5 | 10 | 1/7/2012 | Ice | | | 6 | 20 | 2/6/2012 | Water | 2/10/2012 | | 7 | 20 | 2/7/2012 | Water | 2/10/2012 | | 8 | 20 | 2/8/2012 | Water | 2/10/2012 | | 9 | 20 | 2/9/2012 | Water | 2/10/2012 | | 10 | 20 | 2/10/2012 | Ice | | + --------------- + -------- + ----------- + -------- + ---  +) It can do in a compact way:  
  SQL & gt; 2 Selecting 1, 10, Date '2012-03-01', Table 4 in the form of all 4 selected 2, 10, dated '2012-04-01' from 'Ice' dual union (observation id, area, obs_date, status 2) Create, all 5 selected 3, 10, dated '2012-05-01' from 'water' dual union, all 6 selected 4, 10, dated '2012-06-01', from dual 'water' dual union 'Gas' Association All 7 Selection 5, 10, Date '2012-07-01', 'Ice' from Dual Union 8 All 6 Selected 6, 20, Date '2012-06-02', 'Water' from Dual Union All 9 selected 7, 20, Date '2012-07-02', 'Water' from Dual Union All 10 F The condemnation 8, 20, dated '2012-08-02', 'Water' all 11, 9, 20, dated '2012- 09-02' from Dual Union, selection of all 12 from 'Water' Dual Union 10, 20, date '2012-10-02', 'Ice' from Dual; The table was created in SQL & gt; Overview for positioning, position, position 2, 5 measures from 3 models 4 dimensions (area, obset, status) (observation oriented, Obs_date_date2, cast (zero as date) position rule) rule 6 (7 position [change , Any, any] = minutes (obs_date2) [cv (field), obs_date> cb (obs_date), position! = Cv (status)] 8) order 19; OBSERVATIONID OBS_DATE STATU STATUS_CH ------------- --------- ----- --------- 1 01-Mar-12 Snow 01-AP -12 2 01-APR-12 Water 01-Jun-12 3-01-May-12 Water 01-Jun-12 4 01-Jun-12 Gas 01-Jul-12 5 01-Jul-12 Ice 6 02-Jun- 12 Water 02-OCT-12 7 02-July-12 Water 02-OCT-12 8-02-Aug-12 Water 02-OCT-12 9-02-SEP-12 Water 02-OCT-12 10-02-Oct-12 Snow   

Bella:

That is, we will give the dimension on the field, date and condition because we want to see the cells with the same area, but get the first date a C.

We must also measure the date so that I want to do an alias obs_date2 , and we want a new column status_change to change the situation Are there.

This line is a line that does everything for us:

  status_change [any, none, any] = minutes (obs_date2) [cv ( Area), obs_date & gt; Cv (obs_date), situation! = CV (status)]   

It says, for our three dimensions, look at the rows with only that area ( cv (region), ) and View the rows where the date is the date of the existing row ( obs_date> cv (obs_date) ) and the status is different from the current row ( status)! Finally, the minimum date can be obtained, which satisfies this set of conditions ( minimum (obs_date2) ) and it will be status_change Specify at Any, any, any on the left means that this count applies to all rows.

winforms - C# How to stop animated gif from continually looping -


I have an event that is called when my app uses the internet This event is animated with 7 frames GIF changes How do I create a loop only through a frame?

  Private zero traffic transmission active (object sender, traffic EventArgs e) {txImage.image = Properties.Resources.blip; }    

You can use System.Drawing.ImageAnimator To start / stop GI Animation

  // Start System.Drawing.ImageAnimator.Animate (txImage.Image, OnFrameChanged); // stop system. Drawing Image Animator. StopAnimate (txImage.Image, OnFrameChanged); Private zero onfame changed (object sender, eventarges e) {// frame change}    

ruby on rails - Reindex Sunspot Solr in Capistrano -


I'm following this snippet to add Sunspot Solr to Capistrano and it works, but when I use cap Runs the solter: reindex shows a question (as expected) asking whether I want to drop all the indexes, so I reply with "yes", but the terminal is waiting for a response.

This is the code for reindex:

  desc "reindex entire database" function: reindex ,: roles = & gt; : Stop the app "Rm-RF # {Share Share Path / / LLR Data" to run "CD # {current_path}" & amp; # {Rake} RAILS_ENV = # {rails_env} Sunscott: SLR: Reindex "End   

This message is:

  *" CD / home / user / RPS / AP / Current & amp; Amp; Amp; Bundle exec rake] = Execution sunglasses: solr: Reindex "Server: [" 9.9.9.9 "] [9.9.9.9] execution order ** [out: 9.9.9.9] * Note: reindex function removes your current indexed ** and will start with scratch. ** [out: 9.9.9.9] If you have a large dataset, then reindexing can take a very long time, probably weeks. ** [Out: 9.9.9.9] If you have somewhere Also, or more than 10 million rows, then it has not been encouraged. ** [Out: 9.9.9.9] Are you sure that your indexed and completely Want to drop Re-index? (Y / n) y   

How can I avoid that message? Besides, I would like to run this rake with Cron, then How could I first answer or set the default configuration? And what is the best / efficient method of reindex?

Thanks in advance.

After looking at the source 'ssource_rales source, your method currently precedes this message to force E-way is not seen

A bridge request has been submitted to support a silent option for rack work (one month ago), but it does not merge yet has been done. I either:

  1. Sunlight gem thorns and make changes to do the rack work (then change your desired gem Change your environment to use Gemfile).
  2. Add your capitrain work (for a few more times like this 10 seconds, this command must be taken at any time to appear), and then provide standard input with "y".

php - Get single array element in a function return -


यदि मेरे पास एक फ़ंक्शन है:

  function getTotal () {$ total = सरणी ("gcBalance" = & gt; 5, "gcTotal" = & gt; 10); वापसी $ कुल; }   

क्या कोई तरीका है कि मैं फ़ंक्शन को कॉल कर सकता हूं और लूप किए बिना gcBalance मान सरणी से बाहर कर सकता हूं? आदर्श रूप से यह कुछ ऐसा काम करेगा, लेकिन यह नहीं।

  $ balance = getTotal () [0]; प्रतिलिपि $ शेष;    

प्रतिलिपि करें $ शेष ['gcBalance'] चाहिए यह।

refactoring - How can I DRY out this Ruby Code -


How can I clear the following Ruby code:

  x = 'A random string If x.include? ('' ') X = x.split (' $ ') [0] if x.include? ('$') 'X = x.split (' ^ ') [0] to become? X = x.split ('*') [0] If x.include? ('*')   

I'm looking for a really elegant Ruby liner, but I'm taking a hard time maybe it's somewhat readable.

Thank you

I think this may be what you are looking for

x.split (/ \ ^ | \ $ | \ * /)

osx - where are MacPorts binary files? -


Try to use ant's rpm function to create a Linux installer on Mac OSX I am doing

I have installed MacPorts and compiled RPM which now works from the command line.

However, I would like to work with ant (from inside eclipse), but the ant any rpm is actually executable, whereis rpm It is not getting confused either ..

I have also tried to create a separate RPAP binary installer using the MacPorts ( sudo port pkg rpm ), but it is installed After doing nothing, nothing changed.

Where is the RPAP binary? "post-text" itemprop = "text">

MacPortes Binaries to / opt / local / bin .

According to the man page, search the directory contained in the whereis only user.cs_path sysctl variable (at least on the OS X).

java - How to use getWritableDatabase() in onCreate function of SQLite database? -


I'm writing an Android app. For this, I have to populate a SQLite database with data from a txt file. Therefore, in the on-going function of the database, I am creating the database and then I am populating it with the data. It is like the declaration of onCreate's declaration:

  Creating a Public Zero (SQLiteDatabase db) {  

But when I create this line inside the creature I use:

  db = this.getWritableDatabase (); I get this error in the logger in runtime: "java.lang.IllegalStateException: getDatabase recursively (812)". So now I am unable to populate the database from inside, I am creature and trapped. Any help would be appreciated.   

onCreate () gets the call for the first time, which is what you call getrereadableDatabase or getWriteableDatabase It is being said that the crate is being called repeat because DB is not yet created and your

  db = this.getWritableDatabase ();   

The call triggers creation within creation.

If you have to prefill the DB, just use the DB logic of the onCreate as a writable database.

  @Override Creating a Public Zero (SQLiteDatabase DB) {db.execSQL (YOUR_STATEMENT); . . }   

If you need to do many DB operations, then using

  db.beginTransaction (); . . Db.setTransactionSuccessful (); } Hold (SQLException e) {} Finally {db.endTransaction (); }   

Generally fast.

How to bind to a base type and a protocol in Xamarin.iOS -


I'm trying to create a xamarin app that uses the Cordoba library. I am working on my own bondage for the components of the library of my requirement, and till now, it is working well

Today I ran into an interesting problem though. I was trying to override the webview: shouldStartLoadWithRequest: method on CDVViewContainer

I have seen, and the two notes that correspond to the protocol interface, and as shown in the Advanced Binding Guide

  @interface UITextField: UIControl & lt ; UITextInput & gt; {}   

  @interface CDVViewController: UIViewController & lt; UIWebViewDelegate, CDVScreenOrientationDelegate & gt; {} [BaseType (typeof (UIViewController)) Interfaces CDVViewController: UIWebViewDelegate {}   

In {}

But when I try to build my compulsory library, do not have an interface in the < / Code>

I checked the Apple specifications, and can someone help me what I am doing wrong?

This is a limitation on the device. You can only use that syntax to adopt the protocol when you It can include its definition for this protocol, which does not work on adopting the protocol that is defined in the external definition.

jquery - How do I get this simple sales tax calculator to not break and clear fields? -


All I'm trying to do is not get it when I calculate, and clear the clear button two Make text field I know that I have a simple error and it's okay okay, thanks for the help!

  & lt; Form id = "form" & gt; Sub Total: & lt; Input id = "uptot" value = "5" type = "text" /> gt; & Lt; Br / & gt; Tax%: & lt; Input id = "tax" value = "6" type = "text" /> gt; & Lt; Br / & gt; & Lt; Input id = "calc" type = "submit" value = "calculation" /> & Lt; Input id = "reset" type = "submit" value = "clear" /> & Lt; / Form & gt;   

jquery:

  $ (function () {$ ('# calc'). Click (function () {var taxf = ($ ( 'Val () / 100); Val () (= (' $ subtot '). Val () * (Taffe + 1)) Tofix (2); Alert ("Your total is $"); $ (' # Form '). Submit ();}); addTax ()})    

You need to change some stuff.

Whatever has changed:

  1. Your reset button is of this type.
  2. Setting hard-coded values ​​as default is defined by They will not be eligible to reset.
  3. The final closing cell for the semi-colon and good practice has been added to your function call.

    HTML:

      
    form ID = "form" & gt; sub total: & lt; input id = "uptot" value = "" type = "text" /
    Tax%: & lt; Input ID = "tax" value = "" type = "article" /> gt;
    & lt; input id = "Calc" type = "submit" value = "calculation" /> & Lt; Input id = "reset" type = "reset" value = "reset" /> & Lt; / Form & gt; Click the

    jquery:

      $ (function () {$ ('# calc') (function () { Var taxf = ($ ('$ tax') Val () / 100); var tot = ($ ('# subtot'). Val () * (taxf + 1)) toFixed (2); Alert ("Your Total is $ "+ tot); $ ('# form'). Submit ();}); addTax ();});    

google app engine - GAE ndb security issue? -


I have two fake users who are with Sam and related ID 117138609372751079516 and 144229817858159123282.

The app has the following unit:

  class mccenti (NDB model): ownerId = ndb.StringProperty (default = users.get_current_user). User_id ())   

When both are logged at the same time and either the user first saves the entity, property 'owner income' randomly User ID with either : 117138609372751079516 or 144229817858159123282

Using a pre_put_hook problem is resolving:

  def _pre_put_hook (auto): If not self.ownerId: self.ownerId = users.get_current_user () User_id ()   

I have solved my immediate problem, but why is this happening in the first place? It has also been tested in development and production with a group of about 50 testers. 40% of them can see the institutions which were not theirs.

The problem is likely to be by default, the value of owner ID is only < Em> first is being set, when every app engine is created for class runtime instance MockEntity so when a new app engine loads the example, then the default user in Python interpreter The class is set by the user to load first.

See this classic problem in Python and for clarification of the same condition in NDB.

php - html size to fit content of object -


I'm using the [object] tag to display the text of the .txt file. The object is within a div When the object sets the text in a frame, which I can define the height and width. However, setting the height in auto, or 100% does nothing, with scroll bars, whatever area I text is displayed is small.

  & lt; Object type = "text / html" data = "./docs / description_a.html" style = "width: 100%;" & Gt; & Lt; / Object & gt;   

But no matter what I do, I can not spread it based on the length of the text. Any help is greatly appreciated.

You can use jQuery to set dynamically Height and Width:

  $ (document) .ready (function () {$ ("# obj") width ($ ("# cont"). Width ()); $ (" #obj ") height ($ (" # cont "). Height ());});   

HTML:

  & lt; Div id = "cont" & gt; & Lt; Object id = "ozzy" width = "height" = "" data = "www.google.com" & gt; & Lt; / Object & gt; & Lt; Div & gt;   

Solution 2

  & lt; Div & gt; & Lt; Object width = "600" height = "900" data = "www.google.com" & gt; & Lt; / Object & gt; & Lt; Div & gt;   

css

  div {height: 600px; Width: 900px; }    

php - combine option field results to text field -


I tried to find it and this is probably a simple solution, but I can not understand how an option field To combine the text field in HTML / php / js In fact, the user needs to choose whether he is http or https and then type in the domain. It should be presented as a single variable via _GET.

  & lt; Select & gt; & Lt; Option value = "http: //" & gt; Http: // & lt; / Options & gt; & Lt; Option value = "https: //" & gt; Https: // & lt; / Options & gt; & Lt; / Select & gt; & Lt; Input class = "span4" id = "domain" name = "domain" type = "text" & gt; & Lt; Button class = "btn btn-success" type = "submit" & gt; Submit & lt; / Button & gt; & Lt; / Form & gt;   

Any input will be appreciated.

I'll combine them after submitting ...

HTML page ( You need your SELECT name):

  & lt; Select name = "type" & gt; & Lt; Option value = "http: //" & gt; Http: // & lt; / Options & gt; & Lt; Option value = "https: //" & gt; Https: // & lt; / Options & gt; & Lt; / Select & gt; & Lt; Input class = "span4" id = "domain" name = "domain" type = "text" & gt; & Lt; Button class = "btn btn-success" type = "submit" & gt; Submit & lt; / Button & gt; & Lt; / Form & gt;   

PHP page:

  $ type = $ _GET ['type']; $ Name = $ _GET ['domain']; $ Composite = $ type $ name;             P> 

Of course. As $ name like $ type and www.example.com then the variable Must be a value of $ United for https://www.example.com

html - Get array from checkbox and then make a string in PHP -


I have a form on my website, which uses an array to submit checkbox data. I then try to manipulate the data with a foreach loop to add "::" to each checkbox data, and then I want to put it in a string, which I put in the database.

This is my HTML code:

  while ($ line = $ result-> fetch_assoc ()) {echo '& lt; Tr & gt; & Lt; Td> & Lt; Input type = "checkbox" name = "plugin list []" value = "'. $ Line [' plugin ']." "" /> Gt;   $ Line ['plugin']. '  

This is my PHP code which is $ _POST The data is, and then runs Foreach loop:

  if (empty ($ _ POST ['pluginlist'])) {foreach ($ _ POST ['pluginlist'] $ forms of plugins } $ {$ Plugins1 = $ plugins} ":";} Echo $ plugins1;}   

counterfeit $ plugins1 only provides the last checkbox data at the end with ":"

How can I create it so that I can check all the checkbox data in one database at a time Insert?

You can do the serialize data, I think it

Or you can try

  $ plugins1 = implode (":", $ _POST ['plugin list']);  < / Pre>  

Android: geolocation doesn't work anymore on some devices (since Jelly Bean (4.1.x) ?) -


I've got two apps on Google Play for several months. After a few weeks, I receive some emails from users who tell me that the app no ​​longer determines their location. My app has not been updated before these problems

An online transfered representative method is never called on these devices.

It seems that this problem is with devices with Android 4.1.x and high (Jelly Bean)

Note that on these devices that issue this issue, it seems that other applications that use geolocation also do not work anymore; Just Google Maps is still successful in managing the user geographically.

How to explain Geolocation Android 4.1.x Jelly Bean and above not working now?

I may be completely wrong but it may be What to do with the fact that if your app is using Google Maps Android API V2, your users need to activate location sources in two places before doing this:

    < Li> Settings & gt; Location use & gt; GPS or WiFi
  1. Accounts & gt; Google & gt; Location Settings & gt;

    If I disable another, my app that uses the API does not get any location updates anymore.

mysql - Sql error : Invalid use of group function? -


Hi I want to select a line with the maximum ID (primary key) \ n \ mon_id = xyz

In the following I have my SQL script

  check = "Choose from * Notes, where id = in max (ID) (from select * notes, where patient _ID =" + patientopin. Tagatentid = "+") ";   

I am getting invalid usage of group function error, you can tell us the error.

You are trying to do this:

 select  * notes from where the patient_id =? Id dexc limit 1 order    

ios - Switch between Master-Detail View and other view controllers on rotation? -


Now I'm testing an app for the iPad. Basically I'm using a template for the master extension app and another portrait controller now when the image starts in portrait mode, then I want to display it only portrait view controller and when the device is rotated, the example Landscape mode I only want to display master-detail view controller. What is the best way to do this?

I was testing the sample code for a single visual application, but refuses to hide the master-detail view:

  - (zero) WillmentToTotationInterfaceArrayation : (UIInterfaceOrientation) Interface Transfer Period: (NSTimeInterval) Period {if (Interface Orientation == UIInterfaceOrientationPortrait} {self.view = self.portrait; Self.view.transform = CGAffineTransformIdentity; Self.view.transform = CGF TransformMarketation (Degreered (0)); Self.view.bounds = CGRectMake (0.0, 0.0, 320.0, 460.0); } And if (Interface Orientation == UINPfaceOrmentation Landscape Lift) {self.view = self.landscape; Self.view.transform = CGAffineTransformIdentity; Self.view.transform = Cegiphen Transmembratorization (DegreesToradiades ("90"); Self.view.bounds = CGRectMake (0.0, 0.0, 480.0, 300.0); } And if (Interface Orientation == UINTERFACTATION LandscapeRight) {self.view = self.landscape; Self.view.transform = CGAffineTransformIdentity; Self.view.transform = Cegipeen Transmembration Radiation (Degrees (90)); Self.view.bounds = CGRectMake (0.0, 0.0, 480.0, 300.0); }}   

The view controller should not change its view in real time. You are not seeing anything because the old views of the view controller are still in the interface; You are not removing it from the interface nor should you do this. The way to do this is to swap the view controller ; Use a different view controller and a different view.

If you started with Master-Detail View Controller, this is the view (partition view) that the app's root view controller is UISplitViewController, it appears that is the view that you want to delete. So you have to change UISplitViewController as the window's rootViewController .

But this is a big pain in the butt. I think you can be happy to put a model (presented) view controller in front of everyone in Portrait Orientation.

This is a downloadable example that presents a visual controller in response to the device rotation:



java - Static block is never run -


I have a utility class that looks like this:

  Public Ultimate Class MyUtils {The public stable final list & lt; String & gt; MY_VALUES = New Arrestist & lt; String & gt; (); {MY_VALUES.add ("foo"); MY_VALUES.add ("bar"); }}   

I call it from another class like this:

  MyUtils.MY_VALUES   

If I do so, the list is empty and if I debug it, then I think the static block never runs.

As I understand the answers and the block should be run when is assigned a stable area of ​​class , which I am currently doing. I also tried to make the variable non-last to complete the condition "a non-static static field is used ".

I can use an init method, in other questions and ALS, but I still want to understand why it is not working at the first place, although I think the language specification The conditions are fulfilled from

You must add static keyword to your block to make it static :

  public final range MyUtils {public static final list & lt; String & gt; MY_VALUES = New Arrestist & lt; String & gt; (); Stable {MY_VALUES.add ("foo"); MY_VALUES.add ("bar"); }}   

A initialization block is created square each time.

A Static initialization block becomes called only once at the beginning of your program.

objective c - Iphone Contact list. Sort TableView view alphabetically -


I'm creating an iPhone Phonebook app that has an array of contacts (objects). I try to sort this array

But anything seems to work, I'm not sure where I will put my code in "MasterViewController". Here is part of my code

My object looks like the following

 @interface phonebookInter: person @ property NSString * firstName; @profile NSString * lastName; @ Property NSString * address; @ Property NSString * phoneNumber;   

@end
  @interface master VIPU controller: UITableViewController @property NSMutableArray * element; @end   
  @implementation MasterViewController - (id) initWithStyle: (UITableViewStyle) style {self = [super initWithStyle: style]; If (self) {} returns back to himself; } - (zero) viewDidoadload [[Super Viewedload]; Self.elements = [[NSMUTABARRRROL] INIT]; }   

Assume that the array already contains elements. I need to sort "self.elements.lastName" array alphabetically please !!!!!!!!

  [self Formats that sort the groups: @ [[NSSS descriptor sort descriptor with: @ "last name" ascending: yes]]];    

Access search form - search a delimited string -


I have created a simple search form that has the ability to search the individual box reference number. A report with output box number (or a list of box numbers, when the search returns a lot of matches), for example, searches for ABC 111, gives a report such as:

  box description ABC 1110 Stuff ABC 1114 and accessories ABC 1119 more stuff   

I use the following criteria in my Search_Query

  such as "*" & amp; [Forms]! [Search_form]! [Boxer] & amp; "*"   

But my client wants to paste a list of boxes in the box referee area such as ABC 1110, ADF 1234, AGT2 112

... and Display the report as follows:

  Box description ABC 1110 accessories ADF1234 Cool stuff AGT2112 more cool stuff   

Which criteria to get me this order is required?

Use regular expression in your search criteria, go through the link below, Will get the idea



c# - Why Doesn't the Code Deadlock -


Please explain to me why this code is not the reason of a deadlock?

  Fixed object listlock = new object (); Zero StartSync () {System.Threading.Task..Task.Factory.StartNew ((=) gt; Lock (base) support.opher ("mylistlist");}); } Public Observable Collection & lt; MyObjects & gt; MyList {Lock (Locklock) New Observation Collection & lt; MyObjects & gt; (_ MyOjectjectList); }}   

Some background details:
The program is using the MVVM pattern and MyList is a Datagrid < Strong> WPF UI .
_Office is a random list of objects.

This is because OnPropertyChange notifies the UI only that it will have to obtain new data from MyList and only without asking whether the UI actually receives data or No?
I know that OnPropertyChanged is said to be on a separate thread but the UI is present on a thread (the oo is not there) then the thread which is notified is also the thread that receives the data I think lock Will not be able to continue because of this?

The key is that the code of changing property handler some code schedule Does access MyList on the UI thread, but it does not wait for to end it

Then, a possible sequence of events It is:

  1. StartAsync () locks on a background thread. > is for .
  2. PropertyChanged handler for codecs code MyList on the UI thread
  3. By changing property handler for returns.
  4. The lock is in progress.
  5. Use the UI thread attempt MyList .
  6. The UI threads lock without waiting, because no other thread is its owner.
  7. One ?? |

    Another way to put it: I hope you expect it to be handler for PropertyChanged : < Pre> Dispatcher.Invoke (() => {If (e.PropertyName == "Mylist") {var newList = model.MyList; // Set new list as current value of some compulsion} });

    But in fact, this is something like this (the only difference is the first line):

      Dispatcher.BeginInvoke ((=) => {if ( E.PropertyName == "Mylist") {var newList = Model. MyList; // set as the current value of some bonds newList}});    

regex - PHP Matching URLs and using preg_replace_callback() -


मैं $ content inside all URLs को खोजने के लिए निम्न का उपयोग करता हूं

  $ content = Preg_match_all ('/ (http [s]?: [^ \ S] *) / i', $ सामग्री, $ लिंक);   

लेकिन यह http: // भाग में http://www.google.com/some/path पर निर्भर करेगा ।

मेरे प्रश्न हैं:

1 - मैं केवल उस कोड को हिट करने के लिए कैसे संशोधित कर सकता हूं, जो कि केवल www के साथ शुरू हो रहे हैं, उदा। www.google.com ?

2 - मुख्य उद्देश्य लिंक ढूंढना है, और उन्हें किसी अन्य फ़ंक्शन से लौटाए जाने वाले मान के साथ प्रतिस्थापित करना है। मैंने preg_match_callback () की कोशिश की है, लेकिन यह काम नहीं कर रहा है (शायद इसका गलत इस्तेमाल करना ..

  $ content = preg_replace_callback ("/ (http [s]?: [^ \ S] *) / I "," my_callback ", $ content); function my_callback () {// बहुत सारे सामान स्वतंत्र रूप से preg_replace // में जोड़ते हैं। = आउटपुट ... $ आउटपुट लौटाते हैं}}   < P> अब, मेरे तर्क में (जो शायद गलत है)  $ content  से सभी मिलानों को  $ output  से बदल दिया जाएगा। मैं क्या कर रहा हूँ गलत?  

(कोई अज्ञात फ़ंक्शंस न करें - मैं एक पुरानी सर्वर पर परीक्षण कर रहा हूं)

संपादित करें - टिप्पणियों के बाद, अधिक विवरण के साथ स्पष्ट करने की कोशिश कर रहा

  फ़ंक्शन o99_simple_parse ($ content) {$ content = preg_replace_callback ('/ (http [s] ?: [^ \ s] *) / i', 'o99_simple_callback', $ सामग्री); $ सामग्री वापसी;}   

कॉलबैक:

  फ़ंक्शन o99_simple_callback ($ url) {// यूआरएल कैसे प्राप्त करें जो वास्तव में मैच है? और चौड़ाई ?? $ url = esc_url_raw ( $ Link); $ url_name = parse_url ($ url); $ url_ नाम = $ विवरण = $ url_name ['host']; // http: // से छुटकारा पाएं। $ Url = 'http: // something' Urlencode ($ url) '? W =' $ चौड़ाई; वापसी $ url; // जो मुझे वास्तव में बदलने की जरूरत है}    

आप को पहले से ही करना है regex को संशोधित करने के लिए यूआरएल की अनुमति जो www से शुरू होती है, आप इसे बस लिख सकते हैं:

  / ((http [s] ?: | www [।]) [^ \ S ] *) / I +++++++++    

javascript - Simple backbone.js issue -


I do not understand why this is not working for life ... < P> It attains the spinal cord and does not underline any problems, and will not promote any errors, but it will not show the world to the console.

  & lt; Body & gt; & Lt; Script src = "D: /underscore.js" & gt; & Lt; / Script & gt; & Lt; Script src = "D: /" & gt; & Lt; / Script & gt; & Lt; Script type = "text / javascript" & gt; Person = Backbone.Model.extend ({initialize: function () {console.log ('Hello World');}}); & Lt; / Script & gt; & Lt; / Body & gt; & Lt; / Head & gt;  

You must create a new person Specify the properties. Then add:

  var myPerson = new person ();   

At the end of your script tag. And that should work.

java - How to use if statement and search for last letter in array -


I basically need to create an if statement that basically says "if the array is the last letter of the string So, blah blah blah, but I do not know the right way to do this.

Even so far away from me:

  Public Double Count Bonus ( String str) {double for dartsult = 0.0; double dResult = 0.0; string two lol = str.substring (0,2); for (int d = 0; d    P> 
  (TwoLol.charAt (twoLol.length () - 1) == 'P') {// blah deee blah}    

php - CodeIgniter CLI - passing multiple args to method -


I'm testing some models with a code ignition project via CLI, there are two arguments in this question:

  public function get_questions_from_block ($ block_name, $ return_array = FALSE)   

I have tried this:

  php index Php test_controller get_question_block_name example_block TRUE   

but it returns 0 or FALSE. How do I overcome many arguments through CLI? Do I have to use it:

  $ _ server ['argv'];   

To get all the arguments? Or is there any easy way?

You can $ _ SERVER ['argv'] < P> But in this case, I do not think it will help you (without heavy code modification).

Perhaps you should see that CI provides.

In that, you can easily do many tests against your model by doing something like the following in a separate unit test file:

  $ this-> load - & gt; Model ('test_model'); $ This- & gt; Unit- & gt; Run ($ this-> test_model- & gt; get_questions_from_block (args), $ expected_bewic / * what should be returned * /, $ test_name / * your test name * /);    

git - How can I merge finished work patch instead of its whole history into test branch? -


A developer starts working on a feature, "Fix a hardcode link" Calling, once done, it has been passed to another developer for a peer review. Peer reviewer is fine with code changes and merge feature branch in test branch "fix a hardcode link" Waiting for a technical test.

test where feature branches are merged once, another developer, staging is a branch where facility branches merge once Is given when he goes through peer review, TT and UAT.

The next developer starts working on the next card and creates a branch like this:

  git checkout test git checkout -b story / bar  < / Pre> 

The developer completes the job and sends it for reviewer. Peer reviewer is happy with the code passing in the TT and UAT, all are happy and it goes on the PO. POO is happy in feature branch merging

  GIT checkout staging GIT merge merge / story / bar   

that I did it It has been found that we are not only enclosing the patches fixed for the particular card, but also implementing the entire history that comes with the branch. The result is that "Fix a hardcode link" is staging but it has not been processed.

  • Is our approach and any suggestion
  • Should we take out our feature branches out of the scaffolding? In fact, you have to keep in mind the publishing workflow (push / pull) in mind, And from the merge workflow ( feature to test to staging ...): Workflow of this publication A.

    Any new feature branch should be developed above the latest official version that you will be using with that < feature .

    If this is staging , then this means:

      git fetch git checkout -b newFeature origin / staged #hack ... # Ensure that the new feature still works as a top level # Since the staging can get other features # git rebase ori gene / staging # local and / or unit testing during the development of the new feature GIT Fetch ... # Git Push for review - u original newfactor   

    When you are merging the feature to > test or staging , you should rebus newFeature at the top of test , then at the top of staging , and then Merge newFeature (merge faster forward).
    Any conflicts during the rebase mean that the facility has been rejected (the developer has to fetch, then resize it so that the newFeature branches are causing local trouble Why is that conflict).

c - "expected ')' before numeric constant" when calling sem_init -


Assign an OS programming using straightforward and posx threads. Here is my code:

  #include & lt; Pthread.h & gt; # Include & lt; Semaphore.h & gt; Sem_t mutex, to_b, to_a; Int main () {// Start semaphores sem_init (and mutex, 0, 1); Sem_init (and to_b, 0, 0); Sem_init (and to_a 0, 0); }   

gcc main.c -lpthread I'm getting the compilation:

  main.c: Main ': Main.c: 11: 24: error: expected') 'numeric constant before main.c: 11: 24: error: work on' sem_init '/usr/include/semaphore.h:37:12 Too few arguments: Note: Declared here   

With any idea what can this be? I'm definitely saying sem_init.

  sem_init (and to_a 0, 0);   

should be

  sem_init (and to_a, 0, 0);    

c++ - Hash function for vector -


First of all, I am thinking that a vector representing a ND vector is aware of a hash function for it?

Second, is there a similar hash function, where I can specify a resolution such as two "close" vectors haveh same values?

For example: given resolution r = 0.01 q1 = {1.01, 2.3} q2 = {1.01, 2.31} will haveh for the same value.

Thanks for the help!

Perhaps something like this will work for you?

  #include & lt; Stdint.h & gt; # Include & lt; Iostream & gt; # Include & lt; Vector & gt; using namespace std; // Simple version of ELF hash ... but you can use any general purpose hashing algorithm here, instead of static inthechcodeforbite (const char * bytes, int newbietes) {unsigned long H = 0, g; For (int i = 0; i  & gt; 24;} H & amp; = ~ G; } Returns H; } Stable Intheshförring (Double V) {Return GatehashCodeFourabettes ((Const four *) and V, Sape (V)); } Static IntheshfedWeekVector (Const Vector & lt; Double & gt; & amp; v) {int ret = 0; For (int i = 0; i    

javascript - How to bring a dropdown (Chosen) with selected value on page loads.? -


I am using the selection box. I am replacing these two boxes at an AJAX request. I want the check box to be filled first, when it comes. I tried to do something and it failed. I read it and unable to complete. After reading the docs I have tried. I am talking about Ajax response once.

  var city = $ ('# hdnCity'). Val (); // ** Ajax requests goes and the response is here ** // $ ('# searchParams'). Html (responseText); Var values ​​= $ ("# favCities1options" in ("+ city +") "). Ether ('selected', 'selected'); $ ("# Chzn-Select") Val (value) .trigger ("List: Update") .;   

I am unable to fulfill it helpful thanks in advance! The problem is with the last line: $ ("# $ (" #########################) Chzn-select ").

You have to separate because $ (" # chzn-select "). Val (value) only jQuery Returns the object, but