Posts

javascript - KendoUI grid not showing up with the data on the screen -

Image
hi developing angular 2 application kendo ui controls. following example of kendo ui site set kendo grid. reason there no errors nothing showing on screen. data stored in local products.js file referred in application , bound datasource. please see code below product.html <!doctype html> <html> <head> <title></title> <link href="../../assets/css/kendo/2016.3.1028/kendo.common.min.css" rel="stylesheet" /> <link href="../../assets/css/kendo/2016.3.1028/kendo.default.min.css" rel="stylesheet"/> <link href="../../assets/css/kendo/2016.3.1028/kendo.default.mobile.min.css" rel="stylesheet" /> <script src="../../scripts/kendo/2016.3.1028/jquery.min.js"></script> <script src="../../scripts/kendo/2016.3.1028/kendo.all.min.js"></script> </head> <body> ...

multithreading - C#, Thread, Memory -

today know how save image stream (really in memory it's possible don't use appropriate term) , read thread. to think proceed these steps : - in first thread : 1 - create image object (system.drawing) file 2 - create thumbnail 3 - save thumbnail stream (system.io) 4 - send stream object second thread. b - in second thread : 1 - receive stream first thread 2 - create bitmapimage object stream 3 - displaying on ui. (wpf) thks. i've retrieve part of code show did : in thread check images in folders : public void createimgobj(object sender) { try { filestream fs = file.open((string)sender, filemode.open); bitmap dimg = new bitmap(fs); memorystream ms = new memorystream(); dimg.save(ms, system.drawing.imaging.imageformat.jpeg); bitmapimage bi_img = new bitmapimage(); bi_img.begininit(); bi_img.streamsource = new memorystream(ms.toarray()); bi_img.endinit(); ...

c++ - "typename qualified-id" referring to a type in a non-type parameter-declaration -

14.1 [temp.param], paragraph 2 ... typename followed unqualified-id names template type parameter. typename followed qualified-id denotes type in non-type parameter-declaration ... i'm bit confused meaning of bold text. specifically, typename can occur in 2 different contexts ( type-specifier or template-parameter ), 1 refer to? for former case, considered: struct { struct x { }; int x; }; struct b { struct x { }; }; template<class t> void f(t t) { typename t::x x; // t can or b } however, neither a::x nor b::x non-type parameter-declaration (they member-declaration s). for latter case, i'm not sure why that's necessary. why not directly write down type qualified-id ? parameterization necessary? this about struct s { typedef int x; }; template <typename t, typename t::x> void f() { } int main() { f<s, 1>(); } here, typename t means t named template type parameter, typename t::x type of un...

python - invalid salt still even when using decode utf -

can tell me im doing wrong, keep getting invalid salt, want hash password using bcrypt. here code views.py @app.route('/login',methods=['get','post']) def login(): if request.method == 'get': return render_template('login.html') username = request.form['username'] password =request.form['password'] user = user.query.filter_by(username=username).first() if user , bcrypt.check_password_hash(user.password, request.form['password']): login_user(user) session['logged_in'] = true flash('logged in successfully') return redirect(request.args.get('next') or url_for('index')) else: flash('invalid username or password') return redirect(url_for('login')) models.py from app import db, bcrypt class user(db.model): __tablename__ = "users" id = db.column(db.integer, primary_key...

java - Building Google Maps example project with Android Studio 2.2.2 -

i have downloaded android studio 2.2.2 , try build example projects. blank activity project builds, deploys , runs on phone. then try build google maps project. obtained api key, copied google_maps_api.xml , didn't change else. then, if press build -> build apk, fails following messages in gradle console: executing tasks: [:app:assembledebug] incremental java compilation incubating feature. :app:prebuild up-to-date :app:predebugbuild up-to-date :app:checkdebugmanifest :app:prereleasebuild up-to-date :app:preparecomandroidsupportanimatedvectordrawable2500library up-to-date :app:preparecomandroidsupportappcompatv72500library up-to-date :app:preparecomandroidsupportmediarouterv72400library up-to-date :app:preparecomandroidsupportpalettev72400library up-to-date :app:preparecomandroidsupportsupportcompat2500library up-to-date :app:preparecomandroidsupportsupportcoreui2500library up-to-date :app:preparecomandroidsupportsupportcoreutils2500library up-to-date :app:preparecoman...

c# 4.0 - How to insert data from datetimepicker to ms access using c#? -

i beginners using inserting data datetimepicker ms access. code is: private void savesale() { string connstring = configurationmanager.connectionstrings["saledbx"].connectionstring; string cmdstring = "insert sale (date, sale, expense) values (@date, @sale, @expense)"; using(oledbconnection con = new oledbconnection(connstring)) { using(oledbcommand cmd = new oledbcommand(cmdstring, con)) { con.open(); cmd.parameters.addwithvalue("@date", todaydatepicker.text); cmd.parameters.addwithvalue("@sale", saletextbox.text); cmd.parameters.addwithvalue("@expense", expensetextbox.text); cmd.executenonquery(); messagebox.show("today sale added successfully!", "sale saved", messageboxbuttons.ok, messageboxicon.information); } } } i fac...

node.js - How to allow NodeJS app live on external IP -

i trying run nodejs app on google cloud compute engine. can access preview page of app. when tried access app through external ip. there nothing happened. has use command add new firewall rule: gcloud compute firewall-rules create default-allow-http-8080 \ --allow tcp:8080 \ --source-ranges 0.0.0.0/0 \ --target-tags http-server \ --description "allow port 8080 access http-server" i figured out problem. when accessed google cloud console, though instance console, installed app in this. that's why when tried access ip of instance, there's nothing happened.