Any easy way to read all the columns in Matlab?
my format is
date time y1 y2 y3 y4 .........................
4/27/2010 00:3:09 34 45 45 56 ................
so on
currently i am reading these with the code
[c,pathc]=uigetfile({'*.txt'},'Select the data','C:\Data');
file=[pathc c];
data= dlmread(file, ',',…
So I am using Xcode 3.2.1 and am trying to make an iPhone OpenGL ES1 project. The default template for an opengl project is ok, but I have been trying to split the code up so not everything is done per frame on the drawView() call.
I have a seperate setupRC method that sets the lighting, turns on depth test, turns on culling and sets the clear…
Hello,
I am searching for a rails-based CMS that provide rich text editing feature (e.g. I need an interface very similar to that of Wordpress where you can easily style up your static pages and upload pictures without knowing any css or html) AND easy to be dropped into an existing rails application.
Camtose, RadiantCMS and few other ones did…
I have centered a div inside another div but want to left justify the contents of the centered inner div. How can I do this?
My current HTML looks like this:
<div style="border: solid 1px #ff0000;text-align:center;">
<div style="border:solid 1px #00ff00;">
<img src="/some_url_1/" style="width: 80px; height 80px;…
I got tapped to do some quick maintenance on a recently migrated Drupal site. I'm pretty new to Drupal, so hopefully the problem is something that more experienced guys will figure out quick.
Behavior is as follows. The public content works fine as far as I can tell. When I go to login, the login form renders correctly, but when I post the…
Imagine that we have two tables as follows:
Trades
(
TradeRef INT NOT NULL,
TradeStatus INT NOT NULL,
Broker INT NOT NULL,
Country VARCHAR(3) NOT NULL
)
CTMBroker
(
Broker INT NOT NULL,
Country VARCHAR(3) NULL
)
(These have been simplified for the purpose of this example). Now, if we wish to join these two tables on the…
Suppose there is a piece of JavaScript code that is supported by different browsers, for example IE and Firefox. Would the JavaScript parsers of the different browsers generate the same output (i.e., the same AST)?
I have a strange problem I've come across. My app can write a simple textfile to SD card and sometimes it works for some people but not for others and I have no idea why. Some people it force closes if they put some characters like "..." in it and such. I cannot seem to reproduce it as I've had no troubles but this is the…
We're about to embark on some ASP.NET MVC development and have been using our own entity framework for years. However we need to support more than our entity framework is capable of and so I'd like to get some opinions about using MVC with a more robust framework. We have narrowed down or choices to either NHibernate…
So using MATLAB's svds() function on some input data as such:
[U, S, V, flag] = svds(data, nSVDs, 'L')
I noticed that from run to run with the same data, I'd get drastically different output SVD sizes from run to run. When I checked whether 'flag' was set, I found that it was, indicating that the SVDs had not…
I'm building a little dialing program for my kids so that only 4 "safe" numbers are available for them to dial. I'd like to start the app, hand them the phone and have the app be the only thing running until they come back home.
Is there a way to keep the application running and prevent the iPhone from shutting…
I am trying to cast from a parent class to a child class but I get an InvalidCastException. The child class only has one property of type int. Does anyone know what I need to do?
I have looked for some explanation on the exact usages for the set of standards known as OpenSocial.
I need some clarification if I can use OpenSocial like the following.
I would like to create one library used to community with an OpenSocial api for use in my website that will not 'behave' like an application…
I have a pretty complicated index.php now, and I would like to only run it once every hour. What is the best way to achieve this? Some ideas I've had
Put it in APC with apc_store($page, 60*60*) - I feel this isn't what APC is for and will probably be doing something bad to the other parts of my site
Save the…
I'm trying to do some browser automation, but I'm having some problems. Basically, what I'd like to do is load a set pages, set some forms options, click a button and view the results for each page that I open. Originally, I tried to do this by placing the pages I wanted to automate in iframes and then using…
Hi,
In an iPhone application, I try to catch animation endings using setAnimationDidStopSelector. I try to suspend code execution until animation ends. I have tried this; set a global BOOL variable, set it to TRUE before commiting animation and after commiting animations waited using a while loop. In the…
I have a little internal DSL written in a single Python file that has grown to a point where I would like to split the contents across a number of different directories + files.
The new directory structure currently looks like this:
dsl/
__init__.py
types/
__init__.py
type1.py
…
I've a small project that I want to share with a few others on a machine that we all have access to. I created a bare copy of the local repo with
git clone --bare --no-hardlinks path/to/.git/ repoToShare.git
I then moved repoToShare.git to the server.
I can check it out with the following:
git clone…
I've got a set of data that has three attributes, say A, B, and C, where A is kind of the index (i.e., A is used to look up the other two attributes.) What would be the best data structure for such data?
I used two dictionaries, with A as the index of each. However, there's key errors when the query…
I wrote a WinForms app using .Net and C#. The app accesses DirectoryServices and SQL databases.
The new Win7 workplaces are not allowed to have local admin users and this app will not run.
How can I identify the actions in the app which need local admin rights?
This is a question which has been asked before (large-text-and-images-in-sql) but mainly for data which will be changed. In my case the data will be stored and never changed. Just seems sensible to keep everything together.
Are there any reasons why I should not store static binary data in a…
Hi,
I have a function, which is called sometimes with regular, sometimes dynamic arrays.
If I define the function as
function_name(int[10][10] a)
and send int** as a parameter, I get a warning. Opposite, if I declare
function_name(int** a)
and send int[][] as a parameter (after…