Posts

Showing posts from January, 2012

apache - Nutch 2.3 - javax.net.ssl.SSLException -

i using apache nutch 2.3 cannot crawl ssl domains. i'm getting following error: fetch of https://example.com/ failed with: javax.net.ssl.sslexception: received fatal alert: internal_error i'm getting same error oracle corporation java hotspot(tm) 64-bit server vm (1.8.0_66 25.66-b17) and openjdk runtime environment (icedtea 2.6.8) (7u121-2.6.8-1ubuntu0.14.04.1)

Laravel - Getting NotFoundHttpException in RouteCollection.php line 161 for each controller -

i moved project new server. i did following: composer update php artisan migrate php artisan cache:clear but im getting error message: notfoundhttpexception in routecollection.php line 161: for each controller. idea why ? [update] this content of routes/web.php file: route::get('/', function () { return view('welcome'); }); route::group(['middleware' => 'web'], function () { route::auth(); route::get('/orders', 'orderscontroller@index'); }); route::group(['middleware' => 'web'], function () { route::auth(); route::get('/shipments', 'shipmentscontroller@index'); }); this works fine on localhost, not on new server reason. [update] - .htaccess public folder <ifmodule mod_rewrite.c> <ifmodule mod_negotiation.c> options -multiviews </ifmodule> rewriteengine on # redirect trailing slashes if not folder... rewrite

c# - [dotnet core MVC], I can't get file from byte array (field stored into database). -

i'm becoming crazy physical file database field. use asp.net mvc project (dotnet core 1.1). in avance , happy christams! in part of controller : public void download(int id) { downloadmyfile(_context.mytable.find(id).myblobfield, _context.mytable.find(id).myfieldcontenttype, _context.richieste.find(id).myfieldoriginalfilename ); } public filecontentresult downloadmyfile(byte[] filebytes, string filecontent, string filename) { return file(filebytes, filecontent, filename); } my view : <a asp-action="download" asp-route-id="@model.id"> download file</a> ** my notes: if use this, works: public fileresult download() { var filename = @"myrealfilenamestoredintheserver.ext"; var filepath = $"downloads/{filename}"; byte[] filebytes = system.io.file.readallbytes(filepath);

seo - Google doesn't crawl or index all my pages -

i have submit many times index pages google index 1000 pages out of 13000 pages. can please explain issue behind this. website link here google isn't guaranteed index of pages. but can encourage index more couple of steps. have tried submitting sitemap?

asp.net mvc - jquery datatable with custom object parameter -

i working mvc , jquery data table. want pass own parameter class along jquery datatable param. here code have used, not working, index.js var options = {}; options.bprocessing = true; options.bserverside = true; options.sajaxsource = urlcontent + 'employee/getall'; options.bpaginate = true; options.spaginationtype = "full_numbers"; options.idisplaylength = 10; options.bautowidth = true; options.aocolumns = cols; options.fnserverdata = function (ssource, aodata, fncallback) { $.ajax( { "datatype": 'json', "type": "get", "url": ssource, "data": aodata, "success": function (data) { }, "failure": function (data) { } } ); }; options.fnserverparams = function (aodata) { aodata.push({ "name": "employeemodel", "value": { name : "testing", age:25} }); }; var table = $('#' +

nlp - Any (rough) equivalent to iOS NSLinguisticTagger for android? -

in ios, can use nslinguistictagger things part-of-speech tagging, , lemmatizing word (like recognizing "went" form of verb "to go") several different languages. is there use android development, that's available several different languages, case ios? i'm aware of stuff stanford nlp, seems work limited number of languages (english + 5 others), not sufficient purposes. plus, i'm not sure if work on android. (but correct me if i'm wrong) it need work without accessing network, must on device without connecting service. i'm afraid answer "no"...but asking anyway in case, before spend huge amount of time trying develop own workaround. you can use java-based nlp toolkits in android applications. here list of popular ones simple description : stanford corenlp i don't know how many mean several if ever want make toolkit can train corenlp corpus. apache opennlp apache lucene , solr apache's toolkits , analyze

css - Cyrillic font-face usage with custom wordpress style -

i using custom wordpress theme , wanted change font. found style.css file, , replaced current @font-face code mine, can use "stylo" font. code using: @font-face { font-family: 'stylo_bold'; src:url("stylo_.eot?") format("eot"),url("stylo_.woff") format("woff"),url("stylo_.ttf") format("truetype"),url("stylo_.svg#stylo-bold") format("svg"); font-weight:normal; font-style:normal; it works fine, except when type on cyrillic font doesn't work , instead cyrillic text showed in default font (myrad pro or something). font has support cyrillic letters, can point me in right direction here? don't understand why doesn't work? thank you. you answered own question. this font has support cyrillic letters... many fonts support english language. lot of websites show character breakdown or list support cyrillic alphabet. must mistaken or misinformed in regard font in q

active directory - C# System.DirectoryServices.AccountManagement search for ou, by a custom attribute -

Image
so have ad tree kind of > root > -centers > --center1 > ---customattribute (a string containing unique id/code center) > ---center1 groups > ----center user group 1 > ----center user group 2 > --center2 ... (see image more detail) want use system.directoryservices.accountmanagement search center user group 1(all alaska students)... but because of work politics can't search name, have search center customattribute (centercode) matches string pass in.. (centernames in ad don't match centername in db, cant' fix ad or db match..) then need traverse tree down groups ou, , correct group... if can list of groups seems trivial but how search ou not using it's name? also, how find child ous of ou?? i can't find ou principal, or ou searcher., (group principal closest), searching for/with? any appreciated

r - Add string of (variable number of) arguments to a function within a function -

let's have function creates x number of objects based on length of input variable. want x number of objects used arguments in function supply function. assumign number of arguments variable (based on number of argument names provided), how can this? can via string of argument names perhaps? a non-working example illustrate i'm asking: (in case, using arguments created outside function simplify example): foo <- 1:5 na.rm <- t func <- mean f1 <- function(func,arg.names) { func(get(arg.names)) } f1(func,arg.names = c('foo','na.rm') how do in way get 's arguments list? we can try mget f1 <- function(func,arg.names) { lst <- mget(arg.names, envir = parent.frame()) func(lst[[1]], na.rm = lst[[2]]) } f1(func, arg.names = c('foo', 'na.rm')) #[1] 3 or option do.call (as mentioned in @thelatemail's post) change name of first list element 'x' x 'data' argument

lync - Understanding PowerShell cmdlet for adding a trusted UCMA 4.0 application and a trusted UCMA 4.0 application endpoint -

i trying create ucma 4.0 application lync 2010. in development phase application hosted in laptop , lync server (on have no jurisdiction) connect laptop , run application. os in laptop windows 7 sp 1 , .net framework 4.5. i new ucma coding , though have studied it, there still grey areas needs addressed. below of questions have failed clear answer of. also, more important me understand nitty gritties because lync server admin new person on job has, me, never worked on ucma applications. i need create application pool. that, powershell cmdlet used is new-cstrustedapplicationpool -identity foo.example.com -registrar [registrar id] -site [site id] –computerfqdn foo.example.com i assume cmdlet must run on lync server. since laptop computer in application pool in development phase -computerfqdn , -identity of application pool same. correct? also, registrar id , site id? difference between manually provisioned application , auto provisioned application? to add trusted applica

node.js - if statement get skipped in javascript -

i writing basic application value arguments , display them. have 2 files: app.js console.log('application launching'); const fs = require('fs'); const yarg = require('yargs'); const node = require('./node.js') var command = yarg.argv; if (command === '3' ) { console.log("adding note"); node.addnote(argv.name,argv.title); } else { console.log('invalid'); } node.js console.log("im up") var addnote = (name,title) => { console.log('welcome', title, name); }; module.export = { addnote } this output when pass argument: admins-mac:node admin$ node app.js --3 tony mr application launching im up invalid if knowledge right, output must welcome mr tony . i can't figure out error. yargs giving object of parameters. need check if (command[3]) { // ... } however, we'd have errors here node.addnote(argv.name,argv.title); as did't pas

How to connect to iccube from Powerquery -

the connection using excel works fine, trying same using powerquery not seems work, supported ? iccube not directly supported, no. (we typically support sources buttons in ribbon.) it looks iccube supports analysis services connection interface: https://www.iccube.com/support/documentation/user_guide/integration/excel.php if connecting "analysis services" button doesn't work, maybe power query oledb connector oledb analysis services driver work?

selenium - Using Docker to create "restorable" MySQL database for UI testing -

we have number of selenium tests run on production-like setup of our webapp. problem of tests stuff in application affects database. would possible have data volume or similar, can "clone" , attach container before every test? we need mysql database can recreated before every test. , once in while run schema migrations database. or there approach more suited this? this great question, , potentially great use case docker. there many ways there ways backup mysql database. i'll explain few of them below. in general, problem run mysql containers use volume /var/lib/mysql (where data stored). destroying container not enough clear data - need clear volume. when you're doing docker rm clear old container, pass -v flag remove volumes too. option 1: build data container it possible build data container. advantage of container not spend time setting data each time it's run. advantage becomes more significant big data set takes long time set or t

Running Facebook Graph API queries -

i want run following search query using facebook graph api "pages liked people microsoft" i can run query within facebook. possible retrieve same information using graph api? thank you. no, there no way. can search people name graph api. docs: https://developers.facebook.com/docs/graph-api/using-graph-api#search

jquery - base video src for thumbnails -

after digging, able set base src iframes, eliminating need base target , base href in 1 fell swoop. not taking credit it, altered existing fiddles suit needs. https://jsfiddle.net/1fj3gq9s/2/ html <iframe frameborder="0" width="700" height="430"></iframe> <br><br> <div class="vidlist"> <a vid="8pdr1_pvnbe">supernatural season 1 episode 1</a> <a vid="lhb2ouq1aqy">supernatural season 1 episode 2</a> </div> jquery $('.vidlist a').click(function() { $('iframe').attr('src', 'https://openload.co/embed/' + $(this).attr('vid')); return false; }); css .vidlist { cursor: pointer; color: blue; border: 2px solid blue; padding: 3px; margin: 15px; border-radius: 5px; } works great links, not setting base path video , image thumbnails. using b-lazy lazy loading videos, uses data-src att

ios - Syntax for Swift 3 AddConstraintWithFormat? -

i found sourcode: view.addconstraintswithformat("h:|[v0]|", views: menubar) view.addconstraintswithformat("v:|[v0(50)]", views: menubar) and i'm using swift 3 , it's not working in xcode 8 can tell me code ? thank much! you should write function this: func addcontraintswithformat(_ format: string, views: uiview...) { var viewdict = [string: uiview]() (index, view) in views.enumerated() { let key = "v\(index)" view.translatesautoresizingmaskintoconstraints = false viewdict[key] = view } addconstraints(nslayoutconstraint.constraints(withvisualformat: format, options: nslayoutformatoptions(rawvalue: 0), metrics: nil, views: viewdict)) } it work you! may need visual format language use function.

Kartik select2 yii2 - Select All and Unselected All is not connected with select, selecting, unselect event -

i have selecting, unselect , unselecting event. when click on select or unselect none of these events called. this plugin link http://demos.krajee.com/widget-details/select2 there event fired. logic defined in here: select2 krajee js official source code the name of event select krajeeselect2:selectall , unselect krajeeselect2:unselectall . consuming event via jquery done always: $('#mykartikselect2id').on("krajeeselect2:selectall", function (e) { console.log(e); }); $('#mykartikselect2id').on("krajeeselect2:unselectall", function (e) { console.log(e); }); hope helps (:

r - ggplot - connecting points in polar coordinates with a straight line -

Image
i working on similar issue, discussed here: r - ggplot2: connecting points in polar coordinates straight line unfortunately, workaround not working anymore. i made example code talk issue in particular. here tried last: used geom_segment instead of geom_path , ended lines going in circle. these lines head towards 0 first , turn according giving position, instead of taking straight way. require(grid) require(ggplot2) set.seed(40); location<-data.frame(winkel=round(runif(1000,0,24),0)) location$bad <- location$winkel %in% c(seq(7,18)) abschnitte<-c(0:24) polar<-data.frame(winkel2=c(1.5, 2.34, 1.2, 3.45, 1.67, 2.61, 1.11, 13.2), value=c(0.1, 0.03, 0.02, 0.015, 0.01, 0.04, 0.09, 0.06), .names=c("winkel2", "value")) ggplot(location, aes(x = winkel, fill = bad, y=(..count..)/sum(..count..))) + geom_histogram(breaks = seq(0,24), colour = "black") + coord_polar(start = 0) + theme_minimal() + scale_fill_brewer

php open 2 tcp socket -

when open 2 different sockets in php, first different resource id, after open next socket, equal resource id. below result of connection 3 different sockets # ./test.php 127.0.0.1:26379/132458106d92e8f7b 127.0.0.1:26379 - resource id #8 127.0.0.1:6380/320458106d92e906e 127.0.0.1:6380 - resource id #9 127.0.0.1:6381/102858106d92e9106 127.0.0.1:6381 - resource id #10 resource id #10array ( [timed_out] => [blocked] => 1 [eof] => [stream_type] => tcp_socket/ssl [mode] => r+ [unread_bytes] => 0 [seekable] => ) resource id #10array ( [timed_out] => [blocked] => 1 [eof] => [stream_type] => tcp_socket/ssl [mode] => r+ [unread_bytes] => 0 [seekable] => ) resource id #10array ( [timed_out] => [blocked] => 1 [eof] => [stream_type] => tcp_socket/ssl [mode] => r+ [unread_bytes] => 0 [seekable] => ) i'm use below code: class redisclien

ios - View updates too late in Collection View after scrolling -

i have collectionview image inside each cell. when i'm scrolling collection, new cell (indexpath = 10) contains image old cell (indexpath = 1), calls method: func collectionview(_ collectionview: uicollectionview, cellforitemat indexpath: indexpath) -> uicollectionviewcell { } and set image url new view. best way hide old image after scrolling before update? you need clean images in collectionviewcell upon reusing them. override prepareforreuse function in collectionviewcell subclass. override func prepareforreuse() { super.prepareforreuse() // set cell's imageview's image nil self.imageview.image = nil }

android - How can I jump from a Handler started from a service to the service's thread? -

i use handler in service class background work, when it's done, must execute code on service's thread. here's code: i create handler in service's oncreate method. handlerthread handlerthread = new handlerthread(getpackagename()); handlerthread.start(); looper looper = handlerthread.getlooper(); mhandler = new handler(looper); how use handler. method getting called dozens of times during session. mhandler.post(new runnable() { @override public void run() { // takes few seconds execute method, // must running on separate thread. object o = supermethod(); // however, must called service's thread. useobject(o); } };) so how can service's thread? service runs on main thread here want switch handler thread(background thread) service(main thread). handler handler = new handler(getmainlooper()); handler .post(new runnab

xamarin - Android. Hover action on created bars on custom chart -

i try handle "hover" action in android. have display popup after hover specific bar on chart. tried few things, without results. after hover first bar after hover bar how can handle that?

Android How can trim video captured from phone camera or from gallery -

is possible call intent taking video through phone camera or gallery together. don't want choose option camera, gallery etc. , have apply trimming video taken. have following 2 requirements: 1. first of all, need call gallery , camera intent together.because need take video both phone camera , gallery in single frame. 2. need trim video taken in 5/6 frame. can me find answer. in advance.

excel - Function to convert column number to letter? -

does have excel vba function can return column letter(s) number? for example, entering 100 should return cv . something return letter column 100 function col_letter(lngcol long) string dim varr varr = split(cells(1, lngcol).address(true, false), "$") col_letter = varr(0) end function test code sub test() msgbox col_letter(100) end sub

How to initialize to "intertwined" objects in Java at the same time? -

i'm working on java school project aimed @ linking java application database. have use typical example of school modelisation, composed of 3 classes: -teacher -student -subject each class it's number of arguments, problem have there object of subject class in teacher (called speciality), , object of teacher class in subject(called incharge), knowing subject speciality of incharge teacher. i have initialize arraylist of teacher, , i'm trying follows: while (rset.next()){ prof **toinsert** = new teacher(rset.getint("num_prof"), rset.getstring("nom_prof"), rset.getstring("prenom_prof"), rset.getstring("adr_prof"), rset.getstring("cp_prof"), rset.getstring("ville_prof"), **new subject**(rset.getstring("code"),

In ASP.net I am getting error Access to the path '~\Upload\1_myimage.png' is denied? -

i have uploaded website on server when try save image on uploaded folder called upload gives error line 114: { line 115: string str = imagepath; line 116: fustudentphoto.postedfile.saveas(server.mappath("~/upload/" +str)); line 117: image = str; i gave permission rights upload folder still stuck here. me solve issue... give full permissions user iis_iusrs 'upload' directory on server.

github - Generate new SSH Key in GIT GUI -

Image
actually, have generated ssh key using git gui. modify existing ssh key. don't see options modifying existing key. can tell me how modify existing ssh key? to modify existing default ssh key, don't need gui. make sure <git>\usr\bin in %path% , type: ssh-keygen -t rsa -c "key xxx access" -q -p "" that propose override %home%\.ssh\id_rsa(.pub) (with %home% set %userprofile% )

forms - Angular 2 checkbox - How to use [checked] with (ngModelChange)? -

i'm having trouble programmatically setting checkbox in angular 2. following code fires oncheck() whenever user checks checkbox. can check checkbox programmatically setting this.select 'true'. <input type="checkbox" [(ngmodel)]="v.checked" [checked]="select" (ngmodelchange)="oncheck(v.checked)"> my problem when set this.select 'true', ngmodelchange doesn't seem detect change , oncheck() doesn't fire... :-( any tips? there alternative way programmatically set checkbox , have associated function fire? you can use checkbox component variable : @component({ selector : 'my-component' template : `<input type="checkbox" [(ngmodel)]="selected"/>` }) export class mycomponent(){ public selected: boolean = false; }

Define Multiple remote user in Ansible -

i trying run playbook on multiple ec2 instances running different operating systems.to ssh system ansible needs use remote username . in aws cloud, instance os such redhat , amazon linux have username ec2-user login instances running ubuntu need use ubuntu username. please me figure out way automate process , me understand how can define multiple remote users in playbook. now 1 way of doing can define in host file or in host_vars file using dynamic inventory generating ip's of instances dynamically based on tag value. i have tried using conditional statement in main playbook file guess restricted use in main file. define tags in instances when created, example ostype = redhat when gather ec2 facts, can see there group named "tag_ostype_redhat": [ "server1", "server2", ], now, can create file called group_vars/tag_ostype_redhat/main.yml , add required username in there.

excel - Passing List of Character Arguments to a Function -

the following function creates single excel file multiple sheets, each sheet containing contents of r object. works fine when list objects 1 one: save.xlsx <- function (file, ...) { require(xlsx, quietly = true) objects <- list(...) fargs <- as.list(match.call(expand.dots = true)) objnames <- as.character(fargs)[-c(1, 2)] nobjects <- length(objects) (i in 1:nobjects) { if (i == 1) write.xlsx(objects[[i]], file, sheetname = objnames[i]) else write.xlsx(objects[[i]], file, sheetname = objnames[i], append = true) } } however, need work multiple datasets, each 1 containing 50 or more files, , it's tedious write them out 1 one every time. so, tried following. first, created list of of sas files want add excel spreadsheet: filenames <- list.files(pattern = "*.sas7bdat") mylist <- as.vector(unlist(strsplit(filenames,",")), mode="list") then try use do.call execute function:

android - Wake up device programmatically -

i want wake , unlock device. then, i'd show activity when user has new message firebase . i wrote on onresume() method: window = this.getwindow(); window.addflags(windowmanager.layoutparams.flag_show_when_locked | windowmanager.layoutparams.flag_dismiss_keyguard); window.addflags(windowmanager.layoutparams.flag_keep_screen_on | windowmanager.layoutparams.flag_turn_screen_on); this works devices api > 19. problem in kitkat , either nothing or wakes screen doesn't unlock device. also set right permissions in androidmanifest.xml : <uses-permission android:name="android.permission.receive_boot_completed" /> <uses-permission android:name="android.permission.wake_lock" /> <uses-permission android:name="android.permission.disable_keyguard" /> also in myfirebasemessagingservice.class , i'm starting activity flag_activity_new_task flag. does know missing? thanks help. ok found it. add piece of code , w

indexing - Why are all indexes in Rust of type usize? -

rust's std::ops::index<t> only supports t being usize . reason behind this? also, there no advice "try using usize" when attempt use else, "trait [&'static str]: core::ops::index<u8> not satisfied" error. maybe because plan support more types t , delayed doing reason? rust's std::ops::index<t> supports t being usize . this not true. hashmap , example, accepts type key type can borrow (so can index hashmap<string, _> using &str ). slices allow index them using usize , container types either pretend be, or are , linear in memory. that's because usize correct type index them. other type either not able access full potential range of container, or allow indices cannot possibly exist. people have asked in past adding smaller types slice indexing, backward-incompatible, it's not going happen time soon.

jquery - colResizable can use in nested table? -

so,like title, colresizable can use in nested table or miss something? don't work when called .colresizable(). $(document).ready(function () { $("#dynamictable").colresizable({ livedrag:true, gripinnerhtml:"<div class='grip'></div>", draggingclass:"dragging", resizemode:'fit' }); }); this body <table style="width: 100%; margin-left: auto; margin-right: auto; border-spacing: 0"> <tr> <td></td> </tr> <tr> <td style="border-left: 1px solid silver; border-right: 1px solid silver; vertical-align: top; height: 800px"> <table id="dynamictable" style="width: 100%;"> <tr> <td> testing 1 </td>

sql - QtSQL with MS Access : UPDATE/DELETE queries not updating data -

Image
i'm facing issue using qtsql along ms access database, using qobdc driver. select , insert statement work, , read/insert data properly. update/delete statements correctly processed (according qsqlquery , obdc tracer), in ms access, data not edited. i'm using '?' bindings request, replacing these bindings hardcoded data didn't work either. the obdc tracer sees update request, 2 bindings. is there reason why these update statements not modify ms access' data ? database db = qsqldatabase::adddatabase("qodbc"); db.setdatabasename(qstring("driver={microsoft access driver (*.mdb, *.accdb)};dsn='';dbq=") + file); delete function bool msaccessreader::deleterecord(qstring table, qstring where) { qstring req; req = qstring("delete ") + table + qstring(" ") + where; qsqlquery query; bool ok = query.exec(req); return ok; } update function bool msaccessreader::update(qlist<qstrin

c# - Fluent NHibernate - How to create a unique index on Upper(column)? -

i'm working oracle 12.1 db. i need column case insensitive. e.g. if may table contain 'name' column, , inserted row containing "test1" value, when trying insert "test1" fail. the following sql command trick: create unique index name_idx on mytable ( upper (name)); the question - how accomplish using fluentnhibernate (c#) ? map(x => x.name).unique(); // create unique constraint, case sensitive... also - i'd appreciate input performanece of such index thanks

.net - Send Request to SabreCommandLLSRQ which includes special characters -

i trying send ticketing command-w‡fca sabre web service named "sabrecommandllsrq" getting response saying format issue i.e. format-0014. when executing same request using jmeter, response correct , desired. in c# application, giving error mentioned above. please regarding this. i found out encoding issue. expected special character, needed change default request encoding utf8. thanks.

How can I link an edit page to my detail profile page in django? -

so trying link template can edit user_profile this: edit but giving me error: noreversematch @ /user_profile/9/ reverse 'user_profile_update' arguments '()' , keyword arguments '{u'id': ''}' not found. 1 pattern(s) tried: [u'user_profile/(?p\d+)/edit/$'] but can access template without error: /user_profile/(id)/edit this view: def user_profile_update(request, id=none): instance = get_object_or_404(user_profile, id=id) form = user_profileform(request.post or none, request.files or none, instance=instance) if form.is_valid(): instance = form.save(commit=false) instance.save() return httpresponseredirect(instance.get_absolute_url()) context = { "first_name": instance.first_name, "instance": instance, "form":form, } return render(request, "user_profile/user_profile_form.html", context) this url: url(r'^creat

jquery - How to insert php variables from another file to a form with ajax -

pls i'm trying insert variable values php file html file using ajax don't know how start here form <form> <table> <tr> <td>full name</td> <td><input type = 'text' name = 'fullname' id = 'fullname'></td> <td>cuid</td> <td><input type = 'text' name = 'idno' ></td> </tr> <tr> <td>surname</td> <td><input type = 'text' name = 'sname' id = 'sname'></td> <td>title</td> <td> <select name='title'> <option>select title</option> <?php $conn = db();

php - How to interact id of each other of two select box on submit -

Image
i have minimum of 2 select box in html form insert through post user can add more select boxes. have show relations between each n every inserted id. like have inserted 1,4,9,6 id. want inserted in table in 2 column as: (1-4) (1-9) (1-6) (4-9) (4-6) (9-6) $text = $_post['text']; $textname = explode(",", $text); if ($textname > 0) { ($i = 0; $i < count($textname); $i++) { "piece $i = $textname[$i] <br />"; ..... insert query.... i'm getting post values in piece $i...how insert in array in code

math - How to solve systems of equations in three variables using c# -

i try make use help, learn better when see whole code in front of me explanation. beginner , if could, use methods understand them better because learning. have far. using system; using system.collections.generic; using system.linq; using system.text; using system.threading.tasks; namespace three_dimensions { class program { static void main(string[] args) { console.writeline("input x"); var g = console.readline(); int x = convert.toint32(g); console.writeline("input y"); var f = console.readline(); int y = convert.toint32(f); console.writeline("input z"); var l = console.readline(); int z = convert.toint32(l); console.writeline(x + " " + y + " " + z); console.readline(); console.writeline("now on second equation. press enter");

matlab - filtering ECG, only keep QRS complex -

hi there (all researchers, experts, students .... likewise) tursun , im new here. have ecg signal this: if magnify, looks this: i have code can show 3 peaks in qrs this: qrs peaks found can see, peaks found not correct (missing real peaks in middle especially). surly, more filtering/smoothing signal solve problem. sgolay filter smoothecg = sgolayfilt(mysignal,1,41); results this: however states in phd thesis frequency range of qrs complex 10-40 hz : i want use filter keep qrs complex, , eliminate other peaks , allies in ecg signal, (illustration): a filter want found normal bandpass filter created "fdatool" not above job. great if teach me how? (my peak detection code matlab modified matlab peak analysis:

How to create emdedded H2 DB with spring(transactional) and hibernate in java desktop application? -

i trying create project embedded h2 db, , using spring framework hibernate. database created in initialize time if not exist. development platform intellij. problem when run application @autowired private ipersonservice personservice; // comes null? here classes , config files. mydb.sql: create table if not exists personel( id identity auto_increment, name varchar(100) not null, age varchar(100)); hibernate.properties: db.driverclassname=org.h2.driver db.url=jdbc:h2:~/h2springproject/database/springsample;mv_store=false;mvcc=false db.username=admin db.password= here hibernate-config.xml <?xml version="1.0" encoding="utf-8"?> <beans xmlns="http://www.springframework.org/schema/beans" xmlns:context="http://www.springframework.org/schema/context" xmlns:tx="http://www.springframework.org/schema/tx" xmlns:xsi="http://www.w3.org/2001/xmlschema-instance" xmlns:jdbc="

html - css footer not occupy the space and content not showed completely -

i trying make footer css , want footer bottom of page, however, content stretch inside footer, following footer css #footer { position: fixed; bottom: 0; width: 100%; } <div id="footer" style="background-color:#0099cc"> <center> <table style="width:100%"> <tr> <td valign="top">copyright © 2016, chaatz</td> <td align="right" style="white-space:pre"><a href="https://legal.html">terms , conditions</a> <a href="https://privacy.html">privacy notice</a></td> </tr> </table> </center> <br> <br> </div> you can use height of footer element padding-bottom of content , negate same value in margin-top of footer element. <div class="wrapper"> page content </div> <div class="foo

testing - Need suggestion for API and GUI test automation tool -

i have been going through many tool, not able conclude. have been using hp uft sometime , it's quite ok project reason need find alternative hpuft advantage. i have been exploring tool selenium, ibm tools.soap ui suggest me test automation tool advantages , can explore. my scenario, more rest api based validation. need make rest call , parse response validation. since testing rest api , validating result, not testing related ui here. selenium ruled out if there no web ui involved. for rest api recommend can use java junit/testng. write keywords in java , use same ones write junit/testng tests. another alternative robotframework, u can have keywords in python.

typed arrays - How can I merge TypedArrays in JavaScript? -

i'd merge multiple arraybuffers create blob. however, know, typedarray dosen't have "push" or useful methods... e.g.: var = new int8array( [ 1, 2, 3 ] ); var b = new int8array( [ 4, 5, 6 ] ); as result, i'd [ 1, 2, 3, 4, 5, 6 ] . use set method. note, need twice memory! var = new int8array( [ 1, 2, 3 ] ); var b = new int8array( [ 4, 5, 6 ] ); var c = new int8array(a.length + b.length); c.set(a); c.set(b, a.length); console.log(a); console.log(b); console.log(c);

php - Yii2 Update the DataProvider of a Listview after Ajax -

i try without success update dataprovider of listview when submit form through ajax. working when submit without ajax, refresh page. without refreshing page. don t know wrong in code below: here form , listview: jobs.php ... <div style="background-color: white;"> <div class="job_quick_search_container"> <?php $form = activeform::begin([ 'id' => 'quick_search_form', 'enableajaxvalidation'=>false, 'enableclientvalidation'=>true, 'options' => ['class' => 'form-horizontal', 'onkeypress'=>" if(event.keycode == 13){ searchjob(); }" ], ]); ?> <table style="width:100%"> <colgroup> <col style="width:20%"> <col style="width:20%"> <col style="width:20%">

git - SourceTree - how to checkout to remote repo branch -

Image
i create new branch in remote git repository. repository stored on bitbucket. in my local repository can see new branch sourcetree. appears in commits list, on same commit create branch from. cannot see new branch under branches list , cannot checkout it. i want checkout , push updated on local workstation code remote repository back, within new branch. started development on same branch, source clone new branch. i tried pull new branch. empty should, still not under branches list , cannot checkout it. how commit new branch? with sourcetree (1.9.6.1) alone (not talking command-line here), make sure: you have fetched repo your log view set "all branches" ( not "current branches") "show remote branches" selected note: branches section @ left side of log view display local branches, not remote ones. remote branches list in remotes/origin section, below branches , tags . by double-clicking on remote branch, can create new

print date from string as date in bash -

what bashonic way of converting following text: specifications of bla/bla.txt created @ 181438 on 20160720 into: specifications of bla/bla.txt created @ 18:14:38 on 20th july 2016 i'm generating message with: printf "specifications of %s created @ %d on %d\n" "$1" "$thehour" "$thedate" and $thehour , $thedate extracted bla.txt . not related file tags or actual creation date of file. i'm asking if bash offers such functionality, , if not, how can 1 achieve easily. with gnu date : $ thehour=181438 $ thedate=20160720 $ printf 'specifications of bla/bla.txt created @ %s on %s\n' "$(sed \ 's/../&:/g' <<<"$thehour"|sed 's/.$//')" "$(date -d "$thedate" '+%dth %b %y')" output: specifications of bla/bla.txt created @ 18:14:38 on 20th july 2016 sed 's/../&:/g' <<<"$thehour"|sed 's/.$//