How to use Unicodes for Music Note Symbols as List Bullets?
Ok, here we go. Firstly, select your desired Musical Note Symbol:
2669 = ♩
266A = ♪
266B = ♫
266C = ♬
266D = ♭
266E = ♮
266F = ♯
Secondly, add the musical note symbol as content to a li:before tag.
Instead of adding the symbol directly, you might try escaping the Unicode (“/2669″).
Thirdly, remove the default bullets by applying “list-style-type: none;” to the li tag.
How to add a SQLite driver as a Database Service into Netbeans for accessing SQLite database files?
- You will need a SQLite driver. I suggest to use the one from https://bitbucket.org/xerial/sqlite-jdbc
- Direct Download: https://bitbucket.org/xerial/sqlite-jdbc/downloads/sqlite-jdbc-3.7.2.jar
- Start Netbeans
- Open the Services Window via Menu: Window -> Services (or just Ctrl+5)
- Expand the “Databases” node and right-click on “Drivers”.
- The dialog “New JDBC Driver” appears. Click “Add…” and in the “Select Driver” dialog, select the downloaded driver file.
- Click Find to scan for the proper class name. Now “org.sqlite.JDBC” should appear in the Driver Class text field.
- Give this driver a name field like “SQLite Driver”
- Expand the Drivers node, and you should see the SQlite entry
How do i access a SQLite database file with this thingy?
- Expand the Drivers node, right-click on “SQLite Driver”.
- Click “New Connection..”.
- The “New Connection Wizard” dialog appears.
- Specify a JDBC URL to your SQLite file, like so jdbc:sqlite://C:/folder-where-your-database-file-resides/sampledb.sqlite
I’m tired of typing “help”…
HipHop VM v2.1.0-dev (rel)
hhvm [-m <mode>] [<options>] [<arg1>] [<arg2>] …
–help display this message
–version display version number
–compiler-id display the git hash for the compiler id
–repo-schema display the repo schema id used by this app
-m [ --mode ] arg (=run) run | debug (d) | server (s) | daemon | replay | translate (t)
-c [ --config ] arg load specified config file
-v [ --config-value ] arg individual configuration string in a format of name=value, where name can be any valid configuration for a config file
-p [ --port ] arg (=-1) start an HTTP server at specified port
–port-fd arg (=-1) use specified fd instead of creating a socket
–ssl-port-fd arg (=-1) use specified fd for SSL instead of creating a socket
–admin-port arg (=-1) start admin listener at specified port
-h [ --debug-host ] arg connect to debugger server at specified address
–debug-port arg (=-1) connect to debugger server at specified port
–debug-extension arg PHP file that extends y command
–debug-cmd arg executes this debugger command and returns its output in stdout
–debug-sandbox arg (=default) initial sandbox to attach to when debugger is started
-u [ --user ] arg run server under this user account
-f [ --file ] arg executing specified file
-l [ --lint ] arg lint specified file
-w [ --show ] arg output specified file and do nothing else
–parse arg parse specified file and dump the AST
–temp-file file specified is temporary and removed after execution
–count arg (=1) how many times to repeat execution
–no-safe-access-check arg (=0) whether to ignore safe file access check
–arg arg arguments
–extra-header arg extra-header to add to log lines
–build-id arg unique identifier of compiled server code
–xhprof-flags arg (=0) Set XHProf flags
The correct name is “The Boehm-Demers-Weiser Conservative Garbage Collector”. It’s is a C malloc or C++ new replacement. It allows to allocate memory, without explicitly deallocating memory that is no longer useful. When the collector determines that the memory can no longer be otherwise accessed it is automatically recycled. It is also possible to use the collector only as a debugging tool to locate leaks and remove it completely from the end product. This library is a sweet little gem with 20 years of creeping features, so be warned: Awesomeness ahead!!
And check out the tutorial slides (pdf): http://www.hpl.hp.com/personal/Hans_Boehm/gc/04tutorial.pdf
And if you don’t like garbage collectors at all, stay away and use explicit memory management (malloc/free or new/delete).
Ok, it’s time to diss some people. Let’s take a look at Pimcore’s “autoload-classmap.php“. You’ll find this file over at Github.
The file, as the name suggests, contains the classmap definition for the whole Pimcore universe. This file contains 20493 occurrences of $dsp, where $dsp is a variable, which gets the DIRECTORY_SEPARATOR assigned to, on line 3. Now 20492 occurrences are left. Each variable evaluation is followed by two concatenation operations. The dot is the concatenation operator in PHP, for putting two strings together. The two concats are used for gluing the folder names together, to finally build up the full qualified path to the class, which is needed for the inclusion of the file, by looking up its classname in the array.
Even if this classmap is placed in memory after the first inclusion, it’s a lot of overhead. A lot! 20492 var evals + 40984 concat operations = 61476 unnecessary operations.
Should we take a look at the PHP opcodes? Better not..
How to avoid this? It’s simple. Replace “‘ . $dsp . ‘” by “/”.
Both, Windows and Linux support “/” – so what is the problem in using it?
Now, let’s take a look at the variable $pdr. It gets PIMCORE_DOCUMENT_ROOT assigned on line 2.
Let’s replace your funny ” . $pdr . ” . $dsp . ‘pimcore’ with $pdr . ‘/pimcore/more/folders’.
Finally, someone decided to accept the solution proposed here and updated the file accordingly.
The new mechanism looks like this: https://github.com/pimcore/pimcore/commit/3cec4543dbc658c8b59ab23daf2d84ab26b11ca2