archive-org.com » ORG » I » INCISE.ORG

Total: 182

Choose link from "Titles, links and description words view":

Or switch to "Titles and links view".
  • spook window manager
    you essentially have to handle X errors and they re called via a function pointer that you pass to xlib This means that you can t really access the running program data from inside of the error handler unless you have some global variables singletons or functions in the sky to use to grab onto the rest of the running program So after quite a bit of thinking I may be a bit slow and after seeing Metacity s error handling scheme I realized that it was pretty simple and allowed me to handle X errors without resorting to global variables and in fact presented a solution somewhat similar to the try catch pattern for exception handling used in many languages How it works is simple when you expect an X error may occur you instantiate an xerror catch You then do whatever it is you think might cause an error and afterwards you check your xerror catch instance and see if it caught anything during that time You can then retrieve the error and do whatever is appropriate with it You can nest them and you can also use a traditional X error handling function on the outside to catch unexpected X errors Signal Handling solved implemented A somewhat similar problem is handling of unix signals Normally you do this by registering handlers for whichever signal s you want to catch and then they re called with no access to anything but the signal number and any global data you have Well if we want no global data then that s not very helpful Signal handlers also have significant restrictions on what they can do You can only call a small number of C standard library functions re entrancy problems and you are only supposed to modify sig atomic t s You have no idea when your signal handler will be called so to be safe you have to resort to things like blocking signals at various parts of your code A lot of people just ignore those restrictions it ll usually compile and run fine which can cause extremely sporadic and hard to detect bugs The solution is also similar to xerror catch but a little different Basically you set up a super simple signal handler that just records the fact that that signal was received and then you poll that indicator at regular intervals and if it is set you take appropriate action and then clear it I don t want to explain it too much because it could change so see the source libspook signal check cc hh update hah Ok as often happens I found out that my solution was flawed My new perfect the old solution was perfect until I found out it wasn t so now this one is perfect solution is to block signals with sigprocmask and then check them with sigwaitinfo sigtimedwait I split this off into its own library called sigh And of course nothing is ever final Extensiblity somewhat

    Original URL path: http://incise.org/spook-window-manager.html (2016-04-30)
    Open archived version from archive


  • vim tips
    tip 1 Typing BufExplorer sucks Try map b BufExplorer tip 2 set hidden otherwise vim will try to close buffers and whine about unsaved files and other annoying behavior that makes no sense with bufexplorer comments View the discussion thread

    Original URL path: http://incise.org/vim-tips.html (2016-04-30)
    Open archived version from archive

  • web.py notes
    caching where it can template is the name of a file containing the a template in the templates folder terms is a dictionary used to fill the template If it s None then the caller s local variables are used instead plus context if it s not already set is set to context Meaning explicitly pass terms locals to reduce the amount of magic going on update I like CherryPy

    Original URL path: http://incise.org/web.py-notes.html (2016-04-30)
    Open archived version from archive

  • Index of /files/conf
    05 36 3 0K bash keychain and TERM 2003 oct 10 10 Oct 2003 20 48 167 bash profile 2003 oct 10 10 Oct 2003 20 49 1 0K bashrc 2003 oct 10 10 Oct 2003 20 48 532 iptables rules 20 Dec 2002 01 18 2 6K irssi elf theme 24 Feb 2003 04 02 23K myK py 2003 oct 10 10 Oct 2003 20 53 2 5K startx

    Original URL path: http://incise.org/files/conf/ (2016-04-30)
    Open archived version from archive

  • final fantasy 6 hacking
    hacking AKA Final Fantasy 3 III ff6j ffvi ff3us etc Onsite nothing yet On the internets The motherload of ff6 3 hacking links FFIII on Data Crystal wiki Lord J Cless Master ZED CRK comments View the discussion thread Nick

    Original URL path: http://incise.org/final-fantasy-6-hacking.html (2016-04-30)
    Open archived version from archive

  • flypper
    invisible strips along your screen edges that allow you to flip between viewports desktops by just pushing your mouse up against the screen edge or clicking it or while moving a window up against it or whatever you want You can configure them for basically any use such as popping up a window that says you are a chocolate dumpling when you click on the right screen edge Work in

    Original URL path: http://incise.org/flypper.html (2016-04-30)
    Open archived version from archive

  • what to eat when going back to iowa
    iowa Culver s chicken strips Ross Machine Shed Steak n Shake Hungry Hobo Hardee s maybe Whitey s maybe Checker s maybe Harris Pizza maybe LJS maybe comments View the

    Original URL path: http://incise.org/what-to-eat-when-going-back-to-iowa.html (2016-04-30)
    Open archived version from archive

  • green home scratch page
    to slowly drain it back out perhaps just a valve so you can experiment with the drainage rate Barrels tanks should be as high up as possible more gravity more pressure An incentive to build a multi story house which are more energy efficient anyway Food grade 55 gallon barrels can usually be found cheap 5 15 ea or so Greywater Filtering out particles is messy business Probably best to only use for branched drain mulch basins Landscaping On using trees bushes for shade Here in the Pacific Northwest I use Oregon White Oak farther away from the house and red twigged dogwood a large shrub closer to the house where I don t want a huge root ball destroying the foundation I don t use evergreen plants to shade windows because I want the light in winter comment on treehugger Appliances Dishwasher ref http www joe org joe 2003february rb3 shtml The average water use per dishwasher cycle decreased from a range of 11 15 gallons per normal cycle in 1978 Garrett 1978 to 6 10 gallons per normal cycle in 2000 Soap and Detergent Association SDA 2000 If dishes are pre rinsed using a dishwasher pre rinse cycle approximately one gallon of water is used Pre rinsing in the sink under running water however uses up to 25 gallons of water for 5 minutes of pre rinsing a substantial difference 25 gallons in 5 minutes is 5gpm which seems suspect And what about energy use ref http www mtprog com intBriefingNoteID 286 On water usage So even a conservative estimate means that washing the same load by hand uses at least three times more water On electricity usage From the energy consumption graph above the cross over between manual washing up and dishwasher appliance is nine place settings The argument for using an appliance to save energy is therefore weaker especially when considering that most dishwashers are only loaded to about 7 place settings 7 A dishwasher either looks full from not being loaded efficiently or has a few larger cookware items which take space or the dishwasher is run part full simply because the user would like to use some items fairly soon and does not have two sets of crockery to fill the dishwasher to the full 12 place setting capacity It is unclear to me whether this study used the dishwasher s electric dry cycle or not Air drying at least halves the electricity usage according to a quick internet search This leaves the issue of power usage still a bit unclear Also space usage and general consumption of materials are issues to consider Personally I feel that these two issues are definitely justified considering that one dishwasher means at least a decade or so of dishwashing misery is avoided All things considered I would theorize that Using the pre rinse cycle when needed Using an economy cycle to wash Waiting until the machine is as full as you can stuff it and using air

    Original URL path: http://incise.org/green-home-scratch-page.html (2016-04-30)
    Open archived version from archive



  •