I often find myself coding in a frenzy, not keeping tabs on my tabs (ha!) … thus having editors with some sort of reformatting ability is a necessity.
In Windows (even in Parallels) I use UEStudio, which doesn’t have the best formatting built in, but it does have a re-indentation command… the problem is, in order to use the function, you have to have the text you want re-indented already selected.
I would CTRL-A, to select all and then re-indent. This got old quick because I would always lose my place…
And thus, this macro was born.
It creates a bookmark, selects all text, reindents, deselects, returns to bookmark.
There is no way to go to the LAST bookmark, so if you use bookmarks at all (I don’t) this will NOT WORK =(
Apparently, if you install IIS7 *after* you install .NET 4.0, you have to register .NET 4.0 manually so that you can even use it with IIS…
When multiple versions of the .NET Framework are executing side-by-side on a single computer, the ASP.NET ISAPI version mapped to an ASP.NET application determines which version of the common language runtime (CLR) is used for the application. The ASP.NET IIS Registration Tool (Aspnet_regiis.exe) allows an administrator or installation program to easily update the script maps for an ASP.NET application to point to the ASP.NET ISAPI version that is associated with the tool. The tool can also be used to display the status of all installed versions of ASP. NET, register the ASP.NET version that is coupled with the tool, create client-script directories, and perform other configuration operations.
So, here’s what got me past this issue:
C:\Windows\Microsoft.NET\Framework64\v4.0.21006>aspnet_regiis.exe -i
Start installing ASP.NET (4.0.21006).
………….
Finished installing ASP.NET (4.0.21006).
I wanted to be able to use my already existing IIS server, instead of VS2010’s built in development server, but I kept getting “503 Service Unavailable” when I had the application pool set to .NET 4.0.
“After recently installing Visual Studio 2010 Beta 2 and creating a .Net 4.0 site, I tried to step out of Cassini and into IIS only to get “503 Service Unavailable” and a killed worker process. Checking the event viewer I found the following errors…”
I loaded up a project today that as of yesterday worked 100% … and recieved an error:
The referenced component ‘System’ could not be found.
What?! Hold on… let me go into the project properties… oh wait, I can’t:
Could not resolve mscorlib for target framework ‘.NETFramework,Version=v3.5′. This can happen if the target framework is not installed or if the framework moniker is incorrectly formatted.
Thanks! I’ll check the .NET installations, reinstall everything, and try again…
or not, I got the same error even after adjusting the .NET framework manually in the file.
I finally figured it out, eventually:
Problem:
I had been using remote debugging. The network share I was publishing to and testing from, was no longer available as I had just received a new server at work and I switched everything over yesterday, but had not relaunched the projects since earlier that morning… and they compiled fine after I moved everything somehow. A bug? I would say so… Give me some sort of REAL response to go off of, like “Hey, you idiot, change your output directory.”
Solution:
I went in to my csproj files and cleared out any references to the network shares in all areas of the configuration. Voila!
I’m interested to see if anyone else has this problem.
My old HDD was having some issues and needed to be swapped, I cloned C: to a new drive, removed the old drive and it wouldn’t boot up as C:\, only D:\…so when I logged in it basically just sat there looking for the C:\ which was actually assigned as D:\ …
Modifying the boot settings didn’t do anything, using diskpart to attempt to change the drive letter didn’t work… fail fail fail. Eventually, I realized that things in Vista / Windows 7 may have changed a bit bootloader wise. I booted up my computer, CTRL+ALT+DEL’d to get a task manager, and ran REGEDIT.
There it was, “HKLM\SYSTEM\MountedDevices”.
This is basically a list of drives and drive letters that are assigned to those drives.
I deleted all of the entries, rebooted, and voila! Back in business!
Here’s what happened:
In Vista and Windows 7, if you clone your active / main / boot drive (via R-Drive Drive Image or the likes), and Windows sees it with the original drive still plugged in and active, it will set a fixed drive letter entry in your “Mounted Disks” registry folder.
When you remove the first drive and put the new one on the same I/O cable, it will boot, but it will either reference the already created drive letter in the registry, or will not assign C:\ to the “new” drive’s serial number. Even though you cloned C:\ to an new disk, and removed the old C:\ physically, the letter will still be reserved in the registry, and the next (in my case anyways) available letter is D:\.
I installed VS2010 Beta 2 today… after uninstalling Beta 1 — to do which I had to remove the TFS Object Model package FIRST, due to an error I was getting about a missing “tfsobjectmodel-amd64_enu.exe”
Everything installed OK, until the end when I tried to install the help files… I got the error:
“MSHelpListener.exe has stopped working”
Apparently, it tries to bind to port 80, which in my case is already bound to by Skype.
Here’s the details / fix from the Help Listener documentation:
If port 80 is used by another process (not via the http.sys service) then the Help listener will not be able to attach and use port 80 and will fail. The port number can be changed by adding a string registry value ListenerPort under HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Help3 with the value of the port to use (eg. 81). Due to the http.sys ACL settings it is necessary to run the following http.sys configuration command from an admin elevated command line. On Vista, Win2k8, and Windows 7 run the following native command:
netsh http add urlacl url=http://127.0.0.1:<port number>/help/ sddl=D:(A;;GX;;;WD)
On Windows Xp, and Win2K3 run the following command:
httpcfg set urlacl /u http://127.0.0.1:<port number>/help/ /a D:(A;;GX;;;WD)
If the command is not found then it might be necessary to download the httpcfg.exe from Microsoft as part of the Windows XP Service Pack 2 support Tools (http://www.microsoft.com/downloads/details.aspx?amp;displaylang=en&familyid=49ae8576-9bb9-4126-9761-ba8011fabf38&displaylang=en).
Now the Microsoft Help Listener will run on the selected port number.
One of my supervisors likes to send out tons of emails with absolutely no subject… he uses Outlook, so today I had enough and wrote this little VBA gem:
Private Sub Application_ItemSend(ByVal Item As Object, Cancel As Boolean)
If TypeName(Item) <> “MailItem” Then Exit Sub
If Len(Trim(Item.Subject)) = 0 Then
Dim splitItem As Variant
Dim s As String
s = Replace(Item.Body, vbCrLf, ““”)
splitItem = Split(s, ““”)
s = splitItem(0)
Item.Subject = s + “…”
Cancel = False
End If
End Sub
Just install it into your default VBA project (ALT-F11 in Outlook, expand the project tree on the left until you see “ThisOutlookSession”, double click that, paste and save!
Note: for some reason Split wouldn’t recognize a vbCr, so I had to replace the vbCrLf with another character.
The process is fairly simple, download this package and extract the folder inside the archive… open said folder and browse to “ASUS_BlackHawk_v41\ASUS Driver\amd64\Vista”, even if you aren’t running Vista, this will work (at least on XP x64)… open the ADIHdAud.inf file in notepad or your favourite text editor and locate line 79:
Now, replace that line with these two lines, basically commenting out the first one while placing a modified version (bold) of the first line in place of it:
You are simply letting Windows know that your device’s subsystem is compatible…
At this point you should be able to load up device manager, find your Soundmax audio device, right click, update driver, install from specific location, next, choose search in specific locations, uncheck the first box, check the second box, specify the location of the file you just edited and click next.
Voila.
It’s working perfect for me, but do this at your own risk — if your head explodes, it’s not my fault.
I love stuff like “Magic Apple Loop”, “Pink Forest” and “Monophonic City” .. not completely fond of the other stuff in this album.
A-bee - POLYPHONIC CITY
Style: Electro / House
Date: 2009
Quality: 192 kbps / 44,1kHz / joint-stereo
Size: 90.90 MB
Tracklist:
1. ON.set OFF
2. AIR feat.ellie
3. TO THE UNIVERSE feat.Kaori
4. U feat.Kaori
5. pink forest
6. the other side of the world feat.ellie
7. Star Surfer(A-bee remix) 8. MAGIC APPLE LOOP
9. calling feat.Kaori
10. GAME
11. LOUDER feat.ellie
12. monophonic city
13. EDEN (sea of clouds remix) feat.Kaori
nicely arranged, chilled out jams that bring to mind saturday evening pre-party hang sessions. definitely a sweet pick for in-office, driving or just chilling out with a bunch of friends. primo, totally rad. two thumbs way up from me.
So, obviously, I am still alive after my short span in Brooklyn / NY. I went up with mixed expectations, not having ever attended a similar event there I really wasn’t sure what to expect.
Basically, here is what happened:
We stood in line on Friday for close to two hours, only to leave before getting in due to capacity limitations. Saturday we got to the event later than expected, but that’s ok because almost nothing was set up, and the stages were not functional at all. Luckily our group had an RV and we were all able to sit around and wait until the music started pumping from the main stage. The secondary stage was up and ready for another couple hours, and the crowd very slowly grew into a mass. We ended up not even attempting to go to the night events after the fiasco on Friday, and from what we all heard, it was in our best interest as they each were shut down or moved to shitty venues. Sunday was better as everything was set up from the previous day, and though the crowd was slow to gather, it eventually happened and we all had a lot of fun.
Negatives out of the way, there were some things that really stood out to me and made me feel as if the event’s problems were somewhat of a shitty string of events and not neccesarily bad planning. First of all, they tried to get different venues for the night events. Most production companies here probably would have given up. Second the sound was pristine for the day events, and I think I even heard a speaker blow but the next time I walked by it was fixed! That almost NEVER happens, not even at the biggest parties I have attended. I really don’t have any complaints about the party, I got my presale $40 value worth on Saturday.
The best part for me was just being there with a bunch of awesome people, in awesome weather, having an awesome time.
Oh and the awesome mixsets, which I will soon be uploadinghave uploaded a torrent of (from the dailysessions mp3s) — seeing as how some have been removed from other sites, I figure this is the best way to keep them alive.
altermime is a postfix filter that allows you to alter MIME encoded content in outgoing and incoming messages. we wanted to append a disclaimer to the bottom of all outgoing emails from our server automatically, without having to rely on each individual manually adding this to their outlook signature or using a template.
the problem was that altermime (0.3.8) was appending “soft breaks” or “= ” (equal sign and a space) after every 76 characters inside the disclaimer in every multipart email that outlook would send out.
the source file qpe.c from the package here was the culprit, and though it was doing it’s job correctly, it wasn’t doing it how we needed it to be done.
i have modified the code and created a diff patch, located here. i take no responsibility for you screwing something up by using this patch incorrectly. i tested it and it works… and it makes altermime do what we needed it to do for outlook compatible automatic disclaimer insertion.
to patch your source file simply change to the directory where qpe.c is located and issue the following command:
<code>
patch -p0 < patch.qpe.c
</code>
and then, assuming your install directory is configured correctly in the Makefile,
<code>
make clean; make; make install
</code>
also, below is the modified the disclaimer shell script that will:
only include the disclaimer once in each email “thread”
only append the disclaimer when parties whom have emails outside of your domain are part of the email
here is the code:
<code>
#!/bin/bash -u
# Localize these.
MYDOMAIN=r0b0tz.com
# make sure that the text "$MYDOMAIN disclaimer" (ie: "r0b0tz.com disclaimer") is in
# all of your disclaimer text / html files, otherwise the single include only will not work.
INSPECT_DIR=/var/spool/filter
SENDMAIL=/usr/sbin/sendmail
# Exit codes from
EX_TEMPFAIL=75
EX_UNAVAILABLE=69
# Clean up when done or when aborting.
trap "rm -f in.$$" 0 1 2 3 15
# Start processing.
cd $INSPECT_DIR || { echo $INSPECT_DIR does not exist; exit
$EX_TEMPFAIL; }
cat >in.$$ || { echo Cannot save mail to file; exit $EX_TEMPFAIL; }
nmecount=0
if [ ! `grep -m 1 '${MYDOMAIN} disclaimer' in.$$` ]; then
for b in $( grep -m 1 "To:" in.$$ | grep -io '<[a-zA-Z0-9.-]*\@[a-zA-Z0-9.-]*\.[a-zA-Z]*>' in.$$ )
do
i=`echo ${b} | cut -d "," -f 1`
if [[ "${i}" =~ '(.*)@(.*)\.(.*)' ]]; then
logger -t DISCLAIMER outgoing email: ${i}
if [[ ! "${i}" =~ '(.*)@${MYDOMAIN}' ]] && [[ ! "${i}" =~ '(.*)@mail\.${MYDOMAIN}' ]]; then
nmecount=1
fi
fi
done
fi
if [ "${nmecount}" == 1 ]; then
# Adding disclaimer
# MAKE SURE YOU MODIFY THE LOCATIONS OF YOUR DISCLAIMERS!
/usr/bin/altermime --multipart-insert --input=in.$$ \
--disclaimer=/etc/postfix/disclaimer.txt \
--disclaimer-html=/etc/postfix/disclaimer.html \
--disclaimer-b64=/etc/postfix/disclaimer.b64 \
--xheader="X-Copyrighted-Material: Please visit http://${MYDOMAIN}/" || \
{ echo Message content rejected; exit $EX_UNAVAILABLE; }
fi
####### Changed From Original Script END #######
$SENDMAIL "$@"
It’s only for still pictures but come on, live caustics without electronics! What! That’s awesome!
By producing “6-D” images, an MIT professor and colleagues are creating unusually realistic pictures that not only have a full three-dimensional appearance, but also respond to their environment, producing natural shadows and highlights depending on the direction and intensity of the illumination around them. Read More
I wrote a greasemonkey script that will insert a direct link at the top of ZShare audio file pages so you may right-click and save as directly from the first page without waiting for their silly timer to count down.
Anything that samples video games, and is danceable gets my vote. Stereogum just released “Stereogum presents… RAC Vol. 1″; a collection of nine tracks full of RAC remixes:
Some of you are probably already familiar with the dubstep sounds of Burial, but what you might not know is the musician wears a mask of anonymity. The artist is said to only have informed a handful of people that they even make music… this is quite refreshing. For those of you who don’t know, check these out:
Today I present to you, my four readers, the first “twofer (tuesday)” set!
Done With You - Whitest Boy Alive
The first time I heard this song I had no idea who the band was, just that they had a secret electronic track attached after about sixty seconds of silence… come to find out, “the whitest boy alive started as an electronic dance music project in 2003. it has slowly developed into a band without any programmed elements.”
Don’t You Evah (Matthew Dear Mix) - Spoon
Spoon remains one of my favorite bands; Dear put awesome touches on this track, bringing spoon closer to the minimal techno side of things than I’ve ever heard… and not surprisingly, it works pretty damned well to create an almost hypnotizing array of noise.
In 2005 at Art Basel, Miami, I took the picture on the left, today I saw the image on the right on Kitsuné’s front page…
Apparently the artist (André) directed a video! Check it out:
Digitalism is set to release a new mixset, under the Kitsuné name, on June 23rd. The release feature remixedtracks from bands as diverse as The Kills, The Human League, Calvin Harris and The B52s.
…the CD is aimed at “all those who need a boost for the summer as well as those newbies having/during sex on the beach - forcing all of them to love each other a bit more because that’s what summer and sunshine is all about”.
I accidentally stumbled upon a Kitsuné complitation some time ago and have yet to be let down by any of the new releases; Artists featured under the name are:
Adam Sky, Alan Braxe, Alex Gopher, Archigram, autoKratz, Benjamin Theves, Big Face, Black Strobe, Bloc Party, Boys Noize, Captain Comatose, Cazals, Christopher & Raphael Just, Cosmo Vitelli, Crystal Castles, Cut Copy, David E. Sugar, Dieter Schmidt, Digitalism, DJ Gregory, Fantastic Plastic Machine, Fischerspooner, Foals, Fox N Wolf, Fred Falke, Guns ‘n’ Bombs, Hadouken!, Hot Chip, Jence, Joakim, Kaos, Khan, Klaxons, Lacquer, Lost Valentinos, Man With Guitar, Marco Dos Santos, The Mogs, Palermo Disko Machine, Passions, Pin Me Down, Playgroup, Phones (Paul Epworth), Play Paul, Popular Computer, Punks Jump Up, Rex The Dog, Romuald, Shakedown, Simian Mobile Disco, The Teenagers, Thieves Like Us, The Things, Tom Vek, Tomboy, Towa Tei, VHS Or Beta, Volga Select, The Whip, The Whitest Boy Alive, The World Domination, Yelle, Zongamin
Another killer mix to add to your collection; This one is titled “12:02″ and is by After Midnight
I especially love the inclusion of Orbital!
Tracklist:
01 True Pseudo - Freakin’ Me Out
02 New Young Pony Club - The Bomb (Villains Xplosive Mix)
03 Death From Above 1979 - Sexy Results (MSTRKRFT Edition)
04 Cryptonites - I Can’t Give You Up (Kill The Noise remix)
05 Villains - Rock It
06 Chromeo - Needy Girl (Vandalism Mix)
07 Atlantic Connection - Rocksteady (La Riots Shake It All Night remix)
08 Surkin - White Knight Two
09 Marlena Shaw - California Soul (Diplo/Mad Decent remix)
10 La Riots Ft. Jadis - If I Could
11 Apollo 440 Ft. The Beatnuts - Dude Descending A Staircase
12 The Black Ghosts - Any Way (Fake Blood Mix)
13 The Frail - Addiction (After Midnight remix)
14 Codebreaker - Exiled (Miami Horror remix)
15 Michael Jackson - Thriller (Laidback Luke remix)
16 Basement Jaxx - Where’s Your Head At? (2008 Robbie Riviera Mix)
17 The Count & Sinden Ft. Kid Sister - Beeper (A-Trak remix)
18 Kaysh - Drug Induced Sex (Kid Dub Loves Kinky Sex Mix)
19 After Midnight Vs. True Pseudo - Roshambo (Original Mix)
20 Klaas - The Way (Klaas Hype Mix)
21 Edison Gem - Things Change (Villains remix)
22 Orbital - Halcyon & On & On (Original Mix)
I spend a lot of time restarting daemonized ruby processes and need to locate their PIDs on the fly. I got really, really tired of typing all the grep nonsense over and over.
Here is a quick bash script to locate processes by command text.
— begin code –