instruction_seed
stringlengths
1
35.8k
_source
stringclasses
1 value
I am trying to create a customisation to our existing software, which launches on this event. I need to be able to catch the window.onbeforeunload again once the user has made their choice. I have tried wrapping the functions but can't seem to be able to overwrite the one which is loaded first. Does anyone have any ide...
stackexchange/codereview
Im stuck with this and need some help. SELECT COUNT(id) AS counter FROM time_reporter WHERE user_id='$user_id' AND actual_date = '$date' AND ((start_time > '$start_time' AND end_time < '$end_time')) It checks ok if in range but i need to make sure if there is a record start , end time so next record c...
stackexchange/codereview
I'm trying to define a theme for an appwidget, and have it applied at the application level. I have a theme like, <style name="theme.dark"> <item name="android"background">#000000</item> </style> in my manifest, I set android:theme="@style/theme.dark" at the application. however, when I run the appwidget, it does...
stackexchange/codereview
Sometimes its the simplest things that trip me up. I have an application running on App Engine that utilizes subdomains. I'd like to redirect to different HTML pages depending on whether a subdomain is being used or not. For example, if a user tries to sign up for a new account through a subdomain, this doesn't make a...
stackexchange/codereview
Is there a way to inject keystrokes into the JVM on the Android platform? I'm looking for something like java.awt.Robot but I don't think that's available on Android.
stackexchange/codereview
I am using a custom font applied to a CATextLayer. I am using the tutorial and sample code found here. http://www.freetimestudios.com/2010/09/13/custom-fonts-on-the-ipad-and-ios-4/ However, every so often, I get the following error. Nothing in particular seems to trigger it. Can someone shed some light as to what this ...
stackexchange/codereview
For a Ruby on Rails app, I'm having this Movie object which has several attributes. Pretty much every page needs to compare some movies to a full list of these movies sorted by ratings, so I used to cache this big sorted list. It was useful, because I could directly use this list of Movies and all their attributes with...
stackexchange/codereview
i developed a home screen widget. the first release was tested on a nexus one, htc evo 4g and motorola droid. worked fine. after release in the android market, someone reported that it didn't work on a samsung fascinate (galaxy s). it turns out there are 2 incompatibilities (bugs?) with the galaxy android implement...
stackexchange/codereview
I was wondering if it is somehow possible to open an external build log (for example the result of a simple make script) in XCode to process the errors and warnings? In other words: can XCode be used as an Editor and still process an external build log?
stackexchange/codereview
I am trying to merge two Maps, but there is no built in method for joining Collections. So how do you do it?
stackexchange/codereview
I'm using the Mini-XML library to parse and XML file. I am able to load just about every element and attribute, but I am having trouble loading a long string. Here is the relevant part of the code: //Load XML file into XmlO void load(wxString filenam){ //First, convert wxString to std::string for safety (ch...
stackexchange/codereview
In the FRC documentation, it says that it is intended to efficiently manage the results returned from a Core Data fetch request to provide data for a UITableView object. I am trying to setup my Core Data stack to handle the storage and retrieval of some VERY basic data. Can I not use FRC? I need to display a value set ...
stackexchange/codereview
In a winforms application I have an options form. The form has a treview control and a panel control. Depending on the users choice in the treeview I want to load/add a usercontrol to the panel control. When should I be creating/initiating the usercontrols? On the form load eventhandler or once a treeview node is selec...
stackexchange/codereview
Using SQL 2005, I am trying to run a query on a Orders table in my database. Each order can have multiple 'Comments'. I want to get a single order record with all the Comments put together in one field. Here is the psuedocode for what I'm trying to do: SELECT Orders.Name, Orders.Date, (SELECT Comment += Comment FROM...
stackexchange/codereview
I did a rake thinking_sphinx:rebuild, then when I try to update any page/entry, it does save but it returns error. New data is saved, but the page returns error. What have I done wrong? Before I did the above command, things were working fine. I had to issue that command because I did some changes on the sorting filter...
stackexchange/codereview
I've started working with OpenGL and writing shaders. My app checks for errors after loading and compiling shader programs, and if there is a problem it prints out the info log. This is great for catching errors (and I'm a newbie so I'm making a lot), but what I'd really like is to catch these errors at build time. If ...
stackexchange/codereview
i need to do a frameset with HTML and I'm seeing that vertical scroll doesn't show on IE8, but it works perfect in Firefox. Why vertical scroll doesn't work on IE? what can I do for do it works like in Firefox? The code is this: <frameset rows="121,*" cols="*" framespacing="3" frameborder="yes" border="3" bordercolor="...
stackexchange/codereview
I want to make a Wikipedia Reader for the iPhone. What's the best approach? I've already made a few thought about that. Loading the content of the Wikipedia site is quite easy using the Wikipedia API.But the difficulty is how to display the content in a nice way. The content is marked up with wikipedia tags, not html. ...
stackexchange/codereview
In the winAPI, how do I change the window background colour? For example, wc.hbrBackground = ....; is for setting the window background initially, but how do I change it there after? Thanks.
stackexchange/codereview
I'm trying to port some parts from ginac (www.ginac.de) to C#. But I encountered this: class Program { static void Main(string[] args) { symbol s = new symbol(); numeric n = new numeric(); ex e = s + n; // "Operator + doesn't work for symbol, numeric" } } class ex { //this ...
stackexchange/codereview
I'm using Microsoft Visual Studio 2010. I start to work with FluentNHibernate 1.1. After configuration.BuildSessionFactory() execute, i have exception. Message "Could not load file or assembly 'Castle.DynamicProxy2, Version=2.1.0.0, Culture=neutral, PublicKeyToken=407dd0808d44fbdc' or one of its dependencies. Castle...
stackexchange/codereview
I use this script daily and never had an issue before now. Ive been staring at it so long i can't find the issue. I have a form with an input, the input is required and has a minlength of 2. If you submit the form, it displays the "required" error message. If you enter one character and hit submit again, its adding ano...
stackexchange/codereview
The anti-pattern that I want to kill is: - if !current_user # do something - if !member # do something else - if admin # blah blah blah - else # Bored now. I suspect the answer has something to do with view helpers and partials, but I'm wondering what some of the best practices and design patterns are. Thanks!...
stackexchange/codereview
This question may sound kinda weird but actually, I need to convince my mangement of the stability of the newest SharePoint 2010 Platform. What I would like to know is: Is there anyone using SharePoint 2010 in a production environment Which kind of use of SharePoint environment (documents database, intranet, ...) How ...
stackexchange/codereview
i want to install a non market app on android device by using given steps: 1)Copy the APK file you want to install to your phone's memory card and insert the card into your Android phone. 2)Go to Android Market and search for the Apps Installer application. 3)Open it and click on the Install button. 4)After it is insta...
stackexchange/codereview
I'm searching for a hash function that takes as input any integer (positive or negative, though it could be constrained to the int range if this makes it easier), and returns a real number between -1 and 1. Is there such a function, or any obvious way to build it from another hash function? The function doesn't have t...
stackexchange/codereview
I'm using wordpress custom field called company_name at the end of the post to display company name. I'm able to display the value of custom field but the output coming is not hyperlinked like wordpress categories. What I want is when visitor click on the company name wordpress should show all posts related to that co...
stackexchange/codereview
I have a SOAP server process that fails with "EOF" errors. Does anybody know if EOF faults are related with keep alive timeouts? If yes how? My code is in C/C++
stackexchange/codereview
I have these lines in a script which I'd like to show as an alert instead: mce_jQuery('#mce-'+resp.result+'-response').show(); mce_jQuery('#mce-'+resp.result+'-response').html(msg); but the alert displays it as-is, what do I need to change?
stackexchange/codereview
I have this struct for people: (define-struct person ( first ; a string: first name last ; a string: last name sex ; a symbol: 'male, 'female eyes ; a symbol: 'blue, 'brown', 'green hair ; a symbol: 'blonde, 'brown, 'black, 'red mother ; a person: empty if...
stackexchange/codereview
that's the code: static inline void shrinkData(const vector<Data> &data, unsigned short shrinkType){ #define CASE_N(N) \ case(N): \ ptr = MemoryManager::requestMemory(n*sizeof(ShrinkData<N>)); \ for(int i=0; i<n; i++){ \ new(ptr) ShrinkData<N>(data[i]); \ ptr+=sizeof(Shr...
stackexchange/codereview
this question, though has nothing to do with the programming stuff, gets me bugged while I try to delve deeper a bit. I am confused with what this IDE means. somewhere it says its an editor or somewhere like its some PHP editor. I use dreamweaver normally and notepad ++ occasionally .. Is this what IDE is ? or is that ...
stackexchange/codereview
Is there any alternative for PHP_excel which can "Export to XLSX/XLS" file in a customized format? This is a General Reference question for the php tag
stackexchange/codereview
Is there a way to detect when a QT QRunnable object is done? (Other than manually creating some signalling event at the end of the run() method.)
stackexchange/codereview
I have an entity model and I've been looking to write a linq query that returns counts of children and parents for each grandparent. I need to output 3 columns: Name of Grandparent | Count of Children | Count of Grandchildren protected void Page_Load(object sender, EventArgs e) { using (FamilyModel.TheConn myEntit...
stackexchange/codereview
Is there a way to cancel an Async System.Threading.Tasks.Task? i.e. Task.Factory.FromAsync( client.BeginCallWebService, client.EndCallWebService, "param1", null); I would like to register a shared CancellationToken with this task so that if the token is cancelled before this Async task is invoked, i...
stackexchange/codereview
I have a ManyToMany field with a relationship model. I want a formset, filtered on one of the keys, which shows a form for each of the other keys. My guess is that a custom manager on the relationship model is the key to solving this problem. The manager would return "phantom" instances initialized with the appropriate...
stackexchange/codereview
Is there a way prevent tarfile.extractall (API) from overwriting existing files? By "prevent" I mean ideally raising an exception when an overwrite is about to happen. The current behavior is to silently overwrite the files.
stackexchange/codereview
I am new to iPhone programming. I am looking for an example or a demo on how to use startMonitoringSignificantLocationChanges method with the CoreLocation Manager. I am confused by the documentation because, I am not sure if the same delegate method is called as in the case of invoking startUpdatingLocation. (i.e. the...
stackexchange/codereview
Question How do I configure a JtaTransactionManager object with allowCustomIsolationLevels set to true via Spring such that the Spring configuration can be used across multiple application servers? Background: I have an application that is currently running out of JBossAS and I'm trying to get it to run in WebSphere. T...
stackexchange/codereview
Is there an easy way to check for duplicate keys with Doctrine 2 before doing a flush?
stackexchange/codereview
I need to get the username out of quotes for my forum (PHP). The content I'm searching will be like this: [quote author=username link=topic=1234.msg1234567#1234567 date=1234567890] lorem ipsum dolor [/quote] lorem ipsum dolor sit amet All I need is the username attribute value. The big problem is a post could have mu...
stackexchange/codereview
When reading source code of Django, I find some statements: class Field(object): """Base class for all field types""" __metaclass__ = LegacyConnection # Generic field type description, usually overriden by subclasses def _description(self): return _(u'Field of type: %(field_type)s') % {...
stackexchange/codereview
An in-place algorithm with O(n) running time that rearranges an unsorted array A[0 . . . n − 1] filled with distinct integers so that, for a given k (1<=k<=n), A[0 . . . k − 1] contains the k smallest integers in increasing order. Is there an existing algorithm that meets these specifications, or one that can be altere...
stackexchange/codereview
I have a weird problem. I am trying to setup User Defined Runtime Attribute in the IB. As shown below I setup a NSString statID attribute in my viewController and wanted to give it a test value 00000 in IB When I compile that I get this error when building: "User defined runtime attributes on Mac OS X versions prior ...
stackexchange/codereview
I need to parse XML document and then write every node to separate files keeping exact order of attributes. So if i have input file like : <item a="a" b="b" c="c"/> <item a="a1" b="b2" c="c3"/> Output should be 2 files with every item. Now if xml.dom.minidom is used - attribute order is changed in output( i can get ...
stackexchange/codereview
I would like to briefly open up my computer and allow my business partener to see what I've been developing on the my localhost. I understand there are probably some security issues with this but I only want to open up my computer for a few minutes. What do I need to setup on the following interfaces to do this? my wi...
stackexchange/codereview
Is it possible to programmatically close all running applications on the iPhone except my own from within my own application? If so, how?
stackexchange/codereview
I downloaded the guice 2.0 source from http://code.google.com/p/google-guice/downloads/list but when I looked at the pom I saw the version was was marked as 1.0-RC2 and the target jar that was build by maven was named guice-1.0-RC2.jar. On the central maven repository under com.google.inject there is a jar named guice-...
stackexchange/codereview
i'm starting to learn ruby on rails using this guide : getting_started , i created my project and database but when i run rake db:migrate i get this error: @mona-Extensa-5230:~/rubyDev/Sites/blog# rake db:migrate (in /home/mona/rubyDev/Sites/blog) == CreatePosts: migrating ======================================...
stackexchange/codereview
Hi all I want to start Android development but I just don't like Eclipse. (Yes, I am picky. lol) Is there any other good IDE rather than Eclipse that really WORKS with Android SDK? (QT maybe?) Thanks in advance Ignacio UPDATE: I am on Mac OS X. Is there any plugin for Xcode that makes the trick of linking Android SDK w...
stackexchange/codereview
I have 2 table. Table1 "Order" orderid - customer_id 1001 - 1234 Table2 "Items" no - orderid - items_code 1 - 1001 - 100 2 - 1001 - 200 3 - 1001 - 300 how to get results as below (in php): Order # Items Customer ID _________________________________________ 1001 100, 200, 300 1234 ______...
stackexchange/codereview
I'm not sure if I worded the subject correctly. I am looping through an array, within each loop I am trying to instantiate a class, but I want to dynamically create the name. Like so: int i = 0; for(NSString* thisdatarow in filedata) { i++; NSString* thisad = [NSString stringWithFormat:@"ad%d", i]; NSLog(...
stackexchange/codereview
I'm attempting to follow railstutorial.org, and am currently on Chapter 7, where you start using factories: http://railstutorial.org/chapters/modeling-and-viewing-users-two#sec:tests_with_factories I'm using Rails 3.0.1 and ruby-1.9.2-p0 I can't for the life of me get my rspec tests to pass though, the error i get is ...
stackexchange/codereview
I have a simple Xml Node that I need to recreate <Division ID="123">Division Name</Division> But when I create the class as public class Division { [XmlAttribute] public string Id { get; set; } [XmlText] public string Description { get; set; } } I get <Division>Division Name</Division> The Id va...
stackexchange/codereview
I have python's based soap server and tried to call it functions using erlang (yaws_soap_lib based) soap client: 1> inets:start(). ok 2> yaws_soap_lib:call("http://127.0.0.1:90/soap/system/wsdl","cpu_count",[]). {ok,undefined,undefined} here is what I was able to see with tcpdump program (answer of server to client): H...
stackexchange/codereview
I am working in a Desktop application that provides Online Backup of data. In my application i am trying to implement automatic software update feature. For this i am using java web start. I have done the following process for using java web start. 1> created jar with all resources. 2> created jnlp file as : <?x...
stackexchange/codereview
I have a c++ service application that launches a Powershell script (powershell.exe script.ps1). In the script an executable is run but needs to be run with different user credentials. Is there a way to do this in Powershell with the invoke-expression cmdlet or some other way?
stackexchange/codereview
I create a temporary file on the server, that someone uploads. While I was testing, It was fine to use the complete home directory path in my machine. But now that I have to deploy it to a server, I tried using a ~, but I get a java.io.FileNotFoundException: ~/test/csvFile.csv (No such file or directory) how do I use ...
stackexchange/codereview
I'm using Core Data to cache a decent amount of information, and I have a To-Many relationship set up among my managed objects. Naturally I use an NSFetchRequest to fetch an array of the singular side of that relationship. However, I populate a UITableView using the the "many" side of the relationship, and I'd like it ...
stackexchange/codereview
Let's say I have a function called MyFunction(int myArray[][]) that does some array manipulations. If I write the parameter list like that, the compiler will complain that it needs to know the size of the array at compile time. Is there a way to rewrite the parameter list so that I can pass an array with any size to t...
stackexchange/codereview
This does not work with my PHP 5.3.3 installation on WAMP / Windows 7: mysql_connect('localhost', 'root', ''); After Maximum execution time, this error is presented: Warning: mysql_connect() [function.mysql-connect]: [2002] A connection attempt failed because the connected party did not (trying to connect via tcp://l...
stackexchange/codereview
I´d like to count the number of changes of binary factor variable. This variable can change from time to time back and forth multiple times for every user id. Now I´d like to count he number of changes per user id to this variable over a given timespan. The data is sorted by id,year,month,myfactor. I tried this in MyS...
stackexchange/codereview
I have a TreeView which I have bound to a ViewModel called RootViewModel which has a collection of ViewModels ChildViewModel which has a collection of ViewModels GrandhChildViewModel. I have a text box next to the tree view. I want to bind the text box's text to a specific property of the selected item only when a Gran...
stackexchange/codereview
I'm trying to call a method with many parameters in vs2008. Resharper's (v5) intellisense shows only few of them and then "Use smart Completion to see all". OK, I'm pressinf Ctrl+Shift+Space - and after that he shows some stupid suggestions like "String.Concat, String.Copy...", but I want to see as usual what name and ...
stackexchange/codereview
I am developing a web project using Netbeans 6.9.1 and Glassfish 3.0.1. Everything was fine until I refector a sesion bean by renaming it from “outboxSession” to “OutboxSession”. Now the project cannot be deployed. I have tried many thinks like restarting Glassfish, restarting Netbeans, restarting my PC itself, deleti...
stackexchange/codereview
Update: problem magically disappeared, see comment I have a function which works fine on an iPhone 3G, iPhone 3Gs and simulator but crashes on an iPod touch 2nd generation. - (id) initWithDelegate:(id) delegate data:(NSData *) data finishSelector:(SEL)finishSelector{ if(self = [super init]){ ...
stackexchange/codereview
Trying to deploy an app to Heroku -- first time app and deployment -- and keep getting the following error when I'm trying to migrate the db: Missing these required gems: authlogic You're running: ruby 1.8.7.253 at /usr/ruby1.8.7/bin/ruby rubygems 1.3.7 at /home/slugs/327637_0db78d3_8f84-7ba6678a-ff5d-4646-832...
stackexchange/codereview
Hi Are there any beginner tutorials for learning WebLogic portal? I just installed the application and just trying to play around with it.
stackexchange/codereview
My question is regarding conditionally creation of XElements, that is, if some condition is met, create the XElement, if not, skip creating the XElement? At this point of time, I could create empty XElements, and then remove all empty elements, by checking, if IsEmpty is true, but that somehow does not feel right... I ...
stackexchange/codereview
I want to add analytics and reports to my application on Google App Engine. Can you tell me how I can do that on google's "database"? Are there any oss libraries/tools available? Thank you
stackexchange/codereview
Given the following code: <div id='upperDiv' style='min-height:200px'> <div id='rightDiv' style='float:right; width:75%'> content1 </div> <div id='leftDiv' style='float:left; width:25%'> content2 </div> </div> <div id='lowerDiv' style='height:50px; margin-top:5px'> content3 </div>...
stackexchange/codereview
I'm trying to understand how URIs are supposed to look like. Looking at this reference: http://en.wikipedia.org/wiki/Representational_State_Transfer#RESTful_web_services, I am a bit confused by how POST is supposed to work. The example given is this: http://example.com/resources/142. I'm associating "142" as a specific...
stackexchange/codereview
How can i add in my facebook application invite friends. First of all i use actionscript, in order to handle invite issue i searched so many sites but i ve got nothing, cuz facebook doesn't support invite actions. then i learnt that JavaScript can handle this, however i couldn't find anything valuable about that
stackexchange/codereview
I created a controller to serve dynamic stylesheets, so I can use the image_tag helper and add some cache control. The problem is that every time the css file is loaded at the browser, I can see 'Cookie xxx changed" message in firebug. I would like to disable or bypass session cookies for this controller. I read somew...
stackexchange/codereview
I'm doing things with Microsoft Access. Now i want to make a list of dates between two dates. for example input : 1-1-2010 and 5-1-2010 give me the values. 1-1-2010 2-1-2010 3-1-2010 4-1-2010 5-1-2010 I want to do this in SQL if it's possible, otherwise in VBA.
stackexchange/codereview
So i'm working on a document system with a templating feature built in. On one page you will create your template with 'tags' using the jQuery templating markup: ${RestaurantName} ${ContactName} Then on the documents page you would choose the template to use and then it would convert your tags into HTML markup. Th...
stackexchange/codereview
I've built a PDF reader for the iPad and I've noticed some color problems when doing a side-by-side comparison of the document in preview verus the simulator and device. The best way to describe it is to say that the colors have become more intense. Any discrepancies between similar colors used in close proximity have...
stackexchange/codereview
Whenever letter-spacing is applied to something with an underline or a bottom border, it seems like the underline extends beyond the text on the right. Is there any way to do prevent the underline from extending beyond the last letter in the text? For example: <span style="letter-spacing: 1em; border-bottom: 1px solid...
stackexchange/codereview
When an asp.net application is notified of a URL, it routes it to the appropriate controller and specifically to the appropriate method. Are those controllers placed upon the stack once? Or do they get instantiated again for each request? For example, say I have a controller with a linq-to-sql class that gets instantia...
stackexchange/codereview
Is there any way to hide a given column based on a binding. I've tried setting the visibility property on DataGridTextColumn (using the correct converter), but that doesn't seem to work. If I set the value directly (not through binding) it works. So is column visibility an all or nothing deal with the datagrid?
stackexchange/codereview
How can one successfully reference a library from an SSIS Task library? EX: MyCompany.SsisTasks.AwesomeTask have a reference to MyCompany.SsisTasks.Common? When I try to do this, this is what pops up: Could not load file or assembly 'AwesomeTask, PublicKeyToken=xxxxxxxxxxxxxxxx' or one of its dependencies. The...
stackexchange/codereview
I'm debugging a procedure which ... returns certain values. The procedure seems to use DBMS_SQL.DESCRIBE_COLUMNS2 which was, till now unknown to me. One of the out variables of the DBMS_SQL.DESCRIBE_COLUMNS2 procedure is a collection, and I want to examine that value is being returned into that - how can I observe/wat...
stackexchange/codereview
I have installed 2 servers for Microsoft SQL 2008. The first one is MSSQLSERVER and second one is SQL2008. When I tried to stop the first one it stopped but the second one not the VS told me that this service not found ServiceController svc = new ServiceController("SQL2008", Process.GetCurrentProcess().MachineName...
stackexchange/codereview
How do I export custom list into different server on the internet(Development site to Live Site). Any advice or direction!!
stackexchange/codereview
I'm trying to understand how to construct URIs for RESTful web services. Assume I had a dating site, would the following be correct: domain.com/profiles/ <-- list of profiles domain.com/profiles/123/ <-- profile number 123 domain.com/profiles/123/likes/ <-- list of profile 123's likes domain.com/profiles/123/likes/2/ ...
stackexchange/codereview
I've set up my config.xml and my controller, my data model class and resource class and I can see that the classes are loading and can echo out the object and NULL data object information. However, when I try to call the ->load method of the data model object, I get the whitescreen of death. I've double checked and tr...
stackexchange/codereview
I have two textboxes (pass1 and pass2). I want for pass2 to be hidden and only appear when something is entered in pass1. Pass2 should hide when pass1 is null.
stackexchange/codereview
Possible Duplicate: Flash versus Flex What are the main features that distinguish Flash from Flex? When you have to create a web application, what do you look for select between Flash, Flex or using both?
stackexchange/codereview
I have the android resource. . build/envsetup.sh make above two steps I have finish the source build, and the out directory has some useful file. but I can't understand how to make a zip file like update.zip. I want to flash my phone.
stackexchange/codereview
I was making a utility to quickly create CSS drop shadows, and realized that this can only be done in IE with IE filters. However, the Shadow Filter uses Direction instead of (x, y) coordinates: filter: "progid:DXImageTransform.Microsoft.Shadow(Strength=4, Direction=135, Color='#000000');" How can Direction be calcula...
stackexchange/codereview
In c# I'm trying to set the office field When I do this: ADEntry.Properties[ "office"].Add( "Alaska"); It says office does not exist. Can anyone tell me where to get at this property? Thanks, Cal-
stackexchange/codereview
I have the following dictionary: Dictionary<int,string> dic = new Dictionary<int,string>(); dic[1] = "A"; dic[2] = "B"; I want to filter the dictionary's items and reassign the result to the same variable: dic = dic.Where (p => p.Key == 1); How can I return the result as a dictionary from the same type [<int,string>]...
stackexchange/codereview
This seems simple and I remember doing it a couple of years ago. I simply want to display a message on the login page when the user is automatically redirected there after requesting a page that they were logged in for but their session has now expired. So essentially if the user was working but stepped away for a lun...
stackexchange/codereview
For the first time I'm trying to implement some Network Protocol over TCP/IP. I've designed one but I'm not sure if it's efficient. Design So here is my idea: after client opening TCP/IP connection with server, every time it wants to make request, first of all it sends size of request followed by some separator charact...
stackexchange/codereview
I'm looking for some protocol or approach to stream a single 3D character (might be even low-poly) from a server to a client + simple animation for the character. Example - a monster + simple animation for his "roar". The animation is also 3D and uses the 3D character only. Any ideas? Thanks!
stackexchange/codereview
Default Visibility enum contains Collapsed Hidden Visible I need another one name NotCreatable. When set Visibility to Notcreatable, current Element must not created on view level. Because I have 2 class inherits from A public Class B:A { Property B1;} public Class C:A { Property C1;} my xaml <stackpanel DataContext...
stackexchange/codereview
Does anyone know if there is a maximum length for routine names and variable names in Fortran 90?
stackexchange/codereview
I'm building some simple game with openGL on C++. I have some movement while pressing some key. I want it to be continuous but my problem is that on the first second after pressing the key (on the keyboard) the system refers to it as a single click, my game object makes one move and after a second it stats to move cont...
stackexchange/codereview
I have a single HTML file, how I use a Perl script(date/hour) in the HTML code? My goal: show a date/hour in HTML Obs.: alone both script are ok. Example: HTML File: <html> <body> code or foo.pl script </body> </html> Perl script(foo.pl): #!/usr/local/bin/perl use CGI qw/:push -nph/; $| = 1; print multipart_init(-boun...
stackexchange/codereview