instruction_seed
stringlengths
1
35.8k
_source
stringclasses
1 value
So as the name suggest I have a treeview in an mvc view that persists by its location but sometimes you travel off the route of the tree, for example: Main page ----Child Page Say i went to an edit page for the details on the child page, I would still technically be in the child page node but the url for the page is d...
stackexchange/codereview
My application is using a REST based webservice to show multiple activity. To enable the user offline browsing, I am storing the REST data into local SQLiteDatabase with AsyncTask (with some dialogue to wait). However, it takes a long time to load the db (10 mins) and its just bad experience for the user. So I was wond...
stackexchange/codereview
I'm developing an Android application with a database. That database will have more than three tables. Now I'm working on a class called DBAdapter to access the SQLite Database. DBAdpater will have five methods for every table on database (insertEntry, removeEntry, getAllEntries, getEntry and updateEntry). So, if I hav...
stackexchange/codereview
When creating a new web form the default page class is System.Web.UI.Page. Can this default be changed in visual studio 2010 so that it uses a custom class that we created that inherits from System.Web.UI.Page? Cheers!
stackexchange/codereview
I'm interested in using Apache's JAX-RS implementation (CXF) in a Tomcat environment. The documentation is pretty clear and straight forward about developing a RESTful service with JAX-RS/CXF. However, I'm not sure how to develop a JAX-RS service within the context of a Tomcat environment. Does anyone know of a good tu...
stackexchange/codereview
I want my JAR/WAR application to know what is the SVN revision number of its source code. I want this revision number to be later rendered for web end-users at the bottom of a web page, etc. Is there any existing Maven plugin to automate the process? I think that the plugin has to collect the information from svn and ...
stackexchange/codereview
Is there any way to insert java-script function between the query ?? For example :: In an query, i have stored date of birth like this 10101990 in the database, it means 10/10/1990, but I have display it in-front of page but in certain format like 10.10.1990 by using one java-script function. Please suggest me any way...
stackexchange/codereview
We are performance tuning our web site at the moment and have the main page content down to a respectable 65ms for firefox to grab it (from request to finish receiving the html). Caching means there is generally no other content that needs to be requested from the server (after the initial page view). However, firefox ...
stackexchange/codereview
Is there a pattern to refactor such a construct into a readable single line? def show_section @news = News.all_active @news = @news.where(:section => params[:section]) unless params[:section] == "all" @news = @news.all end I use Rails 3 and Ruby 1.9.2
stackexchange/codereview
I have django-registration installed. I just updated my Python installation from 2.5 to 2.7. Everything works okay but when I try to run my Django app, I get the error below. C:\django\pley>python manage.py runserver Validating models... Unhandled exception in thread started by <function inner_run at 0x02FA6830> Traceb...
stackexchange/codereview
I have coded some stuff: http://fincha.com/kunden/schmitt/ I zoom in with .css("zoom") but I need the buttons to simulate CTRL + or CTRL - This code isn't working for me: e = jQuery.Event("keydown"); e.which = 50; $("input").trigger(e); Please help! EDIT I actually wanted to zoom-in and zoom-out the who...
stackexchange/codereview
Trying to get up to speed on UIScrollView for an app that I'm working on. Found a tutorial at http://www.tckdeveloper.com/Tutorials/iPhone/ScrollViews.html that helped out and that got the scroll view working in landscape mode. Started adding more content to the view so that scrolling was needed in the portrait view as...
stackexchange/codereview
Possible Duplicate: Replacements for switch statement in python? I'm making a little console based application in Python and I wanted to use a Switch statement to handle the users choice of a menu selection. What do you vets suggest I use. Thanks!
stackexchange/codereview
Possible Duplicate: In what order does evaluation of post-increment operator happen? Consider the following snippet(in C): uint8_t index = 10; uint8_t arr[20]; arr[index++] = index; When I compile this with gcc, it sets arr[10] to 10, which means that the postfix increment isn't being applied until after the enti...
stackexchange/codereview
Good day shell lovers! basically i have two files: frequency.txt: (multiple lines, space separated file containing words and a frequency) de 1711 a 936 et 762 la 530 les 482 pour 439 le 425 ... and i have a file containing "prohibited" words: stopwords.txt: (one single line, space separated file) au aux avec le ces d...
stackexchange/codereview
I'm getting a LazyInitializationException trying to test my DAO methods using the tool stack defined in the title. My understanding is that my test must be running outside the hibernate session, or it has been closed before I try to read children objects from my DAO. From reading the documentation, I understood that ...
stackexchange/codereview
How can I get access to the implicit property names of a db.Model in Google App Engine? In particular, assume I have the following: class Foo(db.Model): specific = db.IntegerProperty() class Bar(db.Model): foo = db.ReferenceProperty(Foo, collection_name = "bars") if I attempt to get the property names on Foo, li...
stackexchange/codereview
i developed the application using WAMP, i think windows assigns 0644 file permission to all directory by default. i am hosting the application on Unix Server which uses cPanel 11, my application has some directories where user(admin) will be uploading files to it. what file permission should i be giving to that directo...
stackexchange/codereview
I have an issue trying to make a function global when it is involved in closure. In the code listed below I have an anonymous method which defines at new function on the window called, getNameField. (function () { function alertError (msg) { alert(msg); } window.getNameField = function (fieldId) { ...
stackexchange/codereview
I have some java code (compiles nicely for Android) in a library project (LIB) that I want to use in an another Android project (A). As LIB's code is unlikely to change much, I opted for adding it as a jar to A. It works fine. I have another project that is an Android instrumentation project, testing the first Android ...
stackexchange/codereview
I am having an issue with WPFToolkit DataGrid when a column is customized supplying both CellTemplate and CellEditingTemplate. If you take a look below, you will see my editing template has a single CheckBox. All is fine in a functional sense but when F2 is hit to edit the cell, one must also hit TAB in order for the C...
stackexchange/codereview
If I make a jquery AJAX request which is succesful I get back my JSON data. However, If I make a request and I get somthing other than a 200 response code back, I cannot get back the data in the Jquery call back. I need the data as it has a description about the data. success: function (data, tst, xhr) { $.log('XHR...
stackexchange/codereview
I'm trying to build a file path in PowerShell and the string concatenation seems to be a little funky. I have a list of folders: c:\code\MyProj1 c:\code\MyProj2 I want to get the path to a DLL file here: c:\code\MyProj1\bin\debug\MyProj1.dll c:\code\MyProj2\bin\debug\MyProj2.dll Here's what I'm trying to do: $buildco...
stackexchange/codereview
I am trying to input 2 strings in C, and output a 3rd string which the concatenation of string 1 and 2. #include <stdio.h> #include <stdlib.h> #include <string.h> /* * */ int main(int argc, char** argv) { char stringarray1 [30]; char stringarray2 [30]; char stringarray3 [30]; int length; prin...
stackexchange/codereview
In this code, the ident and data variables are correct in the callback, but I don't know how to pass in the right i for each loop iteration. I've tried reading up on functions and tried like 10 things, but alas, I must seek the wisdom of the stack. function callback() { $(ident).html( data.fields[i].value ); $...
stackexchange/codereview
I'd rewritten a simple C++ program using unix as a variable name. But the program compilation failed. #include <iostream> int main() { int unix = 1; return 0; } After searching a lot on the internet I got to this website which helped me by saying that unix is predefined macro equal to 1. I want to know...
stackexchange/codereview
I wish to record audio at 32 kHz on my Symbian device but it only supports 48 kHz. From searching the internet I believe the term for what I am trying to do is called downsizing. Is there a C++ library that will compile and run on Nokia Symbian phones that will do this for me? Or is the algorithm simple enough for me t...
stackexchange/codereview
our organization uses the WPAD method for setting proxies in IE . Is there a way to actually find out the actual proxy IE is using for a URL ? . i need this to manually set up the proxy and not use the WPAD option . Any help is appreciated . Thanks and Regards
stackexchange/codereview
I have 3 different classes, a generic "entity" class, and then two classes that inherit this, a bullet class and an enemy class. I then have a list of the entity class, with the bullets and enemies in the list, and a lot of the places I treat these the same. However, some times, I want to loop through just one of the c...
stackexchange/codereview
I try command bundle install --local but it show issue: -bash: /usr/local/bin/bundle: /usr/local/bin/ruby: bad interpreter: No such file or directory. please help me.
stackexchange/codereview
I have a large data-structure which i'm serializing.At certain times i need to edit the values in the data-structure.But just for changing a small value i'll have to re-serialize it again instead of updating the changed value in file.I've heard of Google protocol buffer's.Will using it solve my problem of rewriting the...
stackexchange/codereview
If I insert an external sd card formatted in ext2 or ext3, will it be treated as a normal sd card (FAT32)? The device is Samsung Galaxy S (Korean) running Android 2.1 I need the answer before I get the device tomorrow, because by the time I get the device, I will not have any option to change anything in the card. Rega...
stackexchange/codereview
I have a FileUpload control in an UpdatePanel and when user select a file, the full file path will will be stored in a hiddenfield, and during postback, i would like to assign the full file path in the hiddenfield back to the FileUpload control textbox, possible to achieve that?
stackexchange/codereview
i have this inside my site.css file (in the COntent directory) body { width: 100%; background: #e7e6de url("/content/images/back-page1.png") repeat-x; font: normal 13px arial, sans-serif; text-align: center; color: #4c4c4c; } it works fine when i test it locally but it doesn't work when i upload the site to the hostin...
stackexchange/codereview
I have to write a priotity queye as implementation of the folowing interface: public interface PQueue<T extends Comparable<T>> { public void insert( T o ); // inserts o into the queue public T remove(); // removes object with highest priority (by natural order) } I would be glad for some help and clues...
stackexchange/codereview
I am new to WCF issues and I'm trying to populate an control by using a wcf service . I have used 'Ajax-Enabled WCF' template ( VS 2010) for creating my service. there is no error while on Asp.net development server but when put on IIS [Method 404 Error] appears in dropdown . I tried to access the WCF services dir...
stackexchange/codereview
What is the best way to have a enum type represent a set of strings? I tried this: enum Strings{ STRING_ONE("ONE"), STRING_TWO("TWO") } How can I then use them as Strings?
stackexchange/codereview
I have a problem with GOTO command and affiliated labels. Facts: Given a bunch of files from a folder (they are log errors) I need to open them and check if they contain a specific string. If yes then eliminate some characters (all the chars after the last appearance of "_", including itself) from the file names and d...
stackexchange/codereview
I am trying to modify my Javascript page, which uses Ext Js library.(I don't have any idea about ext js, haven't worked on it either) What I want To do is that based on the JSON DATA particularly the field "successProperty", I want to decide whether to upload the grid or give an alert. What I can possibly do is to add ...
stackexchange/codereview
What i need to do is have the font file name (not Font Family name) after selecting a font in the FontDialog, so that if i selected "Harlow Solid Semi" from the Dialog, i need to get the file name, which is "HARLOWSI.TTF" so is it possible ? if not using the fontDialog, can it be done other way ? Note: i need the user ...
stackexchange/codereview
I have an error in the following HQL Query: em.createQuery( "SELECT new com.magenta.sovereign.entity.view.ThirdPartyReportView(" + "e.id, " + "e.vehicleRegistrationNumber, " + "e.driverName, " + "e.thirdPartyAssignee.fi...
stackexchange/codereview
I have a website where i want to put a custom made captcha, can't use online captcha services due to layout needs. It runs on google appengine. Does appengine API has a something for writing characters on a given image? I went through appengine Python Image API but it doesnot seems to be of much help. Any suggestions h...
stackexchange/codereview
I have another question to security in the web world. So I read (and ask :P) about certificates and think I got what it is and how it works. My next question is putty specific. When I open a connection with putty to a new server with ssh (port: 22) I get a PuTTY Security Alert: The server's host key is not chacked in ...
stackexchange/codereview
I have got SQL Server database in which Table column name have spaces. For example I have a Table something like this: ID| First Name| Last Name|Birth Date 1 | Wasim | Akram | 01-01-2000 2 | Saeed | Anwer | 01-01-2001 Now When I use a following query(column name with space) I get empty result: SELECT * ...
stackexchange/codereview
i have a linq query that returns Articles ordered by the number of tags that match the current article e.g current article has tags - tag1, tag2, tag3 tagged article 1 - tag1,tag2,tag3 tagged article 2 - tag1,tag2 linq i have is DataTable query = (from row in dt.AsEnumerable() let tags =...
stackexchange/codereview
How to convert number 1.33408564814814 to time 32:01:05?
stackexchange/codereview
I'm using jQuery slider for making range sliders. By moving the sliders the corresponding input text field is updated. The jquery code is: jQuery("form#filterform fieldset.text").each(function(index){ var this_slider = jQuery(this).find("#slider"); $this_slider = jQuery(this_slider); var this_...
stackexchange/codereview
I have interface IA, interface IB extends IA and class A implements IA. Now I want to create an anonymous class which extends from A and implements IB. How would that look like? I thought about something like this: new A() implements IB { /* ... */ } ( Error: Type mismatch: cannot convert from A to IB ) or: new IB() ...
stackexchange/codereview
I've been reading about the OS on BlackBerry and one of its latest updates, SQLite, introduced with the v5.0 OS. Can all BlackBerry phones upgrade to this OS? I have a BlackBerry Storm 9500 from Orange (France) and I can download a simulator for this phone with 5.0 OS on, but the device itself wont update past v4.7 OS....
stackexchange/codereview
I've set up a Spring ROO application, set persistence to OpenJPA and created some entities. Then I replaced Spring MVC with Apache Wicket. Stuff seems to be working fine and I've successfully displayed a list of Customer entities. Next up was the editing view for the customer. For now I've made a Wicket form that uses ...
stackexchange/codereview
Using ASP.NET syntax for the RegularExpressionValidator control, how do you specify restriction of two consecutive characters, say character 'x'?
stackexchange/codereview
Say I need to write an hexadecimal editor. I could write my own textbox with my own on screen keyboard. Or is it possible to change the onscreen keyboard of the regular text box to show only (0-9) (A-F)? If so, where can I find a sample?
stackexchange/codereview
To develop a new project we are thinking to train .NET people learning either Java EE or Ruby on Rails. This decision is just because of open source and to avoid purchasing of operating system also Sql Server database. Currently there are no people who work on either Java EE or RoR. All team members should learn from t...
stackexchange/codereview
Is there a way to check if an OLEObject has a LinkedCell property? For example labels and buttons don't have linkedcells while others do. I am trying to write a piece of code that can replace the linkedCells by looping through all the OLEObjects in a sheet. Thanks in advance.
stackexchange/codereview
Windows API So i know that the WinForms touches on the Windows API a little, but frankly its horrible. ESPECIALLY with the layered windows and flickering. So i was wondering if anyone has wrote partial, or full wrappers for the Windows API.Im particularly interested in the Layered Window aspect, but really any part of...
stackexchange/codereview
ok so i have a script that when you click a link it dynamicly adds a form field is it possible to make it so when it is submitted it goes to "example.com?7" (7 because of 7 files) what i mean is if i click it 5 times and there are 5 file fields and i choose 5 files can i make the action link mysite.php?5 here is the sc...
stackexchange/codereview
I am using Oracle 10g. and I have the following relational structure that I think I need to flatten out so on the client side a grid view shows the correct number of columns. TableA below can be configured to have any one of it's records enabled or disabled using the enabled field. TableB stores calculated values relat...
stackexchange/codereview
Now I create project by using jython 2.5.2b2 and django1.1.1 (lucid) , after download sqlitejdbc-v056.jar and do some syncdb task it's shown "zxJDBC.Error: auth_permission.content_type_id may not be NULL [SQLCode: 0]" but still can runserver, anyone has some great example for this situation?
stackexchange/codereview
I have doubt regarding getting the return type's . class SampleOnOUTandREF { static void Main(string[] args) { Console.Write(typeof(int)); Console.Read(); } } If i write this the output is System.Int32. But in my application i want the result as "int" if i give "System.Int32". Please hel...
stackexchange/codereview
I would like to copy some files from a folder to another folder using MATLAB routines. My goal is to copy one file every 4 files from the initial folder to the second one. My files look like this: aa-dd-cc-11-01.txt aa-dd-cc-11-02.txt aa-dd-cc-11-03.txt aa-dd-cc-11-04.txt aa-dd-cc-11-05.txt aa-dd-cc-11-06.txt aa-dd-cc-...
stackexchange/codereview
I have a large table with 27 columns and between 5 to 100 rows. I have mode switch (checkbox) that switches the view of a table from the first 5 columns (simple) to 27 columns (expert) and back. Currently I use the following jquery method to switch between the modes: $("#ToggleTableCells").click(function(){ if($(t...
stackexchange/codereview
I have a RichTextBox with an OnChanged event. The OnChanged event should look at each line in the RichTextBox and if the line is of prime length colour it red, otherwise colour it black. How do I do this? I think it is possible to select from index a to index b and set selection colour, but I think this will lose my cu...
stackexchange/codereview
I was wondering how I would handle aggregate roots that contain collections with a lot of entities. Like: public class AggregateRoot { public ICollection<Child> Children { get; set; } // 10.000 entities } How would I query the child collection to get specific children? I am using Nhibernate btw.
stackexchange/codereview
I've been trying to do this Regex for a while now. I'd like to create one that matches all the spaces of a text, except those in literal string. Exemple: 123 Foo "String with spaces" Space between 123 and Foo would match, as well as the one between Foo and "String with spaces", but only those two. Thanks
stackexchange/codereview
in SQL Server Management Studio (SSMS) 2008 R2 Dev on the table (because I cannot ask without it) --SET ANSI_NULL_DFLT_ON ON create table B (Id int) I create unique constraint ALTER TABLE B ADD CONSTRAINT IX_B UNIQUE (ID) WITH (IGNORE_DUP_KEY = ON) SSMS shows that I do not have any constraint but have a key + ...
stackexchange/codereview
Visual Studio 2010 has this feature called Directed Graph Documents (files with a dgml extension). It can be used to show relationships between objects similar to UML. I was able to play with it during the VS2010 beta. The version I now have (VS2010 pro) doesn't have this functionality and I don't have access to the Ul...
stackexchange/codereview
I have ASP.Net application with a simple cache helper. Under VS web server it works fine. Under IIS 6.0 cache doesn't work- object, was saved previos, doesn't returns after a minute (with no exception). What could be wrong? public static class CacheHelper { public static string Share<T>(T @object, TimeSpan ...
stackexchange/codereview
I've implemented Facebook Invite as follows: - http://www.jobwalk.com.au/invite.aspx You can login via Facebook and go through the steps (no database update) from: - http://www.jobwalk.com.au The problem is, when I select someone and press Send Invite and in the final stages, it does not load the Callback or Canvas URL...
stackexchange/codereview
I wish to seek to a specific time or frame using the ClockController.SeekAlignedToLastTick - however this does not appear to do anything, unless the Storyboard is running. I dont want to have to 'start' the storyboard, because I only intend the Storyboard to set all dependencyproperty values, and have everything lay-ou...
stackexchange/codereview
I'm writing a widget that will be embedded in other people's websites. I'm using Google Analytics to track all the people that visit all instances of my script on the embedding websites. I understand that the new asynchronous tracking code resolves this problem so that there's no interference with those websites' own G...
stackexchange/codereview
I have this HTML file with some CSS styles, now I am trying to create vertical tabs but when the page loads all the content is being displayed then if I select any particular tab only content of that tab is display but I am just worried when the page. How come all the tab content is being displayed? Below is the code. ...
stackexchange/codereview
Possible Duplicate: How to write a basic swap function in Java Hi. I don't know java at all, and in the near future have no wish to study it. However I have lots of friends that are java programmers and from conversations I learnt that there is no analog of C#'s ref keyword in Java. Which made me wonder how can one ...
stackexchange/codereview
I have an winform application that retrieves some html. I'm trying to convert the html string to a pdf. This is the first time I've tried using an 3rd part library before and I cant seem to get it right. I'm using /r:pdfduo-net.dll jsc option and my import statement is below: import System; import System.Text; import S...
stackexchange/codereview
I've found out that native files access has no "non-blocking" state. (I'm correct?) I've been googling for daemons which are "non-blocking", and I've found one which achieved said behavior by threading file access operations, so that the daemon won't block. My question is, wouldn't threading and IPC'ing such operations...
stackexchange/codereview
I am developing web interface for an mp3 player (mpg123 linux). The mpg123 is a command-line mp3 player and can be controlled using keyboard inputs. For example: $ mpg123 -C filename.mp3 it will start playing the song and monitor keyboard inputs for control. Pressing 's' will pause the song 'q' for quit etc. I am spaw...
stackexchange/codereview
Does anyone know why my xCode intellisense does not show up when I type in UIPopoverCont...
stackexchange/codereview
i have a sqlite database on my android, whith a datetime column, that contains a date with the Format dd.MM.yyyy. It's not my Database, I'm niot able to change the Dateformat. I want to compare the date in the database with a String, which is representing a secon date, but everything I tryed failed. How can I convert t...
stackexchange/codereview
I have a ~/.gdbinit file which is loosely based on How do I set these break points in ~/.gdbinit?. Allegedly, gdb is supposed to source ~/.gdbinit when it launches. However, it's not loading mine - I have to stop at an existing breakpoint and type in 'source ~/.gdbinit', and then it loads it. Is there a way to have ...
stackexchange/codereview
I have two servers with virtually identical setups (the second that is working has been around longer than the other). For my newer server when I just put an address to a PDF in the browser it launches a download dialog. If I put the same address (just changing the server name) in the browser to my older server it di...
stackexchange/codereview
My very often used extension method is public static double Pi(double this x) { return Math.PI*x; } in order to have access to 2.0.Pi() or 0.5.Pi() .. etc What are some other examples of mathematics related extension methods the people use often? PS. Just curious.
stackexchange/codereview
Hi: one of our customers are having this exception randomly. We put in some re-try code and keep-alive code, yet it still happens. So I am looking at the SQL log our customer sent us. And I saw this. So basicaly, one of the report has no data in certain field. would that be the cause of that problem? library!ReportSer...
stackexchange/codereview
Question: I have a view which I want to derive from a recursive query. The query is of the same structure as this one here: http://forums.asp.net/t/1207101.aspx And represents a treeview as an ordered dataset. How can I create a view which does this: ;WITH Tree (ID, [NAME], PARENT_ID, Depth, Sort) AS ( SELECT ID, [...
stackexchange/codereview
I found out that this is the way to style all images on a site. GM_addStyle("img { border: 3px dotted green;background-color: red; }"); How do I style just a few? Is there a way to add a class to the GM_addStyle so that I can call this class later with jQuery like .addClass('myClass')? Thank you in advance for your he...
stackexchange/codereview
I'm working on a database heavy project, where the Microsoft SQL databases are very mature (16 or more years-old mature), and an old product uses VB6 and ADO to generate sql which interacts with the database. I've been given the task of porting/re-writing the ancient version with a new .NET version. I'd love to use LI...
stackexchange/codereview
I'm trying to do a submit via ajax of a form that contains a file element. <form id="classic_upload" enctype="multipart/form-data> <input type="file" name="file" id="file"/> <br/> <!-- ...other inputs...--> <button type="button" id="classic_save"> Send </button> </form> What I need to do is to submit this form and ...
stackexchange/codereview
If I have following stack trace where I see that a thread is waiting on certain lock. How can I get information about the object this thread is waiting for? I was thinking that I should be able to SyncBlk command but seem like it can only give information about the locks and its owner threads. 0:000> !CLRStack OS Thr...
stackexchange/codereview
I have an aspxgridview which groups first by year and then by month. Basically my query returns Month and year as seperate columns. Now if I return month as "January or February" then ASPxGridview does not know how to sort this. I heard of custom sorting, but even then if I return month column as a number and use data...
stackexchange/codereview
I have an ipad App, which has categories (tableviewcontrollers inside it) and detail views which has a webview shows info of the row on tableview. On didSelectRowAtIndexPath function of category table views i am using the code as: DetayViewController *dvc = [[DetayViewController alloc] init]; Blog *b = (Blog *)[self.bl...
stackexchange/codereview
How to get image coordinates at mouse hover position. Please let me know Thank you
stackexchange/codereview
I have a DataboundField in a grid. I'm trying to display a date in Euro format and the time. The time should be wrapped in a span with a css class applied to it. I am using this, DataFormatString="{0:dd/MM/yyyy <\span cla\s\s='tinyDate'>hh:mm:ss</\span>}" It's actually pretty close, except the span tag is literally ren...
stackexchange/codereview
I have a long list of items where clicking on an item may move another related item to just below it. The problem is if the moved item appeared above the item being clicked, the move causes the page to scroll up and the mouse is no longer over the user center of focus. e.g. Item1 Item2 Item3 - clicking this will move ...
stackexchange/codereview
I'm looking for a regular expression for one of my particular requirement explained below. I believe that this may be very simple & basic for the regex experts. A regular expression that matches one or more words in a line. Consider this line: QRYNUMB0007 = SELECT EMPLOYEEID, FIRSTNAME, LASTNAME, EMAIL, CITY, STATE, ...
stackexchange/codereview
I am auditing my Java EE application with JBoss Evers and the nature of my application causes the audit table to grow very fast. The historic data is queried infrequently and access time is not really an issue, apart from the data from the last week. This data IS queried frequently and access needs to be fast. Ideally,...
stackexchange/codereview
For production we are using a Oracle database with some fancy stuff for IDs @Id @GeneratedValue(generator = "generator") @GenericGenerator(name = "generator", strategy = "guid", parameters = {}) @Column(name="PROPERTY_ID") private String propertyId; For testing I thought I'd just use a H2 in memory database and how th...
stackexchange/codereview
I would like to use a float property in my component, but set it to some non-zero default value (let's say it is 1000.0). If I try to do this in the Create, the property start to behave wildly since the default value for floats it 0 (see classes.TWriter.WriteProperty.WriteFloatProp.IsDefaultValue) so when I override so...
stackexchange/codereview
It looks simple thing but i dont know why i am not able to change the background color of a custom tag on which i am working. Please check my code below for the custom cell. - (id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier { if ((self = [super initWithStyle:style reuseIde...
stackexchange/codereview
I'm trying to make a wrapper to the STL map container, in order to add a const method to return the value given the key. In map, operator[] isn't const, and find() requires dereferencing to get the value (map.find()->second). I'm basing some of my "research" off of Idiomatic C++ for reading from a const map by the way....
stackexchange/codereview
I used the CL_MEM_ALLOC_HOST_PTR flag with my clCreateBuffer calls, but the Compute Profiler shows all my "host mem transfer type" as being Pageable. I tried it in two different kernel setups, but the profiler wouldn't show that I was using pinned memory. Is it just really random when a kernel gets to use pinned memory...
stackexchange/codereview
Currently, I'm working on PHP web application on wamp environment. I'm quite new with ldap and right now, I have a pretty simple problem about it. After I enabled LDAP support in PHP. I have tried to call ldap function with the following code: <?php // LDAP variables $ldaphost = "ldap.example.com"; // your ldap serve...
stackexchange/codereview
Developing Java, you have always learned that its best to create an ArrayList by using the List interface as the type for the variable the list is stored in. Like this List<String> myList = new ArrayList<String>(); However, by looking at a lot of the android examples that is included in the bundle, they have created t...
stackexchange/codereview