Posts

Sync My Timesheets to QuickBooks in Rails App -

i have rails application, employees creating weekly time sheets, want upload weekly time sheets on quick books using rails app. how can in ror ? thank you, create account on https://developer.intuit.com create app , sandbox after logging in. hook rails talk sandbox. see my tutorials these 3 steps. timeactivity supported quickbooks-ruby gem check docs , specs implementation. you need implement employee or vendor entity reference required sync timeactivity. when ready production enable within app @ https://developer.intuit.com , follow steps similar 1-3 configure.

c# - Mapping Data Annotation of a Model object to Custom Class object .net mvc -

i'm wondering how map model object more generic class object , saving values of dataannotation specified field. my example model example. want map 1 model object 1 fieldsetmodel object, contain list of model fields value, , alla metadata provided dataannotation. model.name -> fieldset.formmodel[1].id model.name ->fieldset.formmodel[1].name model.(dataannotation(maxlenght) -> fieldset.formmodel[1].maxlenght model.(dataannotation(display) -> fieldset.formmodel[1].displayname etc.. model public virtual int32 id { get; protected set; } #region login [required,maxlength(30)] [display(name = "nome utente")] public virtual string username { get; set; } [required, maxlength(200),datatype(datatype.emailaddress)] [display(name = "email")] public virtual string email { get; set; } [required] [display(name = "password"),datatype(datatype.password),minlength(6)] [stringlength(100, errormes...

c# - Showing PDF in PopUp -

i using asp.net mvc , want show pdf in jquery dialog or inside boostrap modal popup. i tried ajax call if controller action returning file return file(....) giving wrong output in popup. if use iframe when specifying url inside iframe redirecting httpget controller action want redirect httppost controller action(because have post form also). actually why want open pdf inside popup or iframe because right pdf opening in same window want open in new browser tab or inside popup or inside iframe visitor continue use website without pressing browser button. i stuck this..plz help..!!!! you can use request iframe , right way it. if create pdf post request need return kind of file id or file name. , in iframe file using id or file name. post request creating pdf returns id or filename get request /path/to/your/pdf_files/<filename>.pdf in iframe. update: if want display small files (this method not recommended big files) come previous post request without...

How to Read a particular Data from XML file and Write it to an Existing Excel Sheet using c# -

i have xml file, have values good, , bad, tag quality. want read xml file , print ones bad, in excel sheet existing. can me please. xml file looks same below. in text want write entire hydr. instrument id, hydr.quality" bad values in hydr.quality element. <hydr.instrument id="abr"> <hydr.quality>good</hydr.quality> <hydr.value>0</hydr.value> </hydr.instrument> <hydr.instrument id="abr_dummy"> <hydr.quality>bad</hydr.quality> <hydr.value>0</hydr.value> </hydr.instrument> <hydr.instrument id="abr_loop_jp"> <hydr.quality>good</hydr.quality> <hydr.value>15.208 kg/cm2g</hydr.value> </hydr.instrument> <hydr.instrument id="abr_mov_12"> <hydr.quality>good</hydr.quality> <hydr.value>0</hydr.value> </hydr.instrument> bas...

javascript - Where to put the script to appear under scripts menu in Illustrator cs5.1 -

i have script illustrator cs5.1 part of scripts menu. i've tried put under: c:\program files\adobe\adobe illustrator cs5.1\presets\en_gb\scripts\ c:\program files\adobe\adobe illustrator cs5.1\presets\en_gb\scripts\myfolder c:\program files\adobe\adobe illustrator cs5.1\presets\ c:\program files\adobe\adobe illustrator cs5.1\presets\myfolder but of attempts failed, have restarted illustrator, can wrong? windows 7 . i don't know why, solution not use *.jsx *.js script extension. when i've changed js , placed c:\program files\adobe\adobe illustrator cs5.1\presets\en_gb\scripts\ appeared under scripts menu. with 64bit cs6 illustrator path looks this: c:\program files\adobe\adobe illustrator cs6 (64 bit)\presets\en_gb\scripts and accepts jsx or js extensions.

QDateEdit return to previous state on button click in Qt C++ -

i have qdateedit in form in qt , want on button click qdateedit returns previous state. how can done? at moment state of qdateedit (which specialized qdatetimeedit ) can retrieved calling date() method . then, said, need put value qdate variable of class , create slot connect button click , calls setdate set qdateedit date. below code snippet shows 1 way this. #ifndef mydialog_h #define mydialog_h #include <qdialog> #include <qhboxlayout> #include <qdateedit> #include <qpushbutton> class dialog: public qdialog { q_object public: dialog(qwidget *parent = 0) : qdialog(parent), layout(this), edit(), button("reset",this) { layout.addwidget(&edit); layout.addwidget(&button); date = edit.date(); connect(&button, signal( clicked() ), this, slot( resettime() ) ); } public slots: void resettime() { edit.setdate(date); } private: qhboxlayou...

yii url manager - Yii urlManager rule parametr with slash -

i have controller categorycontroller should process url kind of http://example.com/category/param/paramnext/paramsome... my config includes next code: 'urlmanager'=>array( 'urlformat'=>'path', 'rules'=>array( 'category/<name:[\w\/]+>'=>'category/view', '<controller:\w+>/<id:\d+>'=>'<controller>/view', '<controller:\w+>/<action:\w+>/<id:\d+>'=>'<controller>/<action>', '<controller:\w+>/<action:\w+>'=>'<controller>/<action>', ), 'showscriptname'=>false, ), but not works! error 404 system unable find requested action "param". how can resolve restriction? i have kind of $name string "param/paramnext/paramsome..." ...