Posts

Wordpress http post 404 -

i have error in wp every time http post 404 i have ready error field names , not that, if fields named random names, or no fields, still 404 error. it happens http post 404, if on same server or not. this happens when permalink set "post name" any fixing error gratefully appreciated cleared cache , restarted router (dynamic ip) , worked, host must have confused me hacker

differentiation - Maxima: evaluate a function f(x) embedding diff() nouns -

i generate taylor series following these instructions : f(x) := ''(ratdisrep(taylor(qexct('x),'x,0,5))); qexct function not defined : want perform computation qexct smooth function. knowing this, how set variable x value (e.g. 1) ? if : f(1); then maxima returns me following error : diff: variable must not number; found: 1 and if : f(d); then considers d variable , substitutes occurrences of variable x variable d . in particular, differentiates using d/dd instead of d/dx. however, substitute variable x number 1 in x^n terms , keep derivatives are… how do ? the variable in diff expression not recognized everywhere in maxim dummy (formal) variable, when try evaluate f(1) , maxima substitutes 1 diff expression , causes error. think that's bug; i'll make bug report it. as work around, can use add-on package pdiff (positional derivatives) included maxima. notation little different dy/dx notation used default in maxima. ...

Is C++ pointer aliasing a threat if the pointers are exactly the same? -

consider function intended vectorization: void addsqr(float* restrict dst, float* restrict src, int cnt) { (int i=0; i<cnt; i++) dst[i] = src[i] * src[i]; }; this work if src & dst not aliased of course. if src == dst? extreme cases such src == dst+1 not allowed of course. if pointers same, there shouldn't problem, or missing something? edit: restrict intel c++ compiler keyword, msvc has __restrict. my point question don't see way how kind of vectorization go wrong: since every dst value dependent on single src value @ either different (without aliasing) or same address, when dst changed, src value never needed anymore, because fact has been written means output has been calculated. case if compiler used dst temporary buffer, don't think correct. in c, code causes undefined behaviour violating restrict definition because writes 1 object through dst reads same object through src . it doesn't matter whether or not there offset between ...

javascript - Where does ForerunnerDB save its Database? -

i write html file supposed run in browser locally, create , modify database (forerunner db) , , show results. i wrote below , should find database file ? below enough "once page loaded " sse db or there "save" command ? <!doctype html> <meta charset="utf-8" /> <title>ouch</title> <body> <p id="out">testing..</br> > </body> <script src="c:\users\n17263\node_modules\forerunnerdb\js\dist\fdb-all.min.js" type="text/javascript"></script> <script> var db = new forerunnerdb('db'); var customers= db.collection('customers'); var suppliers= db.collection('suppliers'); var items= db.collection('items'); var s_itmes= db.collection('s_items'); var purchase_invoices= db.collection('purchase_invoices'); var sales_invoices= db.collection('sales_invoices'); var orders= db.collection('orders'); customers....

android - List view updates view which are not touched -

sorry bad title. i adding toggle button @ run-time list view. when click on button state gets changed. problem when scroll down other items selected too. for example, if click on first toggle button 6th toggle button gets checked too. this weird behavior. here xml code acitivty <?xml version="1.0" encoding="utf-8"?> <relativelayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match_parent" android:orientation="vertical"> <relativelayout android:id="@+id/title_bar" android:layout_width="match_parent" android:layout_height="50dp" android:background="@color/eros_now_title_bar"> <imageview android:id="@+id/back_button_image" android:layout_...

what's difference between a callback and observer pattern in java -

i going through following link in stack on flow how perform java callback between classes? in particular question answer 18 refers callbacks , answer 9 refers observer pattern . i unable distinguish difference between both. can please explain these 2 approaches differ? a callback piece of code provide class , gets called @ point. ex: serverconnectionhandler = new serverconnections(new itypedcallback<socket>() { @override public void execute(socket socket) { // socket here } }); the observer's pattern design pattern based on callbacks. can find more details here http://en.wikipedia.org/wiki/observer_pattern .

WPF bind Textbox to a DataSet in another class -

wpf not area, bit of newbie, , having bit of trouble figuring out how achieve in wpf piece of cake in winforms. can't seem find either right thread in forum or right youtube tutorial leads me towards answer. having problems getting simple databinding wpf textbox working correctly. behaviour trying achieve changes made textbox reflected in source class dataset. it's simple display/edit scenario , i'm sure there simple answer. this how have done in winforms.... form code: public partial class form1 : form { private datarecord currentuser; public form1() { initializecomponent(); currentuser = new datarecord(@"data source=c:\users\rr187718\documents\personal\programming\dynamicbackup\dynamicbackup\bin\debug\data\dbdata.sdf"); currentuser.fncbind(ctlcopiestokeep, "value", "tbluser.copiestokeep"); } //test code display value in dataset private void button1_click(object sender, eventargs e) ...