Posts

assembly - Is there a web app HLA assembler? -

hla easy enough language install on virtually platform, have friend attempting learn on machine on not have administrative privileges. i've bumped online compilers nasm (recognizing "compiler" not strictly right word), , i'm curious whether has bumped online hla? the answer might "no", in case nasm have do. suggestions appreciated. (she'll have raspberry pi around anyway in few months, or @ least cheap laptop.)

vb.net - Quadratic equation with complex roots -

i learning visual basic , have been trying write code solve quadratic equations complex number roots. pointer in right direction appreciated. public class form1 dim a, b, c integer dim x1, x2 double private sub label4_click(sender object, e eventargs) handles label4.click end sub private sub textbox4_textchanged(sender object, e eventargs) handles eqnrt1.textchanged end sub private sub button3_click(sender object, e eventargs) handles btnexit.click close() end sub private sub btnclear_click(sender object, e eventargs) handles btnclear.click txta.text = "" txtb.text = "" txtc.text = "" eqnrt1.text = "" eqnrt2.text = "" end sub private sub btncalc_click(sender object, e eventargs) handles btncalc.click dim a,b,c integer = txta.text b = txtb.text c = txtc.text dim x1 = (-b + math.sqrt(b * b - ...

python - TypeError: 'float' object is not callable -

i getting "typeerror: 'float' object not callable. here code: from matplotlib.pylab import * def f(x,t): return (exp(-(x-3*t)**2) )*sin(3*pi(x-t)) x = linspace(-4, 4, 8) y = zeros(len(x)) in xrange(len(x)): y[i] = f(x[i],0) plot(x, y) show() pi isn't function, since didn't use * indicate want multiply it, looks using one.

javascript - Angular watch on parent directive's controller with require -

i have parent , child directive controller each, both of required in child directive. want watch changes property on parent directive controller within link function of child directive. however, watch function fired on initialisation not subsequently when property changed button in parent directive's scope, or link function of parent directive. please explain why , how should resolve it? parent directive myapp.directive('parentdirective', function ($timeout) { return { restrict: 'e', scope: true, controlleras: 'parentctrl', controller: function () { var vm = this; vm.someproperty = true; vm.toggle = function () { vm.someproperty = !vm.someproperty; } }, link: function (scope, element, attrs, controller) { $timeout(function () { controller.toggle(); }, 1000); } } }); child directive...

How to upload massive amounts of files (up to 1000 photos) with php to website? PHP -

my website contains section users upload photo albums 1000 photos. currently, php upload script keeps crashing despite removing filesize , upload limits php.ini (i have removed restrictions against file uploading). how suggest going uploading many files? passing $_files array using move_uploaded_file function. ftp allow me upload smoother without interruptions, or should use new language together? these errors receiving: connection reset the connection server reset while page loading. site temporarily unavailable or busy. try again in few moments. if unable load pages, check computer's network connection. if computer or network protected firewall or proxy, make sure firefox permitted access web. --and-- request entity large requested resource /index.html/uploadanalbum.php not allow request data requests, or amount of data provided in request exceeds capacity limit. additionally, 413 request entity large error encountered while trying use errordocument handle request. th...

How to convert and use struct c++ to c# using dllImport? -

i haved tried using dllimport call c++ methods. déclaration of fonctions in c ++ : dword getreaderhandle (handle *handle); int getscandata (int *count,scn_etq *scandatabuf); int readbyate (byte *password,byte*ate,int atelen,int mr,byte *data,int datalen); struct scn_etq { int atelen; byte atebuffer[256]; }; please tel me how can convert in c# ?! how can initialise struct scn_etq use in main ? please need ! please need !

scala - Can we have an array of by-name-parameter functions? -

in scala have by-name-parameters can write def foo[t](f: => t):t = { f // invokes f } // use as: foo(println("hello")) i want same array of methods, want use them as: def foo[t](f:array[ => t]):t = { // not work f(0) // invokes f(0) // not work } foo(println("hi"), println("hello")) // not work is there way want? best have come is: def foo[t](f:() => t *):t = { f(0)() // invokes f(0) } // use as: foo(() => println("hi"), () => println("hello")) or def foo[t](f:array[() => t]):t = { f(0)() // invokes f(0) } // use as: foo(array(() => println("hi"), () => println("hello"))) edit: proposed sip-24 not useful pointed out seth tisue in comment this answer . an example problematic following code of utility function trycatch : type unittot[t] = ()=>t def trycatch[t](list:unittot[t] *):t = list.size match { case if > 1 => ...