instruction_seed
stringlengths
1
35.8k
_source
stringclasses
1 value
I have a Java application which runs on an embedded device. Because different devices run different versions of the device SDKs I must build against ~5 different device SDK combinations. One of these combinations does not support a specific method on an existing object and omits another object entirely from the SDK. I ...
stackexchange/codereview
I have a file listener on a win service. I raise event on file created/ some time I get execption "cannot access to the file because it being used by another program" do someone has an idea?
stackexchange/codereview
In postgresql, I need to insert data to, say table B from sql query that get query from table A and table C. This sample is the best that I can get: SELECT (SELECT bic FROM bank where name='Bank Foo'), curr_id FROM currency where alpha_id = 'AUD' OR alpha_id ='NZD' OR alpha_id ='SGD'; The result is something like thi...
stackexchange/codereview
I've just been learning lambda (About time) and I've figured some things out, I get the general idea. I have a map() with a lambda here that can surely be made shorter, but I don't know how: map(lambda x: [ x.split()[0], x.split()[2], x.split()[4] ] , y) I hoped it would be possible to get the 0, 2 and 4 elements of t...
stackexchange/codereview
I have a file in i j r g b format, where i and j are pixel coordinates and r,g,b are colour values ranging from 0-255. I have scanned them from the file in a single array(in row major order) but my draw pixel is not working as expected. Please help me out here. Do give the code also ..
stackexchange/codereview
I'm using an if clause to fetch the value of my mysql table data because my table schema is not normal. now for getting these values, I wrote the below code: $result = $db->sql_query("SELECT type, var, count from table_counter"); while ($row = $db->sql_fetchrow($result)) { $type = $row['type']; $var = $...
stackexchange/codereview
Currently I am making a IRC that sends a message onto the IRC main channel. Here is my code: <?php $ircServer = "xxxx"; $ircPort = "6667"; $ircChannel = "#bots"; set_time_limit(0); $msg = $_GET['msg']; $ircSocket = fsockopen($ircServer, $ircPort, $eN, $eS); if ($ircSocket) { fwrite($ircSocket, "USER Lost raw...
stackexchange/codereview
I have a .NET 3.5 winforms app that calls a method in a VB6 ActiveX DLL, which brings up a dialog box. Everything worked fine for almost 10 years (first as a .NET 1.1 app, then 2.0, then 3.5, all on Windows XP). Now that the customer has upgraded to Windows 7, I am experiencing a System.AccessViolationException: Atte...
stackexchange/codereview
Aside from using -nostdlib and linking crt1.o -lc -lgcc yourself, is there any easy way to prevent gcc from linking crtbegin[S].o and crtend[S].o? These files are not that large, but I'm playing around with making small binaries, and would like to remove the useless C++ support code that's not needed for C programs. (P...
stackexchange/codereview
Inside my app, I need a way to turn off the lights on the standard Android phone keys (Home, Menu, Back, and Search) - how can I do this programmatically?
stackexchange/codereview
How to do the following using Regex String Str="11111111"; if(Str.Contains("0")) MessageBox.Show("Not matching"); else MessageBox.Show("Matching"); Is this Pattern correct Regex rx=new Regex("0*"); ? Mathc mh=rx.Match(Str); if(mh.Success==false) MessageBox.Show("Not matching"); else ...
stackexchange/codereview
I posted the following question yesterday but didn't get a helpful answer. May i was not clear enough, i am very sorry. After hours of searching here and googling with Bing i could not solve the following Problem. It does not should a "heavy" Problem. here is my problem I have a Domain like http://example.com that i...
stackexchange/codereview
I have to store messages that my web app fetch from Twitter into a local database. The purpose of storing messages is that I need to display these messages in a hierarchical order i.e. certain messages(i.e. status updates) that user input through my application are child nodes of others (I have to show them as sub-list...
stackexchange/codereview
I know this could be a potentially wide open topic but are there any good blogs, tutorials, guides or references for visual Studio Extensibility related material. I've swam through msdn and seen a couple potentially good guides provided I already know what I'm doing with the materials but, as far as starting off withou...
stackexchange/codereview
am not understand , what is the meaning of underlying table in VIEW definition , A view is created by joining one or more tables. When you update record(s) in a view, it updates the records in the underlying tables that make up the view. So, yes, you can update the data in a view providing you have the proper privileg...
stackexchange/codereview
Trying to dump the schema for an existing MySQL database. Appears the best way is this command: CMD: mysqldump -d -u root -pPASSWORD_REMOVED MyOffice NOTE: There is no space between "-p" and "PASSWORD_REMOVED", and PASSWORD_REMOVED equals my password; which is working. MyOffice is the database name. OUTPUT: mysql> use...
stackexchange/codereview
In my layout xml file I have set the android:onClick attribute for a Button element to a function in my activity. So when I click the button the function is called with a View as its argument. Are there any information in that View argument that has the id of the button being clicked? I'm trying to figure out if I h...
stackexchange/codereview
Is it possible to use the FLVPlayback class to play an instance of the Video class? I'm loading the video (which is just an audio track with cue points) in using GreenSocks LoaderMax (along with the rest of my assets) and so have various instances of Video. The FLVPlayback class only accepts a String as its' source. Is...
stackexchange/codereview
i have http://pastebin.com/raw.php?i=74mPrMqE And need get max date.. i try select id,name,max(date) from tbl group by id,name But not work :S thanks
stackexchange/codereview
What are some common formats for writing 3d data arrays to (txt) file? (if I have to do this, I would rather use a format that someone else can follow)
stackexchange/codereview
I am loading a php file and calling this function decodeJSON want to parse the data and dispaly it into a combo box but when i do a trace all i get is [object Object],[object Object],[object Object] Here is the code function decodeJSON(event:Event):void{ var loader2:URLLoader = URLLoader(event.target); var jsonAr...
stackexchange/codereview
I'm looking for a opensource library that has an implementation of a composite list. I need a list that reads its values from some other lists and can be constructed something like this:List list1 = new ArrayList(); list1.add("0"); List list2 = new LinkedList(); list2.add("1"); list3.add("2"); List list3 = new Composit...
stackexchange/codereview
System: Windows Vista 32-bit, Java 6.0.2 I have a few questions about converting chars to ints. I run the code below, leaving myInt with a value of 4: char myChar = '4'; int myInt = myChar - '0'; Now, is this conversion something that Java does automatically? Was the ascii value of '0' subtracted from ascii '4', ...
stackexchange/codereview
I'm trying to deploy Teamcity to my Tomcat server [fronted by Apache2]. However, when I try to access Teamcity I get the following DB error. I am wanting it to use the internal DB and it was working fine when using the installation that comes bundled with Tomcat6, but now I've tried to decouple it it is failing. SQL er...
stackexchange/codereview
I have an iPad application which has many categorized images I need to switch between. I store the categories in a database, along with the image prefix and number of images for that category. Using a random number in the range of 0-to-image_count_for_category, I get an image name like this: [image_prefix][random_nu...
stackexchange/codereview
When I refresh the entity framework with big table, I get the System.OutOfMemoryException. Is there any better way to refresh the EF with big tables? I'm using .Net 3.5
stackexchange/codereview
I have a simple question about the (by the way really great!) Doctrine ODM. Assume you have a document like: /** * @Document */ class Test { /** @Id */ public $id; /** @WHICHTYPE */ public $field = array(); } Now i want to store an associative array like array("test" => "test1", "anothertest" => "tes...
stackexchange/codereview
I don't understand this code can you explain me grid is an int[][] distbest is initialized double distbest int turn = 60; if (g > 1) this.grid = turn(distbest * turn).grid; else this.grid = turn(-distbest * turn).grid;
stackexchange/codereview
I'm programming my first socket lines, and have accomplish to make a client server system that transfer messages between. The next step is to make a header sow the receiver know how much data the message is and how the message is to. How can I accomplish this? I want the header to contain two int: int to_phone_number; ...
stackexchange/codereview
I want to recursively copy a directory (with sub-directories and files). This can be easily done using xcopy. But with regard to files, I only want their names (something "touch" could do in Linux) and not their content, the reason being the files are large and I am doing processing only on the filenames and not in the...
stackexchange/codereview
class Material { public: void foo() { cout << "Class Material"; } }; class Unusual_Material : public Material { public: void foo() { cout << "Class Unusual_Material"; } }; int main() { Material strange = Unusual_Material(); strange.foo(); //outputs "Class Material" return 0; } I would like for this to...
stackexchange/codereview
If an exception is thrown in a C++ program control is either transferred to the exception handler or terminate() is called. Even if the program emits some diagnostics from inside the handler (or from terminate() handler) that can be too late - the most value is in the call stack at the point where the exception is thro...
stackexchange/codereview
i have a statement: on error go to label however i would like to pass into the label the variable which caused the error is this possible?
stackexchange/codereview
I'm trying to move our existing svn repository to git. We don't need to do any syncing between the two (so no git svn fetches or dcommits) -- we're just moving over and that's it. I issued this command to create the git repository: git svn clone -s https://server/repos/my_repo This ran fine. However, when I cd'd into ...
stackexchange/codereview
at first. I have searched and read here a lot and googling with bing but didnt find the solution. In my local enviroment it just works. Iam no IIS Admin so .... i try the following My domain "http://mysite.com/" goes to my url provided by my hosting service (discountasp.net) I want that this url goes to the root/mysi...
stackexchange/codereview
<link type="text/css" media="all" rel="stylesheet" href="./foo.css.txt" /> Firbug Error The stylesheet foo.css.txt was not loaded because its MIME type, "text/plain", is not "text/css". Explanation The browser is interpreting the CSS as a text document rather than a CSS, despite any effort to force it's MIME throug...
stackexchange/codereview
Is there a way to stop in the middle of a function, and wait for a certain event before continuing?
stackexchange/codereview
I'm looking for an API/function I can call to determine if software is running on Citrix, Terminal Services, or a stand-alone PC. Optimally, it would work something like this: Select Case APIWhatSystem.Type.ToString Case "Citrix" bCitrix = True Case "TS" bTerminalServices = True Case "PC" bP...
stackexchange/codereview
Using the jQuery code below, I'm trying to take a JSON object to create a new table populated with all the JSON data. The code below works perfectly in every browser except for Firefox. In Firefox, the code does create the table, but it consistently skips over the first row. (All the remaining rows display perfectly ...
stackexchange/codereview
I implement a function that acts like getline( .. ). So my initial approach is: #include <cstdio> #include <cstdlib> #include <cstring> void getstr( char*& str, unsigned len ) { char c; size_t i = 0; while( true ) { c = getchar(); // get a character from keyboard if( '\n' == c || EOF == c )...
stackexchange/codereview
Hi All, I am binding the SSN value to the grid using ASP.net which i am getting from the SQL database. I have used the below code to format the SSN. But i could not get the specified format. Please help me to find out the solution.
stackexchange/codereview
It seems impossible to accomplish a GET request that requires HTTP Authentication in ActionScript?
stackexchange/codereview
We are doing a jQuery post out to a jsp file. We are including the full url to the jsp file that will return a string but in IE and FF the request is being blocked. Is there a way around this? $.ajax( { type : "post", url : "http://www.mydomain.com/my...
stackexchange/codereview
I am using ReadProcessMemory, well to read process memory. I am looking at a spot which contains a value 3325. However, I am looking at memory in a hex viewer and the value is displayed as FD0C = 0CFD = 3325. So when I read the value into my char array and then try and convert (atoi) I am getting junk. I am new to ...
stackexchange/codereview
I have this xml: <all> <a> <b x="i" al="kl"/> <b x="j" al="ml"/> <b x="k" al="jl"/> <b x="j" al="pl"/> <b x="j" al="il"/> <b x="i" al="dl"/> </a> <a> <b x="i1" al="kl"/> <b x="j2" al="ml"/> <b x="k3" al="jl"/> <b x="j2" al="pl"/> <...
stackexchange/codereview
The Question... What is the best way to Unit Test the string response and content type from several Controller methods? Using... Each method returns an ActionResult, some of which are ViewResult responses. I'm using ASP.NET MVC 2 RTM and Moq. Specifically... I wish to obtain the TextWriter from HttpContext.Response an...
stackexchange/codereview
I can insert, update, delete, etc. to a table in my MySQL database but I cannot show the table status. Does anyone know which privilege(s) is needed to do this? Here is my error message: Access denied for user 'admin459'@'localhost' to database 'sample'
stackexchange/codereview
I'm getting a compilation failure using the Maven Scala plugin that I'm not getting using The Eclipse Scala IDE. First the code: package com.example trait SomeTrait[OUTPUT, INPUT] { def apply(request: INPUT, f: OUTPUT => Unit); } class SomeClass extends SomeTrait[String,String] { def apply(request, f) { ...
stackexchange/codereview
I'm using the jQuery Masked Input Plugin from here: Digital Bush I'm also using the jQuery FancyBox plugin. As far as I can tell, they don't play nice together. My masked inputs do not work if in the FancyBox, though they work outside (same id #phone). FancyBox displays fine. The fancy box is on the page, display: no...
stackexchange/codereview
I have following testing code trying to get one instance for generic and other for special purpose. [TestMethod] public void Test_Name_And_Named_Instances() { //MyClass implemented IMyClass MyClass genericInstance = new MyClass("generic"); MyClass specialInstance = new MyClass("special"); IWindsorContainer container =...
stackexchange/codereview
I have been looking for a python module that implements the common techniques of global optimization (finding the global minimum of a function in N dimensions) without success. If you heard about a simulated annealing or genetic algorithm implementation in python, please share.
stackexchange/codereview
In web application, i tried scrolling the window vertically by increasing a y axis height to 500 with a javascript that is attached to OnClientClick event of a asp.net button control with id Button1. The script i have used is <script language="JavaScript"> function scrollToWindow() { window.scrollTo(0,500); } </scr...
stackexchange/codereview
I have an application which runs in the background and occasionally creates a hidden IE object. Whenever this object is created tho it causes the window I was viewing to lose focus. Is there a way to make it so whenever it creates an IE object it doesn't cause my current window to lose focus? oIE = CreateObject("Intern...
stackexchange/codereview
I am running into the strangest problem that I just can't place my finger on. I've been developing an application in VB.net for the last couple months in Windows 7. The program involves some basic OpenGL drawing and animation with basic shapes (squares and circles) and basic textures mapped onto pointlists. The time ha...
stackexchange/codereview
I'm implementing a custom (Iron)Python console. I need to display a >>> prompt in general, but when a statement is incomplete, I need to change the prompt to ... and gather more lines before executing them. How do I know if a line entered by a user is complete or if I need to read more lines? A simple way seems to be c...
stackexchange/codereview
I've been trying to get recomposition to work but no luck... I tried many times and many approches - with no luck... can anyone point out my mistake? I expect that after I drop a new .dll into plugins directory the Senders collection will be automatically repopulated with new stuff... //exported classes [Export(typeof(...
stackexchange/codereview
Can I get the processor architecture by loading the dll programmatically in c#? Is there a class that can do this? I need to get wether the dll is x86, x64, MSIL etc..
stackexchange/codereview
public void onItemClick(AdapterView<?> a, View v, int position, long id) { AlertDialog.Builder adb = new AlertDialog.Builder(CategoriesTab.this); adb.setTitle("Selected Category"); adb.setMessage("Selected Item is = "+lv1.getItemAtPosition(position)); adb.setPositiveButton("Ok", null); adb.show(); ...
stackexchange/codereview
whats the SQL for selecting the values from this XML chunk like done in the sample below? <RWFCriteria reportType="OPRAProject"> <item id="88" name="" value="" type="Project" /> <item id="112" name="" value="12" type="Milestone" /> <item id="43" name="" value="11" type="Milestone" /> </RWFCriteria> i want to ...
stackexchange/codereview
i have a .NET 3.5 solution with an asp.net(web site) project with fluentnhibernate and it's test project(class library project).i've referenced the asp.net project in the test project and with all fluentnhibernate/nhibenate dlls. What i fail to comprehend is that, on a run of a webform (hit from browser) let's say T...
stackexchange/codereview
I have a SQL query which I only ever want to return 1 row. If there are multiple rows, I want to return null. I guess I can do it with something like SELECT whatever FROM MyTable WHERE something = myQuery AND ( COUNT(SELECT whatever FROM MyTable WHERE something = myQuery) = 1) but that's pretty nasty ...
stackexchange/codereview
Well, I am trying to get Java3D working in Scala. I came to notice that the Canvas3D is a Component derived class, whereas the scala.swing classed only allow for, well, swing components, either ScalaComponent or JComponent. Here would be my code: object HelloUniverse extends SimpleSwingApplication { def top = new Main...
stackexchange/codereview
In zsh, I have a function called g which acts like this: with no arguments, call git status with one or more arguments, delegate to git with all given arguments - i.e. call git $@ I would like the tab completions for g to be exactly the same as for git. I can achieve this with alias g=git, but that doesn't allow me t...
stackexchange/codereview
I needed a simple non-blocking static-block-size memory-pool. I didn't find such on the web. So everyone, who needs such a solution. This one is free... only works on Win32. Best regards, Friedrich #ifndef MEMPOOL_HPP_INCLUDED #define MEMPOOL_HPP_INCLUDED #include "atomic.hpp" #include "static_assert.hpp" #pragma war...
stackexchange/codereview
every one . now I am in a project upon android system application source code with the Android v 2.1r1 : Contacts . I have modify the source code and run it on the emulator successfully.. but i get a problem on publishing it to my android phone with the same system version because of without signing it. how can i do...
stackexchange/codereview
I'm using fullcalendar for a while now, if it's finished I will definitely put it open source somewhere, because it isn't good that there is not an example implementation somewhere. Anyway, I have three questions before everything is working properly: I can successfully create a new item, but when I go to another week ...
stackexchange/codereview
I have a rather weird issue with this page. The page itself is pretty ugly, which probably doesn't help the situation much. In the code, you will see that when an item is selected from a drop down, a javascript function is called up which is supposed to make some hidden items visible based on which item was selected. H...
stackexchange/codereview
I'm calling a C executable in my Rails(-v 2.3.5) application using the system() call. makefile_path = File.expand_path('./c_executalbe', Rails.root) system(makefile_path) Everything works fine on my local machine but for some reason that system() call won't run on the server(dreamhost). And there is no error message ...
stackexchange/codereview
I've installed the RC1 release of MVC 3 and I'm using Entity Framework 4 for my model. NOTE: I had this working just fine in MVC2, but MVC3 changed how this works. I've read the following articles and was able to get to the code below... Granular Request Validation in ASP.NET MVC 3 Announcing the ASP.NET MVC 3 Release...
stackexchange/codereview
I have a view in SQL Server that is somewhat similar to the following example. SELECT * FROM PEOPLE LEFT OUTER JOIN (SELECT ID FROM OTHER_TABLE WHERE SOME_FIELD = 'x' OR SOME_FIELD = 'y' OR SOME_FIELD = 'z') AS PEOPL...
stackexchange/codereview
Our Java WebStart application does not include a log4j configuration file; it simply sets up some hardcoded loggers and appenders. I would like individual clients to be able to drop a log4j.properties file in somewhere and set up their own custom logging in troubleshooting situations. I could bundle a log4j.properties...
stackexchange/codereview
Let A and B be lists. I was to find all pairs {x,y} for which x is in A, y is in B and some condition Cond[x,y] is true. This is what I've come up with, but its quite cumbersome and I suspect there is a better way AllPairs[A_, B_, Cond_] := Module[{i, k, C, Cp}, C = {}; For[i = 1, i <= Length[A], i++, Cp = Selec...
stackexchange/codereview
I have a slider made with jQuery UI, which works completely fine, except that since the range is from 0 to 250,000, and since I have the event calling for a ajax request every time something changes, if I slide from one side to another slowly the result will be an huge amount of ajax requests, which is not good at all....
stackexchange/codereview
I registered an object an I'm trying to get the following below: stdClass Object ( [test] => test [users] => stdClass Object ( [createSave_email_subject] => - New User Account [createSave_email_pass] => The user was created, and an email was sent to them! ...
stackexchange/codereview
I have <script src="bla"></script> that can be loaded in several domains. I want to know if there is a way to control the domains it will be loaded on. To clarify: My script is server-side rendered, so basically I can return empty string if the requested domain is invalid. This is to prevent from other sites embedding...
stackexchange/codereview
Here's some sample code: if object_id('tempdb..#TempList') is not null drop table #TempList create table #TempList ( ID int, Name varchar(20) ) insert into #TempList values (1, 'Alpha') insert into #TempList values (2, 'Beta') insert into #TempList values (3, 'Gamma') insert into #TempList values (4, 'Delta') i...
stackexchange/codereview
In Javascript : !!" " == true // => true " " == true // => false if (" " == true){a = 1;} else {a = 0;} a; // => 0 if (" "){b = 1;} else {b = 0;} b; // => 1 Any idea about what goes on here?
stackexchange/codereview
i have text file, in file i have lines: param1=text1 param2=text2 And i need write bat file, which modifies params value. Help me, please.
stackexchange/codereview
I have a field in my database which contains a word document. This is stored in a varBinary(max) field. I use the Full-Text Search to search for text in this field. Herefore I have created a field 'Extension' and every record contains '.doc' in the Extension field. I have set the change tracking to automatic. Everythin...
stackexchange/codereview
Anyone can please provide sample code to launch a daemon from cocoa application using AuthorizationRef.
stackexchange/codereview
Possible Duplicate: Merging: hg/git vs. svn I've heard/read that Git and DVCS's in general are better than Subversion and centralized version control systems. And one of the reasons I've heard for this is that merging is so much better in DVCS's than in centralized system. What is the difference between the two when...
stackexchange/codereview
I have a new certificate installed. I want to add my iPhone to its profile, but in Xcode when I select "Add device to provisioning portal...", it goes through the process and displays its status, but when it says "Generating team provisioning profile", I get the error" "An unexpected error has occurred, if the problem ...
stackexchange/codereview
I have a few complex queries that are ran very often. Caching the results is not possible, as they're updated most of the time, and seeing the updated data is the whole point. I'm not allowed to change the database settings, and those who are won't do it unless hell freezes over first, so I have to do everything I can...
stackexchange/codereview
I have a partial view which is used more than once in a page. On clicking a link on each of these controls I want that control to refresh itself. How can I achieve it most easily?
stackexchange/codereview
I Need limit the number of lines and characters by line in a TMemo component. example a i like to do something like this : Memo1.MaxLines:=20; Memo1.CharsByLine:=80; how i can do this in delphi?
stackexchange/codereview
Hey most of my issue has been solved but i have little problem This is Html <tr> <td class="ttl">&nbsp; </td> <td class="nfo">- MP4/H.263/H.264/WMV player<br /> - MP3/WAV/&#1077;AAC+/WMA player<br /> - Photo editor<br /> - Organizer<br /> - Voice command/dial<br /> - Flash Lite 3.0<br /> - T9</td> </tr> Currently i ...
stackexchange/codereview
jps.exe which found on JDK 1.5 and later could monitor all Java process but is there a way to detect the specify command line and terminate the correct pid? What if the user have JRE, is there a similar code allow us to terminate any process easily? Prefer to keep the topic on Windows which I am working on.
stackexchange/codereview
i am using Rabbitmq Java client API.i want to set the Basic Properties for message and also get the message Id of the message.if possible please provide some code to understand the things. Thanks
stackexchange/codereview
I am using VS2010 to code against a Microsoft-based ASP.NET server. And I think that XMLHttpRequest is the foundation of all the AJAX technologies that exist. Can someone tell me what are the most important wrappers/methods to know about when using Javascript against common technologies? I think I'm getting confused ...
stackexchange/codereview
I have an abstract class: public abstract class LMManager<ENTITY, ILM_ENTITY> where ENTITY : ILM_ENTITY, IActiveRecord, ICallOnCreated, new( ) ENTITY is some kind of DataObject, ILM_ENTITY, IActiveRecord, and ICallOnCreated are interfaces that the DataObject implements. Typically, I subclass this guy with classes som...
stackexchange/codereview
I'm having a hard time finding a good WYSIWYG editor, tried CKeditor & TinyMCE and found out that they strip out a lot of tags and headers and they ruin the page. Any recommendations of professional editors? i want it to leave the page as it is but only change the areas that people "touched". Thanks
stackexchange/codereview
My old Hibernate-only code uses something like session.createSQLQuery("SELECT * FROM CATS") .addScalar("ID", Hibernate.LONG) .addScalar("NAME", Hibernate.STRING) .addScalar("BIRTHDATE", Hibernate.DATE) In the new project we use Hibernate EntityManager (the JPA implementation). Is there an equivalent to those calls to...
stackexchange/codereview
What i want is : There is one windows app ( made in .NET 3.5, VS2008, C# ) for Windows XP SP2 & SP3 generally users can change there IP or modify their IP Address. Now,when my apps starts i dont want users to change there IP Address untill my app stops. Hope now question would be clear. Need your advice soon. Recommend...
stackexchange/codereview
Below is my code for the Star constructor, i'm passing the correct values but i keep getting a cannot find symbol error for the star constructor private Star[] star; st = db.readLineFromDB(); ST = new StringTokenizer(st , ","); star[count] = Star.Star(Double.valueOf(ST.nextToken()),Double.valueOf(ST.nextToken()),ST.nex...
stackexchange/codereview
I meet a problem that my page works well in firefox and chrome(almost the same look and feel) but very bad in IE. It's time consuming to adjust the differences. Is there any research has been done already to tell the differenceS, or any automation tool to examine the uncompatibilities? BTW: which tool you guys are usin...
stackexchange/codereview
Possible Duplicate: Could you explain STA and MTA? In C# windows forms application. I have seen [STAThread] in Program.cs above Main function. so I want to know when to use STA or MTA thread ? How, it affects the application ?
stackexchange/codereview
I am using the Symbol font within an Illustrator graphic. Now, I would like to use the same symbols directly in HTML. I found equivalents to phi (φ), rho (ρ), and even the check box like symbol: ✓. However, I am missing the open and close arcs from the Symbol font. They are equivalent to ∩ and ∪, but they seem wider. S...
stackexchange/codereview
I have a list view with 2 buttons on each row. I am using a cursoradpater to populate the list. I am also using the view holder pattern on newview() bindview(). My questions are: where do i put the clicklisteners for the buttons knowing that the action for the button is different from the action of the list item itself...
stackexchange/codereview
I'm reading about transaction isolation levels (serializable, repeatable read, read committed, read uncommitted) and am a bit confused about their respective uses. Do I understand it correct that for example in banking apps (money transfers etc) the isolation level used is probably serializable since no relaxation of t...
stackexchange/codereview
In the literature and on the forums people often say that EAV is evil and often sugest using Serialized LOB pattern as an alternative of EAV, but don't say something concrete how to use it. I wonder how to overcome problems with using BLOB pattern as an alternative of EAV. Let’s assume that we could store all custom fi...
stackexchange/codereview