Posts

hexdump - Generating a machine code using SPIM -

i have assignment consists of developing simulator mips instructions. test simulator need inputs code machine or hedump code of assembly file. tried use spim on linux when check menu can t find way generate these kind of files. suggestions or answers appreciated. in advance. try link gonna needs now, write own test file https://github.com/eliottwiener/mips-simulator/blob/master/test.hexdump

JMeter Recording Controller is not working -

Image
i using apache jmeter 2.13. recording step have followed link: https://jmeter.apache.org/usermanual/jmeter_proxy_step_by_step.pdf after following these steps recording controller under test plan not start recording. can me on issue? according you, have created "thread group" under "test plan" , have created "recording controller" under "thread group". double check following: go "http(s) test script recorder" under "workbench" , set correct target controller @ right panel. start "http(s) test script recorder" clicking start button @ bottom in "http request defaults" under "thread group": input "server name or ip" correctly set browser proxy perfectly. (default port in "http(s) test script recorder" of jmeter 8080. use 8080 in browser proxy also. if want change proxy say, 9090 use same proxy (9090) in browser proxy set up) please see image attached here:...

Avahi Daemon resolving to wrong host name -

i facing issues avahi's address resolution apple airport router. when run avahi-browse -alr eth0 ipv4 50-35-10-70.1 airport express _sleep-proxy._udp local hostname = [airport-express.local] address = [169.254.8.180] port = [54121] txt = [] this output, apple airport's ip address 192.168.1.21 when edited /etc/avahi/hosts file resolve ip address, works few minutes , address 169.254.8.180 thanks in advance.

javascript - Input number section function only works one time -

i have 1 function number input box come + , - button on sides, , copy code in shopify theme use. function show 1 time. need apply product offers. (function ($) { $.fn.bootstrapnumber = function (options) { var settings = $.extend({ upclass: 'default', downclass: 'default', center: true }, options); return this.each(function (e) { var self = $(this); var clone = self.clone(); var min = self.attr('min'); var max = self.attr('max'); function settext(n) { if ((min && n < min) || (max && n > max)) { return false; } clone.focus().val(n); return true; } var group = $("<div class='input-group'></div>"); var down = $("<button type='button'>-</button>").attr('class', 'btn btn-' + settings....

python - Disable automatic dismissal of iOS alerts on Device Farm -

it appears alerts on ios on device farm automatically dismissed can disable dismissal of tests dependent on alerts. have found forums of aws feature not yet available few months before. https://forums.aws.amazon.com/thread.jspa?messageid=716329&#716329 i work aws device farm team. today, autoacceptalert set true default when using appium. however, right looking @ ways give user more control on options passed appium. should see update on soon. feature wasn't available anytime before. the aws forum post best place update on makes in.

css - Random Background Image PHP -

i using php code below display random header image every time page refreshed. works fine need add specific background-position css property of images. for example headerimage3.jpg needs background-position:20px , headerimage1.jpg needs background-position:50px. is possible using php code below or javascript need used? <style type="text/css"> #header-image{background:url("/files/headerimage<?php echo rand(1,4)?>.jpg");background-position:center center;background-size:cover}} </style> add php header: <?php $rnd = rand (1,4); $pos = ($rnd == 1) ? "50px 0;" : ($rnd == 3) ? "20px 0;" : "top left"; ?> then in css: <style type="text/css"> #header-image { background-image: url("/files/headerimage<?php echo $rnd ?>.jpg"); background-position: <?php echo $pos ?>; background-size: cover; } </style>

swift2 - Swift - How to group table using object array -

i have following class: class providerschedule : anyobject { var provideruid : string = "" var lastname : string = "" var firstname : string = "" var scheduleregion : string = "" var scheduleamount : float = 0 init () { } } then create array of object in order set source uitableview. var tabledata : array<providerschedule> = [] my table functions are: func tableview(tableview: uitableview!, numberofrowsinsection section: int) -> int { return self.tabledata.count } func numberofsectionsintableview(tableview: uitableview!) -> int { return 1 } what need group data by: lastname , firstname name appears on group section of table. any clue how that? convert data format better suited table groups. make class represent group key, this: class groupkey : hashable { let firstname : string let lastname : string init(fn:string, _ ln:s...