A website with info (in the form of a pdf from defcon,) and a zipped tool (Use at your risk) that allow you to bypass authentication on wireless networks by piggybacking an already authenticated user's Network IP and MAC address. Interesting read, just on the relative insecurities of these WIFIs... I mean, there is just a short step to move from this to packet surfing on these same networks. The flipside to this would be using this tool on an open network to sub your packets in parallel with an "innocent" user. With the children of "carnivores" in place in ISP's to monitor network activity, it is dangerous to surf, read email, post on usenets, etc if you are shady and have evil intent. With this, your shady activity points to Joe Sixpack surfing for porn.
http://pickupline.berlios.de/
Vector > del.icio.us/popular

An interesting article on Using google to find password files served up by a server, brought up an interesting thing that I never knew. I knew that servers could include a list of files that they want search engines to ignore. I didn't know that the filename was standard and could be searched for using Google, to see the directories and files that people don't want the search engines to see, but are nonetheless published:

Try it!

Edit: It doesn't work with Livejournal, in case you've chosen the "block robots and spiders from accessing your journal" option, and were about to write off to abuse complaining about how it is useless.

Sparklines

Jun. 24th, 2005 03:30 pm
This is a pretty neat little implementation of Python code. The idea is that you can feed a URI a bit of stats in a series, and it'll make a tiny graph to illustrate a point, for example, here it is at work with Bush's approval rating from November till now (The sparkline is the little gif to the left, it's being generated "on the fly" using source data that I'm feeding it in the "image tag.") Pretty slick, eh? (Or at least, it will be until his server crashes.) Fortuantely his page shows how you can implement the code yourself, so we'll probably see lots of things like this in the future.
Note to self:

Declaring a variable as equal to ""
Is NOT the same as declaring it equal to EMPTY
Regardless of the practices in the Microsoft KB.

This just caused me no end of grief at work.

Can I sue?
Since (for some reason) this gets purged from communities where it is posted,

How to set your journal to be "Opted Out" of the livejournal "latest" and "latest images" XML feeds.



Go to the admin console:
http://www.livejournal.com/admin/console/

Type:
set latest_optout yes

Click "Execute"

thanks to [personal profile] adcott for this first one:
last 50 comments you've received on your journal, and the last 50 you've posted elsewhere:
http://www.livejournal.com/tools/recent_comments.bml
link one journal user to a supposedly unrelated one, in a series of "hops" between friends ... not sure how you'd know who to put in the other box ... perhaps with the "latest" tool?
http://www.livejournal.com/tools/sixdegrees.bml
show the raw data used to create each and every external rss feed
http://www.livejournal.com/syn/raw.bml
show the image tags for the last fifty or so images posted on livejournal
http://www.livejournal.com/stats/latest-img.bml
search journals by interest
http://www.livejournal.com/interests.bml?int=name+that+tune
(one of my favorites) the latest posts to livejournal
http://www.livejournal.com/stats/latest.bml
a howto page on developing livejournal clients
http://www.livejournal.com/developer/protocol.bml
a list of posting protocols. (appears to be broken, at least on a mac)
(edit: attempts to access from PC, confirm that the feature is indeed, borked.)
this webpage makes it, well redundant
http://www.livejournal.com/developer/modelist.bml
another page linked off of the previous one, also doesn;t seem to work, would probably give info about the postevent mode, if it did...
http://www.livejournal.com/developer/modeinfo.bml?postevent
add "exampleuser" to your friends list
http://www.livejournal.com/friends/add.bml?user=exampleuser
see service request n.
http://www.livejournal.com/support/see_request.bml?id=166295
look at FAQ n. (this one is the "livejournal limitation" faq, interesting in its own right.)
http://www.livejournal.com/support/faqbrowse.bml?faqid=148
send a textmessage to a user, (if they have made that option available.)
http://www.livejournal.com/tools/textmessage.bml
show supported text message systems
http://www.livejournal.com/tools/textmessage.bml?mode=details
make a poll (if'n you've paid yer dues.)
http://www.livejournal.com/poll/create.bml
post via email
http://www.livejournal.com/manage/emailpost.bml
embed livejournal into a webpage
http://www.livejournal.com/developer/embedding.bml

livejournal's social contract with its users
http://www.livejournal.com/site/contract.bml
(limited) export of journal entries
http://www.livejournal.com/export.bml
manage site options (style layout, preferred language.) for example, here you can switch livejournal back to the "older" livejournal style.http://www.livejournal.com/manage/siteopts.bml
pull comment stats
http://www.livejournal.com/export_comments.bml?get=comment_meta&startid=0
log out of this or all sessions
http://www.livejournal.com/logout.bml
Log in
http://www.livejournal.com/login.bml
Calendar Month View
http://www.livejournal.com/view/?type=month&user=exampleusername
to do list
http://www.livejournal.com/todo/
meme tracker
http://www.livejournal.com/meme.bml
a list of the available mood types
http://www.livejournal.com/moodlist.bml
lost your password?
http://www.livejournal.com/lostinfo.bml
search livejournal
http://www.livejournal.com/multisearch.bml
news
http://www.livejournal.com/news.bml
public key encryption
http://www.livejournal.com/pubkey.bml
random livejournal
http://www.livejournal.com/random.bml
validate email
http://www.livejournal.com/register.bml
livejournal stats overall
http://www.livejournal.com/stats.bml
user info
http://www.livejournal.com/userinfo.bml
http://www.livejournal.com/userinfo.bml?user=exampleusername
browse by state
http://www.livejournal.com/directory.bml
activate/deactivate journal
http://www.livejournal.com/accountstatus.bml
show all user pics
http://www.livejournal.com/allpics.bml?user=exampleusername
list birthdays of all your friends
http://www.livejournal.com/birthdays.bml
change your password
https://www.livejournal.com/changepassword.bml
create a journal
https://www.livejournal.com/create.bml
search the journal directory by category
http://www.livejournal.com/directorysearch.bml
edit picture keywords
http://www.livejournal.com/editpics.bml
edit personal info
http://www.livejournal.com/editinfo.bml
pull friend data for a given user
http://www.livejournal.com/misc/fdata.bml?user=exampleusername


as of 3:38 pm, Livejournal is expressing the following moods.
Read more... )


currently playing:
Read more... )


and finally, in case you were interested, the VBA for "blatherizer" i split a few > 80 char lines, they should work, but if it bombs, email me and I'll help. -srz
Read more... )
I used to love the website blather. The concept was (and is, i guess,) cool. you put an entry in, and the system sorted it and linked each word in the entry to titled entries containing the same word. ie: you write the word "jesus" in an entry about frat boys, and the word "jesus" would automatically become a hyperlink to the entry about "jesus." When i found that i could pull and parse the latest.bml entries from livejournal, I began writing a tool that could "Blatherize" a journal entry... it groups words in sets of five, searches for the phrase, then in sets of four, etc, down to one. if it finds a match, say "nothing better to do" in any of the latest posts, then it makes a link to the entry. here it is at work on [personal profile] dagoski's latest post:
Read more... )
this is a macro to pull all the "lj:music" tags from the xml feed of livejournal's latest posts. requires an active internet connection. i'm working on a much more useless and far more complex thing using this feed, but i won't get into that now...

code below )
this is another vba program intended to go into my "vba portfolio"

this is a use of the concept expressed in [personal profile] adcott's journal. Specifically this post. Adcott is wicked smart. I've stayed as true as i could to the concept, using excel to calculate the three sine waves and vba to call the Windows API and drop the appropriate colors to windows. (watch for text wrapping, although i've used the teletype html tag, which should prevent it.)

how to use:
1) open excel, create a new workbook.
2) hit Alt-Function11 (this will open the Visual Basic Editor) (or tools>macro>macros>type auto_open in "Macro Name" and hit "create.")
3) paste all of the code below into the module.
4) "x" out of the visual basic editor
5) save the workbook

6) whenever you open the excel file, be sure to "enable macros." upon opening, the book will change the desktop colors to colors fitting adcott's original program. (since these colors are just dropped to the stack and not really called by any windows program, they won't stay after shutdown unless you go into the Desktop control panel and save them, so they are "volatile..." which is nice if you futz with the code and set all the rgb values for all the variables to zero or something equally as prankish. just reboot and anything funky disappears.) if you run this many times in a row, it will eat the stack space and windows will crash. DISCLAIMER: if you hit Alt-Tab in the middle of the API calls, you can crash some older windows networks. (REAL old networks, we are talking win 3.11 era here.) the chances of it affecting a modern network are slim to none, but i don't want to be blamed for any screwups.

BEGIN CODE!

' DONT TOUCH From Here to Below, !
' we are declaring objects that will control each aspect
' of the windows appearance GUI

Declare Function SetSysColors Lib "user32" _
(ByVal nChanges As Long, lpSysColor As _
Long, lpColorValues As Long) As Long


Public Const COLOR_SCROLLBAR = 0 'The Scrollbar color'
Public Const COLOR_BACKGROUND = 1 'Color of the background with no wallpaper'
Public Const COLOR_ACTIVECAPTION = 2 'Caption of Active Window'
Public Const COLOR_INACTIVECAPTION = 3 'Caption of Inactive window'
Public Const COLOR_MENU = 4 'Menu'
Public Const COLOR_WINDOW = 5 'Windows background'
Public Const COLOR_WINDOWFRAME = 6 'Window frame'
Public Const COLOR_MENUTEXT = 7 'Window Text'
Public Const COLOR_WINDOWTEXT = 8 '3D dark shadow (Win95)'
Public Const COLOR_CAPTIONTEXT = 9 'Text in window caption'
Public Const COLOR_ACTIVEBORDER = 10 'Border of active window'
Public Const COLOR_INACTIVEBORDER = 11 'Border of inactive window'
Public Const COLOR_APPWORKSPACE = 12 'Background of MDI desktop'
Public Const COLOR_HIGHLIGHT = 13 'Selected item background'
Public Const COLOR_HIGHLIGHTTEXT = 14 'Selected menu item'
Public Const COLOR_BTNFACE = 15 'Button'
Public Const COLOR_BTNSHADOW = 16 '3D shading of button'
Public Const COLOR_GRAYTEXT = 17 'Grey text, of zero if dithering is used.
Public Const COLOR_BTNTEXT = 18 'Button text'
Public Const COLOR_INACTIVECAPTIONTEXT = 19 'Text of inactive window'
Public Const COLOR_BTNHIGHLIGHT = 20 '3D highlight of button'
Public Const COLOR_2NDACTIVECAPTION = 27 'Win98 only: 2nd active window color
Public Const COLOR_2NDINACTIVECAPTION = 28 'Win98 only: 2nd inactive window color

Declare Function GetSysColor Lib "user32" (ByVal nIndex As Long) As Long

'END OF DON"T TOUCH

Sub Auto_open()
' concept from http://www.livejournal.com/users/adcott/340917.html
' derive a julian day from the date, and express this as
' a function of three superimposed sine waves
' each wave representing the respective rgb values in a RGB color
' each color would correspond to the respective season
' (in the northern hemisphere.) blues correspond to winter
' greens for springs, yellows are summer, orange and red for fall
' purples/blues back to winter again.


'red at zero, green at neg 365 blue at 365 produces the truest effect
'to adcott's original hypothesis
Dim jday1 As Date
Dim jday As Date
Dim redphase as integer
Dim bluephase as integer
Dim greenphase as integer
dim test as variant
dim black as integer
dim white as integer
dim red as integer
dim green as integer
dim blue as integer

redphase = 0
greenphase = 365
bluephase = -365



jday1 = Date

' uncomment the lines below for the ability to allow
' the user to enter the date
'jday1 = InputBox("Date?")
'test = IsDate(jday1)
'If test <> True Then Exit Sub
''''''''end of lines to uncomment.

jday = CDate2Julian(jday1)

red = Int(128 * Sin(2 * 3.14 * 6 * jday + redphase * 3.14)) + 128
green = Int(128 * Sin(2 * 3.14 * 6 * jday + greenphase * 3.14)) + 128
blue = Int(128 * Sin(2 * 3.14 * 6 * jday + bluephase * 3.14)) + 128
black = Abs(Int(blue * 0.1))
white = Abs(Int(blue / 0.1))

Select Case white
'don't let "white" get darker than 25% grey
Case Is < 190
white = white + 190
End Select

Select Case black
'don't let "black" get lighter than 75% grey
Case Is > 100
black = black - 100
End Select

'Titlebars
t& = SetSysColors(1, COLOR_ACTIVECAPTION, RGB(red, green, blue))
t& = SetSysColors(1, COLOR_ACTIVEBORDER, RGB(Abs(Int(red / 10)), Abs(Int(green / 10)), Abs(Int(blue / 10))))
t& = SetSysColors(1, COLOR_CAPTIONTEXT, RGB(white, white, white))
t& = SetSysColors(1, COLOR_INACTIVECAPTION, RGB(Abs(Int(red / 2)), Abs(Int(green / 2)), Abs(Int(blue / 2))))
t& = SetSysColors(1, COLOR_INACTIVEBORDER, RGB(Abs(Int(red / 10)), Abs(green / 10), Abs(blue / 10)))

t& = SetSysColors(1, COLOR_INACTIVECAPTIONTEXT, RGB(Abs(Int(blue / 0.1)), Abs(Int(blue / 0.1)), Abs(Int(blue / 0.1))))

'Button
t& = SetSysColors(1, COLOR_BTNTEXT, RGB(black, black, black))
't& = SetSysColors(1, COLOR_BTNFACE, RGB(192, 192, 192))
t& = SetSysColors(1, COLOR_BTNFACE, RGB(190 + Abs(Int(red / 10)), 190 + Abs(Int(green / 10)), 190 + Abs(Int(blue / 10))))

't& = SetSysColors(1, COLOR_BTNSHADOW, RGB(50 + Abs(Int(red / 10)), 50 + Abs(Int(green / 10)), 50 + Abs(Int(blue / 10))))
t& = SetSysColors(1, COLOR_BTNSHADOW, RGB(220 + Abs(Int(red / 10)), 220 + Abs(Int(green / 10)), 220 + Abs(Int(blue / 10))))
t& = SetSysColors(1, COLOR_BTNHIGHLIGHT, RGB(220 + Abs(Int(red / 10)), 220 + Abs(Int(green / 10)), 220 + Abs(Int(blue / 10))))
'Textwindow
t& = SetSysColors(1, COLOR_WINDOW, RGB(white, white, white))
t& = SetSysColors(1, COLOR_SCROLLBAR, RGB(red, green, blue))
t& = SetSysColors(1, COLOR_WINDOWTEXT, RGB(black, black, black))
t& = SetSysColors(1, COLOR_WINDOWFRAME, RGB(black, black, black))
'Background
t& = SetSysColors(1, COLOR_BACKGROUND, RGB(Abs(Int(red * 0.9)), Abs(Int(green * 0.9)), Abs(Int(blue * 0.9))))
t& = SetSysColors(1, COLOR_APPWORKSPACE, RGB(Abs(Int(red * 0.5)), Abs(Int(green * 0.5)), Abs(Int(blue * 0.5))))
'Menus
t& = SetSysColors(1, COLOR_MENU, RGB(190 + Abs(Int(red / 10)), 190 + Abs(Int(green / 10)), 190 + Abs(Int(blue / 10))))
t& = SetSysColors(1, COLOR_MENUTEXT, RGB(black, black, black))
t& = SetSysColors(1, COLOR_GREYTEXT, RGB(Abs(Int(red / 3)), Abs(Int(green / 3)), Abs(Int(blue / 3))))
t& = SetSysColors(1, COLOR_HIGHLIGHT, RGB(Abs(Int(red * 0.5)), Abs(Int(green * 0.5)), Abs(Int(blue * 0.5))))
t& = SetSysColors(1, COLOR_HIGHLIGHTTEXT, RGB(white, white, white))


End Sub

Function CDate2Julian(MyDate As Date) As String

CDate2Julian = Format(MyDate - DateSerial(Year(MyDate) - 1, 12, _
31), "000")

End Function


'END CODE.

nerd humor

Apr. 7th, 2004 05:04 pm
i was searching the net to find the "before save" event in vba and i came across this great exchange on the usenet. (edited to protect the innocent, and to make it less geeky.)


from humble nerd:

I no the subject sounds strange. Here's what I want to do:

Disable the "save" and the "save as" functions

Any ideas...?

--------------------------------
from codegod:

Utilise the BEFORE_SAVE event

Simply enter

CODE
If Range("X")="" or range("Y") = "" or range("Z") = "" then cancel = true

where X,Y and Z are your range references
Rgds, codegod
--------------------------------

from: humblenerd

I tried this:

Cancel = True

And nothing.

I also tried creating:

Public Sub
Cancel = True
End Sub

And called this from the worksheet but nothing.

Basically I need to disable the save and save as features unless certain cells are completed.

--------------------------------

from: codegod
As I stated in the 1st line of my response

Quote:

Utilise the BEFORE_SAVE event


This needs to go in the WORKBOOK module

Double click on the Thisworkbook in the projects window in VBE
Choose "Workbook" from left side dropdown
Choose "Before Save" from the right side dropdown
Put the code in there
Rgds, codegod

-----------------
from: humblenerd

Think I might have painted myself into a corner here.

I've got that script working a treat - just one snag.

I can't save it.

excel has really crappy password protection for worksheets. passwords you enter are re-hashed by the computer and truncated to 12 digit strings, a good password cracker, like the one featured here:

http://www.mcgimpsey.com/excel/removepwords.html

can undo any protection you've placed on your worksheets in about two minutes,

as an illustration of this, and as an equally stupid method of protecting a worksheet, the first macro takes a character string and converts it into a color range on a worksheet. the second macro reads that string and your inputted password, and tells you if you have it right, or in this case, close. it is possible to shake things up a bit, since this password can be any length, and the seed is varied based upon user entry as well. of course it is quite easy to see how large the password is, as long as you know that the colored range corresponds to the size of the password. decyption could get hard, especially if the main page is full of random colors, and if only the decryption macro is in the target workbook.


Sub Code2Color()
'turns a password into a range of colored cells.
'
inp2cde = InputBox("Enter codestring")
lenstrin = Len(inp2cde)
if lenstrin < 7 then exit sub
seed = InputBox("Enter multiplier")
Count = 0
For x = 1 To lenstrin
Count = Count + 1
str2cde = Right(inp2cde, 1)
str2clr = Left(str2cde, 1)
numval = Asc(str2clr)


numval = Int(numval / seed)

ColVal = numval
Range("I" & Count).Interior.ColorIndex = ColVal


Next x
End Sub

Sub Color2Code()
' compliment to code2color, turns a range
' of cell interiors into a password
success = 1
Count = 0

inp2cde = InputBox("Enter your code")
lenstrin = Len(inp2cde)
if lenstrin < 7 then exit sub
seed = InputBox ("Enter multiplier")

For x = 1 To lenstrin

Count = Count + 1
str2cde = Right(inp2cde, 1)
str2clr = Left(str2cde, 1)
numval = Int(Asc(str2clr) / seed)

ColVal = Range("I" & Count).Interior.ColorIndex

If ColVal = numval Then
success = 0
Else
success = 1
End If

Next x
Select Case success
Case "0"
MsgBox "yup"
Case Else
MsgBox "nope"
End Select
End Sub
i am post-happy today. post-happy!

this is geek heavy, so beware.

just had to add this, i got the strangest escalated mac call. the user was entering a payment amount in our website on an XML form, when he would type a value with a leading 2, he'd get an instant error fromthe "onchange" event, saying that invalid data has been entered. this happens normally on the site when a hard space is typed in. sometimes, other mac users using safari will get an error from the site that tells them that the "&" character isn't supported when they are typing only numbers. so i took a look at the page source, which says:

< ?xml version="1.0" encoding="UTF-16"? ><tr class="row0"><td class="rows_sched_pmts">PHILADELPHIA ELECTRIC CO<br />26-01-38-300835</td><input type="hidden" name="Payee2911947" value="PHILADELPHIA ELECTRIC CO" /><input type="hidden" name="UserPayeeID2911947" value="2911947" /><td class="rows_sched_pmts" align="right">


see that header declaration, utf-16...? that refers to multi-lingual unicode 16 bit standard. it is telling the form which characterset (language) to accept the entry with. older macs with the old motorola processor (pre g-3) support ASCII charactersets, or at the most, utf-8, the 8-bit unicode standard. what happens when utf-8 input meets a utf-16 form that doesn't know how to properly fall back? the data gets re-interpreted as ASCII. the utf characterset for the number two (the decimal number 50) is hex 0032, transmitted as &#32 by ASCII. (see the ampersand... explains safari's ampersand problem, but what about the "invalid entry...?") well, either the xml, or ie, or the server, is converting &#32 into the decimal value 32. and tries to make a characer out of it. if you convert 32 back into hex, you get... 0020. 0020 is utf-16's hex code for the hard space character. trippy.
performance review today, probably a raise as a result of it, and perhaps talk of schedule change and permanence of this programming position.

long work rant behind the cut )
another macro for an online resume of vba. this one is reversi in an excel worksheet, complete with three separate opponent AI's. this one needs a lot of cleaning up, it has a lot of spaghetti in it, but i couldn't get the logic worked out any other way. it needs some work in the "Invalid Move" department, and it also needs to detect an opponent's pass better, now i work out a pass by changing cell value in A1 from W to B manually. but i don't want to lose the code, so here it is:

more vba code )
[personal profile] dagoski spoke of a "game of life" last night, while we were all playing games to bring in the new year, he referred to it as a standard programming problem. i'd never heard of it. since you can't mention things like that around me without me going nuts, i had to look it up... the rules are here: http://www.tech.org/~stuart/life/rules.html

since i'm trying to build a portfolio of VBA examples for my SanFran job search someday, I thought I'd create my own solution. It's in VBA, and is under the cut. warning, only for the nerdy. Read more... )

geek joke

Sep. 21st, 2002 09:59 am
i just made it up.

did you hear the one about the C Programmer who turned down a date with a beautiful woman? He had to wash his hair.

987654321

Apr. 18th, 2001 09:25 pm
well, i'm not one for new years, or millenniums, or other madness relating to time, and yet i felt oddly compelled to celibrate UNIX time 987654321. (the 987,654,321th second from UNIX's inception on Midnight Jan 1st 1970 or Wed Apr 18 21:25:21 2001) So I toasted in the second that most closely imitates that famous Apollo countdown.

Perhaps I wanted to feel like I was celebrating a time that only a few others would bother to notice, sort of like making every second extra special, taking stock in a single moment with a select few people around the world, while the rest of the world sort of marched on in oblivion.

So i've created this journal, and i will start it out with not a bang, but a whimper. Gheesh, it's 21:50 already. Where does the time go?

Profile

saint_monkey

June 2017

S M T W T F S
    123
45678910
111213 14151617
18192021222324
252627282930 

Syndicate

RSS Atom

Most Popular Tags

Style Credit

Expand Cut Tags

No cut tags
Page generated Jun. 22nd, 2025 11:17 pm
Powered by Dreamwidth Studios