What is the best way to interop with NHibernate 2.0 and ASP.NET 3.5? How can I easily develop a CRUD application?
Is the ObjectDataSource the way to go?
Thank you.
What is the best way to break up a recursive function that is using a ton of resources
For example:
function do_a_lot(){
//a lot of code and processing is done here
//it takes a lot of execution time
if($true){
//if true we have to do all of that processing again
do_a_lot();
}
}
Is there anyway to make the server only have to take the brunt of the first execution and then break up the recursion into separate processes? Or am I dreaming?
I have a simple Blog model with a TextFields.
What is the best way to save link ?
1) Saving link in the database in this form: http://www.example.com
and then using some filter in the template to trasform it in form:
<a rel="nofollow" href="http://www.example.com>http://www.example.com</a>
2) Saving link in the database directly in this form:
<a rel="nofollow" href="http://www.example.com>http://www.example.com</a>
Given a database table with lots of data in it, what is the best practice to remove noise text? I want to detect and remove strings like:
fghfghfghfg
qsdqsdqsd
rtyrtyrty
I'm using Java.
im using this sql query to create an index:
$query = "CREATE INDEX id_index2
ON countries(geoname_id, name)";
but how do i update the index when new entries are added?
should i run a php script with the update query in CRON and run it every night?
is this best practice for automated index updating?
I need to produce demonstration video screencasts for my iPhone app... I'm referring to those such as this one for the Reddit iPhone app (the one on the right, not the YouTube video).
I'm assuming the best way to do this is to record the simulator using a screen recording utility, does anyone have any other methods? What tools have you used successfully?
I need to create a section of our website where there is a main box of content with 3/4 smaller boxes (previews) underneath. Please take a look at http://espn.com for an example. They have a main top box for content and then it shuffles between the content previews below.
What is the best way to do this? We are using .NET framework.
Thanks in advance
What would be the best way to extract a column out of mysql results set? My result set is like:
[0] = ('id'=>1, 'name'=>a),
[1] = ('id'=>2, 'name'=>b),
[2] = ('id'=>3, 'name'=>c)
How can I extract 'name' column as an array from this? I can do it using for loop. But wondering if there are any better reusable solution?
I want to make a news portal(php) with minimum mysql force.
:create a cron, fetch data from mysql and write to a php file . (I dont know is it right way)
But Can I use xml instead of php file? Write mysql data to xml.
Is this a secure way? What is the best way? XML or php file?
Thanks in advance
Within my site I have controller specific CSS files in addition to my master css file. For example
CSS/
Prodcuts/
product.css
...
Blog/
blog.css
...
masterStyle.css
Where masterStyle.css is the master css file. What I want to do is when the user hits http://www.example.com/Products/ only mySite.css and all css files under Products get included. What is the best way to go about doing this?
What would be the best way to store additional information outside of active directory? I will be utilizing AD authentication as well as WIndowsTokenRoleProvider but I will also need to store some additional information about a user that will be used for authorizations purposes.
This is a ASP.net application with a SQL backend, I am looking for suggestions or perhaps some articles that can provide direction.
Hey, my problem is as follows,
I am trying to create code where a set of sporting fixtures are created with dates on.
Say I have 8 teams, with 7 rounds of fixtures.
I have generated the fixtures, but want to add a date generation on them.
So if i had 7 rounds, I would put 28 days and it would make each round 4 days from now, 8 days from now, etc.
What would be the best way to go about doing this?
Thanks
Suppose I have a class
public class Foo
{
public Bar { get; set; }
}
Then I have another class
public class Gloop
{
public List<Foo> Foos { get; set; }
}
What's the easiest way to get a List of Foo.Bars?
I'm using C# 4.0 and can use Linq if that is the best choice.
My first thought was something like
Can anyone recommend a language, library, framework or book which focuses on GUI programming from the perspective of a web developer?
I have experience in web development, for example HTML/AJAX/PHP/MySQL among similar technologies. However, I have never programmed my own back-end, or any kind of standalone program. Does anyone have experience making this transition, and what would I best study to help make the leap from the browser to creating programs with GUIs (primarily for Windows)?
Hi,
I am using the JQuery load function to load part of my page. Can I access the variables from that page in the page that loads it. e.g.
Page A uses JQuery load function to load B
Page B loads and sets a variable in context called pageB_var which holds a django object
Page A can then access this variable by doing {{pageB_var}} since it was added to the context
If not what is the best way of doing this?
Thanks
Hi all
I have a text file like below
2 1 2
5 10 13 11 12 14
2 0 1
2 99 2
200 2
1 5
5 1 2 3 4 5
1 0
0 0
I want to read file line by line, and read the umbers from each line. I know how to use the stream to read a fixed field line, but what about the non-fixed line?
Best Regards,
I have been reading that direct access to a SQL Server database over the Internet is insecure, so I am wondering what intermediary I can and should use between the client and the server. What are the best practices in terms of security and performance?
I have some of the basic coding down for the program but I do need assistance with something. My goal is to have an alarm go off on multiple PC's in a network indicating that a certain task needs done. Anyone who receives this alarm may stop it, complete the task and log that they did that. What would be the best way to accomplish this in a network? But not every computer in the network will be running this program, just a few.
Apple doesn't offer promotional codes for in-app purchases. What's the best way to let users try the features or content unlocked by in-app purchases for free, while complying with Apple's Developer Guidelines?
Examples of apps that worked around this limitation would be much appreciated.
I need to provide a C++ application as a service. Client of the service and the service can be on the same machine or distributed on different machines based on the load. This application takes a ~2KB string as input and returns almost similar size of string after some processing. Turnaround time for the client should be really quick. What is the best mechanism to implement this?
i want to design maker/ checker module in my project like if user A add new user so the another User B will approve or reject this adding. i want to know the best practices of design for this module in the database ....... any help
I don't know how to make a link_to because I'dont have a nouveau_message_path in rake routes
rake routes :
GET /nouveau_message/.:id {:action=>"nouveau_message", :controller=>"messages"}
routes.rb :
controller :messages do
get 'nouveau_message/.:id' => :nouveau_message
end
What is the best way to make a link_to to nouveau_message from another view ?
Thanks
Is this iteration the best?
(Pi^2)/12 = 1 - 1/4 + 1/9 - 1/16 + 1/25 etc.
-For converging faster?
If not please answer with the iteration -preferably in the form above (an example) -not a splat of algebra ...
I'm doing this to find Pi to 1,000,000,000 places online.
Hi everyone,
I make bigger inserts consisting of a couple of thousand rows in my current web app and I would like to make sure that no one can do anything but read the table, until the inserts have been done.
What is the best way to do this while keeping the read availability open for normal, non-admin users?
Thanks!