Posts

Showing posts from January, 2014

Bible Contradiction on When the Stars Were Created

Bible Contradiction on When the Stars Were Created 1.When Did God Create the Stars? Bible Contradiction on When the ... Description:Readers Respond: Resolving the Bible Contradiction on When the Stars Were Created 2.When Did God Create the Stars? Resolving the Bible ... Description:Share Your Solution Resolving the Bible Contradiction on When the Stars Were Created 3.Bible contradiction - Light before the sun - YouTube Description:Why does the Genesis 1:3 mention light when the sun and stars were not created until the fourth day? How is there morning and evening without the sun ... 4.The Thinking Atheist - | Bible Contradictions Description:Bible Contradictions. ... The stars gave light to the earth immediately, ... Genesis 1:26-27 Adam and Eve were created at the same time. 5.A List Of Biblical Contradictions - Agnosticism Description:... stars (as calendrical and navigational aids ... How orderly were things created? #1: ... wi
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#

Country History – Western Sahara

Country History – Western Sahara 1.Country History – Western Sahara - About.com African History Description:Western Sahara - a Country Profile from the BBC An extremely brief historical overview accompanies this BBC Country Profile of Western Sahara. Of particular interest ... 2.History of Western Sahara - Wikipedia, the free encyclopedia Description:The history of Western Sahara can be traced back to the times of Carthaginian explorer Hanno the Navigator in the 5th century BC. Though few historical records are ... 3.Western Sahara - Wikipedia, the free encyclopedia Description:Western Sahara is a disputed territory in the Maghreb region of North Africa, bordered by Morocco to the north, Algeria to the extreme northeast, Mauritania to the ... 4.Western Sahara (proposed state): History, Geography ... Description:Information on Western Sahara (proposed state) — geography, history, politics, government, economy, population statistics, culture

10 June 1940 – World War II reaches Africa

10 June 1940 – World War II reaches Africa 1.10 June 1940 – World War II reaches Africa Description:10-06-2007 · With Italy's declaration of war against Britain and France, forces on both sides in North Africa are put on alert. The following day, Britain makes the ... 2.This Day in African History -- World War II reaches Africa Description:10-06-2013 · With Italy's declaration of war against Britain and France on 10 June 1940, forces on both sides in North Africa are put on alert. The following day ... 3.World War II Day by Day: June 1940 Description:World War II Day by Day: 1940. ... June 10 Western Front, ... New Zealand, and South Africa the following day. June 12-14 Sea War, ... 4.Timeline of World War II (1940) - Wikipedia, the free encyclopedia Description:Timeline of World War II (1940) From Wikipedia, ... 6 June 1940; 7 July 1940; 8 August 1940; ... 10: Italy declares war on France and the United Kingdom.: ... 5.Medi

African Members of the Commonwealth of Nations

African Members of the Commonwealth of Nations 1.Member states of the Commonwealth of Nations - Wikipedia, the ... Description:... New Zealand, South Africa, the Irish Free State, ... Presently, of the states that are members of the Commonwealth of Nations, three are in Europe, ... 2.Alphabetical List of African Members of the Commonwealth of ... Description:A list of when various African countries joined the Commonwealth of Nations. 3.Commonwealth of Nations - Wikipedia, the free encyclopedia Description:The Commonwealth of Nations, ... due to hostility from many members, particularly those in Africa and Asia as well as Canada, to its policy of apartheid. 4.Africa and the Commonwealth of Nations - About.com African History Description:See this Chronological List of African Members of the Commonwealth of Nations, ... Did African Countries Always Join the Commonwealth of Nations? All those African ... 5.Member countries | The Commonw

Walt Disney-Tishman Collection

Walt Disney-Tishman Collection 1.African Vision: The Walt Disney-Tishman African Art Collection Description:Skip Introduction and enter the exhibit 2.Walt Disney-Tishman Collection - Smithsonian, National Museum ... Description:The Walt Disney Company donated a 525-piece collection of mainly West African traditional art on 29 September 2005 to the Smithsonian Institution, with the works to ... 3.Introduction / African Vision: The Walt Disney-Tishman African ... Description: bing.com/images 4.Walt Disney-Tishman Collection - About.com African History Description:... a subsidiary of the Walt Disney Company, gave all 525 objects in the Walt Disney-Tishman African Art Collection to the National Museum of African Art, ... 5.Disney Hipster Blog: Walt Disney - Tishman African Art Collection Description:24-02-2009 · In 2005 the Walt Disney Company donated a 525-piece collection of mainly West African traditional art the Smithsonian's
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#

African History April 2008 Archive

African History April 2008 Archive 1.African History April 2008 Archive Description:This Day in African History: first reports of the Rwandan genocide are starting to appear in the international press.Find out more about how survivors of the Rwandan ... 2.National African American History Month, 2008 Description:April 2008; March 2008; February 2008; ... Home > News & Policies > Proclamation Archives: ... National African American History Month, 2008 3.African History August 2008 Archive Description:African History August 2008 Archive. Education; African History. Search. ... (who had been in power since 19 April 2007) and Prime ... Read More. Comments (0) Permalink; 4.World History 9: April 2008 Archives Description:April 2008 Archives Q4: ... Today's focus will be on Africa and Chapter 15. ... The Samurai Archives - Japanese History Page 5.Archive for April 9th, 2008 - The History Blog Description:Archive for April

Luís de Almeida Cabral -- A Biography of the Guinea-Bissau Leader Luís Cabral

Luís de Almeida Cabral -- A Biography of the Guinea-Bissau Leader Luís Cabral 1.Luís de Almeida Cabral -- A Biography of the Guinea-Bissau ... Description:A Biography of the Guinea-Bissau Leader Luís Cabral ... A Biography of the Guinea-Bissau Leader Luís Cabral. ... Luís de Almeida Cabral, ... 2.Luis de Almeida Cabral | Fundstellen im Internet | cyclopaedia.net Description:Fundstellen zu "Luis de Almeida Cabral" im Internet, an Universitäten und in der Literatur... cyclopaedia.net 3.Luis Cabral - Email address, photos, phone numbers to Luis Cabral Description:Luís de Almeida Cabral -- A Biography of the Guinea-Bissau ... A Biography of the Guinea-Bissau Leader Luís Cabral ... Luís de Almeida Cabral, ... 4.Luis Cabral - Email, Address, Phone numbers, everything! www ... Description:Luís de Almeida Cabral -- A Biography of the Guinea-Bissau Leader Luís ... A Biography of the Guinea-Bissau Leader Luís Cabral ... 5

This Day in African History: December 17

This Day in African History: December 17 1.This Day in African History: December 17 Description:1947, 17 December The leaders of the seven Arab League States call for an armed over Palestine. 1960, 17 December Emperor Haile Selassie returns to Ethiopia after ... 2.This Day in African History: December Description:This week in African history Key events in Africa from the 20th century and earlier. This Day in African History: December 1 A chronicle of events in African history ... 3.This Day in History: December 17 | Infoplease.com Description:History; Geography; Buildings & Structures; Disasters; ... December 17: Yesterday Tomorrow: 1777. ... or choose another day: 4.This Day | History - History.co.uk | Shows, Videos, Topics and ... Description:This Day; Topics. History of South Africa; History of WW2; ... Then at 10:35 a.m. on 17 December, ... This day in history. 5.This Day in History — History.com — What Happened Today in ...

The Gambia -- A Very Short History of The Gambia

The Gambia -- A Very Short History of The Gambia 1.The Gambia -- A Very Short History of The Gambia Description:A potted history of The Gambia. ... Definition: Archaeological evidence, in particular the Wassu Stone Circle, show that people have been living in the region since ... 2.County History - Gambia - About.com African History Description:A Very Short History of The Gambia ... A chronology of important events in the history of The Gambia given by year (and for more recent events by month also). 3.The Gambia - Wikipedia, the free encyclopedia Description:The Gambia (the officially the Republic of the Gambia) is a country in West Africa. It is surrounded by Senegal, apart from a short strip of Atlantic coastline at its ... 4.Gambia; a short numismatic history Description:... Gambia; a short numismatic history ... I wouldn't be too surprised if the word 'Butut' was the Wolof word for 'Peanut',as Gambia is very well
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#

Africa's 100 Best Books (Part 4 of 5)

Africa's 100 Best Books (Part 4 of 5) 1.Africa's 100 Best Books (Part 4 of 5) - About.com African History Description:Africa's 100 Best Books ... Kenya (3), Lesotho (1), Mali (1), Morocco (2), Mozambique (4 ... (19), Sudan (1), Tanzania (1), Tunisia (1), Uganda (3), Zimbabwe (5). ... 2.Africa's 100 Best Books (Part 1 of 5) - About.com African History Description:Africa's 100 Best Books of the 20th Century ... with Burgher's Daughter; and four presidents: ... Africa's 100 Best Books (Part 5 of 5) 3.Best books | Books | The Guardian - Latest news, world news ... Description:We round up the best books, ... Show five more… … Africa; Americas; Asia Pacific; Atheism; Christianity; ... 5. The 100 greatest novels of all time: ... 4.The 100 Best Books of All Time - Wikipedia, the free encyclopedia Description:1 List of the 100 Best Books of All Time; 2 List of Authors Surveyed; 3 See also; 4 References; 5 External links

amazon web services - Building zip file with Visual Studio -

i using visual studio 2013 develop website. website on github, , have server continuous integration set teamcity. i trying website automatically deploy aws when change on github. have teamcity hooked up, aws cli having issues, need compile solution in teamcity zip file can deploy aws using workaround. i've tried editing project files msbuild fix...i managed zip file output. however, ran problems general compilation. what wondering is, since can publish website package visual studio, possible compile if publishing using build commands teamcity (or command line) result compiled project , website files needed run site in zip file? you can create zipped artifact in teamcity. build project set artifacts build this: outputfolder\*.dll=>myzipfile.zip outputfolder\*.whatever=>myzipfile.zip etc obviously you'll need change outputfolder files output build , patterns macth files want

text - C# Console Application: How do I open a textfile maximized? -

hello! (i'm new stackoverflow) i have question concerning c# console . i want open .txt file in same directory. code (the name of text file readme.txt): string path = system.io.directory.getcurrentdirectory() + @"\readme.txt"; string[] filecontents = system.io.file.readalllines(path); system.diagnostics.process.start(path); the code works fine, want text file opened maximized. how make this? by specifying processstartinfo parameters: string notepadpath = environment.systemdirectory + "\\notepad.exe"; var startinfo = new processstartinfo(notepadpath) { windowstyle = processwindowstyle.maximized, arguments = "readme.txt" }; process.start(startinfo);

Send file by jquery ajax to a CodeIgniter Controller -

i need "send" file (from form) , other data codeigniter controller, using ajax. this: $("#formuploadajax").on("submit", function(e){ e.preventdefault(); var f = $(this); var formdata = new formdata(document.getelementbyid("formuploadajax")); formdata.append("dato", "valor"); //formdata.append(f.attr("name"), $(this)[0].files[0]); $.ajax({ url: "example/examplerecibe.php", type: "post", datatype: "html", data: formdata, cache: false, contenttype: false, processdata: false }) .done(function(res){ $("#mensaje").html("respuesta: " + res); }); }); ... the codeigniter controller validatew file , other data, , creates file in respective folder. i try lot of code stackoverflow -and othe

android - Manually trigger click on Facebook Native Ad -

i using corona enterprise, , entire ui defined in corona's lua code. have setup facebook native ads, requested test ad, , used: nativead.getadcoverimage().geturl() nativead.getadcoverimage().getwidth() nativead.getadcoverimage().getheight() to download ad image , display @ correct ratio in lua code using: local function fbimagelistener(event) if event , event.response , event.response.filename print("received cover image") local testimage = display.newimagerect(maingroup, event.response.filename, system.temporarydirectory, e.coverwidth, e.coverheight) testimage.x, testimage.y = display.contentwidth * 0.5, display.contentheight * 0.5 end end network.download( e.coverurl, "get", fbimagelistener, "fbad.png", system.temporarydirectory) the problem have if add touch listener in lua code new display object, don't know how trigger "adclicked" function in fb sdk. i need put native ad corona display g

d3.js - d3 drag works but appear Uncaught TypeError: a.target.className.indexOf is not a function -

i practice use d3 drag svg circle around. it works except following error appeared in console: "uncaught typeerror: a.target.classname.indexof not function" what wrong code? following code: <!doctype html> <html lang="zh-hant"> <head> <title></title> <meta charset="utf-8"> <script src="http://d3js.org/d3.v3.min.js"></script> </head> <body> <p> <svg width="300" height="200"> <circle cx="100" cy="100" r="5" fill="red" /> <circle cx="50" cy="70" r="5" fill="red" /> </svg> </p> <script> var drag = d3.behavior.drag() .on("drag", function () { d3.select(this).attr("cx", d3.event.x) .attr("cy",d3.event.y); }); d3.

c++ cli - What is %c equivalent for String.Format in .NET? -

i tried find way port "%c" formatting in printf style function .net language, failed. example, how can write: char code = 'a'; sprintf(text,"oops! %c",code); in c++/cli tried did not give me 'a'! edit: first tried format value character 'a' or 'b' or 'c'... environment visualstudio 2008, cli/cpp, .net 3.5. wrote test code show did. string^ text; char charc = 'a'; text = string::format("(1) oops! {0}",charc); outputdebugstring(text); char charv = 1; text = string::format("(2) oops! {0}",charv + 0x60); outputdebugstring(text); text = string::format("(3) oops! {0}",(char)(charv + 0x60)); outputdebugstring(text); int intv = 1; text = string::format("(4) oops! {0}",(char)(intv + 0x60)); outputdebugstring(text); result different expected. (1) oops! 97 (2) oops! 97 (3) oops! 97 (4) oops! 97 above code seems working differently code suggested others. , feel sor

ios - Integer Division ('Int' is not convertible to 'Double') -

Image
i comming c# , started checking swift ios , got following issue... i want convert pence amount pounds , finding problem integer division in swift. following error getting. what can't understand is, works ok in line 38 way same erroring in line 40 when using variable. edits decval1 = 23.4 correct. why decval2 can't have same? in swift cannot math different types (in case int , double ). int , uint not interchangeable. you have create new instances of matching type var mynumber : int = 2340 var doublediv : double = double(mynumber) / 100.0 the decimal places in literals not necessary in cases, clearer use same signatures.

c++ - Buffering Bytes - Node.js Addon -

i want receive wav stream node.js (in add-on). implemented this: readablestream.on('data', function(chunk) { var obj1 = addon.buffering(chunk);//my addon }); but want buffer information, , create copy of original wav. far can't populate new file bytes. void buffering(const functioncallbackinfo<v8::value>& args) { isolate* isolate = isolate::getcurrent(); handlescope scope(isolate); local<object> bufferobj = args[0]->toobject(); char *buf = node::buffer::data(bufferobj); if (i == 0){ fp = fopen("copy.wav", "wb"); i++;} fwrite(buf, 1, sizeof(buf), fp); fflush(fp); if (i == 3){ fclose(fp); } i++; local<string> devolve = string::newfromutf8(isolate, "buffering_success");//c++--->js args.getreturnvalue().set(devolve); } i don't understand why, sizeof(buf) small. think because of that. with precious tip of @mat: nodejs: readablestream.on('data', function(ch

java - Is there a way to compare two doc files that are located online? -

how go comparing 2 doc files download links on html page? working in java. want pull 2 files 2 separate urls compare them (removing spacing, using trim?) i using watij bit don't think has capability. edit: if webpage has multiple hyperlinks named "download file", there way list urls without knowing them , coding them manually? to compare 2 files. open file input stream , use ioutils url url1 = new url("http://path/file1.txt"); url url2 = new url("http://path/file2.txt"); inputstream is1 = url1.openstream(); inputstream is2 = url2.openstream(); if( ioutils.contentequals( is1, is2 ) ) { //the same content }

python - Having issues when install mitmproxy through pip -

i having following issue when installing mitmproxy through pip. have tried other fixed related egg error. here on stack overflow. can't install via pip because of egg_info error pip install matplotlib fails: 'cannot build package freetype; "python setup.py egg_info" failed error code 1' 104:bin user129856$ sudo pip install mitmproxy directory '/users/alokchoudhary/library/caches/pip/http' or parent directory not owned current user , cache has been disabled. please check permissions , owner of directory. if executing pip sudo, may want sudo's -h flag. directory '/users/alokchoudhary/library/caches/pip/http' or parent directory not owned current user , cache has been disabled. please check permissions , owner of directory. if executing pip sudo, may want sudo's -h flag. collecting mitmproxy /library/python/2.7/site-packages/pip-7.1.0-py2.7.egg/pip/_vendor/requests/packages/urllib3/util/ssl_.py:90: insecureplatformwarning: true sslcon

angularjs - PhoneGap build - Config.XML - REST CALL fails due to 'ConnectionError' -

i've built application using phonegap build using custom config.xml : <?xml version='1.0' encoding='utf-8'?> <widget xmlns = "http://www.w3.org/ns/widgets" xmlns:gap = "http://phonegap.com/ns/1.0" id = "com.package" versioncode = "25" version = "1.0.1" > <name>test app</name> <description>test app</description> <icon src="res/img/icon.png" /> <icon src="res/img/icon.png" platform="android" density="ldpi" /> <icon src="res/img/icon.png" platform="android" density="mdpi" /> <icon src="res/img/icon.png" platform="android" density="hdpi" /> <icon src="res/img/icon.png" platform="android" density="xhdpi" /> <feature name="http://api.phonegap.com/1.0/network" />

javascript - Local Storage Error on array push -

i'm doing tests local storage. in tests array, stuck in array part (push). what i've done: if (localstorage.myarray) { localstorage.myarray.push("green"); } else { localstorage.myarray = ["red", "blue"]; } this returns error: uncaught typeerror: localstorage.myarray.push not function i know localstorage itens string, don't know how works in array. since localstorage takes strings, have convert arrays json strings using json.stringify. parse json strings array while performing further operations on "arrays". if (localstorage.myarray) { var myarray = json.parse(localstorage.myarray); myarray.push("green"); localstorage.myarray = json.stringify(myarray); } else { localstorage.myarray = json.stringify(["red", "blue"]); }

java - How to use nested foreach in jsp -

i using struts2 framework jsp. want have nested foreach in jsp getting below error @ inner foreach. getting error while iterating nested objects from. <c:foreach var="emp" items="${dept.emplyees}"> exception: caused by: javax.servlet.jsp.jsptagexception: don't know how iterate on supplied "items" in &lt;foreach&gt; @ org.apache.taglibs.standard.tag.common.core.foreachsupport.toforeachiterator(foreachsupport.java:274) ~[jstl-1.2.jar:1.2] @ org.apache.taglibs.standard.tag.common.core.foreachsupport.supportedtypeforeachiterator(foreachsupport.java:238) ~[jstl-1.2.jar:1.2] @ org.apache.taglibs.standard.tag.common.core.foreachsupport.prepare(foreachsupport.java:155) ~[jstl-1.2.jar:1.2] @ javax.servlet.jsp.jstl.core.looptagsupport.dostarttag(looptagsupport.java:291) ~[javax.servlet.jsp.jstl-api-1.2.1.jar:1.2.1] @ org.apache.jsp.views.home.home_jsp._jspx_meth_c_005fforeach_005f1(home_jsp.java:364) ~[na:na]

java - How to change Content-Location header in SDR association resource? -

in spring project i'm using neo4j database layer, , it's own graphid not entirely reliable, using textual ids (e.g. email address users) nodes. i can change hateoas links in response resources, , work fine. is there way change link in content-location header well?

android - how to identify what view was clicked(button,textview,imageview) in a listview raw with simpleadapter -

im using listview simpleadapter in each listview row there layout contains 3 buttons ane 1 textview how can inner listview row widjet clicked in onitemclicked method, dont want use own costume adapter possible? no. onitemclicked whole view. if need individual separation must create own custom adapter , set onclicklistener each of button inside view.

swift - Remove repeated code possible, is there a more elegant solution? -

i'm new swift... i loop through hand of cards (not shown below), , compare each card determined best option. if has better value, replace struct variable "bestoption" card , appropriate value (penaltyvalue, arbitrary, can -5, -1, 9, 199, doesn't matter question). so each card in hand call "comparereplacebestoption" card. the bestoption variable, struct, empty (none value) , therefor filled first card , value. each following card compare (and possibly replace) card value in bestoption variable (which of value). this code ugly several reasons (all advice appreciated), strikes me double assignment variable bestoption (a struct). question : there more elegant solution there 1 assignment (i create small function assignment, end conceptually same issue) having statement twice hurts... bestoption = ( card , newpenaltyvalue ) (side information: g.cardstack[0] in previous turn played card face on stack. handca

Excel - Using Sheet2 equations to calculate multiple scenarios on Sheet1 -

i have setup sheet2 have 3 input fields (cells) , number of equations calculate result. there intermediate steps, lookup tables, etc.. let's input on sheet2 is param1 goes in cell a1, param2-a2, param3-a3, result-a5 now take sheet1 has rows of data sets need calculated same process. row 1 have aparam1, aparam2, aparam3, aresult1 row 2 have bparam1, bparam2, bparam3, bresult1 ...... is there way have excel plugin param1,2,3 values sheet2, result , write sheet1? doing multiple rows, re-using sheet2 calculations. i suppose can in vba, copying values on in sets , getting result, there non-vba approach? there easy way re-use formula set based upon given parameters (that exist in different sheet) , return result. similar every time use built in function in excel's normal function list. you can define custom function in vba wanting. here quick example of how custom function defined. has few parts: function definition, variables input, output data type , retu

javascript - My second script with a dropdown-list doesn't work -

this question has answer here: event binding on dynamically created elements? 19 answers hi. i'm new here. , i'm not in english. i've got problem in code. step 1. made first dropdown list. step 2. second dropdown list created when first dropdown list value changed. step 3. alert msg should shown when selected value of second dropdown list changed. step1,2 ok step 3 not. please give me way solve problem. thanks! html <select id="group"> <option value="none">select group</option> <option value="a">a</option> <option value="b">b</option> </select> script /////// works /////// $('#group').change(function(event){ var optionname = $('#group').val(); var aa = new array("1", "2"

c# - Replace double String.Format with string interpolation -

i tried migrate line of code uses string.format twice new .net framework 6 string interpolation feature until not successfull. var result = string.format(string.format("{{0:{0}}}{1}", strformat, withunit ? " kb" : string.empty), (double)filesize / filesizeconstant.ko); a working example be: var result = string.format(string.format("{{0:{0}}}{1}", "n2", " kb"), 1000000000 / 1048576d); which outputs: 953,67 kb is possible or need use old construct special case? the main issue lies in strformat variable, can't put format specifier "{((double)filesize/filesizeconstant.ko):strformat}" because colon format specifier not part of interpolation expression , not evaluated string literal n2 . documentation : the structure of interpolated string follows: $"<text> { <interpolation-expression> <optional-comma-field-width> <optional-colon-format> } <text>

Ansible with a bastion host / jump box? -

this question has answer here: ssh remote server using ansible 1 answer i'm i've seen feature in ansible documentation can tell connect hosts first needs tunnel through dmz host. can't seem find documentation outside of debates on mailing lists. i'm aware of hacking in ssh config on page http://alexbilbie.com/2014/07/using-ansible-with-a-bastion-host/ that's overcomplicated kludge extremely common requirement in kind of mildly regulated environment. is there way without using custom ssh config includes , voodoo netcat sorcery? with ansible 2, built-in option : how configure jump host access servers have no direct access to? with ansible 2, can set proxycommand in ansible_ssh_common_args inventory variable. arguments specified in variable added sftp/scp/ssh command line when connecting relevant host(s). consider following

python - Unable to install mod_wsgi package offline -

i have downloaded tar file below location, http://dl.iuscommunity.org/pub/ius/stable/redhat/5/x86_64/repoview/python27-mod_wsgi.html running rhel , apache 2.2 version in it. as per setup.py script starts downloading package apache site, can porivde me pointer while package of mod-wsgi ?

How to get the brightness level from the camera Android -

i want brightness level android camera. i need display light level detected android camera, there posibility ? private final sensormanager msensormanager; private final sensor mlightsensor; private float mlightquantity; public void oncreate(bundle savedinstancestate) { super.oncreate(savedinstancestate); setcontentview(r.layout.main); // obtain references sensormanager , light sensor sensormanager = (sensormanager)getsystemservice(sensor_service); lightsensor = sensormanager.getdefaultsensor(sensor.type_light); // implement listener receive updates sensoreventlistener listener = new sensoreventlistener() { @override public void onsensorchanged(sensorevent event) { lightquantity = event.values[0]; } } // register listener light sensor -- choosing // 1 of sensormanager.sensor_delay_* constants. sensormanager.registerlistener( listener, lightsensor, sensormanager.sensor_d

regex - I Want to execute Regular expression using beanshell preprocessor in Jemeter -

here code have written, import java.util.regex.*; import java.util.regex.matcher; import java.util.regex.pattern; string pstr ="review required"; int count = 50 for(int i=0;i<count;i++) { string tmp = "wirereviewapprove:headertable:0:wirestatusvalue">\(\.\+\?\)<\/span>"; pattern patternn = pattern.compile(tmp); matcher matcher = patternn.matcher(pstr); if (matcher.find()) { sampler.addargument("selecteditemid["+i+"]","true"); } } it giving error :error - jmeter.util.beanshellinterpreter: error invoking bsh method: eval sourced file: inline evaluation of: import java.util.regex.*; import java.util.regex.matcher; import java.util.reg . . . '' token parsing error: lexical error @ line 14, column 64. encountered: "\\" (92), after : "" 2015/07/14 08:15:15 warn - jmeter.modifiers.beanshellpreprocessor: problem in beanshell script org.apache.jorphan.util.jmeterexception: er

objective c - UIAlertController:supportedInterfaceOrientations was invoked recursively -

when 2 alert present 1 one, means 1 alert present , on them alert presenting , app crashing. have used uialertcontroller display alert. app crashing in ios 9 device. please me @ point. this bug in ios 9 failed retrieve supportedinterfaceorientations uialertcontroller . , seems dropped infinite recursion loop in looking supportedinterfaceorientations uialertcontroller (e.g., tracks uialertcontroler -> uiviewcontroller -> uinavigationcontroller -> uitabbarcontroller -> uialertcontroller -> ...), while call uialertcontroller:supportedinterfaceorientations not implemented/overridden in source code. in solution, added following piece of code: extension uialertcontroller { public override func supportedinterfaceorientations() -> uiinterfaceorientationmask { return uiinterfaceorientationmask.portrait } public override func shouldautorotate() -> bool { return false } } then uialertcontroller directly retu

Config File Management plugin in Jenkins -

i new jenkins.i went through webpage ( https://wiki.jenkins-ci.org/display/jenkins/config+file+provider+plugin#configfileproviderplugin-mavenservercredentials%28since2.7%29 ) , installed config file management plugin in jenkins. able create global maven settings.xml , able attach project configuration page project can use settings.xml while compiling. able add credentials config file well. question is: use of adding credentials settings.xml file. please pardon,if question sounds silly. please me out! thanks! here credentials needed perform different tasks. e.g. to deploy project remote server needs username/password (of remote server's) to clone private repo (from bitbucket / github ) building jenkins job needs username/password. also can use 'ssh username private key'.

Concatenating strings with mathematical symbols in Python 3 -

i created dictionary peoples' names such: names = {"first": , "second": , "third":} what want call each name , combine them string, being separated plus sign. below tedious way of doing it: str(names["first"]) + "+" + str(names["second"]) + "+" + str(names["third"]) this line larger module attempting create. tried following simplicity, resulted in syntax error: str(names["first"] "%+d" + names["second"] "%+d" + names["third"]) is there way of simplifying above prints: firstname+secondname+thirdname in python 2 have use hacky "{first}+{second}+{third}".format(**names) however, gingerplusplus points out, in python 3 can away **kwargs chicanery , instead use format_map "{first}+{second}+{third}".format_map(names)

python - Changing Json Data, getting TypeError -

edit : turns out whole problem json had been converted dictionary previously, without me realising. , using json.dumps() instead of .loads() mistake. original q :i have piece of json code have turned dictionary. retrieving json server. when try access inner values of new dictionary change value, a: typeerror: string indices must integers, not str this code: corner_data = json.dumps(r.json()) print corner_data corner_data["geometry"]["corners"] = '{"bottom_right": {"y": "575.531616", "x": "690.547363"}, "top_left": {"y": "-146.739075", "x": "-109.105957"}}' turn json string python dict using json.loads (not dumps !):* corner_data = json.loads(r.json()) modify data, assigning python dict (not string!): corner_data['geometry']['corners'] = {'bottom_right': {'y': '575.531616', 'x': '

How to get client IP address using python bottle framework -

i need client ip address using python. have tried below code not working in server: from socket import gethostname, gethostbyname ip = gethostbyname(gethostname()) print ip on server, '127.0.0.1' every time. there way find ip address of client? server might behind proxy. use proxy , forward support: request.environ.get('http_x_forwarded_for') or request.environ.get('remote_addr')

PHP LDAP showing blank screen -

whats wrong code below? have changed domain , server name etc. privacy reasons. the code shows blank page when should show @ least var dumps? <?php if(isset($_server['auth_user']) && isset($_server['auth_password'])){ $adserver = "ldap://ourserver"; $ldap = ldap_connect($adserver); $username = $_server['auth_user']; $password = $_server['auth_password']; $shortname = explode('\\', $_server['auth_user'])); ldap_set_option($ldap, ldap_opt_protocol_version, 3); ldap_set_option($ldap, ldap_opt_referrals, 0); $bind = @ldap_bind($ldap, $username, $password); if ($bind) { $filter="(samaccountname=$shortname)"; $result = ldap_search($ldap,"dc=ourdomain,dc=local",$filter); ldap_sort($ldap,$result,"sn"); $info = ldap_get_entries($ldap, $result); ($i=0; $i<$info["count"]; $i++) {

knockout.js - Knockout observable array not updating the UI -

i calling web service , json data. after using knockout js binding table.after when user type in text bax filters data , show in ui. not working. please find code below. <script src="../../scripts/jquery-1.10.2.min.js"></script> <script src="~/scripts/knockout-3.3.0.js"></script> @{ viewbag.title = "alltasks"; } <script type="text/javascript"> var viewmodel; var url = 'http://localhost:22653/api/alltasks'; $(document).ready(function () { debugger; var fajobviewmodel = function () { var self = this; self.parameters = ko.observablearray(); var alltask = json.parse(readjson(url)); function readjson(file) { var request = new xmlhttprequest(); request.open('get', file, false); request.send(null); if (request.status == 200) return request

arrays - How to get another Class ArrayList Java? -

i have 2 classes in java. first 1 has functional code. second 1 uses arraylist s. how can arraylist values first one? i new java , programming. if arraylist instance variable (it's been defined outside of method, make local variable) make public , visible other class. not practise, however. speaking, make arraylist private , write getter method returns reference arraylist. e.g. //declare @ top of class list<?> mylist = new arraylist<>(); public list<?> getmylist(){ return mylist; } assuming arraylist property of yourclass, access in method of yourotherclass need create instance of yourclass: private void somemethodinyourclass(){ yourclass yourclass = new yourclass(); list<?> yourlist = yourclass.getmylist(); } having said that, however, seem getting ahead of bit. example above basic demonstration of oop in java, touches upon generics , collections, suspect not quite ready yet. decent beginner's book on java - the

c# - What is a NullReferenceException, and how do I fix it? -

i have code , when executes, throws nullreferenceexception , saying: object reference not set instance of object. what mean, , can fix error? what cause? bottom line you trying use null (or nothing in vb.net). means either set null , or never set @ all. like else, null gets passed around. if null in method "a", method "b" passed null to method "a". the rest of article goes more detail , shows mistakes many programmers make can lead nullreferenceexception . more specifically the runtime throwing nullreferenceexception always means same thing: trying use reference, , reference not initialized (or once initialized, no longer initialized). this means reference null , , cannot access members (such methods) through null reference. simplest case: string foo = null; foo.toupper(); this throw nullreferenceexception @ second line because can't call instance method toupper() on string reference pointing null .