Posts

Showing posts from September, 2014

How do I formulate an R related statement? -

how write statement "between 0 , 15" r? transforming variable categorical variable, , requirement 1 of categories recode new categorical variable old variable (eg. x) becomes new.variable <- x between 0 , 15. edit - clarification of question i have been given data set , instruction are: growth patterns generated transforming x variable new categorical variable, can named "growth". first category assigned islands in x variable between 15 50. question, main headache how write "between 15 50" in r language. have: growth$mediumgrowth.islands <- growth$sasiaurban.x[growth$sasiaurban.x ???] it's not entirely clear me want achieve, believe want cut : x <- 0:20 cut(x,c(-inf,3,9,18,inf)) # [1] (-inf,3] (-inf,3] (-inf,3] (-inf,3] (3,9] (3,9] (3,9] (3,9] (3,9] (3,9] (9,18] (9,18] (9,18] (9,18] (9,18] (9,18] # [17] (9,18] (9,18] (9,18] (18, inf] (18, inf] # levels: (-inf,3] (3,...

java - Bean already registered - struts2-core dependency error -

i'm trying migrate project maven , declare struts2 dependencies, i'm stuck @ error. double-checked pom.xml dependencies, made sure struts2-core declared once, added exclusions , all. tried , without xwork-core dependency, same error. literally stuck , don't know how proceed here. error: 15:35:29,079 info [com.opensymphony.xwork2.config.providers.xmlconfigurationprovider] (serverservice thread pool -- 72) parsing configuration file [struts-default.xml] 15:35:29,124 error [org.apache.struts2.dispatcher.dispatcher] (serverservice thread pool -- 72) dispatcher initialization failed: unable load configuration. - bean - vfs:/c:/servers/jboss-eap-6.1/standalone/deployments/war.war/web-inf/lib/struts2-core-2.3.16.jar/struts-default.xml:40:72 @ com.opensymphony.xwork2.config.configurationmanager.getconfiguration(configurationmanager.java:70) [xwork-core-2.3.16.3.jar:2.3.16.3] @ org.apache.struts2.dispatcher.dispatcher.init_preloadconfiguration(dispatcher...

c# - LINQ Query for outerjoining Parent and child (nested) tables -

i have 3 levels of tables "directors", "managers" , "leaders" 1 many relationship between them. i bring rows directors, managers , leaders separately along children relationship.(maybe leftouterjoin) for example directors table have directorid directorname 1 director1 managers manager id director id manager name 1 1 manager 1 2 1 manager 2 leaders leader id manager id leader name 1 1 leader 1 2 1 leader 2 i want query return dirid directorname mgrid managername ldrid leadername 1 director1 1 director1 1 manager1 1 director1 1 manager1 1 leader1 1 director1 1 manager1 2 leader1 1 director1 2 manager2 my linq query results 3 rows dirid directorname mgrid manager...

asp.net - Why is my InitializeComponent sub empty? -

i new vb.net programming , looking @ visual studio project @ work. understanding, when new component added designer of web page, details , properties of component declared within initializecomponent sub. noticed in of different initializecomponent declarations throughout project, have no code within them. can tell me why is? thanks if click on top of solution explorer show files able see files form1.designer.vb key here designer file automatically created visual studio. changes not advised necessary. use file when create dynamic controls can use code designer make on fly. for asp.net link should basics.

How to reduce quality of multiple JPEG image files using ffmpeg? -

i want reduce quality of bunch of images @ time. -q:v x x number between 1 , 30 (the bigger number, worse quality). i'm able save lot of space x=1 . now, when comes process multiple files, i'm stuck. i've tried these 2 batch files: mkdir processed f in *.jpg; name=`echo $i | cut -d'.' -f1`; echo $name; ffmpeg -i $i -q:v 1 processed/$name.jpg; done and mkdir processed f in *.jpg; ffmpeg -i "$f" -q:v 1 processed/"${f%.jpg}.jpg"; done both create processed folder nothing else. thanks @squashman pointing out stupid mistake. solution problem. mkdir processed %%f in (*.jpg) ( ffmpeg -i %%f -q:v 10 processed/%%f" ) i got 80% of weight reduction.

ruby on rails - How to add ScriptTag on shopify_api gem? -

Image
hi everyone, i came across on problem can't figure out myself, believe expertise can me through solving error whenever try access route add script. here controller code:  class homecontroller < authenticatedcontroller def index @products = shopifyapi::product.find(:all, :params => {:product_type => "underarmour"}) # script = shopifyapi::scripttag.new(:all, :params => {:event => "onload", :src => "https://shopperapproved.herokuapp.com/sajs/14043.js"}) end def script shopifyapi::scripttag.create(:event => "onload", :src => "https://shopperapproved.herokuapp.com/sajs/14043.js") end end and route file is: controller :sessions 'login' => :new, :as => :login post 'login' => :create, :as => :authenticate 'auth/shopify/callback' => :callback 'logout' => :destroy, :as => :logout end root :to => 'home#in...

c# - regular expression to accept only numbers within specific range -

i trying regular expression accept numbers , should not allow accept more ten ^[]0,10]{0,10}$ this matches range of numbers: [0-9] ^([0-9])$ and can use $1 if need replace else ... or can use \d instead of [0-9] this: ^(\d)$ and if want accept 10 , have use | . thing this; ^(\d|10)$ as said, ^ regex accept both range [0-9] , 10 .

java - How to post complex XML using rest assured -

using rest-assured can perform get, post , other methods. in example below sending post api returns json response. @test public void reservearide() { given(). header("authorization", "abcdefgh-123456"). param("rideid", "gffgr-3423-gsdgh"). param("guestcount", 2). when(). post("http://somewebsite/reserveride"). then(). contenttype(contenttype.json). body("result.message", equalto("success")); } but need create post request complex xml body. body example: <?xml version="1.0" encoding="utf-8"?> <request protocol="3.0" version="xxx" session="xxx"> <info1 param1="xxx" version="xxx" size="xxx" notes="xxx"/> <info2 param1="xxx" version="xxx" size="xxx" notes="xxx"/> </request> how can t...

mysql - Duplicating values in Datagridview -

i inserting values mysqldb via selected row. inserting mysqldb successful problem : when load values ive inserted in mysqldb datagridview, values duplicating 9x. when check in mysql db not duplicate. dim mysqlconn3 new mysqlconnection mysqlconn3.connectionstring = "server=localhost;userid=root;password=gaezlevister214;database=librarydb;" dim command3 new mysqlcommand dim sda3 new mysqldataadapter dim bsource3 new bindingsource dim dbdataset3 new datatable try mysqlconn3.open() dim query3 string query3 = "select blist.quantity 'qty', returnedlist.student_id 'student id', returnedlist.call_number 'call_number',returnedlist.date_added 'date borrowed',returnedlist.due_date 'due date' librarydb.returnedlist, librarydb.blist" command3 = new mysqlcommand(query3, mysqlconn3) sda3.selectcommand = command3 sda3.fill(dbdataset3) bsource3.datasou...

java - Unable to Retrieve Place Coordinates from Twitter Geocode -

i running issue logic unable retrieve first 2 coordinates in json array twitter feed. using jackson jsonnode retrieve twitter feed. below logic have first validating node not null , if not null attempt retrieve first 2 lon/lat coordinates plane. problem never able retrieve coordinates retweet -> places -> bounding_box -> coordinates -> 0 0 & 0 1 source code logic if(root.path("retweeted_status").path("place").path("bounding_box").get("coordinates") != null){ lon = root.path("retweeted_status").path("place").path("bounding_box").path("coordinates").get(0).get(0).textvalue(); lat = root.path("retweeted_status").path("place").path("bounding_box").path("coordinates").get(0).get(1).textvalue(); if(root.path("retweeted_status").path("place").get(...

html - PHP Table Columns -

Image
so php displays mysql table, i'm aware can tyle these plan to. image below shows, add button adds column. is possible make add button below 2 columns update , delete? if how can this. here code, sorry errors or being messy, i'm still learning. while ($record = mysql_fetch_array($mydata)) { echo "<form action=usermanagement.php method=post>"; echo "<tr>"; echo "<td>" . "<input type=text name=id value=" . $record['id'] . " </td>"; echo "<td>" . "<input type=text name=rank value=" . $record['rank'] . " </td>"; echo "<td>" . "<input type=text name=username value=" . $record['username'] . " </td>"; echo "<td>" . "<input type=text name=password value=" . $record['password'] . " </td>"; echo "<td>" . ...

c++ - Finding binomial coefficient for large n and k modulo m -

i want compute nck mod m following constraints: n<=10^18 k<=10^5 m=10^9+7 i have read article: calculating binomial coefficient (nck) large n & k but here value of m 1009. hence using lucas theorem, need calculate 1009*1009 different values of acb a,b<=1009 how above constraints. cannot make array of o(m*k) space complexity given constraints. help! just use fact (n, k) = n! / k! / (n - k)! = n*(n-1)*...*(n-k+1)/[k*(k-1)*...*1] so have 2*k=2*10^5 factors. inverse of number can use suggestion of kfx since m prime.

python - foreign key as initial value not passed to the ModelForm in django -

i need pass value (based on category_id) foreignkey modelform it's not working. field remains "--------" , proper value not set drop-down field. value category must selected , other values must not hided user choice. as result category value successfuly passed template drop-down field category not set! as can see other guys solved via constructor modelform, feel there must native django solution. would thankful solutions! my models.py: class category(models.model): name = models.charfield('name', max_length=20) icon = models.charfield('icon', blank=true, max_length=20) class transaction(models.model): type = models.charfield('type', default='exp', max_length=20) category = models.foreignkey(category, on_delete=models.do_nothing) note = models.charfield('note', blank=true, max_length=20) my urls.py: urlpatterns = [ url(r'^add/(?p<category_id>[0-9]+)', "core.views.add_trans_vie...

python - Strange super () return behaviour when using a temp variable to store the super return value -

pythionans why these 2 functions return different value when using temp return result? i have never seen behaviour before , need understand why. clues or ideas? def _store_get_values(self, cr, uid, ids, fields, context=none): return super(pai, self)._store_get_values(cr, uid, ids, fields, context) returns [(10, 'pai', [13484l], ['line_next_approver_id', 'next_approver_id', 'line_id', 'partner_id'] )] and def _store_get_values(self, cr, uid, ids, fields, context=none): result = super(pai, self)._store_get_values(cr, uid, ids, fields, context) return result returns [(10, 'pai', [13485l], ['line_id', 'next_approver_id', 'partner_id', 'line_next_approver_id'] )] i have in openerp/odoo framework. believe has nothing framework logic python ways from sourcecodebrowser.com : 02486 def _store_get_values(self, cr, uid, ids, fields, context): 02487 result = {...

strsplit - R Split string and keep substrings righthand of match? -

how stringsplit() in r? stop splitting when no first names seperated dashes remain. keep right hand side substring given in results. a <- c("tim/tom meyer xy900 123kncjd", "sepp/max/peter moser vk123 456xyz") # result: c("tim meyer xy900 123kncjd", "tom meyer xy900 123kncjd", "sepp moser vk123 456xyz", "max moser vk123 456xyz", "peter moser vk123 456xyz") here 1 possibility using few of different base string functions. ## lengths of output each first name len <- lengths(gregexpr("/", sub(" .*", "", a), fixed = true)) + 1l ## extract first names ## using fact end @ first space character fn <- scan(text = a, sep = "/", = "", comment.char = " ") ## paste them paste0(fn, rep(regmatches(a, regexpr(" .*", a)), len)) # [1] "tim meyer xy900 123kncjd" "tom meyer xy900 123kncjd" # [3] "sepp moser vk123 45...

c# - Unit test asp.net route mapping extension method -

i have extension class routes. want test updated list of routecollection. extract: public static void mapmyroutes(this routecollection routes) { //do stuff routes.maphttproute(null, controllerpath.path, new { @namespace = controllerpath.namespace, controller = controllerpath.controllername, id = urlparameter.optional }); } i want unit test extension, can't work out how extract mapped url routecollection: this test: [testmethod] public void testmapmyroutesmapscorrectly() { var routes = new routecollection(); routes.mapmyroutes(); foreach (var route in routes) { assert.areequal(route.??, "v1/api/myroute"); } } routescollection defined collection<routebase> cast each item route, ie: foreach (var route in routes.cast<route>()) { // url may not in fact correct property … assert.areequal(route.url, "v1/api/myroute"); }

java - Can't create List<Node> object when list contains one element -

i'm using rest-assured 2.8.0 library in java tests. when create xmlpath rest-assured string response , try create list of nodes exception if list contains 1 element. list<node> nodelist = xmlpath.getlist("commentary.messages.period.message", node.class); this should give me list 1 element instead exception cannot convert class java.lang.string interface com.jayway.restassured.path.xml.element.node. java.lang.classcastexception @ sun.reflect.nativeconstructoraccessorimpl.newinstance0(native method) @ sun.reflect.nativeconstructoraccessorimpl.newinstance(nativeconstructoraccessorimpl.java:62) @ sun.reflect.delegatingconstructoraccessorimpl.newinstance(delegatingconstructoraccessorimpl.java:45) @ java.lang.reflect.constructor.newinstance(constructor.java:408) @ org.codehaus.groovy.reflection.cachedconstructor.invoke(cachedconstructor.java:80) @ org.codehaus.groovy.runtime.callsite.constructorsite$constructorsitenounwrapnocoerce.callconstructor(constructorsite...

javascript - Returning JSON file with cURL to use data in a HighCharts stock chart -

i'm trying free json source of oil price data highcharts stockchart different server curl. the code have far follows: <div id="container" style="width:100%; height:400px;"> <?php $ch = curl_init('https://www.quandl.com/api/v1/datasets/chris/ice_b1.json'); $data = curl_exec($ch); curl_close($ch); ?> <script> $(function () { $.getjson('$data', function (data) { // create chart $('#container').highcharts('stockchart', { rangeselector : { selected : 1 }, title : { text : description }, series : [{ name : name data : data } }] }); }); }); </script> </div> but dump raw json browser window rather making beautiful chart. any appreciated! you trying use php curl , jquery getjson @ same time, th...

git - how to port python sphinx-doc to github pages? -

Image
i followed how upload html documentation generated sphinx github? , works fine until uploaded github. intend make personal website , didn't make gh-pages branch. looks this: but should this, local: does know went wrong? did include ".nojekyll" in root. files generated directly make html (however, didn't upload files in "doctree"; files in "html") thanks much! the file name should .nojekyll not .nojekyii :(

java - Out of memory when reading xls with Apache poi on Android -

this question has answer here: how load large xlsx file apache poi? 6 answers i'm attempting create basic spreadsheet (xls) viewer android. while using apache poi api i'm getting out of memory errors when creating new xssfworkbook object: mworkbook = new xssfworkbook(file); how can grab specific rows/cells inside .xls without loading entire file memory? spreadsheets aren't ideal random access. reason why spreadsheets aren't designed purposed because cells can arbitrarily long, , rows can have arbitrary number of cells in them. if not case , each row had fixed size in bytes, skip reading first (rowsize * indexofrow) bytes of file. if random access primary use case recommend loading data small database. take @ h2 .

jquery - Cannot upload file larger than 30mb -

Image
i doing asp.net web forms project , trying implement jquery file upload. able working smaller files files on 30mb not upload. progress bar appear stays @ start so: in web.config have max request length , max allowed content length set. <system.web> <compilation debug="true" targetframework="4.5.1" /> <httpruntime targetframework="4.5.1" maxrequestlength="10240000" executiontimeout="1800" /> </system.web> and <system.webserver> <security> <requestfiltering> <requestlimits maxallowedcontentlength="4248576000" /> </requestfiltering> </security> </system.webserver> i able around setting maxchunksize: 10000000 when asp.net not appending file correctly. save last chunk or locks , says "the process cannot access file because being used process." i using filetransferhandler example in documentation: https://github.com/i-e-...

C++ how to pass vector of objects by reference into a function, then into next function? -

i'm hoping can provide assistance here. here relevant portion of code i'm stuck on currently: /////////////////////////////////////////////////////////////////////////////////////////////////// void matchblobs(std::vector<blob> &existingblobs, std::vector<blob> &currentframeblobs) { (auto &existingblob : existingblobs) { existingblob.blncurrentmatchfoundornewblob = false; } (auto &currentframeblob : currentframeblobs) { int intindexofleastdistance = 0; double dblleastdistance = 1000000.0; (unsigned int = 0; < existingblobs.size() - 1; i++) { if (existingblobs[i].blnstillbeingtracked == true) { double dbldistance = distancebetweenblobs(currentframeblob, existingblobs[i]); if (dbldistance < dblleastdistance) { dblleastdistance = dbldistance; intindexofleastdistance = i; } } ...

c - understanding pointers in a function argument -

in code below, explain second argument is? "constant pointer data". thanks const uint8_t *const data means function not able update either data parameter or object points . iow, can't set data point different object within function. in short: const t *p -- p writable, *p not t const *p -- same above t * const p -- *p writable, p not const t * const p -- neither p nor *p writable t const * const p -- same above edit note change data wouldn't reflected in calling function (unlike change *data ), why bother making const ? typically it's because function body needs preserve pointer throughout execution; iow, if accidentally update data you'd break later on in function. way guarantee such changes can't happen.

VBA script for sorting through Excel data is causing a "Not Responding" -

i'm new vba. works if keep i<=20 need increase i<2000 . increasing 50 causes not responding response. the code sorts through list of words ("list") , find them in large array called "library." "library" contains multiple columns numbers on each header. want go down list, , insert number columns each entry occur in throughout library. sub listlibrarycompare() dim rng range dim keyword range dim chunk range dim library worksheet dim list worksheet dim bottom range dim long dim x long = 1 x = 0 while <= 20 set library = sheets("library") set list = sheets("list") set keyword = list.range("a" & i) set bottom = library.range("a150").offset(0, x) set rng = library.range("a1").offset(0, x) set chunk = library.range(rng, bottom) application.screenupdating = false if isempty(rng.value) = true = + 1 x = 0 elseif application.worksheet...

java - How to convert Spark dataframe output to json? -

i reading file csv file spark sql context. code : m.put("path", csv_directory+file.getoriginalfilename()); m.put("inferschema", "true"); // automatically infer data types else string default m.put("header", "true"); // use first line of files header m.put("delimiter", ";"); dataframe df = sqlcontext.load("com.databricks.spark.csv",m); df.printschema(); fetching column names , data type df.printschema() o/p : |--id : integer (nullable = true) |-- applicationno: string (nullable = true) |-- applidate: timestamp(nullable = true) what return type of statement printschema. how convert output in json format, how convert data frame json?? desired o/p: {"column":"id","datatype":"integer"} datatype has json() method , fromjson() method can use serialize/deserialize schemas. val df = sqlcontext.read().....load() val...

php - bulk delete from redis -

deleting cached values in bulk using hash taking lot of time. 4000 keys in 1 hr. let me know how effectively. note: i'm using pattern matching find job ids unique in nature , simultaneously deleting it. as anuj mittal said should add more details code. however, many redis operations can use pipeline . on other hand, performance bad in case. redis can execute operations more mentioned. based on documentation here : $ redis-benchmark -t set,lpush -n 100000 -q set: 74239.05 requests per second lpush: 79239.30 requests per second

ios - UIWebview Does NOT complete Load page with "page NOT found" error when URL does not exist -

in iphone app i've got load mobile website webview (that contain in separate viewcontroller). , working fine. i need exit webview when reach specific set of url's. problem of these url's not exis , therefore page not finish load (even page not found error message detect current url. hangs) would know if have enable setting in webview allow load pages not exist (with page not found error). or is possible know url going load next in func webviewdidstartload(webview: uiwebview) override func viewdidload() { super.viewdidload() mywebview.delegate = self var returnurlappendedpaymmentlink = "www.existing_url.com" let requesturl = nsurl(string: returnurlappendedpaymmentlink) let request = nsurlrequest(url: requesturl!) mywebview.loadrequest(request) } func webviewdidfinishload(webview: uiwebview) { var currenturl = webview.request?.url?.absolutestring ?? "" if (currenturl == "www.special_url.com")...

java - Exception in thread "main" org.hibernate.MappingException -

test: import java.util.gregoriancalendar; import org.hibernate.session; import org.hibernate.sessionfactory; import org.hibernate.transaction; import it.s.monitoringdoor.model.door_open; import it.s.monitoringdoor.model.hibernateutilities; public class testhibernate { public static void main(string[] args){ sessionfactory factory = hibernateutilities.getsessionfactory(); door_open d = new door_open(); d.setid(1); d.setid_door(1);; d.settimestamp(gettime()); session s = factory.opensession(); transaction t = s.gettransaction(); t.begin(); s.save(d); t.commit(); } private static date gettime(){ gregoriancalendar gc = new gregoriancalendar(); return gc.gettime(); } } hibernateutilities: package it.s.monitoringdoor.model; import java.util.properties; import org.hibernate.sessionfactory; import org.hibernate.boot.registry.standardserviceregistrybuilder; imp...

php - How can I use in javascript an object stored in my server? -

i declare in javascript 2 object stored in file.txt , use in code. for example wrote in index.php : var counter = number(localstorage.getitem('rans')) || 0; var counter1 = number(localstorage.getitem('bans')) || 0; $('.redanswer').one('click', function(){ localstorage.setitem('rans', ++counter); $( '.rtotal' ).text( counter + " concordano" ); $( '.btotal' ).text( counter1+ " non concordano"); $('.rgraphic').css("height", counter * 100 / (counter1+counter)); $('.bgraphic').css("height", counter1 * 100 / (counter1+counter) ); }); $('.blueanswer').one('click', function(){ localstorage.setitem('bans', ++counter1); $( '.btotal' ).text( counter1 + " concordano" ); $( '.rtotal' ).text( counter + " non concordano"); $('.rgraphic').css("height", c...

ios - swift: Adding an action to an array of buttons -

i'm designing simple sudoku app , need trigger action when 1 of 81 buttons clicked. created array of uibuttons in viewcontroller: class sudokuboardcontroller : uiviewcontroller { @iboutlet var collectionofbuttons: array<uibutton>? override func viewdidload() { collectionofbuttons.addtarget(self, action: "buttonclicked:", forcontrolevents: uicontrolevents.touchupinside) ... } } i'm able add buttons array storyboard ok, when try addtarget message: value of type 'array<uibutton>?' has no member addtarget is there solution problem not involve me creating 81 different outputs each button? thanks help! cheers you need iterate through array of buttons , add target each of button. try out following code var index = 0 button in collectionofbuttons! { button.tag = index // setting tag, identify button tapped in action method button.addtarget(self, action: "buttonclicked:", forcontrolevents: uicont...

python - What is the meaning of a single- and a double-underscore before an object name? -

i want clear once , all. can please explain exact meaning of having leading underscores before object's name in python? explain difference between single , double leading underscore. also, meaning stay same whether object in question variable, function, method, etc? single underscore names, in class, leading underscore indicate other programmers attribute or method intended private. however, nothing special done name itself. to quote pep-8 : _single_leading_underscore: weak "internal use" indicator. e.g. from m import * not import objects name starts underscore. double underscore (name mangling) from the python docs : any identifier of form __spam (at least 2 leading underscores, @ 1 trailing underscore) textually replaced _classname__spam , classname current class name leading underscore(s) stripped. mangling done without regard syntactic position of identifier, can used define class-private instance , class variables, methods, variabl...

html - Video tag sticking issue -

i want video tag stick top (or bottom element above video tag). when 1 resizes window current code using, video element remove top (or bottom element above in hierarchy in html). there way prevent video coming loose top? assume because video tag trying keep ratio , might has width: 100%. i made jsfiddle here , here code: html: <div class="background-video"> <video autoplay loop muted> <source src="somevideo.mp4" type="video/mp4"> </video> </div> css: .background-video { position: relative; } .background-video video { position: absolute; top: 0; right: 0; left: 0; margin: 0 auto; height: 1080px; width: 100%; } so how make video tag doesn't resize in unpleasant way , still fills space correctly? you have add css line responsive elements of video, image, iframe, etc. css audio, iframe, img, video { max-width: 100%; }

java - Virtual Machine Scale Set support -

does azure-java-sdk support virtual machine scale set creation? i've checked java docs in http://azure.github.io/azure-sdk-for-java/ , not find there. update: current azure sdk java supports vm scale sets. https://github.com/azure/azure-sdk-for-java earlier answer: reviewed javadocs of azure sdk java , compared the rest apis of virtual machine scale sets . i'm afraid answer question azure sdk java not suppport vmss azure resource management now. so can try use virtual machine rest apis support vmss. best regards.

import.io - runining a crawler from command line gives an error -

when try run crawler cmd gives error error: com.fasterxml.jackson.core.jsonparseexception: unexpected end-of-input in field name @ [source: java.io.fileinputstream@19f6368; line: 2, column: 2] and code im using import.ioc.exe -crawl c:\users\~\desktop\importcmd\crawler.json c:\users\~\desktop\importcmd\auth.json i have tried running admin still didnt work "win8 / 64bit" , using latest version of import.io auth json { "userguid": "88f4ec3c97154c----b833fb4cd9fe0", "apikey": "88f4ec3c97154c46829b833----------9badfe87c502e8dc0298d153c4433c577d083afdbfbe8df13d66ec762c5a102edcd849a36b1879b5f0f73787a1f99531c9b66679" } crawler json { "cookiesenabled":false, "robotsdisabled":false, "canonicaldisabled":false, "outputfile":"c:\\users\\~\\desktop\\import.io cmd\\cmd - test.csv", "advancedmode":true, "connections":3, "connec...

php - MVC & RewriteRule isn't working at all -

i have built website homemade mvc structure , pretty urls .htaccess aren't working @ all. have "front controller" ( index.php ) @ root of website : <?php require_once('m/connect_sql.php'); if (!empty($_get['page']) && is_file('c/'.$_get['page'].'.php')) { include 'c/'.$_get['page'].'.php'; } else { include 'c/accueil.php'; } $bdd = null; c/ controller folder. example of urls : http://domain.com/?page=restaurants&city=paris&cp=75001 page parameter controller , &city=paris&cp=75001 post variables. i have tested simple rewrite rule out of mvc , works well. tried several rewrite rules none working. here's example url above : <ifmodule mod_rewrite.c> options +followsymlinks rewriteengine on rewriterule ^(.+/)/([^/.]+)/([^/.]+)/?$ /?page=$1&city=$2&cp=$3 [nc,l] </ifmodule> i have placed .htaccess in every ...