instruction_seed
stringlengths
1
35.8k
_source
stringclasses
1 value
In my report I m able to see all my data when running query in data tab...but in preview i see a blank page...I have four parameters in my query.. I tried deleting .data files also...no luck.. any suggestions are at great help??
stackexchange/codereview
My Schema I have the following tables table notes/example values ------------------------------------------------ users ( id email # "foo@example.com" ) games ( id name # "Space Invaders", "Asteroids", "Centipede" ) pl...
stackexchange/codereview
Hi I want to design and develop a big enterprise application using just GWT in client side. I want to break this enterprise application into parts and I call each of them a module (or bundle or portlet or whatever!). These modules might have relation with each other and might call some services that exists in other...
stackexchange/codereview
I am writing an android application that check the username and the password of the user once a login button is clicked i run the app in the emulator and when i click on login button the application is crashed package com.google.android.InitialScreen; import android.app.TabActivity; import android.os.Bundle; import an...
stackexchange/codereview
I have a multi-threaded Cocoa app that processes images. The program has a progress bar and some text showing how far along the process is. This all works great. However, sometimes the interface will just freeze up and everything will stop updating. The progress bar stops moving, and the text stops updating in the perc...
stackexchange/codereview
I have a user control "SettingsControl" containing an ajax:CollapsiblePanelExtender which in turn has a GridView (gridView) and checkBoxes. On top of GridView we have two LinkButtons "Select All" and "Clear All". I have written to enable select all and clear all functionality. Select All should select all the rows in t...
stackexchange/codereview
<script type="text/javascript"> $(function() { $("#resizable").resizable().draggable(); $('#resizable').append('<iframe id="rte" width="100%" height="100%" ></iframe>'); myeditor = document.getElementById("rte").contentWindow.document; myeditor.designMode = "on"; $('#rte')...
stackexchange/codereview
Html code from GeckoWebBrowser.Document.DocumentElement.InnerHtml property differs from html downloaded from server because it is converted to DOM and there could be Javascript that changes document structure. How to get real page source?
stackexchange/codereview
I would like to match patterns inside an IN expression like this: ... WHERE ... IN ('%alma%','%sajt%') Is it possible somehow and if not, how could I achieve this some other way?
stackexchange/codereview
I have a draggeable image contained within a box. You can zoom in and zoom out on the image in the box which will make the image larger or smaller but the box size remains the same. The box's height and width will vary as the browser is resized. The top and left values for the image will change as it is dragged around....
stackexchange/codereview
I have an ant script that I am trying to run my junit test from. It runs all but the junit portion of the ant with no errors. Anyone know why it's not hitting this portion of my script? <?xml version="1.0"?> <property file="build.properties" /> <property name="test.class.name" value="edu.psu.ist.probability.TestPr...
stackexchange/codereview
I'm new to nullable types. I like them for adding a value that can mean "no set", but I don't like having to cast them back later on, or having to tack on the .Value. Here's specifically my scenario in context of a wrapper class that implements one of my repository types: public DateTime TimeCreated { get ...
stackexchange/codereview
I posted this question looking for something similar to Buildout for Perl. I think Shipwright is what I'm looking for but I'm not really sure. I've played around with it and I created a project, imported all of my source and dependencies and I've exported everything to a vessel then the documentation sort of just stopp...
stackexchange/codereview
I am getting the following exception from a test case that ran successfully before but now it throws this exception: java.lang.NoSuchMethodError: junit.framework.ComparisonFailure.getExpected()Ljava/lang/String; at org.eclipse.jdt.internal.junit4.runner.JUnit4TestListener.testFailure(JUnit4TestListener.java:63) ...
stackexchange/codereview
How I can submit string to webform, if I using QWebKit, c++? <div style="text-align:center;"> <form id="postform" method="post" action="javascript://" onsubmit="chat.add();"> <div> <script type="text/javascript"> <input type="button" onclick="chat.add();" class="chat_button" value="Send!" />
stackexchange/codereview
How to get an array of data columns via LINQ To SQL? I'm looking for something like this : DataColumn[] dc = DataContext.Table.Columns;
stackexchange/codereview
I tested an association on mysql as follows and it works: User.campaigns These are the associations in the Models: Campaign belongs_to :user User has_many :campaigns However, when I run it on heroku which uses Postgres, I get the following: CampaignsController#index (ActiveRecord::StatementInvalid) "PGError: ERROR: ...
stackexchange/codereview
I need a xml parser to parse a file that is approximately 1.8 gb. So the parser should not load all the file to memory. Any suggestions?
stackexchange/codereview
I would like to have a right aligned search field in the toolbar of an Eclipse RCP application. I already created the text field as ControlContribution and the respective search action in the ActionBarAdvisor class: protected void fillCoolBar(ICoolBarManager coolBar) { IToolBarManager toolbar = new ToolBarManager(SWT...
stackexchange/codereview
I am having trouble exposing a C# collection to Classic ASP. I've tried to use IEnumerable and Array. but I get the "object not a collection" error. my method looks like: public IEnumerable<MyObj> GetMyObj() { ... } and on the Classic ASP side: Dim obj, x Set obj = Server.CreateObject("Namespace.class") For Each x ...
stackexchange/codereview
I migrated our SVN repository to Git and pushed it to a central repository. We had a fair amount of tags and branches, but somehow we were not able to list and fetch those from a Git client. This was weird, because the tags and branches seemed to be available on the server. With help from a Jon Maddox blog post, a b...
stackexchange/codereview
I've been given a project at my job involving SharePoint. I'm eventually supposed to replace our current Intranet site and and website using SharePoint. I've never used SharePoint before and was wondering where a good place to start would be. I also have little knowledge of website design in the first place. Can anyon...
stackexchange/codereview
This might seem a sily question to those who are well versed in autonmation but I am struggling with many things. Here's one: I am finding that the tests I created with Selenium RC in Visual Studio 2008 are getting run from NUnit in the alphabetical order of their names? What am I missing? Is there a way to organize t...
stackexchange/codereview
I am converting my Rails 2 app to Rails 3. So far, I've been successful. However, there is this strange issue that I have to explicitly require any external files. Here is my original (i.e. Rails 2) ActiveRecord model: class Book < ActiveRecord::Base belongs_to :author has_many :translations, :dependent => :destroy...
stackexchange/codereview
I was using GetDIBits to get bitmap data from a screen compatible device context into a DIB of a certain format. I was under the impression that the DC was necessary only for synthesizing a color table when the source bitmap is 8 bits-per-pixel or less. Since my source bitmap was a full 32-bit color image and this wa...
stackexchange/codereview
Using Sybase IQ v12.7. Executing sp_helptext ProcedureName shows the text of the stored procedure which is fine. However it wraps lines at 80 characters. The question is, how to show text text of a stored procedure without wrapping? In Sybase Central Java Edition there is a feature see the text of a stored procedure...
stackexchange/codereview
I am working on a C++ project where I'd like to use boost's serialization libraries. I downloaded and installed the latest boost libraries from boost's home page. When I tried to compile and run the one of boost's demo serialization examples, I got all sorts of errors that looked like this: /usr/local/include/boos...
stackexchange/codereview
Declare @strxml varchar(max) = '' This is the newly added feature in sql server 2008 which allows us to initialize the variables at declaration itself. When I'm executing these commands in sql management studio 2005 I'm getting aN error message. "Cannot assign a default value to a local variable."
stackexchange/codereview
I'm trying to build a WS with CXF. I'm following this article http://www.ibm.com/developerworks/library/ws-pojo-springcxf/ But I have 2 questions: 1) Which maven2 artifacts are necessary to build a WS with CXF and Spring? 2) I'm getting this error: FileNotFound: META-INF/cxf/cxf.xml. I don't know where this file is. ...
stackexchange/codereview
I'm trying to use Python to download the HTML source code of a website but I'm receiving this error. Traceback (most recent call last): File "C:\Users\Sergio.Tapia\Documents\NetBeansProjects\DICParser\src\WebDownload.py", line 3, in <module> file = urllib.urlopen("http://www.python.org") AttributeError: 'mo...
stackexchange/codereview
I have a hierarchy of lists within lists, and at the very bottom I'm assigning a decimal value. I need to assign this value based on the combination of the lists that are above it in the hierarchy. Each element of a particular list is an Enum value, so one combination could be Trees, Buildings, BuildingNumber. And a...
stackexchange/codereview
Does any standard specifies what should be the output? For example this code: #include <stdio.h> #include <math.h> int main(int argc, char** argv) { float a = INFINITY; float b = -INFINITY; float c = NAN; printf("float %f %f %f\n", a, b, c); printf("int %d %d %d\n", (int) a, (int) b, (int) c); printf("u...
stackexchange/codereview
Can someone give me a real time need for enum data structure. As in example in some real system where it can be used? And what is the reason for having such a data structure. The example given was enum colors_t {black, blue, green, cyan, red, purple, yellow, white}; But i felt, this is similar to string array. I am ...
stackexchange/codereview
A little background of the program: The program uses a tabbed interface to work on multiple files at the same time. I'm trying to change the directory of the OpenDialog so every time I call open a file will show the directory of the file I am working on currently, but even when I set InitialDir to the file's path it al...
stackexchange/codereview
I am supposed to: create two constructors. a. query for student's names and three scores. b. take four arguments write a method calculateAvg that calculates and sets average write a method calculateGrade that calculates based on 90+=A, 80+=B, 70+=C, 60+=D, <60=F Write a method toString that displays a gradeReport with...
stackexchange/codereview
How can be image center horizontally inside smaller or bigger div, (image is variable and can be bigger then his div wrapper or smaller)? Exist Javascript solution, but i looking for css solution. The sample code that not working: (html should be not changed only css) <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Trans...
stackexchange/codereview
I have a working implementation of NDK library and corresponding Java-class. But I am not able to add overloaded method to that class. Currently my class contains: package com.package; public class MyClass { public static native String getFileName(); static { System.loadLibrary("mylib"); } } My jniwrapper...
stackexchange/codereview
I have a textView of text email id, when I click the email id, I want to open a email app which is located in the device, and in the "To" address bar should be filled with the clicked email id.
stackexchange/codereview
Has anybody used the panoramaGL from http://code.google.com/p/panoramagl/ ? How did you setup the project? I have changed the base sdk to 4.0 but I am getting 75 errors. If not is there any free library to do 360 photo on iPhone?
stackexchange/codereview
This isn't working in ruby and I don't understand why? #!/usr/bin/env ruby exec "sort data.txt > data.sort" data.txt is a comma sepparated file. Anyway.. If I try to execute that line in the shell it works without a problem. When I try to run this script from my script, I get an empty file.
stackexchange/codereview
I'm using Smart Image Resizer to resize images on the fly and it works great - for pages with few images. However, when loading a page containing 72 images, it takes 6-7 seconds to load (on localhost). If I just output the filenames, (not using image.php), the page loads within a second. This is what I do: 1. Loop ...
stackexchange/codereview
I have this change password request form.In which the user enter their oldpasswords. this oldpassword is the md5 format. How to compare the md5 value from db to the oldpassword entered by user import md5 oldpasswd_byuser=str("tom") oldpasswd_db="sha1$c60da$1835a9c3ccb1cc436ccaa577679b5d0321234c6f" opw= md5.new...
stackexchange/codereview
I know this is possible because one of my older solution files has a mix of some projects under source control and some not. However I can't seem to reproduce that configuration with a newer solution. Every time I add a project to the solution it acquires a yellow cross and under Pending Checkins the project is listed ...
stackexchange/codereview
I need to show two different images for the arrow up and arrow down in a jscrollpane. In CSS I can set only one background for the arrows. How can I show two different images?
stackexchange/codereview
I am having quite the difficulty using regex in ruby to split a string along several delimiters these delimiters are: , / & and each of these delimiters can have any amount of white space on either side of the delimiter but each item can contain a valid space. a great example that I've been testing against is the str...
stackexchange/codereview
I can see the result when entering anything in text field. The result does go to the DIV I want. However, I look at the source code for the page, I don't see the replacement element. For example, I enter 'aaaaaaaaaaaaaaaa', click submit button, I see the result as You entered aaaaaaaaaaaaaaaa; But right click to open s...
stackexchange/codereview
I mean that the user interface and the server logic are like one thing, and no html/js is used. There is an excellent C++ web toolkit, which does exactly this: http://www.webtoolkit.eu/wt Is there python equivalent/alternative? Note: pyjamas does not count - it's great, but client side only. Thanks!
stackexchange/codereview
I have a C++ library built using a Makefile. Until recently, all the sources were in a single directory, and the Makefile did something like this SOURCES = $(wildcard *.cpp) which worked fine. Now I've added some sources that are in a subdirectory, say subdir. I know I can do this SOURCES = $(wildcard *.cpp) $(wildcard...
stackexchange/codereview
I'm new to joomla and I am looking for a module or component that allows users to create their e-mail id on my domain. I've purchased the mail space from my provider but I don't know how to use it. I want a full mailing feature in my website. Please guide me.
stackexchange/codereview
I have a task and I expect it to take under a second to run but if it takes longer than a few seconds I want to cancel the task. For example: Task t = new Task(() => { while (true) { Thread.Sleep(500); } }); t.Start(); t.Wait(3000); Notice that afte...
stackexchange/codereview
We're developing a plugin for rails, and I've got Cucumber working with Capybara wonderfully. BUT, when developing, I've been (erroneously, I guess) putting the Javascript files in the parent test application's public/javascript directory. So when Capybara runs, it doesn't find the javascript file. How can we get Cucum...
stackexchange/codereview
I've got few issues with Grails logging during test [running grails test-app, Grails 1.3.5]: 1 I've got some debug/info logging in my application and it works fine when running the app [grails run-app]. However when I want to test my app, none of it is written to the System.out/System.err files nor to file appender. Ho...
stackexchange/codereview
How does Seam Framework handle composite primary keys in pages.xml using EntityHome? The usual approach is to assign an ID to entityHome components, like: <page view-id="/team-list.xhtml"> <param name="club" value="#{clubHome.id}" converterId="javax.faces.Integer" validatorId="javax.faces.LongRange" /> </page> This ...
stackexchange/codereview
and I want to make the tableviewcells draggable, but outsite the tableview. Is this possible?
stackexchange/codereview
I'm curious what happens in this scenero. Suppose I open a file for reading, and begin reading the contents in a loop. Like this: $fp = fopen('test.txt', 'r'); while(!feof($fp)) { fread($fp, 1024); } fclose($fp); What happens if another process starts appending to the file while I'm reading it?
stackexchange/codereview
I wrote the following code to change the user account and password associated with a Windows Service. How can I modify this code to be able to perform the same operation on a remote system? static void Main(string[] args) { string serviceName = "DummyService"; string username = ".\\Servi...
stackexchange/codereview
My question is quiet simple (I think). I have a class that implements a simple chronometer (using some integers and NSTimer). I would like to close my app (so enter in background mode) but I would like my chronometer still continue to count. How can I manage that ? Thanks a lot !
stackexchange/codereview
I have a table where there is composite key of id and emp_no. I want to show record of all tids against one emp_no like this (not using any aggregate functions because no need to show any thing like that): emp_no tid tid tid emp_no2 tid tid tid Thanks in advance
stackexchange/codereview
Hey, I have been using the Pymt library and they have this convention to referring their widgets: from pymt import * # create a slider from 0.-1. sl = MTXYSlider() @sl.event def on_value_change(x, y): print 'Slider value change', x, y runTouchApp(sl) what's with the "@"? What does it signify in Python?Thanks.
stackexchange/codereview
I have a hook function named precommit_bad_branch which imports hook_utils. When invoking precommit_bad_branch via a commit I get the following error message: error: precommit.branch_check hook raised an exception: No module named hook_utils abort: No module named hook_utils! It looks like I'm not allowed to call hook...
stackexchange/codereview
(I am not familar with technologies related to HTML delivery, like JSP... But I know basic concepts...) In my application I use Spring Beans and Spring Security together with Blaze DS to communicate with Flex applications over AMF protocol. Everything works just fine. Now I have a task to deliver some services via HTTP...
stackexchange/codereview
What would be the following regular expressions for the following strings? 56AAA71064D6 56AAA7105A25 Would the regular expression change if the numbers rolled over? What I mean by this is that the above numbers happen to contain hexadecimal values and I don't know how the value changes one it reaches F. Using the fir...
stackexchange/codereview
HI, I am using loadImage to load an 24bit bmp file and then try to get the bmp info hBitmap = (HBITMAP)LoadImage(NULL, "logo.bmp", IMAGE_BITMAP, 0, 0, LR_LOADFROMFILE | LR_DEFAULTSIZE) GetObject( hBitmap, sizeof(BITMAP), &bm ); When I do the same operation with windows color display setting 32 hi ...
stackexchange/codereview
I have just deployed my ASP.NET MVC 2 application using EF 4 and I am getting the following error: Unable to load the specified metadata resource. On my local machine it runs fine with no errors. This error only comes now when I deployed to the server. I have my enity data model file in MyProject.EntityModel. I use...
stackexchange/codereview
I am trying to format a Tweet using Data Binding. What I need to do is split the Text value of the tweet based on what type of content it is. text = "This is a Tweet with a hyperlink http://www.mysite.com" I need to add some color formatting to the http://... portion of the text value. Here's the kicker, I'd like to...
stackexchange/codereview
I need a regex that will give me the string inside an href tag and inside the quotes also. For example i need to extract theurltoget.com in the following: <a href="theurltoget.com">URL</a> Additionally, I only want the base url part. I.e. from http://www.mydomain.com/page.html i only want http://www.mydomain.com/
stackexchange/codereview
If I have tables in doctrine for user_1, user_2, etc. is there a way to dynamically set the table name in Doctrine for a single User model? It's weird, I know. I'm trying to create an interface to a WordPress database (because WP has little to no API for directly accessing posts), and WP creates duplicate tables for ea...
stackexchange/codereview
I've been adding a like feature to an entries database... here's the structure of the DBs: **Users** user_id user_name etc. **Entries** entry_id entry_content etc. **Likes** user_id entry_id (It's a little more complicated than that, there are groups/categories, but that should explain it fine...) Here's the SQL que...
stackexchange/codereview
I can find a text in a Word file via: Word.Range range = wordApp.ActiveDocument.Content; Word.Find find = range.Find; find.Text = "xxx"; find.ClearFormatting(); find.Execute(ref missing, ref missing, ref missing, ref missing, ref missing, ref missing, ref missing, ref missing, ref missing, ref missing, ref miss...
stackexchange/codereview
I have a database with 2000 games. Each game consists of 15 numbers from 1-90. Each time I submit a number in the database, I want my results to update, so I’m always seeing the games that are nearest completion. (Only viewing 50 games at a time). My database structure looks like this: Table: game id name Table: game...
stackexchange/codereview
I want to add linux based or windows based system properties in Grails as my app needs to run in the both. I know that we can add grails.config.locations location specified in Config. groovy. But I need the if and esle condition for the file to be picked. the problem is config.grrovy has userHome grailsHome appName ap...
stackexchange/codereview
I'm developing a off-line web-page for iPhone Safari. For highlighting the user's selection in web-page. I've implemented following code. function highlight() { if (window.getSelection) { sel = window.getSelection(); if (sel.getRangeAt) { range = sel.getRangeAt(0); } doc...
stackexchange/codereview
Does it start a current session based on cookies? Got that from the PHP website. How does PHP control the session? If I start a session when a user opens up my login page, what do I even use that session for? Can I use the current session to get info about the logged in user?
stackexchange/codereview
What options do I have for the deployment of a CPU bound Python-WSGI application on Windows? The application benefits greatly from multiple CPUs (image manipulation/encoding) but the GIL prevents it from using them. My understanding is: mod_wsgi has no support for WSGIDaemonProcess on Windows and Apache itself only ru...
stackexchange/codereview
I hate to explicitly use html/css to build pages. Is there a template language I can use to semantically and quickly describe the layout and content of the page so that later I can generate html and css from it? I'm planning to use this on a django site (but I guess if such solution already exists for RoR I can always...
stackexchange/codereview
I have recent source in branch containing some features. I want to merge them to the trunk source. 1) I cannot pull the source locally. Because, I have to merge nearly for 30+ sources in different different locations. 2) I cannot delete the trunk source location and move the branch sources using the Copy To option. So,...
stackexchange/codereview
I want to improve my use of JDK 1.5 and stop using private static final String instead of enum. This is what seems to be recommended. But now my constant class looks like this : public class CEnum{ /** * @author JJA * date : 20/10/2010 */ public enum ListTypeAffichage { DEP("DEPOT_TVA"),...
stackexchange/codereview
I do want to create a listview which consists of many items of an own class. One of the properties is a text which can contain one or more links in it. Normally I use a textblock with a binding on Text to get this content displayed. Now I do want those text being parsed for links and then dynamically make those links c...
stackexchange/codereview
I have just setup git-http-backend on a WS2008 machine using Apache and Basic Auth for pull and push. I can create a bare repository on the hosting server and clone it down with git clone http://user@server.com/repositories/Test.git This works fine, I can add files and push them back. That all works great. I thought ...
stackexchange/codereview
http://cache.kotaku.com/assets/resources/2008/02/dbzburstcell.jpg -edit- bassically just detailed vectorized 2d games. When making a side scroller in pygame or any other comparable 2d framework with python, can you utilize graphics such as in the above link? Thanks.
stackexchange/codereview
Hi i am using display tag to display the data. on clicking on the table header link it should call the javascript and submits the page instead of navigation to it. how to do it?
stackexchange/codereview
In one of my VS projects I get this error when I modify a css file in a App_Themes catalog in runtime. CS0042: Unexpected error creating debug information file '[..]\Temporary ASP.NET Files[..]\App_Theme_MySite.pdb: The process cannot access the file because it is being used by another process. I've used the Proces...
stackexchange/codereview
Had a good crack at this, quite a few articles around but I can't make sense of them. Any help appreciated. When I click 'slide-toggle', I need 'slickbox' to expand, but ONLY that instance of 'slickbox' within 'slide' (i.e. there is more than one slickbox element on the page). I have tried to use this to denote that it...
stackexchange/codereview
I have taken a view and inserted scrollview on it using nib. Then I've added an image using imageview dynamically..Now what should I do to fill color on that image.
stackexchange/codereview
I want any request to /files/ to be redirected to one php script, and all others (that aren't for specific file types) to be directed to another. No matter what I try I can't get this to work. This is from my apache2 virtual server config file: <Directory /var/www/test/public> RewriteEngine On RewriteBase /files Rewri...
stackexchange/codereview
I'm using a Switchboard Database to run macros on multiple Access databases one after the other using the code below. Running the "Updata Data" macro in Data1.accdb requires logging on to a SQL Server. If a user enters an incorrect password the code freezes. Any suggestions for how to gracefully handle an incorrect ...
stackexchange/codereview
i have an iframe nested inside another iframe, and for both iframes i have these attributes: frameBorder="0" marginWidth="0" marginHeight="0" scrolling="no" Ive also tried: style="border: 0px; margin: 0px; padding: 0px;" It seems that no matter what I try, the border of the inner iframe keeps showing, as well as th...
stackexchange/codereview
I have some common types which are defined in an xsd file which is then later bundled as a jar file. I have this jar file in my classpath and I want to include this xsd into another xsd to use those types. How to refer the schema in a jar file? Also I want to create JAXB objects from the new schema is it possible. Also...
stackexchange/codereview
Hi need to copy the written objects in a file to copy to a array But following code gives me a Error T Obj T arr[20]; while(file.read((char*)&Obj,sizeof(Obj))){ int i=0; i++ arr[i]==Obj; } Error C2678: binary '==' : no operator found which takes a left-hand oper...
stackexchange/codereview
I'm having some trouble with MySql right now. I have an query that works just fine, I'm using it for a while, but today I got stuck with this. The query is: select avg(valor), tipo_id, users_id, datetime from entries where users_id = '1' and tipo_id = 1 and date_format(datetime,"%Y-%m-%d") between "'2010-09-20" and "20...
stackexchange/codereview
i need to calculate a checksum for a directory in question. It should return one number for this directory, not for each file inside it. Can you, quys, help me with it ? Thanks.
stackexchange/codereview
What is the best way to search for matching words inside a string? Right now I do something like the following: if re.search('([h][e][l][l][o])',file_name_tmp, re.IGNORECASE): Which works but its slow as I have probably around 100 different regex statements searching for full words so I'd like to combine several using...
stackexchange/codereview
I am trying to make a debugger that will be dynamiaclly created with some variables. The names on the left div need to show a div for the corresponding variables Description,Variable ID, and initial Value as well as another div that will show history and lock status when variables are updated later. Where I am having...
stackexchange/codereview
I'm trying to repeat an image I have by x and y, using repeat-all. The image isn't displaying. Here is the CSS code: body { background-image: url('Content/images/test.png') repeat-all; } I'm sure the CSS file is linked correctly, here is the Content folder of my application: Any help?
stackexchange/codereview
Using the Text property of a WinForms' RichTextBox, you can show a letter with an accent above it, in a way that the letter is one character, and the accent is another one. I.e., also visually it looks like one character, it actually consists of two. In Unicode terms, the letter is called a 'base character', while the ...
stackexchange/codereview
I am migrating from Spring 2.5 to Spring 3. They have introduced <mvc:annotation-driven /> which does some black magic. This is expected to be declared in servlet configuration file only. In Spring 2.5 I have just used <context:annotation-config /> and <context:component-scan base='...'/> tags declared both in applica...
stackexchange/codereview
i have this question. My website is build whereby a user can only be in the member's page if he has login. therefore every page has this, if (!$_SESSION['userid']) header index.php Problem is that if i ban the user and the user did not end the session, he will still be allowed to use the site until he end the session a...
stackexchange/codereview
I have two projects, A and B. They were poorly divided, because A had to run one part before B and another part after B. So I decided to merge them. B's contents were copied into A's working directory, committed, and work continued from there. Of course, B's history was not preserved in the copy-paste. I want to fix th...
stackexchange/codereview
Wed Oct 20 2010 14:11:39 GMT-0500 (CST) {} More detail (sorry): I'm trying to pass in a date (like above) from the fullcalendar plugin to the jQueryUI datepicker like so: $('#miniCalendar').datepicker({defaultDate: date}); where date = Wed Oct 20 2010 14:11:39 GMT-0500 (CST) {} datepicker accepts...
stackexchange/codereview
we are running into an odd issue when trying to parse an input file. the idea is that this file can include other files, which must be parsed as well. We are doing this recursively in a function defined as int parse_inp(const char* filename) The main file parses no problem, but recursive calls cannot open their file s...
stackexchange/codereview