Posts

How can I make a pure assembly project in Visual Studio? -

how can make masm project in visual studio? remember doing in class while back, i've since forgotten, , google getting me inline assembly. start win32 console mode project template. delete .cpp files. right-click project in solution explorer window, custom build rules, check microsoft macro assembler. in vs2015 use build dependencies, build customizations, check masm. add new .asm file right-clicking source files node, add, code, c++ file, sure use .asm extension. in property window change file type c/c++ code gets passed linker. linker settings, manifest file, generate = no. these settings build , debug sample .asm file: .486 .model flat .code start: ret end start

javascript - How to show processing animation / spinner during ajax request? -

i want basic spinner or processing animation while ajax post processing. i'm using jquery , python. looked @ documentation can't figure out put ajaxstart , ajaxstop functions. here js: <script type="text/javascript"> $(function() { $('.error').hide(); $("#checkin-button").click(function() { var mid = $("input#mid").val(); var message = $("textarea#message").val(); var facebook = $('input#facebook').is(':checked'); var name = $("input#name").val(); var bgg_id = $("input#bgg-id").val(); var thumbnail = $("input#thumbnail").val(); var datastring = 'mid='+mid+'&message='+message+'&facebook='+facebook+'&name='+name+'&bgg_id='+bgg_id+'&thumbnail='+thumbnail; $.ajax({ type: "post...

javascript - Open infoWindow of specific marker from outside Google Maps (V3) -

i can't seem head around problem: i've got map (a lot of) markers (companies) come generated xml file. below map, want show (non-javascript-generated) list of companies displayed on map. when click company in list, map pan specific marker , open infowindow. thing want map , list 2 separate things... what right way tackle problem? thanks! important markerinfo dynamic... function initialize_member_map(lang) { var map = new google.maps.map(document.getelementbyid("large-map-canvas"), { center: new google.maps.latlng(50.85034, 4.35171), zoom: 13, maptypeid: 'roadmap' }); var infowindow = new google.maps.infowindow; downloadurl("/ajax/member-xml-output.php", function(data) { var xml = data.responsexml; var markers = xml.documentelement.getelementsbytagname("marker"); var bounds = new google.maps.latlngbounds(); (var = 0; < markers.length; i++) { var company = markers[i].getattribute("company...

iphone - From view to child table view -

can start view based based app , when button touched jump "child view" navigationbar , button go main view? also...would violation of apple's store rules? sure - trick have navigation controller present, use setnavigationbarhidden:yes animated:no to make hidden in root view. in child views there pushing them normal use setnavigationbarhidden:no animated:yes in viewwillappear . (tweak animated property make way prefer) i don't think violates rules, have used in app visual main menu pushes child views , can pop them return visual main menu showing no navigation bar.

php - How do you turn on the cache in CakePHP? -

i using cakephp. have action in controller produces static content pages of app. want cache entire action/view. controller pages , action main. not seeing cached files view appear in tmp/cache folder. i have uncommented cache.check setting in core.php, reads: configure::write('cache.check', true); i have added cache helper pages controller: var $helpers = array('javascript','cache'); i have told controller cache action called "main": var $cacheaction = array('main/'=>86400); i have confirmed there other cache files (the model cache) in app/tmp/cache folder today, know isn't permissions issue. here top of pages controller: var $name = 'pages'; var $helpers = array('javascript','cache'); var $uses = array(); var $components = array('authentication','security'); var $cacheaction = array('main/'=>86400); i not sure missing enable cache of view in cachephp. missing som...

iphone - I add buttons on scrollview but buttons are not working -

i new in iphone.i added 10 buttons on scrollview.buttons scroll properly,but 5 buttons working last 5 buttons not working.please suggest me next. it sounds 1 of 2 things either ... there no associated actions buttons (programatically or in ib) there view covering buttons , taking touch events try swapping position of 2 of buttons (one working , 1 not) , see if continue work before. if do, looks actions not set up. if have changed, there issue buttons placed.

objective c - Uncrustify spacing issue with macro inside method call -

i attempting use uncrustify on project of mine, running issues spacing changes makes when macro used receiver of objective-c message. example, given following macro , method call, expect spacing remain is. #define nilornotnsnull(val) ({id __val = (val); (__val == [nsnull null]) ? nil : __val;}) title_ = [nilornotnsnull([dict objectforkey:@"post_title"]) copy]; however, result. #define nilornotnsnull(val) ({id __val = (val); (__val == [nsnull null]) ? nil : __val;}) title_ = [nilornotnsnull ([dict objectforkey:@"post_title"])copy]; it appears if uncrustify not recognize text in parentheses argument macro, i'm not sure heck thinks is. seems uncrustify bug me, issue config, figured i'd ask here filing issue on github. here config i'm using: https://gist.github.com/812314 if offer insight, i'd appreciate it. i don't exact output when run using config. version using? version output follows: macbook-adamd:~ adamd$ uncrustify ...