Hopefully this isn't a duplicate, but does anyone know of any (good) ORMs that work with SQL Compact Edition, and can run in the .NET Compact Framework (e.g. Windows Mobile 5-6.x)?
I'm doing a PHP site which displays code examples in various languages (C#, PHP, Perl, Ruby, etc.). Are there any PHP functions which add syntax coloring for these and other languages?
If not, I would at least like to find that one built-in PHP function which does syntax coloring for PHP code, can't find it anymore. Thanks.
I have read a few questions here where people say that PHP is not the 'best' language for web development compared to python, ruby.
What about PHP makes it have such a bad rep?
hi,
i have a web application in which i have a page named 'Data'.Many people will try to insert data into the table at a given time.So the reference no other than the primary key will get duplicated which should not be permitted.For inserting the data into the DB table, i am using a stored procedure in SQL.In my vb.net web application, i am using Business layer with enterprise library for calling the stored procedure.Now i want to lock the table for inserting so that when multiple user inserts, there wont be any complication.How can i do this?Please advice
Regards
I am using the following method:
set_browser_log_level 'off'
but my log level continues to include INFOs.
I am trying to suppress both logging and the "Last 4 commands" display for when my test enters a login password.
http://release.seleniumhq.org/selenium-remote-control/0.9.2/doc/ruby/classes/Selenium/SeleniumDriver.html#M000128
When you try to build git on Red Hat Enterprise Linux 3, you get an error:
In file included from /usr/include/openssl/ssl.h:179,
from git-compat-util.h:139,
from builtin.h:4,
from fast-import.c:147:
/usr/include/openssl/kssl.h:72:18: krb5.h: No such file or directory
Hi I have VS 2010 Ultimate installed on Win 7 Enterprise (32 bit). In my middleware I have some DLLS referred. If i try to build the solution, some of the DLLs are not getting recogninized and the solution will not build. The same solution builds fine on VS 2008. Any Idea why this happens?
On Windows, can we put different folders in 1 SVN repository?
Such as putting
c:\ror
c:\software projects\ruby
c:\js test
d:\peter_website
all in 1 SVN repository called code ?
which database should I use, if my application is going to be in multiple languages (including Chinese, Japanese etc)? In other words, is MySQL better or worse than Postgres to handle unicode etc? (these are the only two databases my hosting company has)
Also, which language is better for handling unicode? PHP or Ruby/Rails?
I am wondering if there's a way in CakePHP to nest multiple models in a form?
What I'm trying to accomplish is to make a form for creating Posts that will also contain fields for adding Images (separate model) that will automatically be connected to the created post.
Something similar to Ruby on Rails ** accept_nested_attributes_for**.
Hello all!
I´m developing a Book Trading System...
The user will input your Book to trading...
I already have a table tblBook with "all" existing books ...
So the user will select one book from that list and fill the book´s CONDITIONS and Edition...
So, what is a good Database design to tha case?
tblBook = All books
tblUserBook = All User Books
And making tblUserBook to inheritance tblBook?
Thanks
I am generating large PNG files from a Scala program. Currently, I am doing it the same way I would do it in java. I am creating a new BufferedImage and setting each pixel to the correct color. This works fine, but I am wondering if there are any good libraries for working with images in Scala? I am looking for something like Ruby's RMagick library.
While from version 5 on, Java provides many extremely useful features like annotations, enums, generics, etc., 1.4 is still in use in many enterprise projects. So I'm wondering what the chances are that you still have to work with 1.4, thus being forced to go without JPA, EJB3 etc. In your answer, please also state the branch of company you work for. Which are the reasons for not switching to Java 5?
Thanks,
Armin
I am teaching my friend how to program in C, he has no programming experience. He wants to learn C so that he can program different microprocessors. I have suggested he learn another language something like java or ruby so that he can learn basics before moving on to a language like C. Is this advisable or should i just teach him C?
hi all I have a regex defined in python/ruby/php that is like this
"(forumdisplay.php\?.*page=%CURRENTPAGE%)"
when I do it for java, I have to double escape that question mark to //?
like so:
"(forumdisplay.php\\?.*page=%CURRENTPAGE%)";
is there a function I can use to do that automatically? or would I need to change all my regexes over to work with the java regex engine?
thanks
Hi,
I'm working on making a website/web application that displays images every 5 or so minutes, kinda like a webcam. The images are uploaded to an SFTP server. How can I access those from the web? Does anyone have any recommendations for what to use as well? Right now I'm looking at PHP but have checked out javascript and ruby as well. Only the application needs to ssh to a predetermined place, not the users.
We have an enterprise web application that we are converting from english to Thai. One area that has got us stumped is on the issue of "access keys". We use the "Accesskey" attribute in IE to provide short cuts to our buttons. However, how do we do this in Thai? Does HTML and IE support unicode access keys and if so how?
Our application is IE specific, so any specific technology that IE uses is welcome.
Hi!
I am looking for an elegant way to get the OS version like: "Windows XP Professional Service Pack 1" or "Windows Server 2008 Standard Edition" etc. Is there an elegant way of doing that? I am also interested in the processor architecture (like x86 or x64).
cheers
I am currently writing a winforms application (C#).
I am making use of the Enterprise Library Exception Handling Block, following a fairly standard approach from what I can see. IE : In the Main method of Program.cs I have wired up event handler to Application.ThreadException event etc.
This approach works well and handles the applications exceptional circumstances.
In one of my business objects I throw various exceptions in the Set accessor of one of the objects properties
set {
if (value > MaximumTrim)
throw new CustomExceptions.InvalidTrimValue("The value of the minimum trim...");
if (!availableSubMasterWidthSatisfiesAllPatterns(value))
throw new CustomExceptions.InvalidTrimValue("Another message...");
_minimumTrim = value;
}
My logic for this approach (without turning this into a 'when to throw exceptions' discussion) is simply that the business objects are responsible for checking business rule constraints and throwing an exception that can bubble up and be caught as required. It should be noted that in the UI of my application I do explictly check the values that the public property is being set to (and take action there displaying friendly dialog etc) but with throwing the exception I am also covering the situation where my business object may not be used by a UI eg : the Property is being set by another business object for example. Anyway I think you all get the idea.
My issue is that these exceptions are not being caught by the handler wired up to Application.ThreadException and I don't understand why.
From other reading I have done the Application.ThreadException event and it handler "... catches any exception that occurs on the main GUI thread". Are the exceptions being raised in my business object not in this thread? I have not created any new threads.
I can get the approach to work if I update the code as follows, explicity calling the event handler that is wired to Application.ThreadException. This is the approach outlined in Enterprise Library samples. However this approach requires me to wrap any exceptions thrown in a try catch, something I was trying to avoid by using a 'global' handler to start with.
try
{
if (value > MaximumTrim)
throw new CustomExceptions.InvalidTrimValue("The value of the minimum...");
if (!availableSubMasterWidthSatisfiesAllPatterns(value))
throw new CustomExceptions.InvalidTrimValue("Another message");
_minimumTrim = value;
}
catch (Exception ex)
{
Program.ThreadExceptionHandler.ProcessUnhandledException(ex);
}
I have also investigated using wiring a handler up to AppDomain.UnhandledException event but this does not catch the exceptions either.
I would be good if someone could explain to me why my exceptions are not being caught by my global exception handler in the first code sample. Is there another approach I am missing or am I stuck with wrapping code in try catch, shown above, as required?
I am developing a distributed processing API in Java, Erlang and Ruby. What basic commands can I include from which I can build mapreduce, pipelining, and all the most used parallell algorithms on top of it.
I use Windows 7 x64, Qt Add-in 1.1.4, Visual Studio 2008 Team Edition.
Does not work on multiple computers ... reinstalling Windows, Qt Add-in or VS2008 does not help(
The error report says that an error in msenv.dll
Please tell us how to fix it.
If possible, of course.
Thank you!
What are some fun programming languages to learn and work with? I'm asking this for absolutely no practical purpose other than just to learn something new. So, what are some fun languages?
I already know Python and C# so those don't count (although Python would probably be the first language I'd recommend). I've spent some time with Ruby, but I don't really see anything that's a whole lot different from Python.
(and no, I'm not going to learn Intercal or Brainf*ck before you mention it)
I have worked with random functions in python,ruby, MATLAB, Bash and Java. Nearly every programming language has a function to generate Random numbers. However, these apparently random sequences are termed as pseudo-random number sequences as the generation follows a deterministic approach, and the sequence seems to repeat (usually with a very large period).
My question, can an algorithmic/programming process ever yield true random numbers ? The questions probably is more of theoretical computer science than just programming !
hi implementing an wcf service that executes scripts (C# code) saved in a specific folder.
but i have a problem it crashes in all pcs except the pc that im developing in all are the same edition of win7 . How ican see why it's crashing ?
the WCf service is hosted in a windows service
Hello all,
I am working with Visual Studio (2008 edition) for the first time. Used to programming in a Unix environment, I have become quite used to cscope and vim. For my current project, I really need cscope. I was wondering if there is any way I could use cscope on Visual Studio - or use cscope in Windows. Or if there is another tool which does this job ..
Thanks
Rahul