Pure Chat looked great but it was discontinued. Damn.
Any other great chat programs for ASP.NET? Looking for one that can be used in Operator Help mode.
If you use dynamic pages like JSP or asp.net, you can have your page template included, and then content added. But what if you have no server-side component and all pages are just HTML/JS? You can of course create a template then copy it for each page, but then if you want to change something you risk having to modify every page, even if you put most styling in CSS properly.
Are there any non-awful ways to do this? I could see that an iframe could be used to load the content into the central page but that sounds nasty. Does HTML provide any way to include a base file and add to it?
Could someone recommend a good and inexpensive software synthesizer which generates really good piano sound (sample-based); support for other instruments is not required. OS: Windows or MacOS. Java interface would be a great asset.
I am developing a WPF application that will hook into a SQLLite database and I have a number of reservations around multiple users:
When I install my application should I assume that each windows user account will mean only one user of my application or should I include a login for my app (drawback is that the user will have to log in all the time)
If I am supporting multiple users how do I handle a new user account i.e. on application start of the new account should I set up a new user in the DB
Are there any other gotchas around this area, it isn't something I have really had to worry about before.
Thanks in advance,
B
Howdy,
I need to be able to print from my wpf application. I am just trying to print a transaction receipt.
I have found that using
PrintDialog pDialog = new PrintDialog();
pDialog.PrintVisual(new Receipt("transaction name","my store"), "documentTitle");
Does the trick very nicely. "Receipt() is a usercontrol that renders out the transaction details.
How are you meant to do this? is this the correct way? what do I do if I dont know the printer that is going to be used? should I make the usercontrol only as wide as a thermal receipt printer?
Any suggestions would be great!
I'm building my website ( http://tedxgramercy.jit.su ) with express.js and so far I've been using the http.request method in node to access couch, and that's been cool. I've learned lots about how http, couch, and node work, which is awesome. Anyways, I'm thinking of moving over to cradle now (Let me know if you have a strong opinion about this) and I'd like to know the "right" way to set this up.
Should I...
require() cradle and make a new connection to my db in each separate route?
create my database connection once, and then just pass that connection by require()ing the connection in each route? (if so, how do I do that?)
Thanks!!!
I need to have a trial period (7 days) in my application. From this I came to know that you can do that by keeping permanent file, database or shared preference.
Where do I keep that file so that the user isn't able to see/delete it.
If I put that logic in Sharedpreference or a file with a path "data/data/packagename", when the application is uninstalled then all history will be lost.
Any other workaround/ideas?
Note: there is no server, application works locally with no Internet.
I'm looking for a pre-built solution I can use in my RoR application. I'm ideally looking for something similar to the ASP.NET Forms authentication that provides email validation, sign-up controls, and allows users to reset their passwords. Oh yeah, and easily allows me to pull the user that is currently logged into the application.
I've started to look into the already written pieces, but I've found it to be really confusing. I've looked at LoginGenerator, RestfulAuthentication, SaltedLoginGenerator, but there doesn't seem to be one place that has great tutorials or provide a comparison of them. If there's a site I just haven't discovered yet, or if there is a de-facto standard that most people use, I'd appreciate the helping hand.
I've come across Netbeans but is there any tools out there that lets you build things event driven ?
I'm looking for a feature like being able to drag and drop UI components, and add methods to buttons directly by double clicking it (kinda like visualbasic) and viewing the source.
im using sqlalchemy, and i have a few polymorphic tables, and i want to sort by a column in one of the relationship.
i have tables a,b,c,d, with relationship a to b, b to c, c to d.
a to b is one-to-many
b to c and c to d are one-to-one, but polymorphic.
given an item in table a, i will have a list of items b, c, d (all one to one). how do i use sqlalchemy to sort them by a column in table d?
Properties seem to be a powerful feature of Subversion. The manual provides some interesting examples of using them. But how do YOU use this feature in your projects?
Hi everybody,
I'm planning to implement an Android application that requires a login screen.
If the user opens the activity something like this should happen:
If user is logged in, goto 3
If user is not logged in open the login screen and perfom login
Show my application content
So, what's the "correct" way of implementing a login?
Implement a StartActivity that perfoms the check if the user is logged in, implement a LoginActivity that implements the logging and an ApplicationActivity that actually implements the application logics?
Implement just one Activity and handle the login by using multiple views which I show according to the application state?
Are there any examples or tutorials for this scenario?
Basically i want to keep the transaction very simple but i should be able to rollback if any error in the later part.
Something like mentioned below,
BEGIN TRANSACTION
DELETE SET 1(this will delete first set of table)
COMMIT
DELETE SET 2 (will delete second set of table)
If any error occurs while deleting set 2 i should be able to rollback set 1 transaction as well.Let me know if we have any options to do like this. Appreciate for your help.
Hi,
I'm having an interview for an internship in the coming days and would like to know if there are any books that are particulary suited for preparing interviews. The interview is not particulary hard, just some questions about .Net and C# plus an algorithm to code. I tried C# in a Nutshell but it goes in too much detail for what I want to achieve. I'm more looking for a good yet small book that explains the important concepts of the .Net framework and C#, I already know the details, just want formal explanations so I'm confident when answering.
Thanks :)
for example i want to generate html code, using some data from database.
here is two ways of printing data
<? echo '<li><img src="'.$row['image'].'" /></li>';?>
or
<? echo "<li><img src='$row[image]' /></li>";?>
both of them are working. and if so, why people use the first method, if without spliting the row by . it works fine too.
thanks
So due to a recent act of stupidity and bravado, I uttered the words "backups! who needs backups?!" and what followed was the tragic loss of 260gb of data.
This scenario in particular is requiring me to recover a repartitioned hard disk, but I was wondering what tools people here use in general to recover lost data.
I'm sure everyone has been there, either accidentally rewriting files, resaving an old version, computer crash, hard disk death, user deletes an important document etc. So was thinking it might be an interesting point of discussion as to what you guys use to recover lost data.
I appologise if this is considered irrelevant, but considering there has been a few recovery questions, I think this might be interesting.
This question is rather agnostic than related to a certain version control program.
Assume there is a source code tree under certain distributed version control. Let's call it A.
At some point somebody else clones it and gets its own copy. Let's call it B.
I'll call A and B branches, even if some version control tools have different definitions for branches (some might call A and B repositories).
Let's assume that branch A is the "main" branch. In the context of distributed version control this only means that branch A is modified much more actively and the owner of branch B periodically syncs (pulls) new updates from branch A.
Let's consider that a certain source file in branch B contains a class (again, it's also language agnostic). The owner of branch B considers that some class methods are more appropriate and groups them together by moving them inside the class body. Functionally nothing has changed - this is a very trivial refactoring of the code. But the change gets reflected in diffs. Now, assuming that this change from branch B will never get merged into branch A, the owner of branch B will always get this difference when pulling from branch A and merging into his own workspace. Even if there's only one such trivial change, the owner of branch B needs to resolve conflicts every time when pulling from branch A. As long as branches A and B are modified independently, more and more conflicts like this appear. What is the workaround for this situation? Which workflow should the owner of branch B follow to minimize the effort for periodically syncing with branch A?
So I keep having this small problem where I have something like
func :: a -> b -> [a] -- or basically any a-> ...-> [a] where ... is any types ->
func x y = func' [x] y -- as long as they are used to generate a list of [a] from x
func' :: [a] -> b -> [a]
func = undefined --situation dependant generates a list from each element and returns it as one long list
should I keep it like this?
should I use func' hidden by a where?
should I only use the [a] - b - [a] version and leave the responsibility of passing [variable] to the callee?
I might well need to compose these functions and might want to mess around with the order so I'm leaning towards option 3. What do you think?
I have a site which has an area that requires authentication. Right now I use the roles attribute on all the controllers in that area, and I run a query to retrieve that users ID, and all their settings.
It seems like a code or design smell to me that I am retrieving the userid and settings each time a controller in that area loads up? I'm not sure if I should be using sessions, or if ASP.Net MVC 2.0 provides some unique way to handle this. Another concern is security.
Overall, I don't really know which way to turn. Design wise I would like the userId and settings retrieved only once when the user logs into the area. Right now I grab the userId each time a controller loads up, and then if required, I query the database for their settings each time as well.