Home

Articles

Photography

Videos

Flash Videos

Flash Games

Music

 

Adding a WordPress RSS Feed to any webpage

May 11th, 2008

In this tutorial we will show how to display a WordPress RSS Feed with the minimum amount of code possible. We will be using Spry XML Data Sets. The Spry Framework is an open source Ajax framework developed by Adobe. The idea is to develop Rich Internet Applications, web applications with features and functionality of desktop applications.

If you have DreamWeaver you can simply Insert -> Spry -> Spry XML Data Set

If you don’t have Dreamweaver, you can download xpath.js and SpryData.js

We start off by adding the Spry files to our header tags and defining the dataset.

<head>
   <script src="SpryAssets/xpath.js" type="text/javascript"> </script>
   <script src="SpryAssets/SpryData.js" type="text/javascript"></script>
   <script type="text/javascript">
      var ds1 = new Spry.Data.XMLDataSet(”/blog/wp-rss2.php“, “rss/channel/item“);
   </script>
</head>
 

The dataset is defined by

var datasetName = new Spry.Data.XMLDataSet(”XMLsource“, “XPathToRepeatingChildNode“) 

“ds1″ is the datasetName, XMLsource is “/blog/wp-rss2.php”, and XPath is “rss/channel/item”

Now for the rest of the code…

<div spry:region="ds1">
   <div align="center">
      <strong>Latest Articles</strong>
   </div>
   <p>
   <table>
      <tr spry:repeat="ds1" >
         <td>
            <A href='{ds1::link}’>{ds1::title}</A>
            <p>
         </td>
      </tr>
   </table>
</div>

spry:repeat outputs each row in the dataset.  spry:repeat in a <td> tag will display the output horizontal rather than vertical.

If you incorrectly set the XPath, you will see ‘undefined’ where {ds1::title} should be. 

If all goes well, you should see something like, 

Latest Articles
 
Lucky Strike Lanes Experience 
Arian Cafe Experience 
BSOD After Samsung CLP-300 Installation - DgiVecp.sys 
New Videos Page

Lucky Strike Lanes

May 9th, 2008

Lucky Strike Lanes at the Block of OrangeIt was Saturday night. My wife’s friends planned to take her out for dinner and bowling to celebrate her birthday. It was decided Lucky Strikes at the Block of Orange was going to be our destination.

We arrived at 7pm as a party of 8.  There was another party that had arrived 30 minutes before us. They gave us the option of taking a lane, but there was a 2 hour limit.  We decided to wait and eat first as we had planned to play 2 or 3 games.

9:30pm they told us it was going to be another 20 minutes. 20 minutes later, still nothing. They said it was our fault for choosing to wait and eat before bowling. 10:30pm we spoke to the Manager and he said we could have a lane and eat there without a time limit. We ordered food and began to settle in, finally. I went to get bowling shoes. With cash in hand I gave them my shoe size and they gave me the the shoes. They asked which lane I was on. I said I wasn’t sure and tried to look, I said it might be 5 and 6. The guy said that’s ok don’t worry about it. I figured being a large party they let it slide and they didn’t ask me to pay either. Cool, or so I thought.

It turned out our lanes weren’t 5 & 6, but actually 7 & 8. Halfway through the game they froze the lane for having an additional player, me. We went to speak to the person at the desk, and they said for us to hold on while he gets the Manager. The Manager came and reinstated the lane that the regular employee’s had shutdown. Unfortuntaley the scoreboard no longer functioned properly and gave the wrong scores for the remainder of the game. We didn’t bother complaining.

In conclusion, after waiting 3 and a half hours they said it was our fault we had to wait and finally gave us a lane and allowed us to have dinner there without a time limit. Halfway through they shut our lane down. All on my wife’s birthday while spending close to $200. We didn’t bother playing more than 1 game.

Arian Cafe

May 6th, 2008

Inside Arian Cafe

I applied for a job shooting at Arian Cafe every Friday and Saturday night in Mission Viejo. It was supposed to be shooting handheld for $100/night from 10pm - 2am for the next 12 weeks. The goal was to use the video and have it broadcasted back to Iran as part of a nightlife Tv series.

I met the owner he explained that he could find a professional to do it for $200, and that he wanted to do it for $100. He stated that he could easily find a Canon GL2 on ebay for $600. I explained lighting may be an issue but he showed me his little consumer camera and said it could do the job just fine.

I arrived Friday at 8pm sharp. Waited an hour for the “Director”. I got geared up and did a walkthrough with them.  I shot test footage to see what my camera could see. The owner stated not use the onboard video light during the dancing. The idea was to see people move in and out of the light catching glimpses of their faces making you think you saw or know someone. He showed me footage from the little consumer camera and was apparently quite impressed by it. It was Digitally Gained on Crack with extremely strong noise. I explained that quality degrades enourmasly when using Gain and I don’t use it to maintain professional quality without video degradation. At 11pm the place was dead and they said I could leave since no one was going to show up. 3 hours, I didn’t get paid.

I emailed footage from my camera of the club. The owner said it looked fine.  With the interviews I use the onboard video light on a tripod. Facial exposure was about a Zone 2-Zone 3 in the restaurant without the light. There was time inbetween shooting which I awaited further instructions. Shooting ended at 3am, 6 hours. The owner gave me a $100 bill from his wallet and I handed him the tapes. They served me food and water which I didn’t expect, and went home at 4am.

On Wednesday I spoke with the Owner regarding the weekend. He explained that his “studio” said the club footage was dark. I said there wasn’t enough light and that he said not to use the onboard video light. He said his Gain Cranked consumer camera did a better job. He didn’t mind to continue to work with me. However I would have to pay for food and drinks.  I would also have to wait until he reviews the footage, and if he decided it wasn’t good enough, he could not pay me.

So in conclusion, I have a $900 tripod, $400 video light, $100 headphones, $1600 camera, $150 external mic, and experience in shooting weddings,clubs,fashion events, and student films. To rent the equipment costs about $210 per day. $100 for 9 hours equates to $11.11/hour. $11.11/hour to pay a camera person with $3,150 of equipment to shoot a TV series in extreme conditions and mention the quality just isnt good enough.

BSOD After Samsung CLP-300 Installation - DgiVecp.sys

May 6th, 2008

After installing the Samsung CLP-300 printer drivers using windows update, print a test page and moments later, it BSOD’ed. After rebooting to the desktop, BSOD would immediately reoccur.

BSOD did not occure in Safe Mode. Rebooted using Last Known Good Configuration. Updated driver to the latest on the website. Print a test page would cause Explorer.exe to crash under ntdll.dll. Attempting to print in FireFox would cause FireFox to crash under ntdll.dll. Installed the driver on the CD, same problem.

Deleted AppData\Temp, however WPDNSE could not be deleted. Did a boot-time Chkdsk, reported deleting an index entry WPDNSE. Still crashed when printing.

Terminated spoolsrv.exe and deleted c:\windows\spool\printers, Samsungclp300 directory in c:\windows\system32\drivers, Samsungclp300 registry key located in HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Print\Printers\

Reinstalled drivers provided on CD again. Print a test page no longer crashed, however failed to actually print and no error message. Samsung software recognized the printer when connected. The printer however was missing in Printers and Faxes.

Uninstalled driver and used the Add a Printer wizard. Printer driver would automatically install and create duplicate entries in the registry, [PrinterName],0 [PrinterName],1 etc. The wizard however was unable to find installed printer.

Went to Printers and Faxes -> Server Properties -> Drivers -> Remove Samsung CLP-300. Reinstalled Driver from CD, print test page works.

4 hours later.

——————–

The computer has rebooted from a bugcheck. The bugcheck was: 0×1000007e (0xc0000005, 0×804f01cf, 0xf7943aa4, 0xf79437a0). A dump was saved in: C:\WINDOWS\Minidump\Mini050508-02.dmp.

For more information, see Help and Support Center at http://go.microsoft.com/fwlink/events.asp.

 Microsoft (R) Windows Debugger Version 6.9.0003.113 X86
Copyright (c) Microsoft Corporation. All rights reserved.

Loading Dump File [C:\WINDOWS\Minidump\Mini050508-02.dmp]
Mini Kernel Dump File: Only registers and stack trace are available

Symbol search path is: SRV*c:\websymbols*http://msdl.microsoft.com/download/symbols
Executable search path is:
Windows XP Kernel Version 2600 (Service Pack 2) UP Free x86 compatible
Product: WinNt, suite: TerminalServer SingleUserTS
Built by: 2600.xpsp_sp2_gdr.070227-2254
Kernel base = 0×804d7000 PsLoadedModuleList = 0×805533a0
Debug session time: Mon May  5 14:24:51.046 2008 (GMT-7)
System Uptime: 0 days 0:01:14.613
Loading Kernel Symbols
…………………………………………………………………………………………………………………………..
Loading User Symbols
Loading unloaded module list
……………….
Unable to load image DgiVecp.sys, Win32 error 0n2
*** WARNING: Unable to verify timestamp for DgiVecp.sys
*** ERROR: Module load completed but symbols could not be loaded for DgiVecp.sys
ERROR: FindPlugIns 8007007b
*******************************************************************************
*                                                                             *
*                        Bugcheck Analysis                                    *
*                                                                             *
*******************************************************************************

Use !analyze -v to get detailed debugging information.

BugCheck 1000007E, {c0000005, 804f01cf, f7943aa4, f79437a0}

Probably caused by : DgiVecp.sys ( DgiVecp+1233 )

Followup: MachineOwner
———

kd> !analyze -v
ERROR: FindPlugIns 8007007b
*******************************************************************************
*                                                                             *
*                        Bugcheck Analysis                                    *
*                                                                             *
*******************************************************************************

SYSTEM_THREAD_EXCEPTION_NOT_HANDLED_M (1000007e)
This is a very common bugcheck.  Usually the exception address pinpoints
the driver/function that caused the problem.  Always note this address
as well as the link date of the driver/image that contains this address.
Some common problems are exception code 0×80000003.  This means a hard
coded breakpoint or assertion was hit, but this system was booted
/NODEBUG.  This is not supposed to happen as developers should never have
hardcoded breakpoints in retail code, but …
If this happens, make sure a debugger gets connected, and the
system is booted /DEBUG.  This will let us see why this breakpoint is
happening.
Arguments:
Arg1: c0000005, The exception code that was not handled
Arg2: 804f01cf, The address that the exception occurred at
Arg3: f7943aa4, Exception Record Address
Arg4: f79437a0, Context Record Address

Debugging Details:
——————

EXCEPTION_CODE: (NTSTATUS) 0xc0000005 - The instruction at “0x%08lx” referenced memory at “0x%08lx”. The memory could not be “%s”.

FAULTING_IP:
nt!IoBuildDeviceIoControlRequest+f
804f01cf 8a4030          mov     al,byte ptr [eax+30h]

EXCEPTION_RECORD:  f7943aa4 — (.exr 0xfffffffff7943aa4)
ExceptionAddress: 804f01cf (nt!IoBuildDeviceIoControlRequest+0×0000000f)
ExceptionCode: c0000005 (Access violation)
ExceptionFlags: 00000000
NumberParameters: 2
Parameter[0]: 00000000
Parameter[1]: 00000030
Attempt to read from address 00000030

CONTEXT:  f79437a0 — (.cxr 0xfffffffff79437a0)
eax=00000000 ebx=00000001 ecx=00000000 edx=00160030 esi=8410b768 edi=85dec830
eip=804f01cf esp=f7943b6c ebp=f7943b9c iopl=0         nv up ei ng nz na pe nc
cs=0008  ss=0010  ds=0023  es=0023  fs=0030  gs=0000             efl=00210286
nt!IoBuildDeviceIoControlRequest+0xf:
804f01cf 8a4030          mov     al,byte ptr [eax+30h]      ds:0023:00000030=??
Resetting default scope

CUSTOMER_CRASH_COUNT:  2

PROCESS_NAME:  System

ERROR_CODE: (NTSTATUS) 0xc0000005 - The instruction at “0x%08lx” referenced memory at “0x%08lx”. The memory could not be “%s”.

READ_ADDRESS:  00000030

BUGCHECK_STR:  0×7E

 

LAST_CONTROL_TRANSFER:  from ef612233 to 804f01cf

STACK_TEXT:
f7943b9c ef612233 00160030 00000000 00000000 nt!IoBuildDeviceIoControlRequest+0xf
WARNING: Stack unwind information not available. Following frames may be wrong.
f7943bcc 805270f0 80047200 00000000 f7943bdc DgiVecp+0×1233
f7943e04 00000000 0000ffff 00000000 00000000 nt!vDbgPrintExWithPrefix+0×11e

FOLLOWUP_IP:
DgiVecp+1233
ef612233 ??              ???

SYMBOL_STACK_INDEX:  1

SYMBOL_NAME:  DgiVecp+1233

FOLLOWUP_NAME:  MachineOwner

MODULE_NAME: DgiVecp

IMAGE_NAME:  DgiVecp.sys

DEBUG_FLR_IMAGE_TIMESTAMP:  4119bf28

STACK_COMMAND:  .cxr 0xfffffffff79437a0 ; kb

FAILURE_BUCKET_ID:  0×7E_DgiVecp+1233

Followup: MachineOwner
———

 

New Videos Page

May 5th, 2008

New page for video content can be found at http://www.culex.org/video.php