2017年9月21日 星期四

javascript delphi

WebBrowser1.OleObject.Document.ParentWindow.execScript('alert("Hello")');
Edit: I found SpiderMonkey for Delphi. It supports 64 bit but there is no 64 bit dll provided. "js64.dll" that is.
Here is the 64 bit build. It works perfect with delphi-javascript





A memory manager for Delphi and C++ Builder with powerful debugging facilities

fastmm4

https://github.com/pleriche/FastMM4
A memory manager for Delphi and C++ Builder with powerful debugging facilities


Fast Memory Manager
Description: A fast replacement memory manager for Embarcadero Delphi applications that scales well under multi-threaded usage, is not prone to memory fragmentation, and supports shared memory without the use of external .DLL files.
Advantages:
  • Fast
  • Low overhead. FastMM is designed for an average of 5% and maximum of 10% overhead per block.
  • Supports up to 3GB of user mode address space under Windows 32-bit and 4GB under Windows 64-bit. Add the "$SetPEFlags $20" option (in curly braces) to your .dpr to enable this.
  • Highly aligned memory blocks. Can be configured for either 8-byte or 16-byte alignment.
  • Good scaling under multi-threaded applications
  • Intelligent reallocations. Avoids slow memory move operations through not performing unneccesary downsizes and by having a minimum percentage block size growth factor when an in-place block upsize is not possible.
  • Resistant to address space fragmentation
  • No external DLL required when sharing memory between the application and external libraries (provided both use this memory manager)
  • Optionally reports memory leaks on program shutdown. (This check can be set to be performed only if Delphi is currently running on the machine, so end users won't be bothered by the error message.)
  • Supports Delphi 4 (or later), C++ Builder 4 (or later), Kylix 3.

TCMalloc : Thread-Caching Malloc memory manager

http://goog-perftools.sourceforge.net/doc/tcmalloc.html

TCMalloc : Thread-Caching Malloc


TCMalloc is faster than the glibc 2.3 malloc (available as a separate library called ptmalloc2) and other mallocs that I have tested. ptmalloc2 takes approximately 300 nanoseconds to execute a malloc/free pair on a 2.8 GHz P4 (for small objects). The TCMalloc implementation takes approximately 50 nanoseconds for the same operation pair. Speed is important for a malloc implementation because if malloc is not fast enough, application writers are inclined to write their own custom free lists on top of malloc. This can lead to extra complexity, and more memory usage unless the application writer is very careful to appropriately size the free lists and scavenge idle objects out of the free listTCMalloc also reduces lock contention for multi-threaded programs. For small objects, there is virtually zero contention. For large objects, TCMalloc tries to use fine grained and efficient spinlocks. ptmalloc2 also reduces lock contention by using per-thread arenas but there is a big problem with ptmalloc2's use of per-thread arenas. In ptmalloc2 memory can never move from one arena to another. This can lead to huge amounts of wasted space. For example, in one Google application, the first phase would allocate approximately 300MB of memory for its data structures. When the first phase finished, a second phase would be started in the same address space. If this second phase was assigned a different arena than the one used by the first phase, this phase would not reuse any of the memory left after the first phase and would add another 300MB to the address space. Similar memory blowup problems were also noticed in other applications.
Another benefit of TCMalloc is space-efficient representation of small objects. For example, N 8-byte objects can be allocated while using space approximately 8N * 1.01 bytes. I.e., a one-percent space overhead. ptmalloc2 uses a four-byte header for each object and (I think) rounds up the size to a multiple of 8 bytes and ends up using 16N bytes.

OmniThreadLibrary The Ultimate Delphi Threading Library

http://www.omnithreadlibrary.com/tutorials.htm

OmniThreadLibrary

The Ultimate Delphi Threading Library


What Is OmniThreadLibrary?

OmniThreadLibrary is simple to use threading library for Delphi. Currently, versions 2007, 2009, 2010, XE, XE2, XE3, XE4, XE5, XE6, XE7, XE8, 10 Seattle, 10.1 Berlin, and 10.2 Tokyo are supported. OmniThreadLibrary is an open source project. It lives on GitHub and is licensed under the BSD license.
This is not the first threading framework I've written. There are, however, few big differences between the OTL (OmniThreadLibrary) and previous projects. All previous projects were closed source, used only for the in-house programming. They were all designed from the bottom. And they all had big problems when used in some real-life cases. Still, they were an important research tools. I learned a lot from them - what works, what doesn't and, most important, what kind of threading issues are appearing in the real life applications. 


Presentations

ITDevCon 2010

FastMM in Depth – presentation (ppspdf), code (zip)
Parallel Programming Made Easy – presentation (ppspdf), code (zip)
Building Multithreaded Solutions with OmniThreadLibrary – presentation (ppspdf), code (zip)

VDUG webinar 2010

Parallel Programming with OmniThreadLibrary -  presentation (pdf), video (flashmp4)

ADUG 2011

Getting Full Speed with Delphi - presentation (pps), handouts (pdf), code (zip)

ITDevCon 2011

Multithreading Made Simple with OmniThreadLibrary - presentation (ppspdf), code (zip)

ITDevCon 2012

Parallel Programming with OmniThreadLibrary - presentation (ppspdf), code (zip)

delphi Socket Components


DelphiA variety of SocketComponents of the model and the model

Assembly
Unit
Dependence
Pattern
Model
WebApp/CGI
sockapp.pas
Indy
Blocking or non blocking
select
Indy


Blocking or non blocking
select
ICS
OverbyteIcsWSocket.pas

Non blocking
WMAsyncSelect
TTcpServer/TTcpClient
sockets.pas

Blocking or non blocking
Select
RealThinClient

The ICS variant
Non blocking
wsaasyncselect
synapse
blckSock.pas

Blocking or non blocking
Select
TServerSocket
TClientSocket
ScktComp.pas

Blocking or non blocking
WSAAsyncSelect
FastNet
psock.pas


WSAAsyncselect
TSocketConnection

TServerSocket
TClientSocket



From the table above can be seen, not a component using the following 4 models:
Blocking mode
Overlap port
Event selection
The completion port
Only to:
Select
WSAAsyncselect
These two kinds of models, and the use of WSAAsyncselect model, the inevitable need window, components used as service is not much. 
We will analyze various server program is what model: 
IOCP 
Apache
Legend
Mysql
Erlang
WSAEventSelect
TServerSocket 
...


By steven
2014-2-1
 

What Web Application Framework for Delphi is recommended?


https://stackoverflow.com/questions/3793112/what-web-application-framework-for-delphi-is-recommended

There has been some activity in the Web Application Framework area for Delphi (Win32) 
Delphi on Rails - for D2010
  • Elevate Web Builder
  • Smart Mobile Studio
  • uniGUI (unified Graphical User Interface) is a framework for developing AJAX Web Applications in classical WYSIWYG Delphi RAD  
    In a past job, I used webhub (http://www.href.com) with pretty satisfying results.
    Some time ago I used RTC, which was stable and very fast, the RTC Server-side code can be compiled to a Stand-alone Server and ISAPI Extension
    I never used g-framework but looks promising
    DelphiMVCFramework has been released as Open Source. Check this answer Web MVC framework for Delphi
    Kitto allows to create Rich Internet Applications based on a data model that can be mapped onto any database. The client-side part uses ExtJS (through the ExtPascal library) to create a fully AJAX application,  

2017年2月23日 星期四

Camera Serial interface csi

MIPI Camera Interface

 IP camera SOC:

S3LM IP Camera SoC MIPI: yes
Hi3516A MIPI: yes
Hi3518 MIPI: no
GM8139 - High-Performance Solution for H.264 IP Camera Application MIPI: yes
GM8138/8138S - Cost-Effective Solution for H.264 IP Camera Application MIPI: yes

GM8136S/8135S - Economic H.264 IP Camera Application MIPI: yes Mozart 330s Mozart 370s Mozart 385s Mozart 390s Mozart 395s - MIPI: unknown

R288C,R292C - H.264 Codec SoC with Dual Video Input Channel MIPI: yes

M388C,M392C - H.264 Encoder SoC with Integrated Fisheye Correction Function MIPI: yes FH8810 - FH8810 high performance SoC for HD IPC - MIPI: yes
FH8830 - 2M/3M High Performance Camera SoC - MIPI: yes

 FH8812 - High Performance SoC for IP Camera - MIPI: yes
FH8620 - Low-Power、High Performance Wireless Camera SoC
 FH8610 - FH8610: Low Cost、High Performance Wireless Camera SoC
FH8550M - High Performance 1080P ISP for CCTV - MIPI: yes


  http://mrfdsp.com/mipi-csi2/index.html


 Полная версия этой страницы: Как подключить MIPI CSI-2 камеру?

  http://electronix.ru/forum/lofiversion/index.php/t139475.html


MT9F001 MT9F002 1400 megapixel CMOS module 

Sensor Name: MT9F001 \ MT9F002
Sensor Pixels: 14 million, 4608 * 3288
Sensor Size: 1/2.3-inch (4:3)

2016年2月27日 星期六

package software management mac Next Article The state of package management on Mac OS X List of software package management systems


Next Article The state of package management on Mac OS X

http://www.slideshare.net/TomohikoHimura/ss-20115472
Mac OS X のパッケージ管理紹介/比較

広島Macユーザグループ 2013年4月の勉強会で使用したスライドです。 
Mac OS X のパッケージ管理システム Macports, Homebrew, Fink,

homebrew — Mac OS X 下新的软件包管理工具

The state of package management on Mac OS X

List of software package management systems
OS X
  • fink, for OS X, derives partially from dpkg/apt and partially from ports.
  • MacPorts, formerly called DarwinPorts, originated from the OpenDarwin project.
  • Homebrew, with close Git integration.
  • Mac App Store: Official digital distribution platform for OS X apps. Part of OS X 10.7 and available as an update for OS X 10.6.
  • Homebrew: Package manager for OS X, based on Git
  • Fink: A port of dpkg, it is one of the earliest package managers for OS X.
  • MacPorts: Formerly known as DarwinPorts, based on FreeBSD Ports (as is OS X itself)
  • Joyent: Provides a repository of 10,000+ binary packages for OS X based on pkgsrc[1]
  • Nix package manager: Provides atomic upgrades and rollbacks, side-by-side installation of multiple versions of a package, multi-user package management and easy setup of build environments
  • Zero Install (0install): Cross-platform packaging and distributions software. Uses GnuPG and GTK+ on OS X.
  • Steam: A cross-platform video game distribution, licensing and social gameplay platform, developed and maintained by Valve. Used to shop for, download, install, update, uninstall and back up video games. Works on Windows NT, OS X and Linux.

2016年2月26日 星期五

security vulnerability database Security vulnerabilities 資訊安全 與 易遭攻擊 系統安全資訊 駭客與防護 crawling

security vulnerability database Security vulnerabilities
security vulnerability database Security vulnerabilities
資訊安全 與 易遭攻擊 系統安全資訊

http://www.cvedetails.com
http://cve.mitre.org/index.html

Looking for OVAL (Open Vulnerability and Assessment Language) definitions? http://www.itsecdb.com allows you to view exact details of OVAL(Open Vulnerability and Assessment Language) definitions and see exactly what you should do to verify a vulnerability. It is fully integrated with cvedetails so you will be able to see OVAL definitions related to a product or a CVE entry. 
Sample CVE entry with OVAL definitions 


https://nvd.nist.gov
National Vulnerability Database
NVD is the U.S. government repository of standards based vulnerability management data represented using the Security Content Automation Protocol (SCAP). This data enables automation of vulnerability management, security measurement, and compliance. NVD includes databases of security checklists, security related software flaws, misconfigurations, product names, and impact metrics.



The top ten most common database security vulnerabilities
What are the most common, and serious, database vulnerabilities that businesses should be aware of?

2016年1月9日 星期六

沙箱寫程式, 瀏覽器寫程式

沙箱寫程式

30 Code Playgrounds and Sharing Tools

Most people know about jsFiddle because it is an amazing tool that allows you to quickly test and share small pieces of code. No wonder my jsFiddle examples post is getting a ton of traffic. But, there are many other awesome web based sandbox testing tools that you might find useful. Did you know that there are SQL and NodeJS sandboxing tools out there? It is so convenient to quickly mess around with code online and collaborate with other programmers. Below you will find some of the best free code playgrounds and sandboxing tools for testing, debugging and sharing your code snippets (I put my favorites in bold).

1. JSFiddle – supports JS, CSS, HTML and dominates in this space with a simple approach and great features like sharing, embedding, etc.

2. JSBin – looks very similar to JSFiddle and allows HTML, JS, and CSS.

3. Tinkerbin – another code playground for HTML, JS, and CSS.

4. CodePen – online HTML, CSS, and JS editor with sharing tools and collections of snippets organized for code inspiration.

5. CodePad – allows you to test C, C++, Perl, Python, Ruby, and more online.

6. D3 PlayGround – a tool for exploring and developing visualizations using D3.

7. HTML5 Snippet – testing ground for HTML5, CSS3 and JS.
8. PasteBin – simple and clutter-free HTML/JS open source sandbox tool. I like that it’s open sourced on GitHub.

9. CSS Desk – Test your HTML and CSS code online.

10. Dabblet – Interactive CSS playground and code sharing tool.

11. JSapp – a playground for testing your NodeJS code online.

12. TryItEditor – lets you test your HTML code markup.

13. PHP Fiddle – Let’s you test out PHP Code online.

14. PYCH – The online Python Code Checker

15. PY I/O – Online Python IDE built with Google App Engine

16. JavaScript Sandbox – Online tool to test JavaScript code

17. RegexPal – JavaScript Regular Expression Tester

18. Codecademy Labs – a place for you to program in Ruby, Python, and JavaScript online

19. SQLFiddle – allows you to create a DataBase and test SQL code.

20. IDEone – an online compiler and debugging tool which allows you to run code online in more than 40 programming languages

21. Mozilla Thimble – lets you write and edit HTML and CSS right in your browser and instantly preview your work.

22. Liveweave – a HTML5, CSS3 & JavaScript playground for web developers and designers.

23. Practicode – another online tool for editing your code snippets with support for HTML, CSS and VBScript.

24. PHP Sandbox – lets you test php functions online with many different version of PHP.

25. Snippet.IO – free tool that lets you share code snippets easily.

26. HTML5 PlayGround – lets you click on pre-defined HTML5 tags and see how the code works instantly in preview.

27. Tmpltr – another JSFiddle clone but focused on realtime template binding.

28. Google Code PlayGround – allows you to instantly test code using various Google APIs.

29. PasteHTML – a sandbox for playing with HTML, CSS and JS with an API and a bookmarklet to create a snapshot of any web page and store it online.

30. Tinker – a quick and easy tool for writing and sharing code

Have I missed any online tools to test and share code snippets?
Update:

Today, I was introduced to Runnable and it is pretty impressive. It let’s you runa and share code in the browser and it supports php, python, nodejs and a variety of APIs. Also, Plunker is an interesting tool for creating and sharing web development work that uses the ACE editor, lets you split code into multiple files, live preview, etc…
Also, here is a WebGL Playground

2015年12月26日 星期六

螢幕抓圖 秒變GIF動畫圖檔小工具

螢幕抓圖 秒變 GIF 動畫 圖檔 小工具
http://www.cockos.com/licecap/

  • Record directly to .GIF or .LCF. 轉存GIF 或是踏自己的檔案
  • Move the screen capture frame while recording. 可定義 框框
  • Pause and restart recording, with optional inserted text messages. 加入訊息
  • Global hotkey (shift+space) to toggle pausing while recording 熱鍵控制
  • Adjustable maximum recording framerate, to allow throttling CPU usage. 可定義 抓圖大小
  • Basic title frame, with or without text. 可選擇 文字 或是 視窗
  • Record mouse button presses. 記錄 鍵盤與滑鼠
  • Display elapsed time in the recording. 時間紀錄

  • Requirements: 
For Windows: Windows XP/Vista/7/8/8.1/10 (might work with reduced functionality on older versions)
For OSX: OS 10.4+ (10.6+ for full feature support), PPC or Intel

  • A reasonably fast CPU
  • A healthy amount of RAM (1GB+, especially when encoding to LCF)

一個 3d 方塊 繪圖 的有趣 app 軟體




Cube Construct: the 3D pixel tool for iPad
一個 3d 方塊 繪圖 的有趣 app 軟體
iPad app open source

A 3D Pixel Art app for your iPad!
Thanks to the easy to use, intuitive interface everyone can create beautiful
3D Pixel Art in no time. With the public gallery you can view and edit 3D pixels
from other users and share your own.



Some Recent Creations



Voxel Builder
Voxel Builder
Easy cube-based 3D design with DIY 2D/3D printing
一個 java script 網頁 小軟體 提供你用 瀏覽器 3d 建立自己的 方塊模型 , 還可以繪出 方塊 紙模型
Use the Builder to create and edit voxel (AKA cube) models.




 相當完整 Minddesk Qubicle 2.5 - Professional Voxel Editor For Modding And Game Development

Minddesk Qubicle 2.5 - Professional Voxel Editor For ...



Android  apps
VoxelMaker Lets You Build 3D Pixel Art Worlds With Simple Touch Controls And Dynamic Lighting

So you're not an artist, no problem. VoxelMaker allows you to create any scene you can dream up and render it with lighting effects, depth of field, and more. What can you build with hundreds of tiny cubes? Probably lots of things.

VoxelMaker
18 ratings
by Nostatic Software
100 - 500 downloads
Discover more apps with Playboard for Android


Voxelart Project
網頁方塊繪圖


Noxell 一個簡單的 
Introducing Zoxel
I needed to edit small voxel models for a voxel based project I've been hacking on.  After hunting around for a while, I couldn't find a simple, open-source, Linux friendly application.  So I've started development on my own, Zoxel.

Zoxel is written in pure Python, with minimal dependancies.  It's being developed on Linux Mint, an Ubuntu variant.
Version 0.1.0 is available.  It's pretty minimal, think MS Paint for voxels.
Source is available from Github here.
Instructions how to run Zoxel are here.


MagicaVoxel - Home
Magicavoxel ( Win / Mac ) created by @ephtracy

a free lightweight 8-bit voxel editor and interactive path tracing renderer
New Home Page : ephtracy.github.io
MagicaVoxel Editor 0.97 | 11/30/2015

Enhanced Brushes, Improved UI and File System Download | Tutorial
Support Transparent voxels with Refraction and Attenuation


These tools provide a means of editing voxel models.



Sproxel: What Is Sproxel?
What Is Sproxel?
Sproxel (short for "Sprite Voxel Editor") is a 3d interface designed to let the user quickly create and edit voxel-based 3d models. The creation process and resulting geometry can be thought of as an extension to 2d pixel art. 
Sproxel is an open source project hosted on google code here: Project Page.  It is being developed on both

 Windows and Linux using the QT windowing framework,

 which should keep it snappy and extensible well into the future.  Sproxel is still in its infancy, but can already generate sprites for custom display and/or game engines.   


Home | blackflux.com
VoxelShop

VoxelShop is an extremely intuitive and powerful software for OSX, Windows and Linux to modify and create voxel objects. It was designed from the ground up in close collaboration with artists. The program is in alpha and features are being still added.



nirasan's tech blog
趣味や仕事の覚え書きです。Linux, Perl, PHP, Ruby, Javascript, Android, Cocos2d-x, Unity などに興味があります。
Voxel とは
volume のある pixel ということで、3D のピクセルアート的なもののことだそう。




What are the best voxel editors? - Slant