howto

How do include paths work in Visual Studio?

Visual Studio drives me crazy and I am suspecting I am doing something wrong. This is what I do: I installed Visual Studio (Pro '08) a long time ago, I installed the Windows SDK (Win 7 x64), someone emails me a project, it fails to build. Invariably, it can not find windows.h. While it is easy enough to include C:\Program Files\Microso...

How do I make menus like these?

So I'm looking at slickdeals.net and amazon.com, and I found something very intriguing. It's basic for most of you guys out there, but it's new to me. For slickdeals.net, when you click login, a login box pops up like so. Also for Amazon.com, when you hover over the left navigational menus, a new menu pops up! I think it's JavaScript, bu...

Where is gcc on OSX? I have installed Xcode already

I have installed Xcode from the Tool cd, I thought that would let me use gcc from the command line but I can't find it. What am I missing EDIT When I wrote I can't find it I meant "I look for it using which gcc" If gcc would have been in the PATH in first place, which would have find it. Since gcc is not in the PATH ( that's what...

How to update Xcode to install "UNIX Development Support" ?

I installed Xcode a long time ago. Apparently I didn't check back then the "UNIX Developemtn Support" checkbox. Now I want to have them bu when I click on the installation this is what appears: The UNIX Development Support check box is disabled Q. ¿How can I install the UNIX Development Support? Is there a way to run some script ...

any excellent Python 're' tutorial

I read through the official regular expression howto which wasn't gentle enough for me. Is there anything better/easier out there? ...

How to write a simple usb driver?

I make this treat because you are closing my other before i get my answer. Here is my answer clear and exactly what i want to do! I wanna create a usb driver, so my own C application be able to get into my flash drive and take information from the imported flash drive. OS: Windows Please don't close it again I still cant find my answer...

how do i do this

Input: Hi. I am John. My name is John. Who are you ? Output: Hi I am John My name is John Who are you ...

Choosing a Reporting Services parameter value based on the currently logged in user

Here's my situation. I have a Microsoft Reporting Services report that as a parameter takes a salesperson's name and shows them their sales across their territories blah blah blah. But, salesperson A should not be able to choose and view salesperson B's data. So, my thought was to get the currently logged in user from Reporting Servic...

How to perform a Linq2Sql query on the following dataset

I have the following tables: Person(Id, FirstName, LastName) { (1, "John", "Doe"), (2, "Peter", "Svendson") (3, "Ola", "Hansen") (4, "Mary", "Pettersen") } Sports(Id, Name) { (1, "Tennis") (2, "Soccer") (3, "Hockey") } SportsPerPerson(Id, PersonId, SportsId) { (1, 1, 1) (2, 1, 3) (3, 2, 2) (...

HOWTO rank items by balance in Ruby on rails

I am implementing a betting system and each user has a balance , how can i find a rank of a user using activerecord methods? thanks for your help. ...

How to use iPhone SDK Private APIs

I haven't found a comprehensive list of the steps that are required to use a private API from the iPhone Library. In particular, I would like to know how to get header files, if they are even required, how to get it to compile (when I simply add the header, it complains that the functions aren't defined), and what resources one can use ...

How can I perform a web query in C# similar to the Data > Import External Data > New Web Query in Microsoft Excel?

I need to pull data from a table on a website. I can easily do this in VBA using the Web Query, but I need to do this in C#. I'm just having some trouble figuring out how to properly convert the code. I got something close, but it's returning HTML with the data. I just want the data. Any help would be great. The block of code givin...

How to Read from LocalResources in class Global area

I have a class name xxxx and a resource whichthe class read from it to set some string. Everything is fine and nothing goes wrong. The problem is that I have some Constant Global String which I set them in global area like public partial class ExampleDocument : ClassBase { const string TheProblem = "I can not read this string from r...

Set list to shell script output in AppleScript

I have a shell script that outputs filenames (one per line). I want to put that output into a list in AppleScript. How can I do this? Bonus points for how to then turn those filename strings into file objects. EDIT: When trying this: set theFiles to {} repeat with i from 1 to count of filenames set end of theFiles to (POSIX file...

Get only regular files from a list of aliases in AppleScript

If I have a list of aliases, how can I either remove the ones that are not regular files or create a new list with only regular files. The main question is how to determine if an alias is a regular file. I tried this, but it's hacky and it doesn't always work (like with .app files). if (theFile as string) does not end with ":" then ... ...

There is a type named thread in lua. Does anyone know something of this?

I was reading the lua manual (looking for something) and I found out that there is a type named thread in lua. Of wath I read it represents independent threads of execution and it is used to implement coroutines. Here is the link to the place I read it. http://www.lua.org/manual/5.1/manual.html#2.2 How do I use these threads? Are there...

How to tell Finder to select/reveal multiple files in AppleScript

Using the following code: tell application "Finder" to reveal every item of theFiles Works when theFiles contains a single file, but when it contains multiple files, I get: error "Finder got an error: AppleEvent handler failed." number -10000 What am I doing wrong? I simply want to highlight a list of files in Finder. ...

aspectJ in IntelliJ

Hi, I want to write simple example using aspectJ in intelliJ. And... i can't. I can't find any tutorial that shows step by step what and how i should do. I can't find any example with working code. Can someone help me with this? Any link, or simple how to? One class with main, and one aspect. intellij 9.0.2, with aspectj weaver...

XSD: How do I import a data type from another XSD?

Hello, I have the following start of an XSD: <?xml version="1.0" encoding="UTF-8"?> <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:no="http://www.sychophants.com"&gt; <xs:import namespace="http://www.sychophants.com" schemaLocation="current_obs.xsd"/> ...and then some other definitions... <xs:element name="noI...

How to write a reusable code in cakePHP????

hello friends Can any one provide me some tips to write reusable code in PHP / CakePHP thanks in advance ...