instruction_seed
stringlengths
1
35.8k
_source
stringclasses
1 value
There are often times when you know for a fact that your loop will never run more than x number of times where x can be represented by byte or a short, basically a datatype smaller than int. Why do we use int which takes up 32 bits (with most languages) when something like a byte would suffice which is only 8 bits. I k...
stackexchange/codereview
I have problem in sql The SQL Error You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '58.47 €'')' at line 1 The sql code: mysql_query("INSERT INTO ponudba (ime_ponudbe,zaporedna_stevilka,id_podjetja,veljavnost,znesek) VALUES('$...
stackexchange/codereview
I'm looking at options for providing Faceted Search functionality, admittedly not a specialty of mine. From what I understand, I think that this should be achievable quite nicely by using cubes in SSAS (another none-specialty of mine). Would this be a good direction to head? Is SSAS itself a good framework to use for a...
stackexchange/codereview
I am confused with the handling of the response of the server, when submitting an AJAX request. What I would like to do, is an update of a table by clearing it and inserting the new ones. The following code of the controller gives a resonse to an ajax request, triples is a list: def resultsAjax = { def triples = li...
stackexchange/codereview
I am having a Employee Table. From that i want to load the Employee Names in a List Box. I dont know from where i should start. Kindly guide me.
stackexchange/codereview
Is it possible to use the text-to-speech engine to send a message through a voice call? Like an answering machine. It's also possible to monitor an outgoing voice call to read out loud a text when the other point answers the phone? Thanks!
stackexchange/codereview
I'm using an XmlWriter to send an XMPP (Jingle) stream. The XMPP protocol replaces the an XML stream when it negotiates TLS which means the XML ends up like: <stream> <features> ... </features> ...TLS gets negotiated... <stream> ... </stream> The XML end up being not well formed because there are two stream st...
stackexchange/codereview
My C#-program should be by opening perform a powershellfunction, looks like this: function RunIE { $a = Get-ItemProperty HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion -name ProgramFilesDir $path = $a.ProgramFilesDir + "\Internet Explorer\iexplore.exe" & $path "www.heise.de" -extoff Start-Sleep ...
stackexchange/codereview
I am working on call one DLL api for C/C++ with JNA. The function API in DLL is short DKT_init(LPCSTR name). I made the corresponding java method as public short DKT_init(String name); But when I call it, the DLL API return a parameter error. I wonder how to map LPCSTR in JNA? As LPCSTR is cons char * but String is ch...
stackexchange/codereview
I'm trying to observe some data in my SQL server express 2005 like this: SqlDependency.Stop(connectionString); SqlDependency.Start(connectionString); using (var con = new SqlConnection(connectionString)) { con.Open(); var queryString = "SELECT [Name] FROM [dbo].[Persons]"; var command = new SqlCommand(que...
stackexchange/codereview
I'm a newbie to Ruby, I have a problem following the Poignant Guide to Ruby: Does this expression return true? 2005..2009 === 2007 But I don't know why I got this warning message from the following code wishTraditional.rb:4: warning: integer literal in conditional range code: def makTimeLine(year) if 1984 === year ...
stackexchange/codereview
I want to use linq to sql classes generated by VS or entitty framework, for Oracle databases, how can i do it?
stackexchange/codereview
I'm trying to reduce copy/pasting in our maven pom files. We have one master pom and many children projects pom inheriting from the master. I want to share a complex plugin definition looking like: <plugins> ... <plugin> <groupId>org.codehaus.mojo</groupId> <artifactId>appassembler-maven-plugin<...
stackexchange/codereview
for example. <html> <head></head> <body> <div> <h1>-----> hello! ----< </h1> </div> </body> I want to replace the > and < inside the h1 tag with the corresponding > and < which is the correct pattern? thanks in advance!
stackexchange/codereview
Whenever display text in an HTML document I always put it through htmlentities for a number of reasons. One of the reasons is that if the text contains HTML, I want the browser to display the HTML code, not render it. The application I am writing requires that I still encode using htmlentities but hyper links need to ...
stackexchange/codereview
What are the differences between reserved words and keywords in C++? Is 'main' a reserved word or a keyword?
stackexchange/codereview
So I have large blocks of text in my website, but right now the default in CSS is left, so all the text is aligned to the left. However, say I want to shift all the text to the right by 100 pixels. How do I accomplish this in CSS? (what kind of function should I add?) Thanks!
stackexchange/codereview
Is there a cross-browser way to get HTML of selected text?
stackexchange/codereview
How can I configure OpenEJB logging format? This is what what I see now in logs: [...] Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.011 sec Running com.XXX.FooTest Apache OpenEJB 3.1.3 build: 20101015-05:42 http://openejb.apache.org/ INFO - openejb.home = /code/XXX INFO - openejb.base = /code/XX...
stackexchange/codereview
I'm a longtime Java guy, and know that the way to run a JAR with a main class referenced in a MANIFEST.MF file within the Jar is easy: java -jar theJar.jar I was using this to start up the Fabric3 server (contained in bin/server.jar in its standard distribution). I noticed that when I unpacked it from the distribution ...
stackexchange/codereview
I'm browsing through some code and I found a few ternary operators in it. This code is a library that we use, and it's supposed to be quite fast. I'm thinking if we're saving anything except for space there. What's your experience?
stackexchange/codereview
I am asking a very basic question which confused me recently. I want to write a Scala For expression to do something like the following: for (i <- expr1) { if (i.method) { for (j <- i) { if (j.method) { doSomething() } else { doSomethingElseA() } } } else { doSomething...
stackexchange/codereview
I see this pattern everywhere in my code, and in libraries, yet there appears to be no name or abstraction of it that I can find anywhere. Example (pseudocode) T foo( T x, void f(T&) ) { T y = x; f( y ); return y; } Basically: Take a value, and a function that transforms that value. Make of a copy of the v...
stackexchange/codereview
How could I go about grouping the following? people.GroupBy(p=>p.Addresses.GetFirstOrDefault().State); without it failing on people who don't have an Address? can it be done in one statement? if not, do I have to first get a Distinct() list of all the various addresses members? How? (actually -- even if a is possible...
stackexchange/codereview
Let's say I have many items with click event (all have same element name and possibly same class). <a>A</a> <a>B</a> <a>C</a> <a>D</a> then I have method that is triggered on click event. How can I check number of the item that was clicked? In the example if 'C' was clicked then I should get 3 as an answer.
stackexchange/codereview
I'm animating a bunch of buttons so they move to the left of the screen then they should magically move to the right of the screen. I do this by calling: [NSTimer scheduledTimerWithTimeInterval:0.20 target:self selector:@selector(moveTheButtons) userInfo:nil repeats:YES]; in viewDidLoad. They animate quite happily to...
stackexchange/codereview
I want to use the LSM framework with kernel ubuntu 2.6.36. When I compiled the kernel module, it wrote: WARNING: "register_security " undefined! After a lot of googlings, I found the reason is that the register_security() symbol is no longer exported in the 2.6 kernel. So I added EXPORT_SYMBOL(register_security) in t...
stackexchange/codereview
I'm switching from SVN to Git with Gitosis installed on a central server for centralized repositories on Ubuntu server. I have had all my SVN repositories moved and initiated into new Git repositories, and also had all history moved to Git. Now that I have all the repositories migrated to Git, I want to add all the rep...
stackexchange/codereview
I used the old rest api for showing the Permission Dialog in Facebook before. Now, with the new graph API, what can I do? (I'm in IFrame Apps). I know that I can cheat and popup the permission in a seperate window: FB.login(function(response) { if (response.session) { if (response....
stackexchange/codereview
Is there a simple way of using zend routes and locales in the URL to force the loading of a particular locale? e.g. - http://domain.com/en-US/controller1/action So the language-Region should prefix all URL calls and just set the locale in the bootstrap but let the rest of the MVC routing work as normal. ideally it c...
stackexchange/codereview
I am trying to create an ACCESS DB at run time and register is as a DSN in ODBC.ini using the following code: BOOL fCreated; fCreated = SQLConfigDataSource(NULL,ODBC_ADD_DSN, "Microsoft Access Driver (*.mdb)", "CREATE_DB=.\\ATest.mdb General\0" ); printf("Database created : %d\n",fCreated); BOO...
stackexchange/codereview
Suppose I have a user control which datacontext is bound to a VM. This VM has a property for a list MyList. Inside this user control I have a ComboBox, I want to set following kind of xaml <Grid x:Name="LayoutRoot" Background="White"> <StackPanel HorizontalAlignment="Stretch"> <sdk:DataGr...
stackexchange/codereview
I have a XML string which needs to be displayed within HTML. I understand the first thing needed to be done here is to convert all '<' and '>' into '& lt;' and '& gt;' (ignore the space after & sign). This is what I am doing to replace '<' - regExp = new RegExp("/</g"); xmlString = xmlString.replace(regExp, '& lt;'); ...
stackexchange/codereview
Is it possible to build a static library, called, say, libA that: Contains code that calls upon classes from libB (not created by me, so I can't modify or access it); Will compile when put into an app that doesn't link to libB (naturally, it will crash if the code using libB's classes is called without libB, but I can...
stackexchange/codereview
I have been searching for the perfect web development IDE for some time now. I first started coding with notepad when all I wrote was HTML. Clearly, that was a relationship not meant to last. Eventually I discovered Notepad++ and the wonderful syntax highlighting that it does. However, I got frustrated when I started w...
stackexchange/codereview
I need to search for following search strings and replace it with a new value. string searchString1 = "#TEST1#"; string searchString2 = "#TEST1#AT#"; How do I achieve this using C#/regular expressions?
stackexchange/codereview
I have an array with 1653 lines like this: #define NUM_POLYGON_OBJECT_VERTEX 1653 * 3 static const float vertices[NUM_POLYGON_OBJECT_VERTEX] = { {{2.4f, 0.5f, 0.0f}, {0.0f, 0.0f, 1.0f} }, ... }; Which is the right value for NUM_POLYGON_OBJECT_VERTEX? Thanks UPDATE I don't have idea about programming with C and ...
stackexchange/codereview
I have a model with an encrypted field. So fields are encrypted and decrypted as they enter and leave the database. The problem: within the admin panel ?q='item' does not seem to find any rows ?field_name='item' does find them all!! Any ideas? :)
stackexchange/codereview
I'd like to get an array of the attributes for my NSManagedObject so I can use KVO to export them. I can create an array manually and then iterate through it, however, I'd like to get this list automatically, then iterate.
stackexchange/codereview
i have the following in my app-servlet.xml <mvc:annotation-driven /> <context:component-scan base-package="com.merc.myProject.web.controllers"/> <context:component-scan base-package="com.merc.myProject.web.forms"/> what ever I have in my controller package gets injected but the same thing in the forms package is alwa...
stackexchange/codereview
I've got a few select lists on my form which look a bit like this: <option value="400000" <?php if($_GET['MaxPrice'] == "400000") { echo("selected"); } ?>>&pound;400,000</option> As you can see (above) I've got a bit of PHP in there telling the form to remember it's selection upon submit. Is there a short bit of PHP t...
stackexchange/codereview
Does everybody know how to apply fullscreen exclusive mode for JavaFX desktop application? Because when application is running and some message appears on the screen (for example, network connection aborted), my application looses fullscreen mode :(
stackexchange/codereview
I've got a hell of a lot of Log.i Log.d Log.e in my code for a recent app I've done. I'm about to publish this app and I don't really want people seeing it when they plug there phone into adb, but I do want it there for my own debugging. I was wanting to extend android.util.log and just have a boolean switch in there s...
stackexchange/codereview
We've got an odd issue occurring with ColdFusion on BlueDragon.NET. Asking here because of the broad experience of StackOverflow users. Tags inside POSTed content to out BlueDragon.NET server gets removed, and we're not sure where in the stack it's getting removed. So for example if we post this data [CORE] Lesson_Stat...
stackexchange/codereview
I need to build a form that shows data is the following format: M(1 Nov), T(4 Nov), S(7 Nov) etc user 1 yes/no yes/no yes/no yes/no user 2 yes/no yes/no yes/no yes/no The yes/no will be represented by a check box and there will be Monday, Thursday and Sunday columns for each occurrence ...
stackexchange/codereview
I have a page ([LINK REMOVED]) that works completely well in FireFox and Chrome, but for some reason I am getting an "Object Expected" error in most, if not all versions of IE. The error occurs on the line $(document).ready(function() { //^ Error occurs here ^ ... } I am using jQuery Tools, which implements jQ...
stackexchange/codereview
I am using conditional where clauses in linq to entities as below Dim q = (From x In ctx.Product) If mySearchField = SearchField.ProductId Then q = q.Where(Function(y) y.ProductId = mySearchTerm) ElseIf s.SearchField = SearchField.ProductCode Then q = q.Where(Function(y) y.ProductCode = mySea...
stackexchange/codereview
i have a function that pulls URLs from various web resources. needless to say some are full valid URLS and some are relative as per the HTML of the page. below is my asp.net/ c# logic i derived for examining the URL and then generate a full usable URL from whats pulled from the site... I have have not looked at this co...
stackexchange/codereview
I finally decided to add some unit tests to my simple iPhone application. There is one thing that is kind of annoying and that is to have to include all dependencies in the test bundle. But, maybe I'm doing it wrong.. Do I really need to add all my dependencies (implementation files, frameworks) to the test bundle fo...
stackexchange/codereview
I'm using C# to log on a website. I have a helpful code sample for the C# bit, but it requires that I pass the PHP script the login parameters in a format similar to "username=myusername&password=mypassword". I don't know PHP nor do I have access to the script. Is there a way to deduce from the markup what parameter...
stackexchange/codereview
I have a fully functioning website with user accounts/profiles and admin area. I would like to integrate the Facebook login to my website. I have added the Facebook php sdk to my server. I now have (well, sort of) the Facebook login working on my website. My problem is that I am unsure if I should register the user aut...
stackexchange/codereview
So here is another z-index issue in IE7 I have ran into. I found an explanation of the problem else where but without a fix. When you have a positioned element with an inline z-index of 0, javascript doesn't return the correct z-index. If a z-index is set to the element in a stylesheet it will return that z-index inste...
stackexchange/codereview
I have some UISwitches inside UITableViewCells. However this table consist of multiple section. When scrolling down the table the newly created cells are sometimes updated with invalid switches which are not belong to the underline section also. The switch interchanging is not in not predictable order its just randomly...
stackexchange/codereview
It's there a simple way to create a dynamic customizable and administrable Web application using Google Maps and being able to draw routes, I mean, to draw vehicle routes or cycle routes maybe via XML?? Thanks!!
stackexchange/codereview
I use Ajax to load the #article content from the single.php into a page template where my filterable image navigation is. the content loads fine and the filter navigation works. but when i try to copy&paste the link into a new tab the deeplinking won't work. i figured out that the problem is the filterable navigation t...
stackexchange/codereview
In a sql stored procedure I see a block of sql that looks like this: SELECT @GenPlanGuid = GenPlanGuid FROM ACM.BeeBusiness WHERE BeeBusinessGuid = @BeeBusinessGuid There is no database named ACM, no linked server, no functions, nothing that is a subselect with an alias like this --> (select something from something) ...
stackexchange/codereview
I have a JSON result that has an array of messages: { "messages": [ { "message": { "for_user_login": null, "message_type": "normal", "twitter_in_reply_to_screen_name": null, "avatar_url": "http://a2.twimg.com/profile_images/82661470/marshallwithhatbig_normal.jpg", "cr...
stackexchange/codereview
I just finish to implement a generic skip list in C++ an I want to bring it an STL map-like iterator. The problem arise when overloading the "->" operator: it is required to return a reference to an iterator::value_type, which in my case is std::pair, with K being the key type and V the value type of my map-like contai...
stackexchange/codereview
I'm seeing multiple URLs returned by authenticating with Google LightOpenID Object ( [returnUrl] =&gt; http://ikeyless/account/login/ [required] =&gt; Array ( ) [optional] =&gt; Array ( ) [verify_perr] =&gt; [capath] =&gt; [identity:LightOpenID:private] =&gt; ...
stackexchange/codereview
I've been trying is to create a false entry into the browser (i.e. browserManager.setFragment("bb=1")) Then add a BrowserChangeEvent.BROWSER_URL_CHANGE event to the browser manager to catch it before it fully leaves the app. My popup would then allow the user to exit out of the app by using ExternalInterface.call("hi...
stackexchange/codereview
I have a bunch of JavaScript files that I would like to include in the page, but I don't want to have to keep writing <script type="text/javascript" src="js/file.js"></script> So is there a way to include all files in a directory (unknown size)? Can I do something like... $.getScript("js/*.js"); ... to get all the J...
stackexchange/codereview
string=string.replace(RegExp(filter[a]+" | "+filter[a],"g"),filter[a]) For some reason, this isn't affecting both the filter followed by the space and the filter with a space in front. Assuming the filter is ",", it would take the second side and only replace " ," rather than " ," and ", ". The filter is user-specifie...
stackexchange/codereview
I have the following code: $("#submenuSolutions").mouseleave(function () { $(".submenuRightCurrent").hide(); $(".submenuRightCurrent").removeClass("submenuRightCurrent"); $("#prasentRight").addClass("submenuRightCurrent"); $("#prasentRight").addClass("submenuRightCurrent").stop(true,true...
stackexchange/codereview
I have a matrix represented in PHP as an array: array( array('a','b'), // a | b array('c','d') // c | d ) and I have a second matrix represented in a similar way (here without inner arrays, but I don't mind adding them): array( 'e', // e 'f' // f ) I'd like to h...
stackexchange/codereview
I am trying to find a regex to limit what a person can use for a username on my site. I don't need to have it check to see how many characters there are in it, as another validation does this. Basically all I need to make it do is make sure that it allows: letters (capital and lowercase) numbers, dashes and underscor...
stackexchange/codereview
I am trying to get a good grasp of UDP on Android, so I am writing a small test program to set up 2 sockets on the same machine, send a packet and receive it. I thought it would be straight-forward, but something is going wrong. My code is: DatagramSocket server; DatagramSocket client; public void onCreate(Bundle save...
stackexchange/codereview
can any one tell me how and when setup and teardown functions are called in cppunit. Thanks
stackexchange/codereview
Check out this page using IE : http://search.twitter.com/search?q=%23testvoorklant You will find out the apostrophe is rendered as & apos ;! If I want to use these feeds in my website, how should I handle this problem? Regards
stackexchange/codereview
Can you share your thoughts how would you implement data versioning in PostgreSQL. (I've asked similar question regarding Cassandra and MongoDB. If you have any thoughts which db is better for that please share) Suppose that I need to version records in a simple address book. Address book records are stored in one tabl...
stackexchange/codereview
sorry for the unclear title but I couldn't come up with anything better. My dilemma is this: I have one InnoDB table in my database called "meetings" with the following structure: meeting_id (primary key, auto_increment) user1_id (foreign key pointing to a user_id in a table called "users") user2_id (foreign key point...
stackexchange/codereview
Somewhat new to C# but I have a major problem with getting these things to work because if my background worker is running a long process by using a method from another class, then that class has no access to the background worker in order to update the progress. For instance: private void bgWorker_DoWork(object sender...
stackexchange/codereview
I'm having problems deleting a file from a higher directory, I found this post and tried it but no luck....: gotdalife at gmail dot com 25-Sep-2008 02:04 To anyone who's had a problem with the permissions denied error, it's sometimes caused when you try to delete a file that's in a folder higher in the hiera...
stackexchange/codereview
I'm currently working on a Flex3/blazeDS/Spring/MySQL project. In this, some users needs to download some import logs. Problem is that given the singleton concept around spring, if 2 users ask for a download at the same time, the servlet responsible for export file creation may cross content between the 2 asked files. ...
stackexchange/codereview
My aim is to send a message from python socket to java socket. I did look out on the resource mentioned above. However I am struggling to make the Python client talk to Java server. Mostly because (End of line) in python is different from that in java. say i write from python client: message 1: abcd message 2: efgh mes...
stackexchange/codereview
i have to receive workorders from the database, specific for the user. The filter for all users is different, so one must do all order shipped to UK, ont all to 5 other countries, one does all the high value things, one does al the order which containt > 10 items etc. So, what i came up with this idea (shoot at it if y...
stackexchange/codereview
Is there any free available ListView based control for .NET CF that allows multiline text in items/rows? Regards
stackexchange/codereview
I'm coming to the end of my first MVC project, and I'm not overly happy with how I constructed my Model objects and I'm looking for some ideas on how to improve them. I use repositories for each DB table with Get, Save, Delete etc methods. The repositories use Linq2Sql for the DB access. I do mapping from the Linq2Sql ...
stackexchange/codereview
What are advantages of SQL Server2008+ TDE ( Transparent Data Encryption) over encrypting just database backup file (with a password)? Update: I am sorry - removed Oracle from this question (SQL Server TDE is for the whole database and encrypted data is stored in database). Encrypting is not difficult to organize usi...
stackexchange/codereview
I am using the Grails Spring Security Core Plugin to secure a certain action using the following annotation. @Secured(['IS_AUTHENTICATED_REMEMBERED']) This causes the action to redirect to my login page if the user is not logged in. Once they are logged in they are then redirected to the original action. How can I ad...
stackexchange/codereview
I need to stream a video in Safari for iPhone/iPad with the best possible quality. I created 2 video files: one in low-quality for slow 3G speed, one in hi-quality for WiFi broadband streaming. I noticed that some apps (YouTube for example) are able to detect if the mobile device is running by 3G or WiFi, and so select...
stackexchange/codereview
I have a BubbleSeries within a Chart. I bind data to the BubbleSeries and set a specific color to the bubbles. What I want to do is to iterate over all the bubbles and set each bubble's color to specific color depending on the value. My bubbles, two series: The gray bubbles should always be gray, but the blue bubbles ...
stackexchange/codereview
I have successfully rendered my test report using Winforms.ReportViewer in WPF app.... Now I want to removed 'default' parameter panel and build my own UI and pass the parameters programmatically. I see the example how to use ServerReport.SetParameters method. I just need to hide default SSRS parameters UI. SQL2008, C#...
stackexchange/codereview
I've just moved to web development and need to know how i can implement below requirement using asp.net and vb.net. I have three fields in a form which are filled by users. Based on these three values, i need to auto-populate the 4th field. I have planned to implement this in the following way Write a separate class ...
stackexchange/codereview
We need to scrape the body of blog articles for our system (it's legit, I swear - we have a training blog and we want to display the content in help dialogs inside the system). The blogs are written on a 3rd party platform that produces HTML like so: <div class="post"> <h3 class="title">Title content</h3> <div...
stackexchange/codereview
Several lines of code are worth a thousand words: I have three simple files: header.h, main.cpp, other.cpp ==== CODE BEGIN ==== // header.h #pragma once const void* p = 0; // main.cpp #include "header.h" int main() { return 0; } // other.cpp #include "header.h" ==== CODE END ==== When compiling th...
stackexchange/codereview
Here is my scenario - 1/ I have an ASP.NET MVC application running on my server, it uses Windows Authentication. 2/ There is different web application (written in Java) somewhere else that also uses Windows Authentication. In the Controller of my MVC application I need to grab some information from this other Web app. ...
stackexchange/codereview
Let's assume a snippet of testing code: Observable model = Class.forName(fullyQualifiedMethodName).newInstance(); Observer view = Mockito.mock(Observer.class); model.addObserver(view); for (Method method : Class.forName(fullyQualifiedMethodName).getDeclaredMethods()) { method.invoke(model, composeParams(method)); m...
stackexchange/codereview
How to integrate word document with Rational RequistePro. If i have document with 50 requirements and i want to put that word document in reqpro, will it generate those 50 requirements.If it does, how can i do that. Thanks.
stackexchange/codereview
I get this error from Saxon, Engine name: Saxon-PE XQuery 9.2.1.2 Severity: fatal Description: XQuery syntax error in #... (:return :) let $#: expected "return", found "let" Start location: 776:0 on this function declare function local:set-internet-type($req1 as element(ns0:req), $cate as element()) as xs:string {...
stackexchange/codereview
I have a drag and drop interface with JQueryUI, and when a user drags an element into one of its containers and drops it, I want to display some information about the selected item. $(document).ready(function() { $( ".element" ).draggable({snap: ".elementContainer"}); $( ".elementContainer" ).droppable({ drop:f...
stackexchange/codereview
I have two youtube rss feeds but I want the most popular feed to show the most viewed video at the top, how can I do this? http://www.youtube.com/rss/tag/channelname.rss http://gdata.youtube.com/feeds/api/users/channelname/uploads
stackexchange/codereview
in the "Known issues" at JScrollPane site, there's a: In Webkit browsers CSS must be included before Javascript i did that but sometimes im still getting (only in the first page, the index) some scroll problems, the scroll just disappears and after i refresh the page again its all ok my browser cache is empty so is...
stackexchange/codereview
Im trying to serialize a shape in Silverlight 4 using Newtonsofts Json serializer. The problem is as soon as I try serialize ANY object, my program breaks and I get the error "An unhandled exception of type 'System.StackOverflowException' occurred in System.Windows.dll" I really don't want to use the .Net one as its...
stackexchange/codereview
I was going through some posts in Stackoverflow on JPA and I read multiple places that JPA does not support interfaces. Can someone please share what it means in a real-world project. Does this mean we cannot annotate the interface?
stackexchange/codereview
I am developing a Spring (Java framework for server-side web-development)web application, which will respond to another client-side Java application(which uses socket communication) by a JSON object. At the same time, I'm working on both server-side and client-side Java applications. The problem is that I have a bunch...
stackexchange/codereview
My application uses the WPF MediaElement to play video (MOV files). This works well when playing on the Primary monitor but freezes when the window is moved to the secondary monitor. I have tried the following without success: Starting the application on the secondary monitor Swapping the primary & secondary monitors...
stackexchange/codereview
I'm using the SimpleViewer flash image gallery on a site, and it uses an XML file for information about the images it displays. For the site, I need to dynamically generate the XML, so I'm using a PHP file with a text/xml Content-type declared. However, for some reason when I access one of the GET variables in the $_GE...
stackexchange/codereview
this is more of a fundamental question at how apache/threading works. in this hypothetical (read: sometimes i suck and write terrible code), i write some code that enters the infinite-recursion phases of it's life. then, what's expected, happens. the serve stalls. even if i close the tab, open up a new one, and hit the...
stackexchange/codereview
I'm wondering is it possible to write program for windows phone 7 like this: I am talking with other person on the phone. I click the button in the aplication and it plays specific sound (e.g. from mp3 file) to the person i'm talking to, like I would play it directly to the microphone. Is it possible to play sound to ...
stackexchange/codereview
if it's like this,i think it's troubles.
stackexchange/codereview