Monday, November 23, 2009

HATE IT

So check this out.

I want to pull items out of a sharepoint list. STANDARD. Oh wait, let's use OWSSVR.dll because it provides XML over HTTP.

Shit, how do I deserialize this? Let's look at the schema and see if we can generate proxy classes. Nope. Hmm ... okay, someone told me this is a serialize data set, let's read it in. Nope. Data Table? Nope.

Okay, okay, what is it. Let me try reading the xml. Let's use XPath to read the schema. The schema provides mapping between names that make sense to us, versus their internal names! Can't read the schema, as a matter of fact the namespace of the schema will ensure that. Hmm, okay, so I can't XPath this bitch. What can I do?

Oh, I found the schema this is, this is a serialization of a ADODB recordset. You motherfuckers. Alright, give me some sort of .NET implementation to read this. After all, this is SharePoint 2007. None.

As a matter of fact, every retard on the Internet is accessing this list through the internal name. OWS_TITLE. Good God! You're kidding me. Nope. We're all retarded, fuck mappings, who is going to read this besides other people like us.


Hey! Did you know there are ALREADY provided web services. How about we use that instead of this OWSSVR.DLL? Okay, I'll research it.

Oh wait, it's GetListItems, and it returns an XmlNode. Why not. OMG, it's full of whitespace, why are there just whitespace nodes. If I was using a XmlReader, I could turn it off. Why can I not turn it off??

Alright, fuck it, ignoring the whitespace let's just see my output. THE SAME AS THE OWSSVR?? If you're going to serialize it, at least ... have some fucking common decency for the people who need to deserialize it?


I am now going to write retarded code. Fuck you.


Fuck you SharePoint.

I FUCKING HATE HATE SHAREPOINT

Check this out.

I can't post the code, but I retrieve an SPListItemsCollection or whatever it's called.

Then I do a foreach across each item in the collection.

Shit, null reference exception. Where did it occur? It occurred during enumeration of that bitch. Weird.

Now what? Let me debug.

list.Count;

Oh yeah, everything's fine now. That makes perfect sense. What the fuck did they do? Lazy evaluate until they make a certain call?

Let's check.

Nope, reflector says that assembly is too brittle.

Fuck you Sharepoint.

Friday, November 20, 2009

Experiment!

I think I want to try to use visual studio, ONLY using my keyboard.

I bought a keyboard, it's thin, it's light and I hate taking my hands away from it. If I was using VIM, this would not even be an issue. VIM was built for this shit.

Visual Studio is not. I know what you're saying. You can do anything in VS with the keyboard. But I don't feel as though Visual Studio was BUILT for it. You know?

So what I'm going to do is do my entire quick project using ONLY my keyboard. There is a challenge though, this is the thin mac keyboard and it's missing the context menu. So I can't do any right-clicking of any sort immediately. So I'll have to find a shortcut for that. I've decided to make a blog about it. Anyways, here goes.

Part 1

Common needed shortcuts:
Solution Explorer: CTRL+W, S (makes sense)
Team Explorer: CTRL+\, E (makes less sense ... wouldn't CTRL+W, T be ideal?)
Right-click (SHIFT+F10)
Build: (SHIFT+ F6)
Build Solution: (F6)

Part 2:

(after you build with errors, the error window pops-up, you can either let it take you to the first error by using the directional keys OR:)
View Code: F7


There we go. Those are quite common.

Saturday, November 07, 2009

STUPID THINGS I HATE ABOUT MAC

  • Maximize button doesn't do what it intends. You also can't fucking tell when it's going to minimize/restore or turn into a mini player.
  • Eject button is not a hardware option
  • Scaling can only be down with the bottom right-hand corner. (well it makes a difference when you can't maximize)
  • Mice, just don't work as intended
  • The Finder is stupid. You can't modify the path. You can download an app to make it work like it should though.
  • You don't uninstall applications normally. I'd normally say I like this but then I installed some shit that went into System Update and there's no intuitive way to get rid of it.
  • iTunes sucks on any platform.
  • I had to buy display port adapters to output to either VGA or HDMI
  • Expose only has invocation shortcuts which interrupt other standard shortcuts