Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
J

Jerry Evans

@Jerry Evans
About
Posts
122
Topics
54
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • SVG in articles?
    J Jerry Evans

    Yo. Here it is.

    /*

    A really simple SVG cleaner for the CodeProject
    
    This is a \*big\* thanks to Chris Maunder and the team for their great work 
    
        Based on an original PHP implementation here:
    
        https://github.com/alister-/SVG-Sanitizer
    
    Copyright (c) Jerry Evans, 2015
    All rights reserved.
    
    The MIT License (MIT)
    
    Copyright (c) 2015 Jerry Evans
    
    Permission is hereby granted, free of charge, to any person obtaining a copy
    of this software and associated documentation files (the "Software"), to deal
    in the Software without restriction, including without limitation the rights
    to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
    copies of the Software, and to permit persons to whom the Software is
    furnished to do so, subject to the following conditions:
    
    The above copyright notice and this permission notice shall be included in
    all copies or substantial portions of the Software.
    
    THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
    IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
    FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
    AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
    LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
    OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
    THE SOFTWARE.
    

    */

    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Text;
    using System.Xml;

    namespace svgcheck
    {
    class SVGChecker
    {
    /// /// dictionary of string to hashset maps valid SVG tags to valid attributes. All else is discarded (!)
    ///
    static Dictionary> dict = new Dictionary>()
    {
    { "a", new HashSet{"class", "clip-path", "clip-rule", "fill", "fill-opacity", "fill-rule", "filter", "id", "mask", "opacity", "stroke", "stroke-dasharray", "stroke-dashoffset", "stroke-linecap", "stroke-linejoin", "stroke-miterlimit", "stroke-opacity", "stroke-width", "style", "systemLanguage", "transform", "href", "xlink:href", "xlink:title"} },
    { "circle", new HashSet{"class", "clip-path", "clip-rule", "cx", "cy", "fill", "fill-opacity", "fill-rule", "filter", "id", "mask", "opacity", "r", "requiredFeatures", "stroke", "stroke-dasharray", "stroke-dashoffset", "stroke-linecap", "stroke-linejoin", "stroke-miterlimit

    Site Bugs / Suggestions question graphics lounge

  • SVG in articles?
    J Jerry Evans

    It's a deal. I'll ping you here when it's ready :)

    Site Bugs / Suggestions question graphics lounge

  • SVG in articles?
    J Jerry Evans

    Yes, it does have that potential. No chance of applying a sanitizer perhaps? https://github.com/alister-/SVG-Sanitizer for example? Thanks for listening :)

    Site Bugs / Suggestions question graphics lounge

  • SVG in articles?
    J Jerry Evans

    Hah! No I did not. Excellent suggestion, thanks.

    Site Bugs / Suggestions question graphics lounge

  • SVG in articles?
    J Jerry Evans

    Hello CP It would be great to be able to upload and link to SVG files for decent vector imaging. I recently tried adding some SVG UML diagrams to an article but had to drop back to making (highly unsatisfactory) JPEGs first. TIA! Jerry P.S A slightly more general question was asked some time back but the SVG aspect remains unanswered ('09 actually).

    Site Bugs / Suggestions question graphics lounge

  • Thoughts on a Javascript playground?
    J Jerry Evans

    I need something relatively light weight that enables me to write, run and debug JS code. Any thoughts on the best tools? The idea of using VS/FireFox/Venkmann or equivalent leaves me a bit cold. Thx++ Jerry

    JavaScript javascript visual-studio debugging tools question

  • Creating VS project files using VS object model
    J Jerry Evans

    Is this possible? I've had a quick browse through the MSDN documentation but cannot find a simple answer to this question: Can I programmatically create a VS 05/08/10 .vcproj file and add source code files etc using COM? i.e avoid writing XML .vcproj files from scratch. Thx++ Jerry.

    Visual Studio question visual-studio com xml

  • PIC 18Fxxx playdough [Hardware]
    J Jerry Evans

    Spot on. Thanks.

    The Lounge hardware

  • PIC 18Fxxx playdough [Hardware]
    J Jerry Evans

    I'm trying to find a proto kit that allows me to breadboard a few components as the front end to a PIC 18F4550. Part type quite important as I want to do this all via USB. Ideally a PCB with a plug-in or solder area for extra components. Any pointers welcomed. Ideally something I can source next day from ... anywhere within the reach of UPS/DHL. Although the PIC18 MPLab kit is awesome it has a 'Modification to board voids warranty' sticker (!) Thx++ Jerry

    The Lounge hardware

  • VMWare Workstation 7
    J Jerry Evans

    Gods, how did that happen :confused: Thanks for the heads-up!

    The Lounge question learning csharp linq linux

  • VMWare Workstation 7
    J Jerry Evans

    http://www.vmware.com/products/workstation/faqs.html HTH Jerry

    modified on Thursday, January 28, 2010 9:18 AM

    The Lounge question learning csharp linq linux

  • Fastest USB Thumb drive ?
    J Jerry Evans

    Has anyone got any decent performance data upon which to base comparisons? I'd like a 16GB drive to use for short-term backup - right now my various C***** and K***** units apparently perform miserably. Any recommendations - pref. based on numbers welcomed. Windows 7 x86. Incidentally HD_Speed (no affiliation) shows a 10x increase in performance if the drive in question is plugged directly into a USB2 port rather than living at the end of a USB extender cable .... Thx++ Jerry

    The Lounge question performance

  • Recurrent tasks
    J Jerry Evans

    WSS 3.0 will let me send an email to a group when a new task is added to a task list. What I would like to do is to run a weekly task that sends out reminders of tasks due within certain periods, i.e. 2 days, 7 days, 14 days etc. I thought the simplest way would be to build a little C# app thatr sits on the WS2K3 box and qeuries the WSS database. Any ideas on which tables I should be checking? More generally is there an overall schema for the WSS3 database system? If anyone is aware of an existing solution with code please let me know. Thx++ Jerry

    SharePoint database csharp xml question

  • VS2008 CMFCToolbar and inserting a combo box
    J Jerry Evans

    The VS2008 toolbar stuff is driving me nuts. The SetButtonInfo() call now seems to take an image index as 4th parameter rather than a width. I can create an embedded combobox if the button is set to TBBS_SEPARATOR but the combo overpaints the drop-arrow used to customise the toolbar. Anyone got an example that works? Thx++ Jerry

    C / C++ / MFC database hardware tutorial question

  • HTML Canvas: Does an editor exist?
    J Jerry Evans

    i.e does anyone know of an vector graphics editor which will create HTML 5 'Canvas' output? Or possibly a converter from SVG or similar? Thx++

    The Lounge graphics html question

  • Opensource Database - which one
    J Jerry Evans

    How much of what kind of data? If you have a very simple set of tables with small quantities of data then SQLite is ok. It is certainly small and easy to install :) For anything remotely sophisticated use Postgres.

    The Lounge question database linux

  • Synchronous socket and WaitHandle/WaitAny confusion
    J Jerry Evans

    Struggling to adapt a C++ pattern to C#. How do I get a WaitHandle from an IntPtr, which is the underlying socket handle to use in the socket thread as outlined below? I know there are Aysnc socket varieties but I'm keen to reuse this if at all possible. *** indicates the problem area in code Thx++ Jerry // AutoResetEvent evtHalt = new AutoResetEvent; // Socket socket = new Socket(...); // WaitHandle handles = new WaitHandle(2); // set up handles handles[0] = evtHalt; // *** Nope *** conversion problems - handles[1] = socket.Handle; // while (true) { Int32 ret = WaitHandle.WaitAny(handles); if (ret == 0) { // cancelled as evtHalt was signalled break; } else if (ret == 1) { // socket signalled ... do something } }

    C# question csharp c++ regex help

  • Linux/Bash/.SH question
    J Jerry Evans

    true that.

    The Lounge linux help question tools

  • Linux/Bash/.SH question
    J Jerry Evans

    Thanks Jim, It looks like the script is modifying the path ... :(

    The Lounge linux help question tools

  • Linux/Bash/.SH question
    J Jerry Evans

    sure. problem is the script is not executing correctly. sed & grep & friends should be invoked but something (bash?) does not want them to run

    The Lounge linux help question tools
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups