Wednesday, March 20, 2013

Blue border in IE only


I made a flowchart into a clickable image map so I could make the different points of the flowchart clickable for further instruction.  In firefox this worked great, but in IE there was an ugly blue border around the image.
The first fix I found was here: http://webdev-il.blogspot.com/2009/12/how-to-remove-blue-link-image-border-in.html
using the css style sheet to remove the border using
However when I did this, nothing happened.
I didn't know if it was because I was using an image map or something, but adding this into my CSS file didn't do anything.
what did work was using
border="none"
as an image attribute.  So the line of code for the image map looked like this:
<img class="center" src="new.png" usemap="#newmap" border="none" />
<map name="newmap">

Then after fiddling with it, and remembering what CSS does again, I added
border:none;
To the class I created called center.  Which I made so the image would stay centered.  That code ended up looking like this:
.center {
    display: block;
    margin-left: auto;
    margin-right: auto;
    border:none
}
I figured it might not have worked because I already had a CSS class assigned to the image, and maybe CSS wouldn't assign 2 attributes to it.  I don't know if this is what was actually going on, but adding "border:none" to the existing class assigned to the image removed the blue border.
Adding "border=none" also worked for me.  I only have one image on the pages I'm working on so either way works for me, if you are using multiple images, adding to CSS is the way to go.

Saturday, March 9, 2013

Flash error: tempInit

My full error was tempInit, Line 4 1086:Syntax error:expecting semicolon before me.







Usually I'll have some actionscripting by the time I get errors referencing lines, but at this point in my project all I had were buttons, so it was kinda driving me mad.  There was no line 4 in code, so I had no idea what was going on.
Turns out it was a button named "about me" apparently you can't have AS linkage with spaces in it.
And its not that it even really wanted a semicolon between About and Me, because that just threw even more errors.
So moral of the story, keep your AS linkage names one word.  Even if its screwyouASlinkage, as long as there aren't any spaces, you're good to go.

Wednesday, February 20, 2013

Auto-reply on shared mailbox in an Exchange environment

This one is a major PITA being in help desk and having no access to the exchange console.  Although, I've never had access to the exchange console so that might not help...
Anyway, to add the auto response to a share mailbox, first the user has to have access to the shared mailbox (duh)
Go to the Control Panel, Mail, Show Profiles
You're going to Add a new profile, name it whatever you'd like (I'd recommend using the shared mailbox name)
Go to Manually Configure, since the user won't have a password for the shared mailbox
Choose service MS Exchange
Enter the Exchange Server address and the name of the account.
Finish.

**Note: On the Show Profiles page, there is a selection for Prompt for a Profile to be used, select this option so you can select the new profile when you open Outlook.

Close and Open Outlook selecting the profile you just created.

Now you can create the auto reply rule.

Select New Rule
select "Apply to Messages I Receive"
select "Sent only to me" or "Where My Name is in the To Box" whichever you prefer
select "Have Server reply using a specific message" then click the "a specific message" at the bottom.
This will open an email window, leave the from and to fields blank.  Give it a subject and a body, a nice full body, with 'a sort of oaky afterbirth' (office quote sickos!) if possible.
Click Next and Finish and test it.


Monday, February 18, 2013

Error 1046:Type was not found or was not a compile-time constant: (button reference)

I'm learning flash ActionScript and came across the error.
Error 1046:Type was not found or was not a compile-time constant: (button reference)
Apparently it can be a lot of things.  For me, I had the "Instance Of" name matching the "Instance Name".  It took me a while, but I finally realized these names have to be different after talking it through with someone.  I hope this helps anyone else new to Action Script 3.0 with their similar headache.


The wrong way:
 The acceptable way:


Monday, February 11, 2013

Outlook 2010 unable to view free/busy information, and my outlook 'Fix All'

If you work in a corporate IT help desk, you've probably seen this one.
(Before you read any further, check to see if the account is in cached exchange mode, remove that checkmark if they are and restart Outlook, sometimes that clears it up.)
When a user goes to the scheduling assistant and puts in another users name, they see a grey bar full of slashes.
Googling "no free busy outlook 2010" or any other clever way you decide to search it, brings up a number of different solutions.  Many seemed to be server configuration side when I searched.  If you work in help desk like I do, you probably don't have access to these kinds of system settings.  And honestly none of it makes sense to me anyway.
Well after searching for a while, and having nothing work, I did my "fix all" for Outlook as a last shot in the dark.  And it worked, the user could see other people's free and busy schedules in calendar.
This was all done on a machine running Outlook 2010 and Windows 7.  So my directions will reflect this.
First, I removed the Exchange account from Outlook.
First, close Outlook.  Then go to the Control Panel, then Email, Select the user's exchange account and remove it.
That's step one, easy peasy
Next, you're going to want to remove the .ost file, which is the local store of the emails on the server, this could be completely wrong, but its how I understand it.  Either way, opening outlook after removing the .ost will rebuild the .ost file, so we aren't losing any data here.  MAKE SURE NOT TO DELETE .PST FILES, this will probably put you in hot water.  The .pst files are offline files users use for archiving.
The location is as follows:
C:\Users\%user%\AppData\Local\Microsoft\Outlook
It's safe to delete everything but the .pst files in this folder.
Don't delete the .pst.
See the .pst files?  Don't delete those.
Once that folder is all cleared out, go back to Mail in Control Panel and add the account.
Open outlook and let everything sync up.  Once that is done check the Free/Busy. 

This is what worked for me.

This also works for just about any "WTF is outlook doing?" issues.  Going slow, missing folders that are available on the web access, attachments aren't opening or going slow, but other MS office products are working fine, etc, etc etc.

Update:
Still not showing free/busy info?
Then it might be related to autodiscover, this is how I ended up forcing the connection and getting free/busy to populate:
Go into the connection tab of the email account
(file>account settings>account settings>double click account>more settings>connection>check Exchange Proxy Settings>enter your OWA address information)
I then selected the check marks for both:
On fast networks, connect using HTTP first, then connect using TCP/IP
On slow networks, connect using HTTP first, then connect using TCP/IP
The way we are setup, this left everything checked on the Exchange Proxy Settings page.

If you have a better way, let me know and I'll include it here.


Tuesday, February 5, 2013

Ah google search, thank you for jumping to conclusions

I found this old picture on my hard drive and through I'd throw it up here.  I thought this was pretty funny.  It doesn't work anymore, but luckily I got a screen capture of it... jeez, back in 2011... 

 

Google frauds, get sent to craigslist.  Thank you google, you just made my day.

Wednesday, January 16, 2013

The VPN client agent was unable to create the interprocess communication depot

If you get the error The VPN client agent was unable to create the interprocess communication depot, complete the following
1.Click theStartbutton.
2.Click onControl Panel.
3.Click onView Network Status and Tasks
4.Click onChange adapter settings
5.Right-click the shared connection and choose Properties
6.Click the Sharing tab
7.Clear theAllow other network users to connect through this computer's Internet connectioncheckbox
 8.Click OK and reinstall Cisco anyconnect

Thanks to Chamanara!
http://social.technet.microsoft.com/Forums/en/w7itpronetworking/thread/ad159aeb-f8f6-4b8b-8a4f-a1d248f646f1

Monday, January 7, 2013

ASCII sheet, massive waste of time? or... awesome

Here's the first 300 ☺ Oh, and you might have to use the number pad to get the symbols to work right, I just tried the numbers above the keyboard and it didn't work.
ALT codeOutput ALT codeOutput ALT codeOutput ALT codeOutput ALT codeOutput
alt+1= alt+11= alt+21=§ alt+31= alt+41=)
alt+51=3 alt+61== alt+71=G alt+81=Q alt+91=[
alt+2= alt+12= alt+22= alt+32=(space) alt+42=*
alt+52=4 alt+62=> alt+72=H alt+82=R alt+92=\
alt+3= alt+13= alt+23= alt+33=! alt+43=+
alt+53=5 alt+63=? alt+73=I alt+83=S alt+93=]
alt+4= alt+14= alt+24= alt+34=" alt+44=,
alt+54=6 alt+64=@ alt+74=J alt+84=T alt+94=^
alt+5= alt+15= alt+25= alt+35=# alt+45=-
alt+55=7 alt+65=A alt+75=K alt+85=U alt+95=_
alt+6= alt+16= alt+26= alt+36=$ alt+46=.
alt+56=8 alt+66=B alt+76=L alt+86=V alt+96=`
alt+7= alt+17= alt+27= alt+37=% alt+47=/
alt+57=9 alt+67=C alt+77=M alt+87=W alt+97=a
alt+8= alt+18= alt+28= alt+38=& alt+48=0
alt+58=: alt+68=D alt+78=N alt+88=X alt+98=b
alt+9= alt+19= alt+29= alt+39=' alt+49=1
alt+59=; alt+69=E alt+79=O alt+89=Y alt+99=c
alt+10= alt+20= alt+30= alt+40=( alt+50=2
alt+60=< alt+70=F alt+80=P alt+90=Z alt+100=d
ALT codeOutput ALT codeOutput ALT codeOutput ALT codeOutput ALT codeOutput
alt+101=e alt+111=o alt+121=y alt+131=â alt+141=ì
alt+151=ù alt+161=í alt+171=½ alt+181= alt+191=
alt+102=f alt+112=p alt+122=z alt+132=ä alt+142=Ä
alt+152=ÿ alt+162=ó alt+172=¼ alt+182= alt+192=
alt+103=g alt+113=q alt+123={ alt+133=à alt+143=Å
alt+153=Ö alt+163=ú alt+173=¡ alt+183= alt+193=
alt+104=h alt+114=r alt+124=| alt+134=å alt+144=É
alt+154=Ü alt+164=ñ alt+174=« alt+184= alt+194=
alt+105=i alt+115=s alt+125=} alt+135=ç alt+145=æ
alt+155=¢ alt+165=Ñ alt+175=» alt+185= alt+195=
alt+106=j alt+116=t alt+126=~ alt+136=ê alt+146=Æ
alt+156=£ alt+166=ª alt+176= alt+186= alt+196=
alt+107=k alt+117=u alt+127= alt+137=ë alt+147=ô
alt+157=¥ alt+167=º alt+177= alt+187= alt+197=
alt+108=l alt+118=v alt+128=Ç alt+138=è alt+148=ö
alt+158= alt+168=¿ alt+178= alt+188= alt+198=
alt+109=m alt+119=w alt+129=ü alt+139=ï alt+149=ò
alt+159=ƒ alt+169= alt+179= alt+189= alt+199=
alt+110=n alt+120=x alt+130=é alt+140=î alt+150=û
alt+160=á alt+170=¬ alt+180= alt+190= alt+200=
ALT codeOutput ALT codeOutput ALT codeOutput ALT codeOutput ALT codeOutput
alt+201= alt+211= alt+221= alt+231=τ alt+241=±
alt+251= alt+261= alt+271= alt+281= alt+291=#
alt+202= alt+212= alt+222= alt+232=Φ alt+242=
alt+252= alt+262= alt+272= alt+282= alt+292=$
alt+203= alt+213= alt+223= alt+233=Θ alt+243=
alt+253=² alt+263= alt+273= alt+283= alt+293=%
alt+204= alt+214= alt+224=α alt+234=Ω alt+244=
alt+254= alt+264= alt+274= alt+284= alt+294=&
alt+205= alt+215= alt+225=ß alt+235=δ alt+245=
alt+255=(space) alt+265= alt+275= alt+285= alt+295='
alt+206= alt+216= alt+226=Γ alt+236= alt+246=÷
alt+256=(none) alt+266= alt+276= alt+286= alt+296=(
alt+207= alt+217= alt+227=π alt+237=φ alt+247=
alt+257= alt+267= alt+277=§ alt+287= alt+297=)
alt+208= alt+218= alt+228=Σ alt+238=ε alt+248=°
alt+258= alt+268= alt+278= alt+288=(space) alt+298=*
alt+209= alt+219= alt+229=σ alt+239= alt+249=
alt+259= alt+269= alt+279= alt+289=! alt+299=+
alt+210= alt+220= alt+230=µ alt+240= alt+250=·
alt+260= alt+270= alt+280= alt+290=" alt+300=,
ALT codeOutput ALT codeOutput ALT codeOutput ALT codeOutput ALT codeOutput
alt+301=- alt+311=7 alt+321=A alt+331=K alt+341=U
alt+351=_ alt+361=i alt+371=s alt+381=} alt+391=ç
alt+302=. alt+312=8 alt+322=B alt+332=L alt+342=V
alt+352=` alt+362=j alt+372=t alt+382=~ alt+392=ê
alt+303=/ alt+313=9 alt+323=C alt+333=M alt+343=W
alt+353=a alt+363=k alt+373=u alt+383= alt+393=ë
alt+304=0 alt+314=: alt+324=D alt+334=N alt+344=X
alt+354=b alt+364=l alt+374=v alt+384=Ç alt+394=è
alt+305=1 alt+315=; alt+325=E alt+335=O alt+345=Y
alt+355=c alt+365=m alt+375=w alt+385=ü alt+395=ï
alt+306=2 alt+316=< alt+326=F alt+336=P alt+346=Z
alt+356=d alt+366=n alt+376=x alt+386=é alt+396=î
alt+307=3 alt+317== alt+327=G alt+337=Q alt+347=[
alt+357=e alt+367=o alt+377=y alt+387=â alt+397=ì
alt+308=4 alt+318=> alt+328=H alt+338=R alt+348=\
alt+358=f alt+368=p alt+378=z alt+388=ä alt+398=Ä
alt+309=5 alt+319=? alt+329=I alt+339=S alt+349=]
alt+359=g alt+369=q alt+379={ alt+389=à alt+399=Å
alt+310=6 alt+320=@ alt+330=J alt+340=T alt+350=^
alt+360=h alt+370=r alt+380=| alt+390=å alt+400=É
ALT codeOutput ALT codeOutput ALT codeOutput ALT codeOutput ALT codeOutput
alt+401=æ alt+411=¢ alt+421=Ñ alt+431=» alt+441=
alt+451= alt+461= alt+471= alt+481=ß alt+491=δ
alt+402=Æ alt+412=£ alt+422=ª alt+432= alt+442=
alt+452= alt+462= alt+472= alt+482=Γ alt+492=
alt+403=ô alt+413=¥ alt+423=º alt+433= alt+443=
alt+453= alt+463= alt+473= alt+483=π alt+493=φ
alt+404=ö alt+414= alt+424=¿ alt+434= alt+444=
alt+454= alt+464= alt+474= alt+484=Σ alt+494=ε
alt+405=ò alt+415=ƒ alt+425= alt+435= alt+445=
alt+455= alt+465= alt+475= alt+485=σ alt+495=
alt+406=û alt+416=á alt+426=¬ alt+436= alt+446=
alt+456= alt+466= alt+476= alt+486=µ alt+496=
alt+407=ù alt+417=í alt+427=½ alt+437= alt+447=
alt+457= alt+467= alt+477= alt+487=τ alt+497=±
alt+408=ÿ alt+418=ó alt+428=¼ alt+438= alt+448=
alt+458= alt+468= alt+478= alt+488=Φ alt+498=
alt+409=Ö alt+419=ú alt+429=¡ alt+439= alt+449=
alt+459= alt+469= alt+479= alt+489=Θ alt+499=
alt+410=Ü alt+420=ñ alt+430=« alt+440= alt+450=
alt+460= alt+470= alt+480=α alt+490=Ω alt+500=
ALT codeOutput ALT codeOutput ALT codeOutput ALT codeOutput ALT codeOutput
alt+501= alt+511=(space) alt+521= alt+531= alt+541=
alt+551=' alt+561=1 alt+571=; alt+581=E alt+591=O
alt+502=÷ alt+512=(nothing) alt+522= alt+532= alt+542=
alt+552=( alt+562=2 alt+572=< alt+582=F alt+592=P
alt+503= alt+513= alt+523= alt+533=§ alt+543=
alt+553=) alt+563=3 alt+573== alt+583=G alt+593=Q
alt+504=° alt+514= alt+524= alt+534= alt+544=(space)
alt+554=* alt+564=4 alt+574=> alt+584=H alt+594=R
alt+505= alt+515= alt+525= alt+535= alt+545=!
alt+555=+ alt+565=5 alt+575=? alt+585=I alt+595=S
alt+506=· alt+516= alt+526= alt+536= alt+546="
alt+556=, alt+566=6 alt+576=@ alt+586=J alt+596=T
alt+507= alt+517= alt+527= alt+537= alt+547=#
alt+557=- alt+567=7 alt+577=A alt+587=K alt+597=U
alt+508= alt+518= alt+528= alt+538= alt+548=$
alt+558=. alt+568=8 alt+578=B alt+588=L alt+598=V
alt+509=² alt+519= alt+529= alt+539= alt+549=%
alt+559=/ alt+569=9 alt+579=C alt+589=M alt+599=W
alt+510= alt+520= alt+530= alt+540= alt+550=&
alt+560=0 alt+570=: alt+580=D alt+590=N alt+600=X

Friday, December 14, 2012

Android Virtual Device Failed to allocate memory: 8

I found the answer here:
http://stackoverflow.com/questions/7222906/failed-to-allocate-memory-8

Full error:
Failed to allocate memory: 8 This application has requested the Runtime to terminate it in an unusual way. Please contact the application's support team for more information.

fix:
Lower the amount of RAM allocated for the virtual machine.


Tuesday, December 4, 2012

Using Disk Part to fix broken USBs, unformattable!

I recently had a drive break on me.  It was a 4gb flash drive that was only showing 100mb, the drive was used as a boot drive.  The MBR was taking up most of the drive and compmgmt wouldn't let me delete partitions or format the whole drive.  Enter diskpart.
Thanks Shawn at sevenforums for these tutorials.  I have the diskpart portion here because I'm terrible using favorites, Shawn has the regular disk management listed on his site also.  Shawn, if by some chance you find this and you want me to take this down I will.

Update:
I recently went through this again because I had a disk that would show up in disk management as unallocated/not initialized.  I couldn't do anything to it through disk management.
Where it has you do list volume I changed it to list disk, this showed me the two available disks.
I then ran the following commands:

select disk # (enter the number of the disk you want to impact)
attributes disk clear readonly

This cleared any readonly attributes on the disk.  I'm not sure if this was entirely needed, I'm just writing down what I did based on stuff I found online.
I then ran the following commands:

select disk # (enter the number of the disk you want to impact)
create partition primary

This got me back to RAW and I was able to format through Disk Management.
 **Note: All hyperlinks will take you to the sevenforums tutorials, I just have the delete partition and create partition here for my own quick reference**
*****************************************************************************
original source: http://www.sevenforums.com/tutorials/2668-partition-volume-delete.html

Using Diskpart in a Elevated Command Prompt
1. Open a elevated command prompt, or a command prompt at boot.

2. In the elevated command prompt, type diskpart and press Enter. (See screenshot below)
Partition or Volume - Delete-cmd_delete_step1.jpg
3. In the elevated command prompt, type list volume and press Enter. (See screenshot below)
NOTE: This will give you a list of volume numbers to select from to delete.
Partition or Volume - Delete-cmd_delete_step2.jpg
4. In the elevated command prompt, type select volume # and press Enter. (See screenshot below)
NOTE: You would substitute # for the volume number listed that you want to delete. For example, I want to delete the listed volume 3, so I would type select volume 3 and press Enter.
Partition or Volume - Delete-cmd_delete_step3.jpg
5. In the elevated command prompt, type delete volume and press Enter. (See screenshot below)
NOTE: If it fails to delete, then use type delete volume override and press enter instead.
Partition or Volume - Delete-cmd_delete_step4.jpg
6. In the elevated command prompt, type exit and press Enter. (See screenshot below)
Partition or Volume - Delete-cmd_delete_step5.jpg
7. Close the elevated command prompt.

8. The selected partition (step 4) is now deleted and is now unallocated space on the disk.
NOTE: You can use this unallocated space to create a new partition with, or extend another partition on that same hard disk into it.
to format, follow steps 1-4 above, then

5. In the elevated command prompt, type create partition primary and press Enter. (See screenshot below)
NOTE: This will create a new blank RAW partition with selected disk (step 5) that contains the unallocated partition free space.
Partition or Volume - Create New-cmd_create_step4.jpg
6. In the elevated command prompt, type list volume and press Enter. (See screenshot below)
NOTE: Look for the volume number that has the same Size as from the Free space in step 4. For example, Volume 3.
Partition or Volume - Create New-cmd_create_step5.jpg
7. To Format the Partition or Disk as a NTFS File System
NOTE: This would be good for using with a HDD as an example.
A) In the elevated command prompt, type format fs=ntfs quick and press Enter. (See screenshot below)
NOTE: Having quick added at the end of the command will do a quick format instead of a full format on the new blank RAW partition (step 6) to make it a new partition.
Partition or Volume - Create New-cmd_create_step6.jpg
8. When it is finished formatting, type exit in the elevated command prompt and press Enter. (See screenshot below)
Partition or Volume - Create New-cmd_create_step7.jpg
9. Close the elevated command prompt.

10. The new primary partition has now been created. You can now see the new partition in Computer with a drive letter.
******************************************************************************


At this point the drive will be in the RAW format and will be accessible by Windows Computer Management.  You can format to NTFS or FAT32 if you wish and use the drive like you were before it broke.


Activating office 2010, domain controller

So this blog is going to be a bunch of generic windows stuff I figure out at work that I had a pain in the ass time finding online.  Maybe my google-fu isn't as good as yours, but this blog isn't intended for you.  Its a repository of random crap I learned, maybe a blog isn't the best for this, but I'll lose word documents.

Activating Office 2010 on domain.
This is what I have found as a solution:

1)      At the command prompt, type in cd\ to get back to a C prompt.

2)      Type in the following script (32bit OS installs):  cscript "C:\Program Files\Microsoft Office\Office14\OSPP.VBS" /act

For whatever reason I've had issues doing that path, so I cd down to the folder, one folder at a time because I'm an uber noob.
cd "program files"
cd "microsoft office"
cd office14 (since its one word you don't need quotes! success)
so you end up with
C:\Program Files\Microsoft Office\Office14>
Then you just type cscript ospp.vbs /act
Boom goes the dynamite
you'll get an output listing
SKU ID:
LICENSE NAME:
LICENSE DESCRIPTION:
Last 5 characters of installed product key:
<Product activation successful>
---------------------------------------
---------------------------------------
---Exiting---------------------------

I'm pretty sure my issue was with the quotes or not putting it into the command prompt, but I'll leave both ways on here.

ModuleNotFoundError: No module named 'torchvision.transforms.functional_tensor'

 I tried a couple things, downgrading, reinstalling, followed some github links talking about /usr/local/lib/python3.10/dist-packages/basics...