Kicking off a new affiliate site for the summer.

Let’s see how we do!

2013 Cute Swimsuits for Women Swimsuit-Depot

 
Swimwearforme.com

One Comment

I recently had a project at my 9 to 5 that involved the need to combine several product XML data exports from an existing shopping cart and migrate them to a different shopping cart. The “different shopping cart” was written in classic ASP.

The Project Task List:

  • Combine several XML files to dump data into an adhoc created SQLite Database.
  • Post product data to existing classic ASP scripts that would handle putting the products into the new shopping cart automatically.
  • Post Data will include uploaded Image Data for an MSSQL database.

Is this how I would have liked to do this? No. But circumstances as they were it is what had to be done.

Everything was trucking along just fine until it came time to post the data to the classic ASP script running on some ancient version of IIS.

Using plain ole curl request parameters without a lot of extra header data was getting me NO WHERE.  I was getting a whole range of errors. (I put this post off for far too long so I don’t remember what errors I was getting or what sources I used to piece together my working functions.)  I had to post uploaded file data (for product images) and also just plain posted text data fields (title,descriptions,weight, price). Here are the functions I used for both.

I created a file called, “curlfunctions.php” that include these three functions.  I included it when I was looping through the product data queries from the SQLite database.

Function 1: CURLOPT_POSTFIELDS prep function

This function takes any array ($vars) and puts it into the linear separated (with “&”) string that CURL likes. In this case I just dumped in the whole $_POST array. Note: I did NOT use this function for the image posting. Just the text.

Function 2: addproduct() regular text fields

The trick with Classic ASP/IIS is all this extra header data. This is what worked for me to make the data accessible by the Classic ASP script through the Request.Form(“FormVariableHere”) array/struct/whatever they call it. THIS is only for the basic text data.

Function 3: addphoto() an uploaded file

The data I had for the product photo was an existing URL, not the actual file. So I had to download the photo to a temporary location and create the $data/$_POST array myself instead of using the postVars function from above. Also the headers changed a little bit in dealing with this new type of form data.

Of course all the returned $data’s were just the html contents of the script’s Success Page so it was easy to just print it to the screen and make sure all was well.  This is what worked for me and hopefully it will help someone else!

3 Comments

To continue to find fun and exciting uses for my Sixaxis Dualshock 3 I’ve been driven to emulate as much as possible.  We have already shown what can be done with n64oid to turn your Transformer Infinity into a Nintendo 64. Now we will move on to something a little more cool, “Playstation.” To emulate the first generation Playstation and play any PSX roms you need a couple of things.

Things you will need:

  • The app I’ve decided to use was FPse. Available on the Google Play Store.
  • PSX Bios File… Google it or …
  • You are going to want the Open GL plugin so your games don’t look like jaggy-edged-butt. Open GL plugin info/downloads.
  • Some Roms (.bin files is what you are shooting for here.)
  • Some Rom files are going to be .ecm. I believe these are direct from disc Playstation rips. You’ll need ECM Tools to turn these into a bin files. Specifically you will use “unecm.exe.”

There are a TON of settings you can tweak inside the app so you should be able to get it working on your device if you are persistent.  The setup is basic:

Install the App -> Download Bios File -> Download Optional Open GL plugin ->  The app will ask you the location of the Bios File right away -> Download .bin/.ecm (to convert to bin) PSX roms -> Play.

There was only one funky thing with my Dualshock 3 and that was that the square-triangle-circle-cross buttons where all rotated clockwise one button.  So when playing a game: square was the triangle button, Circle was triangle and so on. I was too lazy to try and go through to fix it so I just play with them like that.

Games I’ve played so far: Crash Bandicoot 2, Tomb Raider Chronicles, Harry Potter and Philosophers Stone, and Spyro the Dragon.  Here is a list of working/nonworking Roms so you know what to spend your time trying to get.  Sadly FFVII is still just as bad as it is on any other emulated platform. Doesn’t seem like we’ll ever get it this way.. but… “Sup Bro!”

 

Resources

One Comment

Got a new computer! Dell Inspiron 15r Special Edition!

My old HP (I can’t even remember the model number) finally couldn’t take the heat anymore here in Vietnam and it died.

I gave it a unisex name, “Taylor.”  The story goes that my coworker and I were talking about how you can get attached to things if you name them. I think I mentioned that I don’t think I could if I gave it a unisex name. I was right. Taylor and I didn’t quite care about each other. I’m not sad to see her/him go. I’m glad to have a new machine that isn’t shitting on me every 3 minutes. New machines name, “Rick.” Just made that up.

Specs on Rick from DxDiag

Time of this report: 4/7/2013, 20:35:52
Machine name: DELL-PC
Operating System: Windows 7 Home Basic 64-bit (6.1, Build 7601) Service Pack 1 (7601.win7sp1_gdr.130104-1431)
Language: English (Regional Setting: English)
System Manufacturer: Dell Inc.
System Model: Inspiron 5520
BIOS: InsydeH2O Version 03.72.02A07
Processor: Intel(R) Core(TM) i7-3612QM CPU @ 2.10GHz (8 CPUs), ~2.1GHz
Memory: 8192MB RAM
Available OS Memory: 8094MB RAM
Page File: 3272MB used, 12913MB available
Windows Dir: C:\Windows
DirectX Version: DirectX 11
DX Setup Parameters: Not found
User DPI Setting: Using System DPI
System DPI Setting: 96 DPI (100 percent)
DWM DPI Scaling: Disabled
DxDiag Version: 6.01.7601.17514 32bit Unicode

It has 1 TB of Hard Drive space that is partitioned out into a few sections.  Also it has the Switchable AMD Radeon HD 7670M GPU. Which is nice so I can play Skyrim on High Settings.

Steam ID Name: Danny00014

 Resources

2 Comments

If you are using Twitter Bootstrap you will use LESS if you want to pump out some quick color templates for your designs. In the world of CSS pre-processing there is LESS and SASS at the top. I’ve not dove into any of the SASS stuff but LESS was in front of me so that is what we will focus on.

What is CSS Pre-Processing?

LESS is for all intents and purposes a CSS programming language. There are variables, mix-ins, functions and all sorts of basic expression operators to speed up your CSS creation process. However, when you create these .less files they are not readable by any of the layout engines (WebKit, Trident, Gecko, Presto). The .less files must be fed into a compiler to generate a CSS file to use on the web.  You can use less.js (or many of the other emerging “on the fly” generators) but your website will suffer in speed for something you only had to do once locally.  Compiling the .less into CSS locally is STILL the way to go.

What programs are available to help me compile my .less files into CSS?

What to choose? Short Answer:  WinLESS if you are working with Bootstrap’s files. Crunch! if you ARE NOT working with Bootstrap’s LESS.

Long Answer: I tried out a few so lets just go down the list.

Crunch!

Crunch! Is a LESS editor and compiler in one. This is probably the number one option for MOST people getting into LESS.  It provides a nice interface and is built with Adobe Air. The only reason I’m not using it is that the current v1.5 doesn’t compile Bootstrap’s 2.3.1 LESS files. It throws an error every time. V1.6 fixes this problem and is being worked on in GitHub but I’m still kind of a boob about using GitHub so maybe you are able to download a new compiled version to install but it isn’t officially released as of writing this post.  Once v1.6 comes out this will be what I will use.

Koala

Koala is just a compiler with no built in editor. The cool thing about Koala is that it isn’t limited to just LESS files. It has the capability to compile SASS and CoffeeScript as well. For some reason Koala was VERY slow on my system. It took forever to start but seemed okay once it was started.

SimpLESS

SimpLESS’s redeeming quality is the ability to use Prefixr on the compiled CSS files.  Prefixr is cool because it automatically generates cross browser CSS. I use the Prefix plugin for Notepad++ to do accomplish this but there are JS files available to do it on the fly.  SimpLESS will read your LESS files -> compile them -> Run Prefixr -> Minify the outputted CSS files.

WinLESS

My favorite! WinLESS has won me over until Crunch! is updated. WinLESS allows you to select the files you want to compile and it does so ON THE FLY when the file is changed. It runs in the background and is VERY fast. So my process has become: Open WinLESS -> Load my projects’ LESS file directory -> Open my LESS files with Notepad++ -> Edit as needed. All I have to do is save the .less file and reload the page I’m working on in my browser. The CSS has been already compiled by the time I reload.  WinLESS also Minifys the output. In fact MOST of the LESS compilers will Minify the CSS file.  All Minify means is that all the white space and new lines in your CSS file are removed. The resulting minified file looks like one giant long string instead of a formatted document a human can read easily.

Resources

Leave a Comment

Privacy Policy | Refund Policy | Contact