Posts

Showing posts from January, 2010

lua - difference between the corona sdk 2013 version (2013.1137.msi) and 2014 version(2014.2189.msi) -

i'm using corona sdk 2013 version. installer package coronasdk-2013.1137.msi , have no problem when using but when change corona sdk corona sdk 2014 version (2014.2189.msi), have bugs setreferencepoint error , other things change corona sdk 2013 version because comsumes time when my question is: even if corona sdk outdated, apk package still uploaded in google play? the biggest problem ar facing betweet 1137 , 2189 on 2000 using new graphics 2.0 library. have 2 options: in config.lua can add parameter: application = { content = { graphicscompatibility = 1, -- turn on v1 compatibility mode width = 320, height = 480, scale = "letterbox" }, } your mileage graphics compatibility flag vary. didn't have greatest results spent time upgrade code graphics 2.0. here's migration guide here .

can we separate the main serialize method in different class to make it easier and less complex using boost libraries for c++? -

how separate serialize method code , encapsulate class don't have write in every class create. class test { private: friend class boost::serialization::access; template<class archive> void serialize(archive & ar, const unsigned int version) { ar & boost_serialization_nvp(a); ar & boost_serialization_nvp(b); ar & boost_serialization_nvp(emp); } int a; int b; employee *emp; public: test(int a, int b,int c, int d) { this->a = a; this->b = b; emp = new employee(c,d); } }; as written in docs can use free function serialize class. of course requires data members public. for "real" classes hide data define "serialization struct" gets passed in , out of real class serialization purposes.

java - Why static block are executed later? -

p.s : this question has been edited few times previous code doesn't demonstrate problem. there answers may not make perfect sense against edited question i have public class named son.java package com.t; public class son extends father { static int i; static { system.out.println("son - static"); = 19; } { system.out.println("son - init-block"); } public static void main(string[] args) { //son s = new son(); int a[] = new int[2]; system.out.println(a[5]); } } class father { static { system.out.println("f - static"); } { system.out.println("f - init-block"); } } when run program 1st time: output is: exception in thread "main" java.lang.arrayindexoutofboundsexception: 5 @ com.t.son.main(son.java:19) f - static son - static and later when run program (order of output random ) output is: f - stati...

node.js - how to keep track of bounced emails or undelivered emails in sails.js -

i using nodemailer send mails. my requirement keep track of bounced emails or undelivered emails. how ? please help you cannot in current configuration. mail functions not return immediately, if mail delivered or recipient unavailable. mail accepted smtp server , script goes on. smtp server (in background , asynchronously) tries send mail (likely multiple times) , if fails, sends mail back. this mail 1 interested in. the mda/mta use (for example sendmail) should configured pass on incoming mails script set up. way script gets automatically started, if there come in new mails interested in. how configure mda/mta already answered . if works, need "parse" mail. think mail provided script standard input stream. can access 1 process.stdin . must check mail errors, bounces, or whatever interested in , can possibly save status of recipient in database.

mysql - Return Only Last Row LEFT JOIN -

select distinct msg.userid, msg.messages, user.fullname, prof.path messages msg left join users user on msg.userid = md5( user.userid ) left join profile prof on msg.userid = prof.userid order msg.date asc limit 0 , 30 the above code working problem result has duplicate values: userid | messages | fullname | path 985434 | hello... | foo bar | /path/to/hello.jpg 985434 | hello... | foo bar | /path/to/new.jpg the problem path . how limit result of path recent? or 1 per fullname?...it's killing me thank understanding. what want select users messages. want select 1 path per message. here example on how this: select msg.userid, msg.messages, users.fullname, (select max(path) profile profile.userid = msg.userid) maxpath messages msg left join users on msg.userid = md5( users.userid ) order msg.date asc; you can use group_concat instead of max, list of paths. sub select can more complex, looking last date instance (provided there date information in table). ...

php - Add page break in pdf generated using mpdf library -

i'm using php library mpdf generating pdf files html content. short paragraph text mpdf working when there more 1 page long content mpdf generating pdf file within single page small font. doesn't worked when gave sufficient font-size. is there parameter can set page break in mpdf ? please use <div> instead of using <table> . mpdf shrink content inside <tr> <td> o

python - How to implement this using map and filter? -

how write statement using map , filter same result list comprehension expression: [(x,y) x in range(10) if x%5==0 y in range(10) if y%5==1] result: [(0, 1), (0, 6), (5, 1), (5, 6)] i know seems pointless, i'm curious this how did without comprehesions: sum(map(lambda x: map(lambda y: (x,y), filter(lambda y: y%5==1,range(10))), filter(lambda x: x%5==0,range(10))),[]) executing: >>> sum(map(lambda x: map(lambda y: (x,y), filter(lambda y: y%5==1,range(10))), filter(lambda x: x%5==0,range(10))),[]) [(0, 1), (0, 6), (5, 1), (5, 6)] the last, , (maybe)nasty trick using sum flatten list. getting [[(0, 1), (0, 6)], [(5, 1), (5, 6)]] .

c++ - can't make a string literal type -

i'd make string literal can use template argument. throws compiler kind of endless loop. problem , fix? template <char...> struct slit { }; template <typename ...a> constexpr auto make_slit(char const* const s, const ...args) { return *s ? make_slit(s + 1, *s, args...) : slit<args...>(); } int main() { auto const tmp_(make_slit("slit")); return 0; } the obligatory error (with clang++ -std=c++1y ): t.cpp:4:16: fatal error: recursive template instantiation exceeded maximum depth of 256 constexpr auto make_slit(char const* const s, const ...args) ^ t.cpp:6:15: note: in instantiation of function template specialization 'make_slit<char, char, char, char, char, char, char, char, char, char, char, char, char, char, char, char, char, char, char, char, char, char, char, char, char, char, char, char, char, char, char, char, char, char, char, char, char, char, char, char, char, char, char, char, char, char, char,...

php - Calling Codeigniter Controller function inside the jquery -

i want specify controller path inside .ajax function of jquery. type:'post', url:"<?php site_url('login/validate'); ?>", //datatype: "json", data:data1, success: function (response){ //alert (response); $("span.error").html('congrats! registered our site').addclass('error'); //window.location="site"; }, currently doing path taken string. going success function dont know whay? when alert response gives error of "disallowed key characters" this due url:"<?php site_url('login/validate'); ?>", create url:"", you need echo url. url:"<?php site_url('login/validate'); ?>", change to url:"<?php echo site_url('login/val...

osx - Set a dynamic Apple menu title for Java program in NetBeans 7.4 -

i inherited java app built (i believe) in eclipse, i'm modifying using netbeans 7.4. want set main menu title shows on mac next apple menu. right name mainform , want change dynamically contents of specific text file ( name.txt ). i've looked tons of info on project.properties, ant scripts, , like, can't find definitive (and cross-platform) way set main menu title. have function in code returns name, can use if there's place it. in advance! i have found in order set app name in mac os x application menu, , avoid having show name of java project, have set in application cycle, using system.setproperty("apple.awt.application.name", "your app name"); here's how have mine set in "main" java method launches application: public static void main(string[] args) { // application menu mac os x must set in cycle string opsysname = system.getproperty("os.name").tolowercase(); if (opsysname.contains("mac...

magento 1.7 - Where i wants to give the actual keyword in my website for SEO? -

i have 10 keywords website. please tell wants give actual keyword in website (home page or place?)for display google search? for put keywords in home page or other page: login admin panel. go cms->pages select page. here in mete data tab can insert meta keywords , meta description. for put keyword in category page: go catalog->manage categories select category. here can insert meta keywords , meta description. for put keyword in product detail page: goto catalog->manage products select product. here in meta information tab insert meta title,meta keywords , meta description. (if not display meta information tab or meta attributes goto catalog->attributes->manage attributes set manage meta attribues product accoring product type.)

c# - Java Script Validation for file uploading -

i got stuck in javascript validation in product adding form. in page have file upload control upload product image. not getting how validate using javascript. if image not uploaded control want display upload image message in label. how accomplish this? please me. the script have written is: var fileup = document.getelementbyid('<%=fileuploadimg.clientid %>').value; if (fileup == "") { document.getelementbyid("lblfileuploadimg").innerhtml = "<font color='red'> upload image file</font>"; document.getelementbyid('<%=fileuploadimg.clientid %>').focus(); return false; } else { document.getelementbyid("lblfileuploadimg").innerhtml = ""; } the control have used is: <asp:fileupload id="fileuploadimg" runat="server" width="217px" height="20px" /> <asp:label id="lblfileuploadimg" runat="server...

Ruby function definition -

how define function in ruby such call f[true,1,2,3] made? tried def f(arr) ... end requires f([true,1,2,3]) . i'm total newb in ruby, need complete task. i'd this: class myclass def [](a,b,c,d) print "#{a} #{b} #{c} #{d}" end end f = myclass.new f[true,1,2,3] # => true 1 2 3

ajax request in jquery mobile -

is possible use jquery ajax jquery mobile? $.ajax({ url:'/php', type:'get', datatype:'json', data:{'action':'getdata'}, success: function(result) { alert(result); },error:function(err){alert(err);} }); this code failing on button click of jquery mobile(data-role=button) problem here? if run request in new tab works fine , can response. test that: $.ajax({ url:'/php', type:'get', datatype:'json', data:{action:'getdata'} success: function(result) { alert(result); }, error:function(err){alert(err);} });

javascript - How to force Karma to watch it's own configuration file (karma.conf.js)? -

i starting angular.js development... i did notice karma not watch it's own configuration file (karma.conf.js), neither if add dependencies 'files' array... i don't know if it's design, find quite annoying, since i'm starting karma/jasmine, , tune configuration parameteres... is there way force karma watch it's own configuration file? update: enabling loglevel: config.log_debug see: warn [watcher]: files matched "/app-base-path/karma.conf.js" excluded. so, it's excluded design... can explain rationale behind decision? karma not right now, right - should! it bugs me everyday apparently didn't bug me enough it. it's not super trivial , of config properties require complete re-bootstrap. anyway, here ticket it. feel free send pull request. i'm happy discuss possible ways how implement it.

php - Convert posted value to decimal with number_format -

i have number 10,000 in post data, , want store in db 10000.00 i have following: (in kohana) number_format(input::post('amount'),2,'.',''); but gives me error: errorexception [ notice ]: non formed numeric value encountered since $_post['amount'] = 10,000 any suggestions how can solve this? the comma causing problem, strip out using str_replace number_format(str_replace(',', '', input::post('amount')), 2, '.', '');

Mysql PHP Error - Login Validation -

good day gents busy frustrating myself here. busy trying write simple login script validates login against database. however keep on getting: warning: mysql_fetch_array() expects parameter 1 resource, boolean given in here code.... when run query on sql workbench works 100% <?php // grab user submitted information $email = $_post['users_email']; $pass = $_post['users_pass']; // connect database $con = mysql_connect('localhost','root',''); // make sure connected succesfully if(! $con) { die('connection failed'.mysql_error()); } // select database use mysql_select_db('arctecs',$con); $result = mysql_query('select users_email, users_pass users users_email = $email'); $row = mysql_fetch_array($result); if($row['users_email']==$email && $row['users_pass']==$pass) echo'you validated user.'; else echo'sorry, credentials not valid, please try again.';...

html - How to do 3 divs in-line and last with auto width? -

i want single line, text + text + central bar (must fill remaining width). i tried this: html: <div class="title-cont"> <div class="title-num">1.</div> <div class="title-text">title section</div> <div class="title-bar"></div> </div> css: .title-cont { float:left; clear:left; width:600px; white-space:nowrap; overflow:hidden; } .title-num { float:left; font-size:20px; color:red; } .title-text { float:left; font-size:16px; color:blue; } .title-bar { float:left; width:100%; height:5px; background:red; } url: http://fiddle.jshell.net/5bt4s/2/ try this .title-cont { float:left; width:600px; white-space:nowrap; overflow:hidden; } .title-num { float:left; font-size:20px; color:red; } .title-text { float:left; font-size:16px; color:blue; } .title-bar {display:inline-block;width:100%; height:5px; background:red; }

ios - ScrollView in TextView bounces back to Top -

in viewcontroller have textfield , want have scroll function in because long clicked bounces vertically , set constraints auto .but when build , tried in simulator bounces back. tried here in nothing worked me . can ? i embed view in textfield.

php - Adding a retry condition using wp_remote_post -

i using following code posting api $post_response = wp_remote_post( $url, array( "method" => "post", "timeout" => 45, "headers" => $headers, "body" => $jsondata, "sslverify" => false ) ); here have added timeout of 45 seconds, since api takes long time return output server. can tell me alternative way of adding retry condition send post in case api takes long send output should able trace responses also. you can use; while(1) { $post_response = wp_remote_post( $url, array( "method" => "post", "timeout" => 45, "headers" => $headers, "body" => $jsondata, "sslverify" => false ) ); if (!empty($post_response) && $post_response["response"]["code"] == 200) { break; } echo "post ...

How to export a image from PDF using adobe reader? -

i'm using adobe reader xi. i can't find "document processing" pane suggested in adobe reader page. http://blogs.adobe.com/vikrant/2010/12/extract-images-from-a-pdf/ does know how export image pdf using adobe reader? i'm voting close question unrelated programming: questions general computing hardware , software off-topic stack overflow unless directly involve tools used programming. may able on super user . however, it's unlikely you'll straight how-to answer on well: adobe reader not acrobat pro . adobe reader free reader , limited editing functionality. adobe acrobat pro full-featured mutipurpose pdf tool; , such, not free (at all). "document processing" professional feature, available in acrobat pro.

css - CSS3 custom checkbox - cross-browser differences -

i've been working on custom checkboxes while , have found challenge. however, i'm close finishing them , had been testing lot in chrome managed them perfect. i checked in other browsers , there distinct differences in how after state rendered. how fix differences? possible? or have use image? jsfiddle html: <div class="fb-checkbox"> <br> <br> <input id="item21_0_checkbox" name="project_type[]" type="checkbox" data-hint="" value="conference" /><label for="item21_0_checkbox" id="item21_0_label" ><span id="item21_0_span" class="fb-fieldlabel">conference</span></label> <input id="item21_1_checkbox" name="project_type[]" type="checkbox" value="incentive campaign" /><label for="item21_1_checkbox" id="item21_1_label" ><span id="item21_1_spa...

javascript - Colon in Jquery selector -

i have recntly updated jquery 1.4 2.1 , error started appeared. in code have part select elements id. jquery("*[id^=name:]") that produces error, there no errors before(1.4) if escape colon error disappears. have added new in latest version or bug in code? you can wrap attribute value string literal jquery('*[id^="name:"]') demo: fiddle

matlab - Is there a way to change the digits shown in the variables browser? -

the matlab variables browser in ide gui per default shows 10 digits. longer variables have dimension shown. [0 0 0 0 0 0 0 0 0 1] [0 0 0 0 0 1 1 0 0] <1x11 double> [1 0 0 0 0 0 0 0 0] [0 0 0 0 0 0 0 0 0] [0 0 0 0 0 0 0 0 0] <1x11 double> [0 0 1 0 0 0 0 0 0 0] [0 0 0 1 1 1 0 0 0] [1 0 0 1 0 0 0 1 1 0] is there way modify behavior in matlab 8.1 ? as may have guessed comments: no , there no setting can changed via regular means modify behavior. of course possible, 'easiest' way require java hack, the 1 changing workspace preferences .

r - How to download rCharts plots in shiny with downloadHandler -

in shiny apps ggplot2 graphs can downloaded based on downloadhandler function. possible download javascript visualisations produced means of rcharts in similar way? if yes, best approach? if use highcharts capability of rcharts can use it's exporter feature has download capability demonstrated here ( source ). if not, you're left dom introspection ended using here . has no r behind it, shows how find svg in dom , make graphic exportable in couple different ways.

html - jQuery Toggle img inside a label -

i think have simple problem. i trying create simple expand , collapse panel using .toggle. although content expands , collapses expected, trying place icons user, cannot these images toggle too. html: <div class="toggle_head header"> <label> <img height="30px"; src="http://png-1.findicons.com/files/icons/2338/reflection/128/expand_alt.png" /> </label> <label class="hide"> <img height="30px"; src="http://png-2.findicons.com/files/icons/2338/reflection/128/collapse_alt.png" /> </label> <label>expand</label> </div> <div class="toggle_body"> <label>my content</label> </div> jquery: $(".toggle_body").hide(); $(".collapse").hide(); $(".toggle_head").click(function () { var $this = $(this); $this.next(".toggle_body").slidetoggle("slo...

java - HTTP-Download - sometimes file is not downloaded complete without error -

i'm trying develope small java downloader. sometimes, can not find out when, 1 download missing few percent. after 1 download corrupt every download after corrupt. have no clue problem, , tried different output buffers no success. here source of download thread: private void startdownload() { try { ins = null; outb=null; setrunning(true); // erstelle httpurlconnection objekt zur anfrage den server con = (httpurlconnection)url.openconnection(); con.setrequestmethod("get"); con.setrequestproperty("user-agent", datacontroller.getinstance().getuseragentstring()); if (datacontroller.getinstance().getcookie() != null) { con.setrequestproperty("cookie", datacontroller.getinstance().getcookie()); } system.out.println("saveto length: " + this.saveto ); system.out.println("loaded byt...

.net - HttpWebRequest.Proxy=null rewrite Expect100Continue -

i found crazy behavior of httpwebrequest class when u set httpwebrequest.proxy=null. @ first time rewirte expect100continue true reason. example code httpwebrequest webrequest1 = (httpwebrequest)webrequest.create("http://stackoverflow.com/"); webrequest1.method = "post"; webrequest1.servicepoint.expect100continue = false; webrequest1.proxy = globalproxyselection.getemptywebproxy(); ; console.writeline(webrequest1.servicepoint.expect100continue); webrequest1.servicepoint.expect100continue = false; webrequest1.proxy = null; console.writeline(webrequest1.servicepoint.expect100continue); webrequest1 = (httpwebrequest)webrequest.create("http://stackoverflow.com/"); webrequest1.method = "post"; webrequest1.servicepoint.expect100continue = false; webrequest1.proxy = null; console.writeline(webrequest1.servicepoint.expect100continue); ...

php - Inject doctrine in a formbuilder class -

i tryin inject entity manager in formbuilder class. error : catchable fatal error: argument 1 passed pdb\backend\admin\relationmanagementbundle\form\search\searchform::__construct() must instance of doctrine\orm\entitymanager, none given. services: my_service: class: pdb\backend\admin\relationmanagementbundle\form\search\searchform arguments: entitymanager: "@doctrine.orm.entity_manager" my constructor : class searchform extends abstracttype { protected $entitymanager; public function __construct(entitymanager $entitymanager) { $this->entitymanager = $entitymanager; } in controller public function showaction($id,$tab) { ... $em = $this->getdoctrine()->getmanager(); $form = $this->createform(new pdb\backend\admin\relationmanagementbundle\form\search\searchform($em), $entity); .. } then in form class searchform extends abstracttype { protected $entitymanager; public f...

long number most significant bit chopped off in shell script -

i assigning long value variable in shell script , trying calculations it, results negative sign numbers. count=4 initial_value=128 final_value=18446744073709547520 step=$((($final_value - $initial_value) / ($count - 1))) value=$initial_value for((i=1; i<=count; i++)) start=`date +%s` myvariable=$(mysql $database -u $user -se "set global join_buffer_size = $value;query run") end=`date +%s` time=`echo "$end - $start" | bc` echo "$value $time" >> output.txt value=$(($value+$step)) mysqld restart done the output of output.txt file this: 128 20 -1280 20 -2688 21 -4096 20 i can't tell shell script use unsigned long, didn't chop off number. how can fix it? thanks your $final_value larger max int bash arithmetic (which 9223372036854775807). use bc instead: count=4 initial_value=128 final_value=18446744073709547520 step=$(echo "($final_value ...

f# - How to project (transform) an array of FileInfo to a list of strings with fsharp -

what trying this: let getfiles path = (directoryinfo path).getfiles().tolist but gives me list of fileinfos instead of list of strings. how can project list of strings? thx in advance assuming want paths associated each file can do: let getfiles path = (directoryinfo path).getfiles() |> array.map (fun fi -> fi.fullname) |> list.ofseq note creates f# list, not system.collections.generic.list<string> . if want create 1 of these can use resizearray : let getfiles path = (directoryinfo path).getfiles() |> array.map (fun fi -> fi.fullname) |> (fun s -> resizearray<_>(s)) edit: comment points out, since getfiles returns array, can use array.map , avoid converting list/resize array if don't need it.

php - Get facebook pages URls based on KeyWords -

i want facebook pages urls @ dynamic time contain searched keyword.if want pages url's contain " data science " search on fb search bar , data science seached pages .it contain pages related data science,is possible make app in facebook allow such search @ run time return url's fb_page <- getpage(page="jamiesitalianau", token=fb_oauth) fetched data specific page not specific search fb_page1 <- getpage(page="facebook data science", token=fb_oauth) error in fromjson(rawtochar(url.data$content)) : unexpected character '<' is possible facebook pages based on keywords.any help,thanks. see https://developers.facebook.com/docs/reference/api/search/#types refer page search syntax of graph api. please note need app access token able search pages.

android - How to move image on screen? -

i want move image on screen , able that, not properly. image goes downward fine , want start going upward in direction once has moved bottom of screen. here have tried. in code below, margenmaxx width of screen , margenmaxy height of screen protected void oncreate(bundle savedinstancestate) { super.oncreate(savedinstancestate); // setcontentview(r.layout.activity_main); thread mythread = new thread(new updatethread()); mythread.start(); public class updatethread implements runnable { @override public void run() { //... code manipulate position while (i<margenmaxx){ if(j<margenmaxy) { try { runonuithread(new runnable() { @override public void run() { /*mdrawable.setbounds(i, j ,i+ width, i+ height); mdrawabl...

c# 4.0 - without playing a audio file in C# how to find duration of that file -

without playing audio file in c# how find duration of file. kindly give code of that. write code play audio. not working. code mentioned below..... protected void button1_click(object sender, eventargs e) { if (fileupload1.hasfile) { string filename = @"e:\ayush\adios.wav"; fileinfo f = new fileinfo(filename); long s1 = f.length; label2.text = s1.tostring(); soundplayer player = new soundplayer(filename); { player.loadasync(); player.playsync(); // player.stop(); } } there no buildin support in .net framework metadata media files, can use taglibsharp metadata information video, image , audio files. taglibsharp can installed using nuget manager in visual studio. see here .

c# - publish application with clickonce on website -

i have searched everywhere without answer problem. have .net framework 4.0 win forms application. publishing have website built asp.net. i have problem publishing, downloading (user), running it. let's publish application ftp://etc.com/program/ installation folder url http://etc.com/program/ ... etc. doing right ? in asp.net website have code when user clicks button download application , install. protected void imagebutton1_click(object sender, imageclickeventargs e) { response.redirect("program/setup.exe"); } is way it? when run says cannot download application. application missing required files. how put application user clicks button , run install. thank you

java - Disable Apache cxf interceptor -

i developing simulator simulate client side web service. have written server side code. when trying hit service, following exception on server side: org.apache.cxf.interceptor.fault: unmarshalling error: unexpected element as developing simulator, not need validate request (and tags). want send response no matter whatever request contains. idea how suppress error or disable these interceptors? i think can take @ provider api cxf provide. in case, cxf doesn't unmarshal request message.

c# - Text boxes Not changing after selecting from dropdown list -

my web page should allow me select title of book drop-down list, press select button, , textboxes(ie. author, year, category) should change according book selected. however, when select second book list, loops show details of 1st book on dropdown list, no matter select, shows first record. here code: protected void page_load(object sender, eventargs e) { loaddetails(); } private void loaddetails() { sqlconnection conn; sqlcommand comm; sqldatareader reader; string connectionstring =configurationmanager.connectionstrings["database"].connectionstring; conn = new sqlconnection(connectionstring); comm = new sqlcommand("select bookid, title books", conn); try { conn.open(); reader = comm.executereader(); ddlsearch.datasource = reader; ddlsearch.datavaluefield = "bookid"; ddlsearch.datatextfield = "title"; ddlsearch.databind(); reader.close(); } ...

Sails.js background processing loop, not related to connections -

if have process loop want run continuously after delays settimeout (regardless of connections) code go , executed from? it looks code go in services directory, start loop? tried in app.js, doesn't work once sails lifted doesn't simple example // myfoo.js module.exports = { shouldfoo: true, dofoo: function(){ if(this.shouldfoo){ console.log('fooing ...'); settimeout(foo, 1000); } else { this.shutdownfoo(); } }, shutdownfoo: function(){ // finish process } } then put: var fooer = require('./api/services/myfoo.js'); fooer.dofoo(); you can use bootstrap.js in config folder ( http://sailsjs.org/#!documentation/config.bootstrap ): module.exports.bootstrap = function (cb) { var fooer = require('./api/services/myfoo.js'); fooer.dofoo(); // it's important trigger callback method when finished // bootstrap! (otherwise server never...

asp.net - Firefox doesn't show authentication prompt with Windows Authentication -

i'm building intranet asp.net web application organization, , want authenticate users using windows authentication. have 2 wcf webhttpbinding-bound self-hosted services. both use webhttpbinding resthttpbinding configuration. <webhttpbinding> <binding name="resthttpbinding"> <security mode="transportcredentialonly"> <transport clientcredentialtype="windows"/> </security> </binding> </webhttpbinding> my services behave correctly (prompts authentication) on chrome, opera , ie (in latter case - if set logon in user authentication in security settings "prompt user name , password"). in firefox can either use this method allow automatic authentication or same result described in this post : 401 unauthorized , blank page. i've spent hours on googling , trying different options. can't find way make firefox show me prompt. i checked how it's happeni...

asynchronous - Parse javascript query inside a loop -

so quite new javascript , unsure how go solving issue. know query asynchronous cannot execute inside loop not know how go this. here calling query list of users. there loop go through each user, second query gets executed each user , uses users username part of class name. have suggestions should do? var query = new parse.query(user); query.find({ success: function (results) { $(".success1").show(); progressbar.max = results.length * 2; (var = 0; < results.length; i++) { var object = results[i]; var predictions = parse.object.extend("predictions" + object.get("username")); var query2 = new parse.query(predictions); query2.equalto("matchweekid", weeknum.value); query2.find({ this cod...

visual studio 2010 - C++ VS2010 Debugger behaves weirdly on loop variable beyond loop scope -

i bit puzzled, since seems c++ debugger in vs2010 behaving bit oddly. if go , run this: int = 100; for(int = 0; < 5; i++) { printf("value of inside loop: %d", i); } printf("value of outside loop: %d", i); then, when breakpointing on line after last 1 above , hovering cursor above "i" variable, debugger shows value 5. however, if decide send "i" variable parameter method: test(100); void test(int i) { for(int = 0; < 5; i++) { printf("value of inside loop: %d", i); } printf("value of outside loop: %d", i); } then, when breakpointing on last line , hover mouse on "i", i, debugger shows value 100. could enlight me on (or test on machine). bug or feature or missing something? thanks in advance! update: make things clear - actual program prints , executes intended, debugger shows unexpected values. so, 1 can ignore says "printf", have been involving varia...

solr partial search for alphanumeric field not working -

i using solr 4.4.0. want enable partial search on 1 of fileds i.e. search key abc return docs having filed value abc123 , abc125 etc. trying via edgengramfilterfactory . my schema.xml: <fields> <field name="variant_sku" type="string" indexed="false" stored="false" required="false" multivalued="false" /> <field name="parsku" type="text_sku" indexed="true" stored="true" multivalued="false" /> </fields> <copyfield source="variant_sku" dest="parsku"/> <copyfield source="parsku" dest="alltext"/> <fieldtype name="text_sku" class="solr.textfield" omitnorms="false"> <analyzer type = "index"> <tokenizer class="solr.standardtokenizerfactory" /> <filter class="solr.standardfilterfactory" /> <filte...

c# - OracleCommand Class and SqlScript Issue -

i trying run following query using oraclecommand class. but error: "ora-00920 invalid relational operator". i sure date values. not know how fix it. help? select s.store_code,count(i.invc_sid) count invoice_v left join store_v s on i.sbs_no , i.store_no = s.store_no where(i.created_date between to_date('02//01//2014','mm//dd//yy') , to_date('02//28//2014','mm//dd//yy')) , i.proc_status not in ('131072','65536','147456', '81920') , i.invc_type = 0 , i.sbs_no = 6 group s.store_code"; thanks your problem in following line left join store_v s on i.sbs_no , i.store_no = s.store_no here, after 'on' have written i.sbs_no . there should after compare on i.sbs_no = 'something' , i.store_no = s.store_no

html - Footer sticky at bottom, content-wrapper fill free space -

Image
i'm working on web layout: header , footer should full-width, content narrow , centered footer @ bottom of screen or @ bottom of page, depending on content length if content not fill complete screen, wrapper should fill screen anyway the first 2 points no problem, can stretch body using javascript. css min-height: 100% not work, there possibility fix in pure css? here's a fiddle of scenario including quick-and-dirty jquery solution. this css.nothing change...just few edit.. remove min-height,instead height,and id of section give height:100% html, body { margin: 0px; padding: 0px; height: 100%; } #layout-helper-wrapper { height: 100%; position: relative; margin: 0px auto; background-color: #eee; overflow: hidden; } header, footer { background-color: #fb2; margin: 0px; z-index: 2; width: 100%; position: absolute; } header { height: 30px; } footer { height: 20px; bottom: 0; } #body-wrapper...

python - Price data from yahoo finance (or google finance) that is more precise than one point per day -

is possible retrieve historical price data yahoo (or google) finance using pandas.io.data.yahoo in python hour or 10 minutes resolution instead of 1 point per day? if not possible, limitation of pandas module or yahoo (google) finance api? i don't know pandas.io.data.yahoo , may need this: jsons of bloomberg: http://www.bloomberg.com/markets/chart/data/1d/aapl:us http://www.bloomberg.com/markets/chart/data/1m/aapl:us

How to show WebView in Android -

i have qr code scanner have if else statement, want show webview when if statement true web view still shows , blocks camera view. how can it? previewcallback previewcb = new previewcallback() { public void onpreviewframe(byte[] data, camera camera) { camera.parameters parameters = camera.getparameters(); size size = parameters.getpreviewsize(); image barcode = new image(size.width, size.height, "y800"); barcode.setdata(data); int result = scanner.scanimage(barcode); if (result != 0) { previewing = false; mcamera.setpreviewcallback(null); mcamera.stoppreview(); symbolset syms = scanner.getresults(); webview engine = (webview) findviewbyid(r.id.web_engine); engine.removeallviews(); (symbol sym : syms) { string value = new string( sym....

javascript - Highcharts filter string x-axis -

does know if possible have string filter values on x-axis? instance, in google charts there control called "string filter" ! do need create own control using jquery take value typed input box , systematically remove x-axis values user types? unfortunately not supported, can try use update , after input typing, call function , update labels on xaxis.