Posts

vhdl - Lattice Diamond 2.1 -

i upgraded machine winxp win7, , @ same installed lattice diamond 3.1. more complex simulations hang, active-hdl uses 100% cpu time , in infinite loop. stupidly don't have installation of lattice diamond 2.1 or 2.2, , unbelievably lattice allows download latest version. no fallbacks! does have installation file lattice diamond 2.1 or @ pinch 2.2? can provide ftp put on if has. know big file, 1g+. actually able copy active-hdl 9.2 directory win7 in virtual box on machine, , overwrite active-hdl 9.4 directory. still wouldn't mind old installation file @ least can simulate now. , diamond 3.1 possible eliminate bkm warnings , errors. there 2 many bugs in 2.1, tech support admitted warnings diamond bugs not flaws in code. actually found can download older version support -> software archive actual link: http://www.latticesemi.com/en/support/softwarearchive.aspx

cocoa - Xcode 5.1 access the app itself -

i began coding objective c last night , made first basic cocoa app macbook air. have built , everything, can't find executable app in project folder? i using 5.1 look in ~/library/developer/xcode/deriveddata . find folder program.

c - Round Robin Scheduling With Arrival Time (concept of wait queue) -

i studying round robin , there concept of wait queue struck mind searched internet , found nothing on it. how round robin scheduling algorithm solved if there arrival time given process? round robin scheduling technique executes process given time slice , appends process @ end of ready queue, before appending @ end of ready queue, checks whether there other process can inserted in queue(on basis of arrival time) if such process exists inserts such programs in queue , @ end of queue adds current executed process

bash - I need to get the amount of numbers entered from a parameter and assign them to variables -

i making program have user provide 3 digit number when running program. if not have 3 numbers, im give error message. how can test length of number , how can assign each number out of digits variable? thanks in advance! i tried doing: grep '^[0-9][0-9][0-9]$' did not work. consider following starting point. add more error checking getting practice. #!/bin/bash while : read -p "enter 3 digit number or q quit: " input if (( input >= 100 && input <= 999)); echo "good entry" digit1=${input:0:1} && echo "digit1 $digit1" digit2=${input:1:1} && echo "digit2 $digit2" digit3=${input:2:1} && echo "digit3 $digit3" elif [[ $input == "q" ]]; break else echo "bad entry" fi done output: enter 3 digit number or q quit: 4256 bad entry enter 3 digit number or q quit: 242 entry digit1 2 digit2 4 d...

Checking if two elements are equal in JavaScript -

why elementa === elementb produce different results elementb.isequalnode(elementa)? after checking this answer on is there way check if 2 dom elements equal? i'm trying check if 2 elements equal in javascript using === . surprisingly, when element a , b same a === b returns false while b.isequalnode(a) returns true . here's example: html: <div> <h1>test</h1> </div> javascript: var inmemorydiv = document.createelement('div'); var inmemoryh1 = document.createelement('h1'); inmemoryh1.innerhtml = "test"; inmemorydiv.appendchild(inmemoryh1); var h1 = document.getelementsbytagname('h1')[0]; alert(h1 === inmemoryh1); // false alert(inmemoryh1.isequalnode(h1)); // true alert(h1.innerhtml === inmemoryh1.innerhtml); // true replicated in fiddle . why case? you create new element. not same existing one. equal though have same structure , content. it's 2 string objects equal if contai...

select - MySQL nested, nested subquery not getting outter variable -

i have spendings table , dates table, joined date_id , id... what i'm trying do, 1 query info spendings, plus sum of spendings limit and/or offset this query right now select spendings.id, spendings.price, spendings.title, dates.date, users.username, currencies.value, ( select sum(sum_table.price) ( select s.price spendings s, dates d s.date_id = d.id , day(d.date) = 25 limit 2 offset 0 ) sum_table ) sum_price spendings, dates, users, currencies spendings.date_id = dates.id , day(dates.date) = 25 , spendings.user_id = users.id , spendings.curr_id = currencies.id limit 2 offset 0 output id price title date username value sum_price 3 6.00 title1 2013-11-25 alex € 21.00 4 15.00 title2 2013-11-25 alex € 21.00 it works, if date here day(d.date) = 25 same outer 1 here day(dates.date) = 25 if instead put day(d.dat...

Nginx image_filter on OpenShift not working -

i'm trying build nginx instance on openshift, able resize external images, url. ex. http://nginx-paramount.rhcloud.com/resize/100x100/http://perankhgroup.com/fghjk.jpg on localhost, working, i'm not able make work on openshift, because of default.conf...and maybe because of proxy_pass. error getting in browser "unsupported media type"...so image_filter module working, gives error...415. this default.conf, included nginx.conf: http://pastie.org/9094471 any idea of can in order make work on openshift? lot!