Keep only ObservableCollections in the ViewModel and IEnumerables in the Model?
Does following this general guideline make any sense? I'm thinking this is the way to go because the models don't care about updating the View with the RaiseNotifyChanged.
There are a lot of articles about SVN vs. Hg in general.
I would like to concentrate only on performance.
Real-live experiences preferred.
Here is my set-up:
(future setup) Windows with IIS fro Hg
(current setup) SVN 1.3.2 on top of apache under windows
I would like to have statistics for most commons operations (commits, stats, local/remote pulls, pushes, etc...). I am not really sure what are the most common operations for Hg.
I'm looking for some general guidance as to how to return a user back to the original page they were viewing after trying to log-in.
The way I have the site setup now is that if a user visits the Store page, for example, and then clicks the login button in the upper right, the user is returned to the default landing page.
Any help would be greatly appreciated!
My Windows application GUI is accepting some required application configuration fields from the user. I need to store them of course, but I wanna hide these fields from the user.
I cannot use database to store these configs.
I want to avoid using app.config either. (No app.config encryption)
Any suggestions, Where and in which format i should store fields. (Field example is: Accepting database User credentials, Task Schedule info etc.)
On Single page the comment form of Text area is moves Forwarded with threaded comment. Please click on reply to have a look.
A wordpress site.
demo sites example :
http://dikkers.rtcamp.info/?p=205
Right now I'm building a project management app in rails, here is some background info:
Right now i have 2 models, one is User and the other one is Client. Clients and Users have a one-to-one relationship (client - has_one and user - belongs_to which means that the foreign key it's in the users table)
So what I'm trying to do it's once you add a client you can actually add credentials (add an user) to that client, in order to do so all the clients are being displayed with a link next to that client's name meaning that you can actually create credentials for that client.
So in order to do that I'm using a helper the link to helper like this.
<%= link_to "Credentials",
{:controller => 'user', :action => 'new', :client_id => client.id} %>
Meaning that he url will be constructed like this:
http://localhost:3000/clients/2/user/new
By creating the user for the client with he ID of 2.
And then capturing the info into the controller like this:
@user = User.new(:client_id => params[:client_id])
The weird thing is that EVERY other information BUT the client id it's getting passed and the client ID should be passed with the params[:client_id]. Any ideas? Perhaps it may have something to do with the fact that model User has "acts_as_authentic" because I'm using authologic for it?
Model:
class User < ActiveRecord::Base
acts_as_authentic
belongs_to :client
end
Controller:
def create
@user = User.new(:client_id => params[:client_id])
if @user.save
flash[:notice] = "Credentials created"
else
flash[:error] = "Credentials failed"
end
end
View:
<% form_for @user do |f| %
<p>
<%= f.label :login, "Username" %>
<%= f.text_field :login %>
</p>
<p>
<%= f.label :password, "Password" %>
<%= f.password_field :password %>
</p>
<p>
<%= f.label :password_confirmation, "Password Confirmation" %>
<%= f.password_field :password_confirmation %>
</p>
Let me know if this is sufficient or need more.
<%= f.submit "Create", :disable_with => 'Please Wait...' %>
<% end %>
I was recently asked "Do you know when to decide between going for more RAM or more servers?" (in the context of scaling data mining applications).
I had no idea, so what are some ways to decide? I have very little knowledge of architecture and scaling (my understanding of computer memory and what a server does is limited to the high-level basics), so tips on learning more about these things in general are also very welcome.
The command
hg outgoing
compares the local repo to the default push location; it accesses the push location to do it.
I'd like to ask the question "have I checked in changes in my local repo since my last hg push?" without having to access the remote repo.
It seems like there might be enough info in the local repo to figure that out; if so, is there a command to determine that?
Is there a way of joining results from 2 tables without using JOIN or SELECT from more than one table? The reason being the database im working with requires queries that only contain SELECT, FROM, and WHERE clauses containing only one distinct table. I do, however, need information from other tables for the project i'm working on.
More info: the querier returns the query results in a .csv format, is there something we can manipulate there?
Hello everyone!
I have an annoying problem with TabActivity. I have several activities in it and when I switch between them each of them gets recreated and loses all it's info Sad
I've tried using android:launchMode="singleTop" but no luck :(
Any clues?
Hi,
I' am required to convert a MATLAB function into C++, and this requires me to find determinate of a matrix. I was told that use of BOOST library would make my job easier. I went through the documentation of BOOST Library, but couldn't find much info about the same.
If anyone could give a template for the above operation, It would be of lot of help and would be greatly appreciated.
Thanks
Regards
I'm coding a 'Connect to Meeting' page where i would like the link that allows attendees to join our GoToMeeting event to 'become active' 15 minutes prior to the start time.
So the page users visit to see the connection info (meetingID, password) includes the start time of the meeting. I need a button ('Connect To Meeting') to change from inactive to Active when
[Now() < (StartTime()-15minutes)].
I recently filled out a form and when I got to the phone number textBox I noticed some really cool things going on. As I entered my number, general phone symbols were getting added automatically. Example:
I start entering my area code '555'
and my input was changed to 1 (555)
to test what just happened I backspaced on the ) and it quickly added it back in.
So my question is, how do I get this input to happen?
I have been looking into the possibility of creating a soft copy(image/EMF file) of everything printed from Windows - for archival purposes. Does anyone know if it is possible to create a hooking DLL that can grab the printed data in such a general way?
when i use firepython : http://code.google.com/intl/zh-CN/appengine/articles/firepython.html
to logging the python info.
it waring this log:
but i download the gprof2dot:
why it also show this log ?
thanks
In some cases [ [ UIApplication sharedApplication ] keyWindow ] returns nil;
In some devices it's reproducing is pretty often, but in general it's sporadicIs
Is somebody knows reasons?
Just started using mysqli. If I'm working with small data sets on small websites (traffic-wise), do I really need to use these all the time?
$result-close();
$mysqli-close();
also, for someone doing custom php & mysql work, without a framework, is mysqli the general preferred way of interacting with mysql?
Its common for the dataSource and
delegate to be the same object, its
also common for this object to be the
viewController.
In all the info/tutorials that I have seen online delegates are always setup as above. If I wanted to create my own class instead can anyone give me any pointers as to how I might do that. Where does that object get instantiated, how do you connect the dataSource and delegate items etc. I am using UITableView to test this.
The prototype of memset is void *memset(void *s, int c, size_t n);. So why the third parameter is of type size_t ? memset is just an example, I want more general reasons. Thanks in advance.
Hi,
just a general question,
do you ALWAYS have to handle error?
i was just having this debate with one of my coworker where in his code I see a lot places where stuff are wrapped around a try statement and in the catch statement there is nothing.
I always thought it is a bad practice to not handling error or hide them from the user (except log them in the log file).
just want to know what other people thinks
thanks.
How do I do the following in Perl in order:
a) curl a page and save it to a variable
b) parse the value of the variable (which is HTML content) for values I want (ex: the info is kept between tags like ... )