2021年11月22日星期一

Ngx-admin echarts is not defined

In angluar.json, please add the following line. 

..., 

"scripts": 

[ "node_modules/echarts/dist/echarts.min.js", 

... 

], 

... 

}

2020年1月24日星期五

FWD: Handle showModalDialog event

Handle showModalDialog in a WebBrowser control host 时间 2006-09-18 标签 webbrowser documentation object function windows behavior 原文 http://blog.csdn.net/jiangsheng/article/details/1234930 It is not officially possible prior to Windows XP SP2 and Windows 2003 SP1. see NWMF_HTMLDIALOG in MSDN documentation for more information. However, you may "set" the "showModalDialog" property of the window object to a custom function in order to override the default behavior after the Document Object Modal (DOM) is available. The DOM is available between the DocumentComplete event and the BeforeNavigate2 event of the top level browser object. window.showModalDialog = functionName here the signature of functionName is function functionName(sURL, vArguments, sFeatures) for more information about Dynamic Object Composition , see http://www.microsoft.com/mind/1099/dynamicobject/dynamicobject.asp

2018年3月6日星期二

Google Map cid to placeid or get address detail by cid

I searched many posts and couldn't find a way to do it. But I found a hidden api in google map get place detail api. From Google Map Place API document: https://developers.google.com/places/web-service/details The API https://maps.googleapis.com/maps/api/place/details/json?... needs placeid as required parameter. But I found it can use cid to get place detail and place_id. Usage: https://maps.googleapis.com/maps/api/place/details/json?cid=YOUR_CID&key=YOUR_KEY That's it. It returns a result contains formatted address, place_id, name of the address and GPS coordinater. Hope it could help you!:) Happy coding. TAG: Google Map cid to placeid or get address detail by cid

2016年12月1日星期四

WD my book live transmission 2.92

I compiled a transmission 2.92 for WD my book live. Please see: https://github.com/soyoeml/transmission-2.92 There is a instructions for how to compile. Enjoy! TAG: WD my book live transmission 2.92 compile

2016年11月23日星期三

error while loading shared libraries: .so : cannot open shared object file: No such file or directory

error while loading shared libraries: libevent-2.0.so.5: cannot open shared object file: No such file or directory Fix: If you have the lib, just make a symbol link. ln -s your_path/libevent-2.0.so.5 /usr/lib/libevent-2.0.so.5

error: Package requirements (libcurl >= 7.15.4) were not met

When I compile transmission 2.92 for my WD my book live, I got this error when running ./configure. error: Package requirements (libcurl >= 7.15.4) were not met But my libcurl version is 7.24 already. Fix buy this: ----------------------------------------------------- ./configure --disable-mac --disable-nls OPENSSL_CFLAGS=-I/opt/include OPENSSL_LIBS="-L/opt/lib -lssl -lcrypto -ldl" LIBEVENT_CFLAGS=-I/opt/include LIBEVENT_LIBS="-L/opt/lib -levent" ZLIB_CFLAGS=-I/opt/include ZLIB_LIBS="-L/opt/lib -lz" LIBCURL_CFLAGS=-I/opt/include LIBCURL_LIBS="-L/opt/lib -lcurl" -----------------------------------------------------

2016年3月21日星期一

cannot print tornado http headers





tornado.httputil.HTTPHeaders object at XXXXX

That's because of tornado version problem. Please install these version >=3.1 and <= 4.2.

tornado <=4.2, >=3.1



Tag: cannot print tornado http headers tornado.httputil.HTTPHeaders object at