Saturday, February 22, 2014

PHP Parse error: syntax error, unexpected $end for large PHP file ~ 4000 lines


When you have exhausted checking closing brackets and missing semi-colons using this awesome tool PHP Lint (http://www.icosaedro.it/phplint/phplint-on-line.html) and you are still getting the dreaded 
PHP Parse error:  syntax error, unexpected $end.
 
Then I have a solution that may help.  On rare occasion, you may need to up the memory allowed for PHP. Usually it's when I deal with large files and don't necessarily care about optimizing the file reading process but simply getting the file opened. There's an easy way to increase to amount of memory allowed to PHP right in your script:
ini_set('memory_limit','16M');
The above code will increase the maximum amount of memory available to PHP to 16 MB. Again, the setting is only adjusted for the running script. 
PHP Fatal error:  Allowed memory size of 16777216 bytes exhausted (tried to allocate 6144 bytes) 
Well that wasn't even enough but at least I got a logical error this time. I  increased to 32M and it worked.



Tuesday, January 21, 2014

Lawyer Wordpress Plugin for Sale

New! Professional Lawyer Profile WordPress Plug-in


Attention Lawyers, need a solution to list your lawyers on your WordPress (WP) site today. Then you came to the right place.

Below is how the Lawyer Profile Plugin looks like when your trying to find a Lawyer, once plugin is installed on your site and features: 

→Selecting from a list of Lawyers (ordered by Last Name).  When a specific lawyer is picked, a custom button appears link to profile directly as a shortcut. 

Pick Lists - Easily for Lawyers using dynamically populated pick lists. In other words, you can't pick a non-existing entry. Common fields are displayed, Practice Area, Panel, Designation etc.

Search - You can search with free text search on all WP (i.e. email, username,etc ) and all custom Lawyer fields. Refine searches using using quotation marks and operators (AND,OR).  This search is secure and super optimized for speed, so much so, it's displayed as part of the results.



→Search Result are presented in table with sort-able columns. Note, this can customized to show broad bands and larger profile pictures. 


Here's a sample profile, and notice the search term is highlighted.  




The Lawyer Profile WordPress plug-in makes it easy for manage your lawyer profiles online (add, edit, delete) using the standard WordPress Users Admin screen, with one exception, added TinyMCE which makes editing the fields more like using Microsoft Word. 

DEMO HERE


The goal of this plug-in was to make a simple to use  so that any 
executive administrators, secretary, receptionist and lawyer would able to manage or create profiles online, allot like a resume online.

High Level Features (it's everything you want)

  1. This plug-in allows for the creation of a custom lawyer profile with any custom fields such as Profile Picture, Practice Area, Last Updated, Firm, Job Title, Professional Designations, , Certifications, Academic Qualifications, etc whatever you find you need to display to your visitors.
  2. Profile Editor features cut and pasting from Microsoft Word keeping the formatting 
  3. Visitors can choose from custom field pick lists (Practice Area, Country) to filter lawyers profiles with.  Note, only current values are listed in the pick list, preventing searches with no results.
  4. Visitors can search on any term, and use quoted terms like "Martindale-Hubbell BV Distinguished". Moreover, search support AND and OR operators on all fields efficiently.  Additionally, there is a List All option, with pop-up warning if you have allot of users.  Sample searches;

    1. "Advertising Law" and LA USA
    2. and or "Advertising Law" and AND or LA OR or or and USA and or

    Search tested up to 1,500 terms or 5,000 characters long. 

Live Implementation (it's proven and it works for a real customer)


Try it for yourself live at http://bcicac.com. The proof is in the implementation. 

Contact


If you are interest in this solution, please feel at easy to contact me at
metadataconsult@gmail.com for a quote.

Video (this version has row zoom, and has been disabled at http://bcicac.com)




Technical Specifications

  1. Lawyer registration form and email invite to join
  2. Lawyers can be permitted to edit their own profile and log-in to edit
  3. Administrators can approval of new profiles, or strictly create profiles only by Administrators
  4. Administrators can create  any number of custom named profile fields using following field types (Input, Check-Box, Radio Buttons, Date Picker, Text Areas, Upload Fields, Drop-Down Lists, Prefilled Drop-Down Lists, Profile Picture Upload, etc).
  5. Administrators can easy cut and paste for Microsoft Word documents and save the formatting, tables and bulltes! This is done by integrating TinyMCE Editor, a huge request for this. 
  6. Administrators can add profile picture
  7. Administrators can fully customize front-end profile listing
  8. Visitors use search to find lawyer profiles. This is a high intuitive and optimized speedy search that finds search terms across all custom profile fields and native Wordpress fields for a user. So optimized I call this search Logicktronic Search, and has some special geek features suck as super speed and logical boolean reduction (you can AND and OR terms which are quoted too)
  9. Visitors can filter using pick lists (drop-down lists boxes which are dynamically enumerated, not fixed) so you know you search on only valid up-to-date fields
  10. Contact metadataconsult@gmail.com to see behind the scenes administration screens

Tuesday, November 12, 2013

Administrative Tools Metro Tile, Control Panel "God Mode" Metro Tile, Windows Update Metro Tile , Windows Explorer Search Metro Tile for Windows 8.1 / Server 2012 R2

The following script will add new Metro styled tiles for Power Admin Users to the start menu.

               Custom Icons for Control Panel, Administrative Tools and Windows Update 
Icons copyright Metadata Consulting, except for Windows Explorer Search icon and Windows logo!

Compatible with Windows 8, Windows 8.1, Server 2012, Server 2012 R2
.


New tiles include;  
  1. Windows Explorer Search - go directly to Windows Explorer and perform a search
  2. Control Panel (Standard Icons)  - links to a list of all icons as in Windows 7/S2008, not category 
  3. Control Panel (All Tasks) - list all tasks, a hidden feature  
  4. Control Panel (All Settings) - referred to as "God Mode" in Win 7/S2008, a hidden feature
  5. Administrative Tools - root link, not a sub-directory of Control Panel as in current Tile in Win 8+/S2012+
  6. Windows Update - a better designed icon

Purchase $0.99, Download and Install  , see license/instructions below.

     



If you use this please donation a coffee as a bonus, because that is ridiculously cheep.
 


License:


The script is free to use and sourced from Microsoft Gallery. The icons (the artwork) are .99$ for personal license for a single computer install, but not commercially. Commercial/Small businesses requires a license to buy the rights to use the icons, which I created, except for Windows Explorer Search icon and Windows logo in Windows Update icon however a mash-up is considered copyright- able work. Don't get shocked, we are talking pennies here. License and Disclaimers listed in scripts.

             Contact metadataconsult@gmail.com for a commercial license.

Instructions: 


Purchase $0.99, Download and Install  

  1. Unzip and copy contents to C:\Windows\System32 directory.
  2. Right-click on doWin8AdminTiles-RunMe1st.ps1 and Run with Poweshell. This loads the Poweshell Editor (ISE) with administrator privileges.
  3. In Poweshell Editor (ISE), press green arrow to run the script.
  4. Complete.

    If you see the above light green messages in the console area of the PowerShell ISE, the you have 
    successfully run the script. 

    If you see red, you may have re-run the Powershell IDE with administrator privileges.  Use Windows Search for PowerShell, right-click and run with Adminstratative privileges, see article 
    here.
If you have issues further issues click this link for better pictures and instruction.

Shutdown, Restart, Log-off, Hibernate, Lock Workstation, Switch User Start Tiles for Windows 8.1 / Server 2012 R2 featuring new Metro Icons


Tags: Administrative Tools Tile, Control Panel "God Mode" Tile, Windows Update Tile, Windows Explorer Search Tile for Windows 8.1 and Server 2012 R2