Posts

Showing posts from May, 2014

Jquery append when radio button selected -

i don't know why hopefully, can me out following code. <script src="/jquery-1.7.2.min.js"></script> <script> $(".static_class").click(function(){ if($(this).val()==="expanded") $(".widget_prev").append("<p>expanded</p>"); else $(".widget_prev").append("<p>minified</p>"); }); </script> <div> <input type="radio" name="ad_window" selected="selected" value="expanded" class="static_class" />ad window expanded <br /> <input type="radio" name="ad_window" value="minified" class="static_class" />ad window minimized <b>widget preview: </b> <div class="widget_prev"></div> </div> can't seem text appended. wonder problem lies. ma...

JQuery overlay close -

hi have got following code , want close overlay popup once save has been completed. html section displays html code block have , javascript block explains how i'm trying call overlay. <javascript> $(document).ready(function() { var triggers = $(".modalinput").overlay({ closeonclick: false }); var weightedtemplatebuttons = $("#addweightspopup button").click(function(e) { var save = weightedtemplatebuttons.index(this) === 0; if (save) { if (validateweightedtemplate()) { completeweightedtemplate(); addnewweightedtemplate(); /*this doesn't work*/ weightedtemplatebuttons.overlay().close(); } } return e.preventdefault(); }); </javascript> <html> <button id="addbutton" rel="#addweightspopup" onclick="addbutton_onclick();" class="modalin...

CSS Transform - Timing issue on Firefox -

i made css animations, , on webkit (safari/chrome), works fine, on firefox timing messed up. jsfiddle: http://jsfiddle.net/jmorais/p5xcd/1/ code: var open = false; var intransition = false; function opencard() { intransition = true; $('.out').addclass('openingout'); $('.in-left').addclass('openingin'); settimeout(function() { $('.out').css("z-index", "2"); $('.in-left').css("z-index", "3"); }, 850); settimeout(function(){ $('.out').removeclass('openingout').addclass('outopen'); $('.in-left').removeclass('openingin').addclass('inopen'); open = true; intransition = false; }, 3000); } function closecard() { intransition = true; $('.out').addclass('closingout'); $('.in-left').addclass('closingin...

android - Gyroscope gives different values on different devices -

i have strange gyroscope behavior: i have values[0] gyroscope sensor: angular speed around x-axis. on samsung galaxy nexus value -10 10. in samsung galaxy tab(old) - -100 100. so, why? can't understand. write application use gyroscope. on galaxy nexus ok, on galaxy tab because of greater values have problems. any sensor returned android's sensormanager provide range of values provided sensor. calculations should based on that, not hard-coded value.

PyCharm highlight occurrences -

Image
in eclipse, when click on variable mouse (you know, cursor somewhere in variable name), eclipse useful enough highlight other occurrences of variable in file. assume pycharm has this, have no idea how turn on. i knew how @ 1 stage, (from memory) keyboard thing had keep pressing each new variable. if highlighting possible, how keep on? you need enable setting: but question duplicate of intellij: how auto-highlight variables in eclipse .

layout inflater - Android LayoutInflater Issue -

here getview method of class downloadableprojectsfromwebadapter: @override public view getview(int position, view convertview, viewgroup parent) { view row = convertview; downloadableprojectsfromwebholder holder = null; if(row == null) { layoutinflater inflater = ((activity)context).getlayoutinflater(); row = inflater.inflate(layoutresourceid, parent, false); holder = new downloadableprojectsfromwebholder(); holder.txtpid = (textview)row.findviewbyid(r.id.tvallprojectspid); holder.txtname = (textview)row.findviewbyid(r.id.tvallprojectsname); holder.txtshareable = (textview)row.findviewbyid(r.id.tvallprojectsshareable); row.settag(holder); } else { holder = (downloadableprojectsfromwebholder)row.gettag(); } string share_text; allprojectlistinfo li = data.get(position); holder.txtpid.settext("id: " + integer.tostring(li.getid())); holder.txtname.settext(li.g...

How to DRY coffeescript -

how 1 adhere dry in case (the number of accordions large): $ -> $("#accordion-1").accordion autoheight: false navigation: true $ -> $("#accordion-2").accordion autoheight: false navigation: true it seems can create function generate function selector: create = (selector) -> $ -> $(selector).accordion autoheight: false navigation: true then: create "#accordion1" create "#accordion2"

iis 7 - Something is forcing responses to have cache-control: private in IIS7 -

i have in web.config: <system.webserver> <httpprotocol> <customheaders> <clear /> <add name="cache-control" value="max-age=30,public" /> </customheaders> </httpprotocol> </system.webserver> but when load page, response header: cache-control: private,max-age=30,public it asp.net mvc application, controller has no cache directives specified anywhere. try <system.web> <httpruntime sendcachecontrolheader="false" /> </system.web> let know how goes. jason

php - Filter Date using Date Picker in Yii -

i have generated crud screens using gii.. have search form, have put date picker, give user select date wants. but problem have date stored in seconds in database. and know can convert date using strtotime. how filter using search method in model? this date picker <?php $this->widget('zii.widgets.jui.cjuidatepicker', array( 'name'=>'ordering_date', 'id'=>'ordering_date', // additional javascript options date picker plugin 'options'=>array( 'showanim'=>'fold', ), 'htmloptions'=>array( 'style'=>'height:20px;' ), )); ?> and search method in model. want compare ordering_date public function search() { // warning: please modify following code remove attributes // should not searched. //echo $this->ordering_date; $criteria=new cdbcriteria; ...

theory - 3d graphics: Rasterizing triangles -

Image
this theoretical question. let's want draw triangle on screen. if supply vertex shader 3 points in 3d, convert them 3 points in 2d, in window coordinates, or screen coordinates. 3 pixel coordinates on monitor or display. how, here, graphics pipeline go filling in triangle, based on 3 points? guess this: bound triangle box determining upper , lower bounds x , y so: use bresenham's line algorithm draw 3 edges of triangle 3 different colors. cannot use regular color buffer step. do every row of pixels in box: start leftmost pixel (in whereever stored results of step 2), go right until hit edge. now, keep going right, coloring pixels in (running fragment shader), , writing regular color buffer, until hit different line (hitting different colored pixel in whereever results of step 2 stored). stop , go next line. draw edges fragment shader in regular color buffer. this seems complicated , inefficient solution. how done? have @ scanline algorithm . it's ...

linux - How to eliminate the dialog box arisen when run "setsid scp"? -

due reason, have use "setsid" run of commands. but, when running "setsid scp ~/aaa user1@10.170.3.17:/tmp/", dialog box requesting password arose. normally, prompt arises in command line. does caused configuration in ssh? want eliminate box. how achieve it? one of effects of setsid command process started via setsid(1) detached it's controlling terminal. without controlling terminal, scp cannot ask password on terminal started because not "see" any. however, "see" environment variable telling there x11 window session can show graphical utility ask password or passphrase needed unlock private ssh key used authenticate remote system. even if unset environment variable "sees" , uses route x11-ssh-askpass dialogue screen ( display ), not produce desired effect you, since required key missing , scp operation fail. one of solutions recommend here setting "passwordless" login (if applicable in given securi...

statistics - How to calculate goodness of fitting (GOF) from a dataset in java? -

what options calculate goodness of fitting (gof) dataset in java, looking @ apache math 3.0 library , not head around way calculate gof using it. suggestions other libraries or math 3.0? for linear least squares it's r coefficient. r = 1.0 means perfect fit; r = -1.0 means equation orthogonal data, r = 0.0 means no fit (thanks peter lawrey correction). typical values somewhere in between. for higher order functions should @ confidence level calculated each coefficient. the best way figure out visually: @ data , fit. if "could not head around" code "i never knew mathematics behind in first place", change in library won't help. taking time read , understand math will.

javascript - what mean of calling command (param1, param2, ...) -

i read e-book , find command, don't know it's purpose , when using it. example: var x = (12, 34, 56) x in case number , it's value 56. thanks. this full script read ebook 'javascript absolute beginners': var fridge = { buttermilk: [1/3, "cup"], kefir: [1 + 1/2, "cup"], yogurt: [4, "cup"], }; var dough = { hardwhitewholewheatflour: [2, "cup"], sugar: [1/3, "cup"], madagascarvanilla: [1, "tsp"], orangezest: [1, "tbs"], soda: [1, "tsp"], tartar: [1, "tsp"], orangejuice: [1/2, "cup"], culturedmilk: [1/2, "cup"], egg: [1], cranberries: [2/3, "cup"] }; dough.culturedmilk[0] = fridge.buttermilk[0] >= 1/2 ? (fridge.buttermilk[0] -= 1/2, 1/2) : fridge.kefir[0] >= 9/16 ? (fridge.kefir[0] -= 9/16, 9/16) : fridge.yogurt[0] >= 10/16 ? (fridge.yogurt[0] -= 10/16, 10/16) : alert("no cranberry bread you!"); dough.culturedmilk; // [0....

python - Internationalizing images in django -

how implement different images static folder based on language? example, when visiting main site layout load in english when changed japanese logo , images attached layout change based on requested language. please help..... you pass language parameter page template , use part of media file url. this require host media files for, e.g., english in folder site_media/english , while other, e.g., japanese images available site_media/japanese . inside page templates, use {{media_url}}{{language}}/my-image.jpg ...

How to add transparent watermark in center of a video with ffmpeg? -

Image
i using these commands: top left corner ffmpeg –i inputvideo.avi -vf "movie=watermarklogo.png [watermark]; [in][watermark] overlay=10:10 [out]" outputvideo.flv top right corner ffmpeg –i inputvideo.avi -vf "movie=watermarklogo.png [watermark]; [in][watermark] overlay=main_w-overlay_w-10:10 [out]" outputvideo.flv bottom left corner ffmpeg –i inputvideo.avi -vf "movie=watermarklogo.png [watermark]; [in][watermark] overlay=10:main_h-overlay_h-10 [out]" outputvideo.flv bottom right corner ffmpeg –i inputvideo.avi -vf "movie=watermarklogo.png [watermark]; [in][watermark] overlay=(main_w-overlay_w-10)/2:(main_h-overlay_h-10)/2 [out]" outputvideo.flv how place watermark center of video ? examples overlay/watermark image on video: centered ffmpeg -i input.mp4 -i logo.png -filter_complex \ "overlay=(main_w-overlay_w)/2:(main_h-overlay_h)/2" \ -codec:a copy output.mp4 or shortened overlay options: overlay=(w-w)/2:(h-...

view - Android - I need a generic method to automatically take a screenshot and save to the SD card -

update added following code: v1.setdrawingcacheenabled(true); v1.measure(measurespec.makemeasurespec(0, measurespec.unspecified), measurespec.makemeasurespec(0, measurespec.unspecified)); v1.layout(0, 0, v1.getmeasuredwidth(), v1.getmeasuredheight()); v1.builddrawingcache(true); now i'm getting screenshots, they're not need. instance, 1 screen need capture consists of linearlayout containing imageview , listview. when activity loads during app execution, list shows 10 items. capture i'm getting shows top imageview , 1.5 of listitems. there can capture screen shows? (i post shots i'm getting, due ip issues i'd have redact everything, , posting filled black rectangle not super useful) /update i'm targeting android 2.2 , trying develop class called activity capture current screen , store image on sd card (preferably png). i've found similar questions there important difference here: can't create new view, , can...

css - How can I color text in HTML without using span, div, or p -

i trying color word way: <span style="color: black;"><strong>2679</strong></span> pictures in <span style="color: black;"><strong>73</strong></span> albums! for reason, second span creates line break in text. ideas? thanks! if of <strong> tags have black text use css make happen , ditch <span> tags altogether: strong { color: #000; } or if want <strong> tags black apply class those: strong.black { color: #000; } <strong class="black">2679</strong> pictures in <strong class="black">73</strong> albums!

java - Knowing caller class with AspectJ -

i'm trying imitate spring's aspectj @async support message bus. the issue need know if message bus (rabbitmq messagelistener) calling method or normal (all others) caller method return instantly. my annotation called @mqasync instead of springs @async. package com.snaphop.mqueue; import org.apache.log4j.logger; import com.snaphop.mqueue.mqasync; public aspect mqasyncaspect { //pointcut asynctypemarkedmethod() : execution(@mqasync void *(..)); pointcut asynctypemarkedmethod() : call(@mqasync void *(..)); private static final logger log = logger.getlogger("mqasync"); object around() : asynctypemarkedmethod() { if (listeneriscaller) { return proceed(); } //send method parameters message bus. //this logic isn't here brevity. return null; } } the call pointcut me caller context not work calling method message listener through reflection. execution pointcut (commented out) ...

How to delete a client from whmcs by php script from other service? -

can give idea on how delete client whmcs php script other service? there way? in advance php script: $postfields["action"] = "deleteclient"; $postfields["clientid"] = "1"; this done using external whmcs api. more information here .

c# - I am using a MDI application. I want to set the start position of a formShow -

in application when create new form pops on old one, set start position next form displaying. how can set form start position. this iv got @ moment: this.startposition = system.windows.forms.formstartposition.centerscreen; but want along lines of: this.startposition = system.windows.forms.formstartposition.left(350); before opening form set this.startposition = system.windows.forms.formstartposition.manual; this.location = new system.drawing.point(20, 20); // or set desidered location

architecture - 32 bit v/s 64 bit -

i have small confusion. when talk 32-bit architecture , 64-bit architecture mean. mean 32 bit architecture has 32 bit registers or 32 bit address-bus or 32-bit data bus. what implied? i usually , mean 64-bit system has 64-bit address registers. in modern systems, data registers @ least large address registers, data registers , data bus equivalently sized. a 64-bit system, however, not have 64-bit address bus. there's no point, since there hasn't been enough ram manufactured in history of planet need full 64 bit physical address bus. given system have maximum amount of physical ram can address, based on width of address bus.

threadpool - What is the runnable object passed in Java thread pool RejectedExecutionHandler -

i have thread pool rejectedexecutionhandler , runnable task. sexecutorservice = new threadpoolexecutor( ... new myrejectionhandler() ); interface mytask extends runnable { ... } class mytaskimpl implements mytask { ...} i execute task this sexecutorservice.submit(mytask); in rejectedexecution case hoping hold of rejected runnable (ie mytask) , set field in marking rejected. not able cast mytask. runnable passed t o rejectedexecution ? appears not mytask submitted . , how can hold of rejected task in rejectedexecutionhandler. public class myrejectionhandler implements rejectedexecutionhandler{ public void rejectedexecution(runnable runnable, threadpoolexecutor executor) { mytask mytask = (mytask) runnable; // exception mytask.dosomething(); } java.lang.classcastexception: java.util.concurrent.futuretask cannot cast mytask the problem when submit task submit method treadpoolexecutor (actually abstractexecutorservice)...

Android how to integrate an AsyncTask -

hi have app downloads json feed , starting become leggy know need use asynctask i'm not sure how integrate code know whats best way integrate it. heres original code far public class homeactivity extends listactivity { private mergeadapter adapter=null; private arrayadapter<string> arrayadapter=null; private arrayadapter<string> arrayadapter2=null; private lazyadapter arrayadapter3=null; private static final string apikey = "7668hhf74hhd3dhhs"; private static final string apiuser = "androiduser"; private static string chosenleagueid = null; private static string chosenmethod = null; private static string chosenteamid = null; public string fulldata = null; public string newsfeedrequest = null; public string newsfeedurl = null; public string resultsfeedurl = null; public string lastmonth = null; public string hometeam = null; public string awayteam = null; public string ho...

web services - What is the best URI template for retrieving grouped counts of a particular resource in a REST API? -

i have rest api exposes uri return collection of employees in json. uri of following format: http://webservice/employees i want expose uri returns number of employees grouped by, say, office work in , further information office. example: items: [{ officeid: 1, officename: "big office", switchboardtel: "123456789", numemployees: 100 }, { officeid: 2, officename: "small office", switchboardtel: "987654321", numemployees: 30 }, ... // etc. ] what suitable uri this? thinking given returns information offices (along number of employees), perhaps information should retrieved via "offices" resource: http://webservice/offices alternatively, following uri more suitable? http://webservice/employees?groupby=office in opinion, seems wrong response returns information offices, rather employees, along empl...

c++ - Convert STL map into a struct -

i have std::map<string, double> members like: x = [{"n", 200}, {"sigma", 1.0}, {"t", .2}] now, given struct foo y : struct foo { int n; double t; }; can programmatically map key/value pairs x -> y without writing custom class each x -> y type mapping ? note that: x["sigma"] not in y , i.e. mapping not one-to-one the type of y.n int while x["n"] double. i suspect answer no, unless trickery done @ compile time. edit: may not clear i'm looking for. pseudo-code version example like: if("n" in x) -> y.n = x["n"]; if("t" in x) -> y.t = x["t"]; or programmatically: for key in y: if (key in x) -> y.key = x[key] no. c++ has no concept of reflection. @ compile time, there's no "foo::n" string anymore. compiler has converted occurances of foo::n in source code 0 byte offset within foo objects. also, cannot enumer...

ruby on rails - Url security trouble -

i know that's old question, don't understand why code, worked half year ago doesn't work. want make owners can have access posts. thaught written this: def create @post = current_user.posts.new params[:post] if @post.save flash[:notice] = 'post created' redirect_to @post else render :new end end and in edit , others controllers def edit if (current_user.id == @post.user_id) @post = post.find params[:id] else flash[:notice] = 'you not owner!' end end| but in views get, when i'm logged in: undefined method `user_id' nil:nilclass where problem ? def edit # @post nil unless set in before filter. if (current_user.id == @post.user_id) @post = post.find params[:id] else flash[:notice] = 'you not owner!' end end you should find post first. def edit @post = post.find params[:id] if (current_user.id != @post.user_id) flash[:notice] = 'you not o...

actionscript 3 - Exception of null object reference when click on Text area in popup in Flash Builder 4.6 -

here code. <?xml version="1.0" encoding="utf-8"?> <fx:script> <![cdata[ import comps.sampletextarea; import mx.managers.popupmanager; protected function button1_clickhandler(event:mouseevent):void { var pop:sampletextarea = new sampletextarea(); popupmanager.createpopup(this, sampletextarea, false); popupmanager.centerpopup(pop); } ]]> </fx:script> <fx:declarations> <!-- place non-visual elements (e.g., services, value objects) here --> </fx:declarations> <s:button click="button1_clickhandler(event)" label="open popup"/> and here code of popup <?xml version="1.0" encoding="utf-8"?> <fx:script> <![cdata[ import mx.managers.popupmanager; protected function button1_clickhandler(event:mouseevent):void { ta.text = ...

math - How can I create a div with CSS from data from a form using jquery? -

i've got maths being calculated output in div in element. what i'd love create div css takes it's values calculated results... something - $("#code-results").append("<div style=" width: "originalresult", margin: "marginresult" >this custom text</div>"); where originalresult , marginresult calculated results form inputted maths. but can't work. i'm guessing it's how i'm adding css. any ideas? edit to make bit more clearer (here's jsfiddle - http://jsfiddle.net/sturobson/mdfe6/19/ ) the js form data , calculate appendto's results correctly this function round(fvalue, idecimals) { var ipow = math.pow(10, idecimals); return math.round(fvalue * ipow) / ipow; } function div(fnumerator, fdenominator) { return (fdenominator == 0 ? 0 : fnumerator / fdenominator); } $(document).ready(function() { $(function(){ $("#result").submit(function(e) { e.preventde...

javascript assigning new object as object property -

i have object looks this: var bigobject = { 'currentint': 0, 'currentbool': false, 'currentobject': {} } and then, declare someobject this: var someobject = { 'somestring': "", 'someint': 0 } these 2 definitions objects when they're in initial state, sort of type definition guess. want assign new someobject bigobject['currentobject'] . tried this: bigobject['currentobject'] = new someobject(); but it's not working. @ moment, straight assignment reference bigobject['currentobject'] = someobject; , when need reset values of someobject, run function redeclares each property of someobject in initial stage. but how can use new keyword create reusable object type that's property of bigobject. thanks. if you're defining type, should use constructor function: var someobject = function() { this.somestring = ""; this.someint = 0; } ...

xaml - Expand multiple WPF Expander sections -

i have expander in wpf, , wondering how make can expand multiple areas @ 1 time. every time click on section, opened section closes. want remain open. there way that? expander in listbox, why there multiples of them. i figured out. long don't set isexpanded property, fine.

windows 8 - In WinRT XAML, how to reference images in outside/separate assembly/project? -

seems different in winrt (windows 8). figure out yet? my experiments. of course: file build action == content && copy output directory == copy always these don't seem work: <image source="folder/file.jpg" /> <image source="/folder/file.jpg" /> <image source="namespace;folder/file.jpg" /> <image source="namespace;/folder/file.jpg" /> <image source="pack://namespace;folder/file.jpg" /> <image source="pack://namespace;/folder/file.jpg" /> out of desperation tried: file build action == embedded resource && copy output directory == copy always still fail. ugh! <image source = "ms-appx:///<projectname>/<foldername>/<contentname>" /> for example ... <image source = "ms-appx:///classlibrary1/content/myimage.png" /> see how reference content bit more info.

c - The address in Kernel -

i have question when located address in kernel. insert hello module in kernel, in module, put these things: char mystring[]="this address"; printk("<1>the address of mystring %p",virt_to_phys(mystring)); i think can physical address of mystring, found is, in syslog, printed address of 0x38dd0000. however, dumped memory , found real address of dcd2a000, quite different former one. how explain this? did wrong? thanks ps: used tool dump whole memory, physical addresses. according man page of virt_to_phys the returned physical address physical (cpu) mapping memory address given. it valid use function on addresses directly mapped or allocated via kmalloc. this function not give bus mappings dma transfers. in conceivable cases device driver should not using function try allocating memory mystring using kmalloc first; char *mystring = kmalloc(19, gfp_kernel); strcpy(mystring, "this address"); //use kernel implementation ...

Installing Magento automatically -

i'm thinking installing magento in automatical way. suppose need create script or something... guess i'm not first person whom need it. know resource or solution how it? work in windows , linux os. thanks. jaro. there others out there here quick , dirty script use form time time install magento checkout svn repo , initialise modman. extended create database if required etc, works fine me is: #!/bin/bash # required script variables db_name= db_user= db_host= db_pass= url= magento_version="1.7.0.0" admin_firstname= admin_surname= admin_email= admin_user= admin_pass= svn_repo= # download , install magento wget http://www.magentocommerce.com/downloads/assets/$magento_version/magento-$magento_version.tar.gz printf "\n\nunpacking , preparing install magento...\n" tar -zxvf magento-$magento_version.tar.gz mv magento/* magento/.htaccess . chmod -r o+w media var chmod o+w app/etc rm -rf downloader/pearlib/cache/* downloader/pearlib/download/* rm...

Why can't I require express in node.js -

i'm trying simplest node.js script work. here javascript file: server.js require("express"); i launch script using regulare node command: $ node server.js but error: node.js:201 throw e; // process.nexttick error, or 'error' event on first tick ^ error: require.paths removed. use node_modules folders, or node_path environment variable instead. @ function.<anonymous> (module.js:378:11) @ object.<anonymous> (/home/shawn/.node_libraries/express@2.5.9/index.js:4:21) @ module._compile (module.js:441:26) @ object..js (module.js:459:10) @ module.load (module.js:348:32) @ function._load (module.js:308:12) @ module.require (module.js:354:17) @ require (module.js:370:17) @ object.<anonymous> (/home/shawn/documents/projets/passingdata/server.js:3:15) @ module._compile (module.js:441:26) what's going on? update interestingly enough, using npm install express outputs simi...

jsf - How to use h:selectOneRadio in h:dataTable to select single row? -

i have list of pages displayed in table. each page has property homepage , want in datatable have column of radio buttons binded on property, , user can check 1 value. how can value on server side? i saw examples following: http://jforum.icesoft.org/jforum/posts/list/14157.page , know best practice in such case. as per jsf spec issue 329 have implemented jsf 2.3. new group attribute able group radio buttons in repeater component. <h:datatable value="#{bean.items}" var="item"> <h:column> <h:selectoneradio group="foo" value="#{bean.selecteditem}"> <f:selectitem itemvalue="#{item}" /> </h:selectoneradio> </h:column> </h:datatable> it available per mojarra 2.3.0-m07. before jsf 2.3, not trivial standard jsf <h:selectoneradio> . basically, radio button in every row needs grouped each other using same input name other radio buttons un...

r - Creating a large covariance matrix -

i need create ~110 covariance matrices of doubles size 19347 x 19347 add them together. this in isn't difficult , smaller matrices following code works fine. covmat <- matrix(0, ncol=19347, nrow=19347) files<-list.files("path/to/folder/") for(name in files){ text <- readlines(paste("path/to/folder/", name, sep=""), n=19347, encoding="utf-8") for(i in 1:19347){ for(k in 1:19347){ covmat[i, k] <- covmat[i,k] + (as.numeric(text[i]) * as.numeric(text[k])) } } } to save memory don't calculate each individual matrix add them loops through each file. the problem when run on real data need use takes far long. there isn't data think cpu , memory intensive job. running ~10 hours doesn't compute result. i have looked trying use map reduce (aws emr) i've come conclusion don't believe map reduce problem isn't big data problem. here code mapper , reducer have been playing if have been...