Hi,
In F# I have a function that returns System.Linq.Expression instances:
and System.Object with
member this.ToExpression() =
match this with
| :? System.Int32 -> Expression.Constant(this) :> Expression
| :? System.Boolean -> Expression.Constant(this) :> Expression
| :? Tml.Runtime.Seq as s -> s.ToExpression()
…
My final goal is to write the program which can run on the Unix OS. I know that there are many Unix versions, and don't know exactly for now which one I need to support. I cannot install any Unix OS right now. The only thing I can do is to use free OS which is close to Unix as much as possible. Is FreeBSD a good choice for this? I know that there…
Let's say I am writing installation script for the program which contains executable file and shared library. By default, this script places executable to /usr/local/bin, and shared library to /usr/local/lib. In this case my program may be executed by any user by typing its name in the command line.
Suppose that user selects custom installation…
I'm trying to get my contact form to not spill its contents out of the parent div when I resize the viewport. How can I go about doing this? I have used float clearing to prevent this as I understood it was supposed to be used, but it isn't working.
What should I do to fix this?
here is the page in question.
also I have a similar problem…
Recently at a job interview I was given the following problem:
Write a script capable of running on the command line as python
It should take in two words on the command line (or optionally if you'd prefer it can query the user to supply the two words via the console).
Given those two words:
a. Ensure they are of equal length
b. Ensure they…
I need a good memory profiler for .net, it would be ideal if it shown types of objects currently loaded in memory. Usually I use DotTrace but it does not seem to show object types.
I use a script for my homepage but I'd like to localize it. Furthermore the CSS uses images from a special folder which does not fit to my folder hierarchy.
Because I don't want to adopt these paths and settings I'll have to modify the original sources.
Currently my repository looks like this:
/3rdParty
/CompanyA
…
My jCarousel (on the left) randomly scrolls to the next one, but only halfway, leaving all the others out of sync.
Does anyone know how to fix this? It just started happening randomly (though I do get my list items dynamically).
I've tried margins, paddings, heights, etc.
Hello,
I have a table valued function to perform full text search on SQL server.
The result type of my full text search function in LINQ is a special autogenerated type which includes KEY and RANK in addition to my regular domain object properties.
So, if my regular domain object is PERSONS (with properties FirstName, LastName…
I have some data files that should be distributed with my program. Using dist_pkgdata_DATA in Makefile.am, I get these files installed to /usr/local/data/share/package-name. The problem is that data is read-only, and my program needs to modify it. Playing with dist_sharedstate_DATA, dist_localstate_DATA, dist-data_DATA varibles,…
I have a UIView called activityView, which contains two subviews activityIndicator and cancelOperationsButton. These views are embedded in a XIB and wired up to my view controller.
I have two methods that deal with activating (showing) and deactivating (hiding) these two subviews:
- (void) enableActivityIndicator {
…
Hi i'm launching activity from preferences screen. Activity is shared among three preferences.
I wonder if i can set extras for this activity in xml
<Preference
android:key="action_1"
android:title="@string/action_1_title"
>
<intent
android:action="com.package.SHAREDACTION"
>
…
I want make a function which takes a list of string and a string and returns NONE if there is no string in the string list, otherwise it returns SOME of the list of string which is the same as the original list of string except it doesn't contain the initial string (pattern):
fun my_function (pattern, source_list) =…
Hi,
I am attempting to model a worklfow using a "WCF Workflow Service" in .net / vs 2010 that needs to handle out of order execution gracefully (but not allow it - if thath makes sense!?)
For example I have 2 receive activities one called Initialize and the other called GetValue inside a FlowChart.
In most cases…
Lets say I have the following code (the array* function are what we use for resizable arrays and they operate on pointers-to-arrays that are null initialized):
typedef struct MyStruct
{
int i;
} MyStruct;
MyStruct* GetNewMyStruct(int i)
{
MyStruct* s = malloc(sizeof(MyStruct));
s->i = i;
return…
I need to separate multiframe tiff files, and use the following method:
public static Image[] GetFrames(Image sourceImage)
{
Guid objGuid = sourceImage.FrameDimensionsList[0];
FrameDimension objDimension = new FrameDimension(objGuid);
int frameCount =…
I'm currently using FORM based authentication in glassfish v2.1 to log users in and it works fine. I want to switch to ProgrammaticLogin and I want to be able to get the initially requested URL (i.e. before redirecting to login page) and use it in my programmatic login code so that…
The name pretty much says it all. Right now I'm using Squirrel - it crashes frequently and suffers from memory problems (I've tried increasing the heap size). I don't need anything particularly fancy or full-featured - just something that won't take up 2.4 GB of RAM to store a…
I have an asp.net application and webservices (asmx) that reside in the same application but not in the same folder of the aspx files. I aslo have a winform application that uses the webservices. I have marked the webservice methods with [WebMethod(EnableSession = true)] but I am…
new_user = User.objects.create_user(r_username, r_email)
I created a user. Now I log him in. But how?
loggedin_user = authenticate(username = r_email, password="!")
loggedin_user = authenticate(username = r_email, password="")
loggedin_user = authenticate(username = r_email)
…
was to convert several thousand MP3 files, and get this for some files:
ffmpeg -t 45 -i "public/system/musics/files/2009/original/03_Memphis.mp3" -y "memphis.mp3"
FFmpeg version 0.5-svn17737+3:0.svn20090303-1ubuntu6, Copyright (c) 2000-2009 Fabrice Bellard, et al.
…
I have read a few questions about an app doing it through the info file but not a certain view.
I just need the interface to be set up to start in landscape view.
I managed to get near what I want with shouldAutoRotateToInterfaceOrientation:, but it only works after…
I'm looking to create emails, mainly HTML, based on templates -
I'd really like to do something like:
Set up my template, as an HTML (or
similar) file
Include tags, that are then replaced with specific data (kind of like mail-merge....)
I've seen this:…