Posts

css - Bootstrap space between rows -

this question has answer here: space between buttons bootstrap class 3 answers i put space between rows buttons (three buttons in each row). in example each row inside div element marked bootstrap class btn-toolbar . i know can solve problem using inline styling , put parameter margin-top or writing custom css class wondering if there bootstrap class this? code: <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css"> <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.0/jquery.min.js"></script> <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script> <br/> <button type="button" class="btn btn-primary" style="margin-right:30px;">naz...

system verilog - systemverilog return dynamic array from function -

i trying return dynamic array function, did dome job dont know how dynamic, mean without declare "data_len" helping, module test1(); typedef integer dyn_arr[]; function dyn_arr get_register_name(); int data_len = 3; get_register_name = new [data_len] ; get_register_name[0] = 5; get_register_name[1] = 2; endfunction dyn_arr my_q; initial begin my_q = get_register_name(); $display("%d",my_q[1]); $display("%d",my_q[0]); end endmodule you can pass dynamic array reference in function purpose. here sample code it. module tp(); integer a[]; initial begin return_x(a); $display("a - %p", a); end endmodule function automatic void return_x(ref integer x[]); x = new [3]; x = '{3,3,3}; endfunction // output - // - '{3, 3, 3}

PHP array with mysql and other -

i have table1 phone numbers data 09454151,094949154 , other data client. my input data in phone number like: 000385926555494 or 0385981961969 convert to: 0926555494 or 0981961969 that works fine code (where $broj00 = '000385926555494 '): $broj00 = preg_replace('/'.ulazni_poziv.'/', '', $broj); //dodavanje prefixa za ljepsi pregeld broja $prfix = 0; $broj01 = array($prefix,$broj00); $broj02 = implode('',$broj01); then have problem, work if $broj 1 data can have in $broj = '09846646646,098956565,0989898' 3 number in date. how can explode 3 number 1 ? , search database number name , return name? full code working $broj = '0986464646'; -> 1 number. function realbroj_ul($broj){ global $database; global $session; $result = ""; //uklanjanje odredenog djela iz broja $broj00 = preg_replace('/'.ulazni_poziv.'/', '', $broj); //dodavanje prefixa za ljepsi pregeld b...

javascript - chrome.runtime.sendMessage error in Chrome version 57.0.2987 -

i've updated google chrome browser version: 56.0.2924 57.0.2987 . i have extension, , can not work in new version. debuged, , find reason chrome.runtime.sendmessage not work. send message in background page : chrome.runtime.sendmessage({"name": event_enum.job_init, "data": job}); and have listener (the same background page): chrome.runtime.onmessage.addlistener( function (request, sender, sendresponse) { if (request.name == event_enum.job_init) { //do } }); my manifiest has surely injected these codes. but after run chrome.runtime.sendmessage nothing happened. searched got no issue that. has same issue me? thank you i don't know why works in 56.0.2924 because behavior changed intentionally long time ago in 49.0.2622.0, see crbug.com/ 479425 commit r369379 : never connect port same frame. connecting same frame not make sense because onmessage should not triggered same frame. the fact worked af...

c# - Hot to get content from another page in uwp after a few seconds -

i have page1.xaml <grid background="{themeresource applicationpagebackgroundthemebrush}"> <stackpanel horizontalalignment="left" height="720" verticalalignment="top" width="575"> <textblock foreground="white" textwrapping="wrap" margin="28,20,31,0" fontsize="14" height="145"> <textblock.transitions> <transitioncollection> <entrancethemetransition fromhorizontaloffset="400"/> </transitioncollection> </textblock.transitions> <run text="text 1"/> </textblock> </stackpanel> </grid> and page2.xaml <grid background="{themeresource applicationpagebackgroundthemebrush}"> <textblock foreground="white selectionchanged="textblock_selectionchanged"...

embedded - Can ARM qemu system emulator boot from card image without kernel param? -

i've seen lot of examples how run qemu arm board emulator. in every case, besides sd card image param, qemu supplied kernel param, i.e.: qemu-system-arm -m versatilepb \ -kernel vmlinuz-2.6.18-6-versatile \ #kernel param here -initrd initrd.gz \ -hda hda.img -append "root=/dev/ram" i palying bootloaders , want create own bootable sd card, don't have real board yet , want learn emulated one. however, if run described above, qemu skips bootloader stage , runs kernel. so should emulate full boot sequence on qemu executes bootloader? should rom dump , pass -bios param? you can feeding uboot image. never used rom dump. qemu boot sqeuqnce: on real, physical boards boot process involves non-volatile memory (e.g. flash) containing boot-loader , operating system. on power on, core loads , runs boot-loader, in turn loads , runs operating system. qemu has possibility emulate flash memory on many platforms,...

Merging mySQL database with PHP while maintaining field -

background: group of students including me creating website merit system our school. had no experience in html, css, php or sql databases @ start. we've managed decently. however, we've run problem updating database. every week, need merge table students csv, updated classes , department of education system. there thousands of students , each of them have details when updated can change others need stay same. example, have number of merits needs stay same when update details such year group or classes can change. thing is, update done of csv file may have new students need updated database , csv not in order. trying find solution allows 1 field same allow others change. so we've tried load data infile unique key problem found while preserved merits, ignored other details , added new students. edit: students have class field contains classes of student. when import, need able change still maintain merit field not in csv file. understand manually import suspect take...