instruction_seed
stringlengths
1
35.8k
_source
stringclasses
1 value
Sorry I couldn't come up with a better title, but it's kind of a convoluted question to begin with. I'm in the process of converting an access database over to the web, and I'm using linq to sql. In the access database, there is a SQL function that returns the top 3 records, ordered descending by # of individuals col...
stackexchange/codereview
Here's my problem: I'm writing a WordPress plugin that helps budding CSS authors see how css applies to their theme in real time. It's got a numer of nifty features, except one, which is pretty crucial in my mind. I want to allow them to click an element, see the full selector path to that element (that part is done)...
stackexchange/codereview
Given a textbox: <asp:Textbox runat="server" id="txtAddress1" /> This renders as something similar to: <input name="ctl00$mainContent$txtAddress1" type="text" id="ctl00_mainContent_txtAddress1" /> I don't think browsers autocomplete features recognise this name/ID as a field they can autofill, they are not standard r...
stackexchange/codereview
Hi We have built 2 web sites on MOSS 2007 which have many customizations on pages and many ajax web parts. Currently one of the sites is live and the configuration is as follows Web server Xeon 4 core processor 12 GB RAM 50 GB harddisk SQL Server Xeon 4 core processor 16 GB RAM 150 GB disk space Servers are deployed ...
stackexchange/codereview
I have been using ADO.net since 2002/2003 and most of the application I have developed so far use ADO.net (I do use business objects in my application but underlying data access is through ADO.net) Question: What is/will be next paradigm of data access technology assuming you are using .net framework and SQL Server? I...
stackexchange/codereview
I'm working on an Android widget which essentially places a button on the homescreen. The button uses a selector in order to show a default state and a pressed state. Each state has its own image, as you'll see in the code below. I already have code to change the hue of an image and return a new StateListDrawable for ...
stackexchange/codereview
I imported a java project(war file) to eclipse. When I tried to run it , I got following error : java.lang.Error: Unresolved compilation problems: The type List is not generic; it cannot be parameterized with arguments <User> Syntax error, parameterized types are only available if source level is 5.0 I tried to googl...
stackexchange/codereview
if i call a ajax request using jquery to an asp.net mvc controller action and inside that action an exception gets thrown, what is the best way to capture that and show something to the user. right now my loading image just goes on forever . . . . here is an example of my controller code: public ActionResult BatchAdd...
stackexchange/codereview
i made my own application in Android that use compass and accelerometer sensors to display the degrees of rotation and inclination of my device. I initialized all the listener and objects i needed (i followed some tutorials), and now i can catch the degrees as i wished. The problem is that the measures that sensors ret...
stackexchange/codereview
I change the bookmark in the url when the page is loaded. That way, when the user clicks the back button of the browser, the browser will not actually go back, but will instead change the bookmark. I can then detect the bookmark change and do something else as a reaction to the user pressing the back button. My problem...
stackexchange/codereview
How do you use NSCoder to encode and decode custom types? For example, how would you use NSCoder with an instance of "STATE" where: typedef enum { ON, OFF } STATE;
stackexchange/codereview
I have a page that's very image-intensive. This is by client request - it's a list of merchants with a logo for each one. The list is quite long (over 500), and yes - the client insists on displaying all of them. We do have an ajax typeahead search to help users find what they're looking for without scrolling, so it's ...
stackexchange/codereview
I am doing my dissertation project on NP-Hard Problems: I am going to implement various algorithms for problems such as the partition, the subset sum, the knapsack, etc and then compare the results, the running time, etc. Also, I am going to see what happens with the algorithms when you modify the problem (how does the...
stackexchange/codereview
Hey guys, I have a quick question. Does anyone know of any software that can help with understanding client-server logs? I have 3 huge logs of 1 server & 2 clients that are time stamped, but only if I could arrange all 3 of them in a UI side by side in a chronological order, it would be so easy for me to understand the...
stackexchange/codereview
I have two identical Moto Droids. Both are up to date (2.2). I have been using one of the phones for development for some time. I now want to install my app to the other phone but cannot get adb to recognize it. Platform: WinSvr2008R2 Eclipse with android pluig ins. USB debugging: on. Have verified both phones have th...
stackexchange/codereview
How can I see script errors for my python MIDI Remote Scripts in Ableton Live? I've seen references online to a hidden Python console, but no documentation on how to open it, if it would even help me! Currently I type code, reload the script, and see what happens. If nothing happens, then something is wrong. Very te...
stackexchange/codereview
Yahoo! released a security patch for all the applications using YUI. As Orbeon Forms uses YUI, how can I apply this patch on the version of Orbeon Forms that I am using?
stackexchange/codereview
I'm having an odd issue with whitespace in a design I'm building. I created a <div> to contain voting elements - it holds an upvote button, downvote button, and vote total, each inside their own <div> element, and using <img> for the buttons. Source: <div class="votebox"> <div class="vote"><img src="upvote.png" /></d...
stackexchange/codereview
I have 2 tabs in my application, when a tab is pressed an RSS feed is loaded and MBProgressHUB shows a loading spinner until the tab has finished loading and the view has appeared. However if the other tab is pressed whilst the tab is still loading, 2 MBProgressHUB spinners appear and then the app crashes. Is there any...
stackexchange/codereview
According to new article from css-tricks there is a big difference between how you select your elements because they are selected from right to left. The article can be found here. http://css-tricks.com/efficiently-rendering-css/ I am about to create a page that have different documents on the same page: My question is...
stackexchange/codereview
Ok, let me start this with I am more of an MVC person. I have a result set that I am trying to add paging. All I really want is a previous and next button on my page which are Link controls. I need these controls to post back to the same page, but have a query parm like page=4. How do I add these links? I see the ...
stackexchange/codereview
What is the easiest way to fire a splash screen (Which disappears on its own) in a C# / .NET 2.0 winforms app? It looks like the VisualBasic assembly (which can be called from C# nonetheless) has a way to do this, but are there any simple examples? Thanks
stackexchange/codereview
I am trying to decode JSON in php I sended using an ajax call in javascript (jquery). The javascript code: var editSchedule_data = { 'action' : 'editSchedule', 'eventid' : $('#eventid').val(), 'pixels_per_minute' :$('#pixels_per_minute').val(), artists: { ...
stackexchange/codereview
I'm working on a raphael based script that can rotate, resize, flip and flop an image. I've faced strange problem in IE: when the image with opacity is rotated on some angle and then is applied by matrix to perform flip, there are black areas on it. Image is rotated and flipped: http://cl.ly/12067d913b6ef423ae59 See bl...
stackexchange/codereview
I am using visual studio 2008, i included a class in the AppCode folder and wated to use its functions in ObjectDataSource.
stackexchange/codereview
Let's say I have a class Person: public class Person { public string Name {get; set;} public int Age {get; set;} } I would like to create some sample data in Blend to help me design my user interface visually. I choose to create sample data based on a class in Blend, but what I get is a sample Person - singul...
stackexchange/codereview
I need to keep a scrollview of size our view size,in that large scrollview again i have to keep six image views and six scrollviews.Please,can any one suggest something how to start with it.
stackexchange/codereview
Issue I merged a branch in a master not updated at last commit. What I do I merged a branch in master git merged BRANCHNAME Conflicts Automatic merge failed; fix conflicts and then commit the result. git commit -a -m "Resolved conflicts while merging email-fix branch" Then I tried to push all to origin master, but i...
stackexchange/codereview
I have a window with a source list sidebar at the right side and a content view on the left both inside an NSSplitView. When i resize the window, the additional space is distributed to the source list and the content view. How can i make the source list to maintain its fixed width. All Apple applications are doing this...
stackexchange/codereview
I've got a query that is pretty much the same as many others which are used in the same library... but I did a lot of copy&paste on the SQL to add features to each one which are all similar but slightly different. Just below is the section which gives me the SQL Parser error. It fires at the Set rs = line. dim sql, rs ...
stackexchange/codereview
I've been searching the web and I'm finding somewhat contradictory answers. Some sources assert that a language/machine/what-have-you is Turing complete if and only if it has both conditional and unconditional branching (which I guess is kind of redundant), some say that only unconditional is required, others that only...
stackexchange/codereview
hi i need to store the weird character in my database but when i am trying to do so the weird character is replace with unknown character. i am giving you one example when i am try to enter in Sönke Wortmann in database it is stored as Sönke Wortmann. i want to store above text as same as it was.please tell me how ca...
stackexchange/codereview
Here's what I'm trying to do. when the user clicks new note.. I want the user to be taken to a page when they can start typing a note, and save it to the server all with AJAX.. Problem is, every time the page saves, it's making a new note. This leads me to believe that when Rails gets the DEF NEW controller, some how I...
stackexchange/codereview
I would like a fairly efficient way to condense an entire table to a hash value. I have some tools that generate entire data tables, which can then be used to generate further tables, and so on. I'm trying to implement a simplistic build system to coordinate build runs and avoid repeating work. I want to be able to rec...
stackexchange/codereview
I'm maintaining a legacy application, and I need to find the documentation for the IDirectDraw::SetCooperativeLevel function. (No, the Windows CE MSDN page doesn't cut it.) It's not in MSDN, it's not in the latest DirectX SDK documentation, and by looking around Microsoft removed all DirectDraw documentation (and old S...
stackexchange/codereview
I have a table log with columns id, myValue, myCategory and myTimestamp. Suppose the table is filled like this: ID MYVALUE MYCATEGORY MYTIMESTAMP 1 10 1 2010-11-1 10:00:00 2 20 1 2010-11-1 10:03:00 3 15 2 2010-11-1 10:15:00 4 05 2 2010-11-1 10:19:00 5 30 1 2010-11-1 10:24:00 6 12 1 2010-11-1 10:30:00 ...
stackexchange/codereview
Is there way to run programs like spotify when my phone connects spesific bt device. I have bt stereo on my car and I want my phone start play music from spotify.
stackexchange/codereview
If I have any URL with an image file at the end, such as: http://www.google.com/image1.jpg http://www.google.com/test/test23/image1.jpg And I want to get: image1.jpg What is the best way to do this in C#?
stackexchange/codereview
We have a servlet project, which contains (among many other classes) an interface that we expose to users. Users can compile their own classes (in the form of .class files) that implement the provided interface, and place them in a folder that our project is aware of. When the servlet starts, it uses a URLClassLoader t...
stackexchange/codereview
I have a VS2008 web project with a EF1 datamodel. Now I have converted this to a VS2010 project with .Net 4. My question is about the Entity Framework. How can I see what version of EF it is. Or how can I make sure it is EF 4?
stackexchange/codereview
I'm trying to run the following code (it i simplified a bit): def RunTests(self): from threading import Thread import signal global keep_running keep_running = True signal.signal( signal.SIGINT, stop_running ) for i in range(0, NumThreads): thread = Thread(t...
stackexchange/codereview
I'm currently trying to use MSBuild to set up a project, and am having some issues with wildcards. I'm trying to use the following snippet: <Project ToolsVersion="3.5" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> <ItemGroup> <Xsd Include="App_Data\*.xsd"> <Generator>MSDataSetGenerator</Gener...
stackexchange/codereview
I have a GridView which selectively binds to one of two ObjectDataSources. I make the switch in the Page_Load by setting GridView.DataSourceID. One of the data sources has parameters which refer to ControlIDs which don't always exist. Even if it's not set as a DataSourceID, the data source tries to get the values fo...
stackexchange/codereview
I am doing an experimental project. What i am trying to achieve is, i want to find that what are the keywords in that text. How i am trying to do this is i make a list of how many times a word appear in the text sorted by most used words at top. But problem is some common words like is,was,were are always at top. Appar...
stackexchange/codereview
I'm a baby iOS developer. I really need help. I want to use three20 library in my project and I add this library correctly. but when I want to used it, I got a error. for example when I write this line on top of my classes : "#import "Three20/Three20.h" I got this error: Three20/Three20.h:No such file or directory Wh...
stackexchange/codereview
im using code igniter current version .I moved all the files to the live server i access URl as http://xxx:8084/application/ My class does not seem to load ,$this also does not work It stops executing before parent::controller ,i get call to a function model on non object
stackexchange/codereview
i am having an attribute of type String array. i have to get the values of that variable in javascript defined on same page to check its validation.
stackexchange/codereview
I have this contact form with codeigniter, and what I want to do is, when the form is submitted but does not pass validation, I want the fields to contain earlier submitted values. There's one thing though: when the form is loaded all the fields already have a certain value assigned, so for example the "name field" sho...
stackexchange/codereview
I have a universal binary iPhone/iPad app. The app icon appears correctly when I install the app on an iPhone4 and an iPad. However, when installed on an iPhone 3G, the icon is blank (gray). I've tried everything I can think of that might fix this issue and would appreciate suggestions. I followed the Apple icon guidel...
stackexchange/codereview
I am trying to add and use a program called JVLC to my program. I downloaded a zip file that contains a jar file(jvlc.jar) for java interface and 2 dll files (jvlc.dll , libvlc.dll) and a folder that contains many dll files. when I run my program an UnsatisfiedLinkError occurs. I used this code to add those 2 dll files...
stackexchange/codereview
Im trying to load some code from an external domian with js. with script tags the browser is (according to firebug) loading the file. This is the code: $('<script type="plaintext"src="http://www.google.de"></sc'+'ript>').appendTo('body'); You cann see after loading the content of the file in this case an html document...
stackexchange/codereview
I'm starting a new ASP.NET MVC 2 project, but unfortunately I'm a noob dev. Can you recommend a template I can use for my web site? It would be nice if the CSS supports stuff like 3 columns, 3 rows, with up, left, down and right parts being fixed size and the center auto sizing. Actually a clean CSS template would do t...
stackexchange/codereview
4 months ago, after many installations of sdk, qt, libraries, mameo etc. I realized that Qt simulator for touch devices only supports windows. We linux users could only use button based old phone sim. I'm in the forum.nokia site searching for and improvement for 20 mins. Couldnt find any related information.
stackexchange/codereview
I'm trying to convert a QVariantMap to Qt Script object. If I understood correctly it should go something like this: QScriptEngine* engine = new QScriptEngine(); QVariantMap* test = new QVariantMap(); test.insert("testkey", QString("testvalue")); QScriptValue testqs = engine->toScriptValue(test); QString value = testqs...
stackexchange/codereview
I've this simple Entities from DB tables But i want my POCO classes to be just two classes: public class Country { public string ID { get; set; } public string Name { get; set; } public string LocalName { get; set; } // this localized public string Region { get; set; } public IEnumerable<City> ...
stackexchange/codereview
I am having a bit of trouble adding/removing fields to/from an ExtJS form. My use case is as follows: Provide a set of radio buttons on the form. Depending on which radio button is selected, show a different set of form fields. I am not all that familiar with ExtJS, but what I am doing is caching the fields that are to...
stackexchange/codereview
I need some help positioning two nav elements (2 and 3) in a subheader (1). Please, refer to the mockup. I am really only concerned with positioning here. I want to position the daysNav (2) on the left, and opposite it, the paginationNav (3) on the right. It would also be cool if I didn't have to define a fixed heig...
stackexchange/codereview
I am trying to automate some big data file processing using python. A lop of the processing is chained , i.e script1 writes a file , that is then processed by script2 , then script2's output by script3 etc. I am using the subprocess module in a threaded context. I have one class that creates tuples of chained scripts ...
stackexchange/codereview
For a password protected site, is there a way to allow users to log in to the site multiple times as long as it's on the same computer (even in different browsers)? One way I have thought to do it is always send MAC address on login, but that's not available in browsers. Is there some other way of doing this?
stackexchange/codereview
After all the hussle about Rails 3, can I, after all, painlessly use DataMapper without almost changing my ActiveRecord code so that I could run my Rails at GAE without any bother?
stackexchange/codereview
Possible Duplicate: C# version of java's synchronized keyword? Is there an equivalent in c# to the java synchronized keyword for functions? I wish to synchronize a function rather than just a block...
stackexchange/codereview
I have set my base SDK to 3.0 but don't want my app available for iPad (3.2). How can I accomplish this?
stackexchange/codereview
I am creating a Text Editor Type app. I can have multiple editors open via tabs. In my first try, I used simple TextBoxes to edit text. Everything worked ok. Then I created a UserControl encapsulating the text box + buttons to perform text manipulation eg. bold/italic etc. I found out that when I open different tabs, t...
stackexchange/codereview
I have managed to cobble together the following script that moves files from one Samba share to another. It seems to work for all legal windows filenames except when there is a dollar character ($) in the filename. Typical filename it fails on is: ~$file.doc Any help would be appreciated. #!/bin/bash # Script to move o...
stackexchange/codereview
I'm trying to get my head around the usage of the factory pattern, when I wish to disable features within an application. Lets say for example I have a factory called LoggerFactory, which creates a logger instance. If in the configuration logging is disabled in my application: Should the logger factory pass back an ins...
stackexchange/codereview
I need to make a function that get all the properies of an object (including an children objects) This is for my error logging feature. Right now my code always returns 0 properties. Please let me know what I'm doing wrong, thanks! public static string GetAllProperiesOfObject(object thisObject) { string result = st...
stackexchange/codereview
We've using Caliburn.Micro on a new Silverlight project and everythings working great. The inbuilt conventions bind buttons click events to the viewModel, but I'm not sure what the best way to handle the selectionChanged event on datagrids and comboboxes is. At the moment, I'm binding to the selected item and calling c...
stackexchange/codereview
Error: Syntax error: end of file unexpected Below is the Code I changed. "#!/usr/local/bin/perl" The actual program is #!/local/perl5/bin/perl5.003 use Socket; $sockaddr = 'S n a4 x8'; $host = $ARGV[0]; $them = $host; $port = 79; print "Finger $host: \n"; $hostname = ``; `nslookup $host |grep Name: >> $test`; pri...
stackexchange/codereview
I've seen some code samples and tutorials that use def main(): # my code here if __name__ == "__main__": main() But why? Is there any reason not do define your functions at the top of the file, then just write code under it? ie def my_function() # my code here def my_function_two() # my code here # ...
stackexchange/codereview
In my Struts based application on eclipse, graphics animation on jsp page are shown in preview mode (both mozilla mode and IE) like I can click to button some text animation are display(like toggle effect) but on design mode button are not give any response. i am using jquery,css and js.
stackexchange/codereview
I have Foo.hpp and Foo.cpp, i'd like to define a virtual function virtual void setValue(int val){ } Would the following implementation be correct: Foo.hpp #ifndef _FOO #define _FOO class Foo{ public: Foo(); virtual void setValue(int val); }; #endif Foo.cpp Foo::setValue(){ } I realise it would be easier ...
stackexchange/codereview
in game search tree there are many algorithms to get the optimal solution, like minimax algorithm. I start learn how to solve this problem with minimax algorithm, the algorithm clear. but I'm confused about the tree itself, in games like tic tac toe number of node not very huge, but on others like chess there are many ...
stackexchange/codereview
I'm doing some kind of complex operation, it needs the last line(s) of code has completed, then proceed to the next step, for example. I need to ensure a file has written on the disk then read it. Always, the next line of code fires while the file haven't written on disk , and thus error came up. How resolve this? Oka...
stackexchange/codereview
I have two textboxes Num1 and Num2 and another textbox Sum having the value 10. How can I do this wherein if the user will enter a number for Num1, it will add it to Sum and dynamically change the displayed number in the Sum textbox. If the user will enter a number in Num2 it will also add that number to the updated nu...
stackexchange/codereview
I want to persist the user's location in the document he or she is browsing, then bring them back to that spot when they return from tombstoning or between sessions. My first approach was to wrap the browser component in a scrollviewer, but it turns out it handles its own scrolling and the scrollviewer never changes it...
stackexchange/codereview
I am trying to set the type of an application setting property to a custom enum type I have defined in my assembly (call this Project A) In the settings browser I click browse and am presented with the "Select a Type" dialog box. And the Types defined in Project A are not seem to be available to me. Yet types are avail...
stackexchange/codereview
I'm struggling to deal with my plot margins in matplotlib. I've used the code below to produce my chart: plt.imshow(g) c = plt.colorbar() c.set_label("Number of Slabs") plt.savefig("OutputToUse.png") However, I get an output figure with lots of white space on either side of the plot. I've searched google and read the ...
stackexchange/codereview
I am trying to build a Search with Pagination in Codeigniter and would love some help with it. So far, I've realized that I can not use BOTH url segments and query strings together. Using only query strings produces very ugly URLs. I understand that Codeigniter destroys the GET and I'm trying to put it back in. Ergo....
stackexchange/codereview
I have table with 20 to 30 rows and 3 columns. I would like to add fourth column with buttons or something in the cell that I can click on it. And onClick event I need to get info in which row has happened this click. Table is generated programmatically on the fly. Can this be done and I beg for some examples. EDIT ...
stackexchange/codereview
I created an app for android (only versions 2.2+) that makes use of the MediaPlayer to stream audio from the internet. It works flawlessly on the emulator. However, when running it on my device (Droid X), it won't play the music. Any ideas of what could be wrong? Here's the gist of the code. Note: this code runs in a s...
stackexchange/codereview
Im trying to get the direction of the vector pointing out of the camera, with respect to magnetic north. I'm under the impression that I need to use the values returned from getOrientation(), but I'm not sure what they represent. The values I get from getOrientation() don't change predictably when I change the orientat...
stackexchange/codereview
I'm a perl newbie. I have a code in which a variable is loaded with several values during a foreach loop. What I want to do is to perform some operation on that variable only if its in that array. What is the most efficient way to do this in perl as the data I am working on is very large. A simple example of my questio...
stackexchange/codereview
Do these two lines of code achieve the same result? If I had these lines in a function, is the string stored on the stack in both cases? Is there a strong reason why I should use one over the other, aside from not needing to declare the null terminator in the first line of code? char s[] = "string"; char* s = "strin...
stackexchange/codereview
hi guys i have a html form where i have a textfield which is having capabilities to enter two digits the first digit is autopopulated to be 0 and i donot want users to change that hows that possible using javascript or jQuery or anything else.
stackexchange/codereview
Unfortunately I need something thats not GPL'd
stackexchange/codereview
On various sites, jQuery's $ variable is referred to as an alias, and on others, it is referred to as a factory. I took a look at the source code, and I think the former is correct. As far as I can see, the dollar symbol is being defined here: // Expose jQuery to the global object return (window.jQuery = window.$ = j...
stackexchange/codereview
I am using caches_page in controllers, like so: caches_page :index Is there a way I can check in the view files whether the action is to be cached or not? Thanks
stackexchange/codereview
So, we're using SharePoint 2010. Site is accessed via https. In Central Admin -> Web App -> General Settings, RSS is enabled. When I go to Site Collection -> Site Settings -> Site Administration there is no link for RSS. What gives? I'm thinking this has to do with using NTLM vs. Kerberos. Any ideas? Thanks
stackexchange/codereview
The goal: create my first Grails project, in IntelliJ, with Maven support. Myself: Noob to Groovy/Grails, has some Maven experience but not too much The tooling: Groovy 1.7.5, IntelliJ 9.0.3 and Maven 2.0 What I've tried so far, is: File->New Project Create Module Maven Module Add & choose the Grails Archtype Right ...
stackexchange/codereview
I am attempting to make a ListView inside a table consume all of the available vertical space minus the space needed for an EditText control. I have set every attribute I can think of here to make it work: <?xml version="1.0" encoding="utf-8"?> <TableRow android:layout_width="fill_parent" android:layout_height=...
stackexchange/codereview
I've been looking at passing arrays, or lists, as Python tends to call them, into a function. I read something about using *args, such as: def someFunc(*args) for x in args print x But not sure if this is right/wrong. Nothing seems to work as I want. I'm used to be able to pass arrays into PHP function wi...
stackexchange/codereview
A certain blogsite allow its users to fully customize the entire html page of their blogg, change doctype and all, and they use tags for where they want the user to dipslay things like titlename and amount of comments etc. i.e this is code you can edit and submit under blog design settings: <tag:archivelist> ...
stackexchange/codereview
If I change the ItemsSource property of a ListBox while an item is selected I get IndexOutOfRange exception because SelectedIndex property is set when an item is selected. If no item is selected in the ListBox exception is not raised but even if I set the SelectedItem property to null before changing the ItemsSource th...
stackexchange/codereview
I'm looking to optimize pages within our application so they perform better. I want to dynamically add controls (Textbox, Button, Custom Control, etc) to a page using AJAX to minimize postbacks done. I'm looking for an alternative to using an UpdatePanel (nothing wrong with them, they're just not built for performance)...
stackexchange/codereview
I have some measurement object instances from a series of test runs stored in a test collection object. I also have some logic that can compare two test result object instances and tell me if they are "close enough". Where should this logic be placed? On the object as a method? Like: instance.approximately_equal(oth...
stackexchange/codereview
The following code causes a 'deprecated' error in PHP 5.3... Is there a substitute for it? $this->widgets[$widget_class] = & new $widget_class();
stackexchange/codereview
I'm trying to read a binary file into a C# struct. The file was created from C and the following code creates 2 bytes out of the 50+ byte rows. unsigned short nDayTimeBitStuffed = atoi( LPCTSTR( strInput) ); unsigned short nDayOfYear = (0x01FF & nDayTimeBitStuffed); unsigned short nTimeOfDay = (0x01F &...
stackexchange/codereview
I am struggling to find any decent links to design patterns, best practice or good, basic architectural principles that should be used in building Actor-based apps. Those few that I know of are: Blog posts, articles, WIKIs, guides OTP Design Principles User's Guide Patterns and Best Practices for Enterprise Integrati...
stackexchange/codereview
here is my sample code. i m checking the code for null user ID, still it is getting executed....! if (!IsPostBack == true && Request.Cookies["UserID"] != null) { string userID = Request.Cookies["UserID"].Value; myPageBL.GetFriendRequests(userID); // this can never be null, but is taking null ...
stackexchange/codereview
in the json.js file i am getting an error on 199th line 199: JSON = JSON || {}; error is, JSON is not defined Why is this happining?
stackexchange/codereview