I'm going to be starting a project soon that requires support for large-ish binary files. I'd like to use Ruby on Rails for the webapp, but I'm concerned with the BLOB support. In my experience with other languages, frameworks, and databases, BLOBs are often overlooked and thus have poor, difficult, and/or buggy functionality.
Does RoR spport…
I have a Delphi unit that is statically linking a C .obj file using the {$L xxx} directive. The C file is compiled with C++Builder's command line compiler. To satisfy the C file's runtime library dependencies (_assert, memmove, etc), I'm including the crtl unit Allen Bauer mentioned here.
unit FooWrapper;
interface
implementation
uses
…
No C++ love when it comes to the "hidden features of" line of questions? Figured I would throw it out there. What are some of the hidden features of C++?
So, i'm looking at the TekPub sample for ASP.NET MVC2 (http://mvcstarter.codeplex.com/) using DB4o and there are a bunch of templates to create controllers etc, the generated code looks like:
public ActionResult Details(int id)
{
var item = _session.Single<Account>(x=>x.ID == id);
return View(item);
}
…
var menuEnter = { 'color': hoverColor};
var menuLeave = { 'color': 'C0C0C0'};
new ('div#menu a.level1 span.bg', menuEnter, menuLeave,
{ transition: Fx.Transitions.linear, duration: 200 },
{ transition: Fx.Transitions.sineIn, duration: 500 });
I would like the active menu color to not be affected by the mouseleave var.
Thank you.
I have a WCF service hosted in IIS and want to gain access to the user the service runs as - not the caller. Is this possible?
I know about the aspNetCompatibilityEnabled, but that gives me the user calling the service, not the user the service is running under.
Hello,
I am trying to use the basic progress bar however I am unable to figure out the css/command to actually put some text inside the bar. I am using this progress bar: http://docs.jquery.com/UI/Progressbar however I am open to other ones if they are just as simple to implement.
I want it to display in the left corner some static…
I have been looking at this piece of code, and it is not doing what I expect.
I have 3 globals.
int x, y, *pointer, z;
Inside of main I declare them.
x = 10;
y = 25;
pointer = &x;
now at this point
&x is 0x004A144
&y is 0x004A138
pointer is pointing to 0x004A144
Now when I increment:
y = *++pointer;
…
I'm going to be starting up an Open Source project which is an XML based forms (as in HTML forms) engine written in .NET and was wondering what advice people could give on promoting open source projects.
With the CheckListBox in VB.NET in VS2005, how would you make it compulsory that at least one item is selected?
Can you select one of the items at design time to make it the default?
I have an ActiveRecord model class Foo that has_many Bar. I want to clone a Foo (to get duplicates of most of its attributes) and then modify its Bar instances.
This is a problem because cloned ActiveRecord instances share the same associated array; changes to one affect the other.
f1 = Foo.new
b = Bar.new
f1.bars << b
f2…
I'm starting to write code using Prototype coming from a jQuery background. Is there any chart that shows the prototype equivalent method to use in place of specific jQuery methods?
More specifically, I'm looking for a $('#my-id').prepend('some stuff') equivalent in prototype?
Hello (this is a long post sorry),
I am writing a application in ASP.NET MVC 2 and I have reached a point where I am receiving this error when I connect remotely to my Server.
Failed to generate a user instance of SQL Server due to failure in retrieving the user's local application data path. Please make sure the user has a…
I want to create a nice pagination in Jquery for a number of divs I have. EG:
<div class="container">
<div id="one">content</div>
<div id="two">content</div>
<div id="three">content</div>
<div id="four">content</div>
</div>
The number will not…
Two models (Rails 2.3.8):
User; username & disabled properties; User has_one :profile
Profile; full_name & hidden properties
I am trying to create a named_scope that eliminate the disabled=1 and hidden=1 User-Profiles. Moreover, while the User model is usually used in conjunction with the Profile model, I would…
Our (small to medium-sized) company is going to start enforcing an internet policy which everyone, including the team of 4 senior developers, will be subject to.
Amongst other things, this means that developers will not be able to access:
web based e-mail (Hotmail, Yahoo,
Googlemail)
instant messaging accounts (MSN…
I am trying to synchronise two tables between two databases. I thought that the best way to do this would be to use the DataTable.Merge method. This seems to pick up the changes, but nothing ever gets committed to the database.
So far I have:
string tableName = "[Table_1]";
string sql = "select * from " +…
I'm trying to drop a SQL Server database from .NET code. I've tried using the SMO classes but get an exception saying the database is in use.
Then I tried executing a query (opening a SqlConnection, executing a SqlCommand), along the lines of:
ALTER DATABASE foo SET SINGLE_USER WITH ROLLBACK IMMEDIATE
(pause)
…
How can you speed up the display of WinForms in C#?
I am finding that forms are being painted quite slowly, even if the window is being 'reactivated' (ie. switched to) after having been already loaded.
Other languages seem to be render forms a lot quicker.
Is there a way to speed things up? Using C# in VS2005.
Python 3 cleans up Python's handling of Unicode strings. I assume as part of this effort, the codecs in Python 3 have become more restrictive, according to the Python 3 documentation compared to the Python 2 documentation.
For example, codecs that conceptually convert a bytestream to a different form of…