instruction_seed
stringlengths
1
35.8k
_source
stringclasses
1 value
I did a bunch of gutting to my default controllers and now I can't get my user_id to populate on create. I was curious how that gets populated. If you're interested, take a look at my routes, and model assocations, and then at then end I'll show you the resulting params..The end result is no user_id being added. routes...
stackexchange/codereview
I have formed few temp tables in my query (TSQL) like - #temphold1, #temphold2, #temphold3..... #temphold10. Each temp table has different schema (different columns) each derived by grouping data from different tables with specific conditions. I need to determine a way to carry all these temp tables to the User Interfa...
stackexchange/codereview
I am trying to run this code, but get an error. Can anyone tell me why? The debugger shows the following Thread [<3> main] (Suspended (exception NegativeArraySizeException)) ViewRoot.handleMessage(Message) line: 1704 ViewRoot(Handler).dispatchMessage(Message) line: 99 Looper.loop() line: 123 ActivityThread.main...
stackexchange/codereview
I'm working on a game and having some performance problems drawing one canvas onto another with drawImage. According to Chrome's Profiler, I'm spending 60% of my time in just this one drawImage call and 10% in the clearRect above it... The source canvas is about 3000x3000 for now (which is pretty small, I'd say) and th...
stackexchange/codereview
So the thing is, I want to be able to do this with my class. object.lockAccess(); object.doSomething(); object.doAnotherThing(); object.doAnotherThingYet(); object.unlockAccess(); So the other thread will not be able to access my class methods while locked. Here is the implementation I did, I was wondering if someone g...
stackexchange/codereview
I am using the agility pack to do some screens scraping and my code so far to get titles is: foreach (HtmlNode title in root.SelectNodes("//html//body//div//div//div[3]//div//div//div//div[3]//ul//li[1]//h4")) { string titleString = "<div class=\"show\">" + title.InnerText + "</div>"; sh...
stackexchange/codereview
I was trying to use APC but it doesn't seem to work as I expected. file1: $bar = 'BAR'; apc_store('foo', $bar, 3600); var_dump(apc_fetch('foo')); // It works here. Displays BAR file2: var_dump(apc_fetch('foo')); When I execute file2 within seconds, it returns false instead of 'BAR' which is the data stored ...
stackexchange/codereview
Installed Attlassian JIRA on windows 7, and it works only on h_t_t_p://localhost:8088, but if i try to open it as h_t_t_p://127.0.0.1:8088/ or h_t_t_p://myipaddrees:8088/ - page doesn't open. Firewall swiched off. h_t_t_p - should be http because of spam Who can help me. Thanks.
stackexchange/codereview
SELECT t.compname, min(t2.version) FROM archdetails t INNER JOIN svn3 b ON t.compname = b.compname INNER JOIN archdetails t2 ON t.compname = t2.compname WHERE ((b.revno = '270294' OR b.revno = 'r275869' OR b.revno = 'r393316')) AND t.version = '1.6' GROUP BY t.compname` Table archdetails: Field | ...
stackexchange/codereview
I am working on embedded code and attempting to convert a lot of memory-mapped register assignments to get()/set() function calls. I was wondering if it would be possible to maintain the address assignments sprinkled throughout the code, but change the #defines so they take the assignment in as a function argument. Old...
stackexchange/codereview
I have a website written in Classic ASP and ASP.NET, after a few redirects from Classic ASP to ASP.NET the Back button in IE8 gets disabled. The pages don't have no-cache set and I am not doing server.transfer. Any ideas why the Back button gets disabled after X amount of redirects; also X is not always the same numb...
stackexchange/codereview
Hi I have a div that I want to change some values in, when I click a button. If I click on <button id="image320x150">320 x 150</button> then I want to change the width to 100 and the height value to 200 in the div. and if I click on: <button id="image320x200">320 x 200</button> then I want to change the width to 50 ...
stackexchange/codereview
I'm designing a ribbon in Visual Studio 2010 and I have reached a problem, that I really don't get. As the title says, how do I change the size of a group? There are no visual way to change the default size and it seems to auto-size when being used instead. My main problem is that I want to position the button labeled ...
stackexchange/codereview
In order to measure the time duration while my app is running, as well as the time that passed while my app was idle in the background, I need a reference clock that is not altered by the user changing the Time+Date of his calendar clock. I can not rely on NSDate because that can be changed by the user while my app is ...
stackexchange/codereview
Could anyone please explain this to me with an example? I am getting contradicted myself High Fan in: A given class designed in such a way that a high number of other classes can easily consume it. High Fan out: A class should be using lot of other classes. Both seem mutually contradictory. Can anyone explain it with...
stackexchange/codereview
I am wondering how I should declare a function in a jQuery script. What I've got now: function adjust_menu() { alert("test test"); }; but when I call it like this: ("#first_link").click(function() { adjust_menu(); }); it doesn't work. What am I doing wrong?
stackexchange/codereview
What is the next logical step for language learning after learning BASIC?
stackexchange/codereview
I have a sprint anycom bluetooth reciever connected to my car stereo. I think it only supports the A2DP bluetooth profile (no hfp). Right now the music plays through the car stereo just fine but when I get a phone call it does not. Ideally I would like to have the phone call audio go through the stero and use the pho...
stackexchange/codereview
I'm writing an application where Tags are linkable and there's a need to retrieve the entire chain of linked Tags. Self-reference is not allowed. Running the following code ends up with some very strange results: class Tag(object): def __init__(self, name): self.name = name self.links = [] def __repr__(sel...
stackexchange/codereview
I would like to know if it is at all possible for AS3 to grab header information and process it? I am trying to avoid having to use PHP to get the information, then store it in a DB, give it to flash, then go and delete it again, or something alike. Basically the flash is waiting for three variables that get sent thro...
stackexchange/codereview
anyone can explain file upload process in PHP. I mean what happens in backend internally. like saving with temp name, moving to upload folder etc. I want it's step by step working. Thanks
stackexchange/codereview
This is driving me nuts. I retrieve a bunch of emails from a mailbox and save them as files in a folder. There is currently just one mail in the mailbox (this specific mail is not the problem, tried others as well). After retrieval I concatenate the subject of the mail with a unique GUID-string, save it as a file and c...
stackexchange/codereview
Consider the following code: template < typename T > struct A { struct B { }; }; template < typename T > void f( typename A<T>::B ) { } int main() { A<int>::B x; f( x ); // fails for gcc-4.1.2 f<int>( x ); // passes return 0; } So here gcc-4.1.2 requires the template argument of f to b...
stackexchange/codereview
I have a problem running my application outside Eclipse. It gives ClassCastException at the place where the application inside IDE does not. In particular, I output to the terminal the name of the instance I'm trying to cast and inside IDE it gives the correct type such as "NestedEngineImpl" whereas outside IDE it give...
stackexchange/codereview
Does anyone have experience with printing directly to a Photo ID Card printer in a web browser? I have a web application that manages user data, photo, and so forth. I'd like to add a Print ID Card feature to it. The web application is a single page javascript application that talks to a RESTful web service via JSON. I...
stackexchange/codereview
I have a problem where, due to previous people's poor design decisions, I'm forced to have two columns in a linking table that should always be mutually exclusive. I've seen SQL-Server: Define columns as mutually exclusive but MySQL doesn't enforce CHECK constraints so I'm looking for other options. Is there any way ...
stackexchange/codereview
I have an issue with two ajax calls using jQuery 1.4.2. With the first call the server is taking a long time to respond (over 40 sec) and when the 2nd call is fired (which isn't timing out) FireBug tells me the 2nd requests response is downloaded fine but the success event isn't fired. Could someone tell me why this wo...
stackexchange/codereview
I have a list of users that have requested access to my application. They appear in a table inside a view: <table> <thead> <th>Company</th> <th>First Name</th> <th>Last Name</th> <th>Email</th> <th>Role</th> <th>Action</th> </thead> <% for ar in @brand.access_...
stackexchange/codereview
I am writing a script to grab some Firefox settings, however it looks like some preferences are not within Firefox's various .js files. The preferences I am referring to are the preferences in about:config (such as network.http.max-connections). The .js file I am mainly referring to is prefs.js. So my question is: Are...
stackexchange/codereview
It's been a long day and I seem to have drawn a blank with my current issue. Below is code contained in my HomeController: public ActionResult About() { SqlDataReader rdr; string fileName = ""; const string connect = @"Server=localhost;Database=Images;user id=user; password...
stackexchange/codereview
Any idea why a new Firefox (latest version) would not show scrollbars on a JQModal? Worked fine in every other browser: Called like: $('#HTMLPreview').click(function(){ var a=document.getElementById("txtStudentWriting").value; b=a.replace(/[\r\n]/g, "<p><p><p>"); $.modal(b,{maxWidth:500,ma...
stackexchange/codereview
I have several stages to an application process consisting of multiple forms on different pages. I have created a session to handle the data. My question is, without explicitly stipulating every form field form can i add the form post to an individual part of the session array one by one. So that when im at the end...
stackexchange/codereview
So I'm running into an issue using libjpeg on Windows which causes jpeg_read_header() to crash. The problem is (fairly hilariously) described here: http://sourceforge.net/projects/gnuwin32/forums/forum/74807/topic/1629371?message=4053776 I've decided on the 3rd option, which is not using jpeg_stdio_src/dest APIs. How...
stackexchange/codereview
I've seen different comments all over the place, some say that zend framework automatically sanitizes post/get data but others say it doesn't. What's the deal? I've seen that doing it in the predispatch with a foreach on getParams is the quickest way, but does anyone have any suggestions?
stackexchange/codereview
I have a div with "Terms and Conditions". It is a vertically scrollable div. The idea is to scroll all the way down which will allow a user to then Submit (by hitting the submit button). But it is not really a button, but an anchor with a javascript function inside. <a onclick="showDialog();"><img name="continue...
stackexchange/codereview
all! I'm the begginer at html and css and I try to create the block, which consists of three parts: top, content, bottom. Top and bottom are some pictures with round corners. And the third part-"content" has colour background, there will be some information. I tried to do this with tags div and css styles in several w...
stackexchange/codereview
I have a project with a manifest file with the following node: <requestedExecutionLevel level="requireAdministrator" uiAccess="false" /> ...meaning I want it to only run "as administrator" by default. from searching around, to make this work I have two options: "Embed" it. deploy the manifest file with the exe, and...
stackexchange/codereview
Why do i get different result with the following to sections of code Code Sample 1 using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Threading; namespace ThreadLocalTasks { class Program { static void Main(string[] args) ...
stackexchange/codereview
We enabled static resource caching in our ASP.NET application like this: <system.webServer> <staticContent> <clientCache cacheControlMode="UseExpires" httpExpires="Thu, 29 Oct 2020 00:00:00 GMT" /> </staticContent> </system.webServer> Using a sniffer, we can confirm that the Expires tag is actually bei...
stackexchange/codereview
We use Oracle and PHP together with some success. It seems there are a lot of rough edges as compared to, for instance, Java + Oracle. I am familiar with the Underground PHP + Oracle guide and that there is information scattered around the net. While OCI8 seems to work in most cases, there is noticeably a lack of su...
stackexchange/codereview
I'm designing a form in VS2008 and I want to snap controls to the left and right edges of the form but with more space than it gets now. I tried changing the gridsize but that doesn't do it. The form is for the compact framework so i'm designing for a smartphone I don't know if that makes a difference. I guess it oug...
stackexchange/codereview
I have a command line utility from a third party (it's big and written in Java) that I've been using to help me process some data. This utility expects information in a line delimited file and then outputs processed data to STDOUT. In my testing phases, I was fine with writing some Perl to create a file full of informa...
stackexchange/codereview
Can I, with my own code, in C++ accidentally produce memory leaks without taking use of new and the malloc function? (and all other stdlib functions that allocate memory)
stackexchange/codereview
I am writing a plugin for Seesmic Desktop 2, and this being my first time using Silverlight, I have a question: Writing Windows apps, we have the application configuration file e.g. MyApp.exe.config that is used to store config values, and for the web we have Web.config. For Silverlight, there doesn't seem to be the sa...
stackexchange/codereview
I am pretty new to both swing and scala, but I am trying to capture when a column is clicked in a scala.swing.Table and I have been unable to figure out how to do this. Can it be done in scala? I am still learning how to read the scala API, so any insight would be helpful,
stackexchange/codereview
I am trying to write a GUI application using NetBeans, and I am getting increasingly tired of it.. I constructed a "Java Desktop Application" using NetBeans. It creates the main form as a org.jdesktop.application.FrameView descendent. I would like to know what is the proper way to add some code that is executed when th...
stackexchange/codereview
I have been trying to implement an AJAX call on a database returning a JSON file with PHP and eventually met the encoding problem. My database has some char fields with customers' names and, since it is in portuguese, european characters are pretty common. Hence the some results with those characters are returning null...
stackexchange/codereview
A public method wants to call a private method (passing some objects as arguments) after some period of time... How do we do it? Wanted something like this: var someClass = function(someObj) { var myPrivateMethod = function(someParam) { alert('i got ' + someObj + '!'); if (someParam) alert('and i a...
stackexchange/codereview
I was trying to write a templatized quicksort function. The thought in my head was that I would write a quicksort that can operate on any data structure that has a subscript operator and an order relation on the objects contained within it, so I could do things like quicksort<deque<int> >(); quicksort<vector<string> >(...
stackexchange/codereview
i hav a file with some data and i want to attach this file to mail, and i am using the default mail composer ... any idea how to attach the file to mail before sending to receipents.... Thanks in advance....
stackexchange/codereview
I have a problem with running my server application which registers itself in rmi registry. In Remote interface I have method which returns JasperPrint. The exception is thrown when server calls: server = (Server)UnicastRemoteObject.exportObject(server, 0); Registry registry = LocateRegistry.getRegistry(); registry.reb...
stackexchange/codereview
Sample Query: CREATE PROCEDURE dbo.Test (@p varchar(10)) AS DECLARE @param varchar(10) SET @param = @p + '%' SELECT * FROM table1 t1 INNER JOIN table2 t2 on t1.id = tr.id WHERE t2.desc LIKE @param I've a query which is similar to one above and when i use this in stored procedure it runs indefinitely without giving an...
stackexchange/codereview
Consider this 2 methods that returns IEnumerable: private IEnumerable<MyClass> GetYieldResult(int qtResult) { for (int i = 0; i < qtResult; i++) { count++; yield return new MyClass() { Id = i+1 }; } } private IEnumerable<MyClass> GetNonYieldResult(int qtR...
stackexchange/codereview
Is it possible to detect if an application has an console window? Either by have used AllocConsole or if it's a regular console application. Edit: Solution (thanks to ho1's answer): public static class ConsoleDetector { private const uint ATTACH_PARENT_PROCESS = 0x0ffffffff; private const int ERROR_ACCESS_DENIE...
stackexchange/codereview
I have a simple program that polls a DB table every so often and sends any mail that the table indicates is pending (using javax.mail). When the mail is sent I delete the DB entry. I have noticed two potential problems There's the potential to send a mail and then something crashes so the DB entry is still there. Th...
stackexchange/codereview
Where is the best place to create dynamic controls in ASP.NET? MSDN says Pre_init , another MSDN article says Init, and some people say the Load event (which I read isn't good to do). I'm studying for a MS certification and I want to make sure I know which one is ideal and why. My initial thought would be to create t...
stackexchange/codereview
I have in plenty of Core Location based apps that before triggering the code for location services an alert pop up and warns user that the app is going to use their current location. Is this a in-built feature of Core Location or we need to implement it before calling API?
stackexchange/codereview
First of all, I'm looking at the interactions between around 300 elements. Each element will interact with all others and itself. In a minority of these cases, a reaction will occur, and I will mark that reaction. Since this is basically a matrix with around 90,000 possible interactions, I want to manage this data wi...
stackexchange/codereview
Help! PHP cannot write to any files in my web directory. I don't know why! I have the permissions of the file set to 777, but it is not working! Here is the code in question: <?php if ($f=fopen('test.txt', 'a')) echo 'file opened'; fclose($f); Nothing is being echoed! I don't know why :(.. the userid and gid ...
stackexchange/codereview
generaly what I need is type transformation instructions to be capable of for example multipliiing on true like 5 * true and get5 of say x * false and get 0. How to do such thing?
stackexchange/codereview
I have a question. I have partition for home with directory "abc". So /home/abc If I will reinstall Ubuntu and create the same user "abc" my data will be OK? Will this folder be cleared and created again?
stackexchange/codereview
For some current projects, I'm working with several data structures that are pretty large (in the area of 10K elements). To be able to access this data in lists, I need to use loops and iterators, which can be a pain when the problem area is in the latter half of the list. So I find myself spending alot of time with...
stackexchange/codereview
Hello everyone thanks for looking into my problem. What I am trying to do is write a "Structured" program in python that takes txt from a file and parses it into lists. Then after closing the file, I need to reference the user input (zipcode) in those lists and then print out the city and state according to the zipco...
stackexchange/codereview
I want to create a .dbf file. Can anyone help me out how to do that using c#.net
stackexchange/codereview
Edit: I've rewritten the question in hopes that the goal is a little clearer. This is an extended question to this question here, and I really like the function provided in this answer. In the answer above, one is able to set the probability of hitting an extreme, with higher numbers producing a higher probability of g...
stackexchange/codereview
Background I'm reading and writing an XML document using reader and writer, with filtering logic in between the read and write operations to determine which parts read should be written back out (effectively it strips some tags out) ... My choice of implementation currently is the following using: XmlNodeReader, XmlWri...
stackexchange/codereview
Is there any standardized way (not language dependent, I need at least C++, Java and Ruby) of listening for changes in a DOM-document? I would like to have a function called every time a node's attributes change, a node gets renamed, deleted, etcetera. I found the Handlers for UserData, however those don't allow me to ...
stackexchange/codereview
How can I compare dates using where statement in sqlite? I don't know how to write date in timestamp format in DB. I guess only timestamp format (integer or string in database) I can compare?! Can someone help me with code for writing date in db (using ContentValues ) I want to use this code for comparison: Cursor mCu...
stackexchange/codereview
I've been long fan of NX nomachine for remote desktop, which worked just fine until some time ago. Recently I have all the time problems with ALT and CAPSLOCK synchronization, and since I am programming under remote X with vim it starts to drive me crazy. I spent more time figuring out what I accidentally deleted, wher...
stackexchange/codereview
I have an app which is linked to (via an Android Market URL) on several different websites. What I need to implement is a way to determine where my users came from. Is there a way to determine the referring URL that the user followed to download my app via the Android Market? For example, user A browses site xyz.com an...
stackexchange/codereview
I have the following implementation of a clone_ptr in an attempt to make safe copies of object pointers that need to be copied in a class, so instead of using the copy constructor, I was adviced to use smart pointers and create a clone pointer. Clone_ptr implementation: #include <algorithm> #include <functional> #inclu...
stackexchange/codereview
I have a column named Address in a table. I have values such as 12-15 Hardley Street 2A-C Hardley Street A-2c Hardley Street A-B Hardley Street I am required to keep the hyphen(-) intact in the first three rows. i.e. If there is a number in the word that contains the hyphen(-), I should keep it, else I sho...
stackexchange/codereview
I need help to convert a color image to "black and white", not grayscale. I what to do this with the iPhone SDK and Core Graphics, as I'm convinced this is possible.
stackexchange/codereview
For this project I'm not allowed to use generic classes keep in mind. I have tried copying all my classes into another friends computer and he gets the same error. I cannot make calls like.. int counter = ((Movie) movieList.get(movListIndex)).getShowList().size(); Where getShowList() is a method in my Movie class that...
stackexchange/codereview
This builds on How to send messages between Companies. If I decide that company S(upplier) should poll orders from company (B) in some simple HTTP based Way what is the best implementation. I assume Company B has a Webserver running and the backend database of this Webserver is durable. We should make as few a possibl...
stackexchange/codereview
I want to start writing python to support some of my web applications. Mainly i'm trying to fetch pages, send POST data to urls and some string manipulation. I understand that there are some disadvantages with the urllib in the new versions. Can anyone please tell me which release is best for my needs? Thanks
stackexchange/codereview
I need to add a CSS style to a content <div>, which is present on all pages of my site. However, I do not want to use the new style on the homepage. All the pages on the site have a similar structure: a header <div> with navigation bar, followed by a content <div> with the page's contents. Best I could think of is to a...
stackexchange/codereview
I am new to wordpress, and this is the first time i have built my own custom theme, and website using it. I need a plugin that would allow my customers to rate our services, input there names, and email address' and from there show the administration and possibly the customers as well what they think of us. It isn't so...
stackexchange/codereview
My superficial understanding of variables in f# suggests that declaring a variable to be 'mutable' and using a 'ref' variable essentially both do the same thing. They are both different ways to address the same underlying issue - a limited and structured allowance of mutability in a functional language without having ...
stackexchange/codereview
I have created an application form using MS Word and a whole bunch of form fields, and I have an Access db that can import all the data I need from this Word doc, thanks to this: http://msdn.microsoft.com/en-us/library/aa155434%28office.10%29.aspx Now everything works just fine (I even managed to get it to import into...
stackexchange/codereview
What I am trying to do is have a "load more" button at the bottom of a ajax populated list. I have got all the code working with a docked button, but I would now like to have it at the bottom. What is happening is when the listView card is show I see my list but the list won't scroll. It pulls up and down a little but ...
stackexchange/codereview
In C# it is possible to create higher order functions, ie. functions g taking functions as arguments. Say I want to create such a function which given a function f and returns another function extending its functionality. How do I define argument names for the returned enhanced method? The motivation being, that I'm wo...
stackexchange/codereview
I keep getting a file not found error, even though it exists at /mnt/sdcard/folder/Samples.zip. I downloaded the file there, so there are "write" permissions, but it just doesn't want to unzip! Why is this? ZipInputStream in = null; try { final String zipPath = "/folder/Samples.zip"; ...
stackexchange/codereview
I use the default ASP.NET Profile Provider which lets me define user properties in web.config. I now no longer want to use one of these user properties. I want to delete all traces of it. I can remove the property from the list of properties in web.config however, I suspect, the stored values for this property will sti...
stackexchange/codereview
In my program I have a string which contains URLs separated by /n (One per line) Let's say the string is called "links". I want to take this string and generate a HTML file that will automatically open in my default browser which will make each URL a hyperlink (one per line). How would I make such a report not using an...
stackexchange/codereview
Suppose I have the following classes: class X; class Y; class Collection { public: virtual void AddItemX(X*) = 0; virtual void AddItemY(Y*) = 0; //So on... }; class Collector { public: virtual void Fill(Collection&) = 0; }; Is there any way to ensure that an implementation of Collector ...
stackexchange/codereview
I'm trying to write a console application that will run and remove/add items to the IP Granted table. I have a web-based version of this running perfectly(standard asp.net program) and now I'd like to port some of the functionality to a console app, and I'm running into problems. The console app reports missing referen...
stackexchange/codereview
I'm trying out the Enterprise Library 5.0 and was doing some unit-tests on my BL, do I need to have a app.config on the DL or on the Test project? note: I already have the configuration settings on my web.config on my web project. how I use the DAAB: private static Database db = DatabaseFactory.CreateDatabase(); db.Ex...
stackexchange/codereview
Possible Duplicate: Use of var keyword in C# Hi, Just moved job and I am used to using var a lot. At my previous job we were doing lots of TDD and using resharper. In this job they hate third party tools and the developers here say that it is not good to use var all the time and it is not as efficient as explicit ty...
stackexchange/codereview
I'm having some problems with HXT, though I suspect it's just something I'm missing about arrows. I have an XML structure like <str name="field1">value</str> <lst name="field2"><str>value2</str><str>value3</str></lst> And internal structure like data XmlData = XmlStr String | XmlList XmlData Is there a way to collect...
stackexchange/codereview
Does any one know proc sql or data step have a function where I can convert datetime value into : 15 mins interval for example : 03NOV2010:00:00:02 --> 0-15 03NOV2010:00:16:02 --> 15-30
stackexchange/codereview
I was just wondering if there was any way to set to %PATH% variables so I can compile my Java code, along with my Python code? For instance.. PATH is currently C:\ ... JDK_bin blah blah, and that's it. To run my python code, I have to change my path variable completely. Any answers?
stackexchange/codereview
I'm facing a hard problem, I'm developing an app to capture video from both front and rear camera simultaneously on IPhone 4 without jail-break and save it to one video with AVI format. I'm facing 2 problems: 1. Capture videos simultaneously from both camera (front and rear). 2. Save captured videos to only 1 file with...
stackexchange/codereview
I would like to know if its possible to call a non-const member function from a const member function. In the example below First gives a compiler error. I understand why it gives an error, I would like to know if there is a way to work around it. class Foo { const int& First() const { return Second(); ...
stackexchange/codereview
I've got an application that loads an assembly dynamically: Assembly asm = Assembly.Load("MyClass.DLL"); Type type = asm.GetType("MyClass"); MyClass runningAssembly = (MyClass)Activator.CreateInstance(type); runningAssembly.start(); Once loaded and the start() method is called, this line of code is executed: Xml...
stackexchange/codereview
I've got a legacy table that my rails application shares with another application. It has a column called "class". The first time I reference any attribute in that model, I get an error. Subsequent references to attributes work. Is there a good workaround for this, or should I just go modify the other application tha...
stackexchange/codereview
When we refer to a class className in jar, how does it know whether it's defined or not when there's no header files(like in c/c++) ?
stackexchange/codereview
I'm building a desktop to-do list app, and in my UI I have a ListView control which lists all the items in each list. Each item/row has a checkbox which updates the status of that item in the database when it is checked or unchecked. So far so good! What I am attempting to do is re-sort the list whenever a checkbox is ...
stackexchange/codereview
If I don't want to allow anyone to create an instance of my class except for my static functions (I think this is called singleton/factory?), is it enough to make the default constructor private, or do I also need to explicitly define and make private a copy constructor and assignment operator?
stackexchange/codereview
First just let me say I'm open to ideas on a different approach altogether. I have and iframe as such: <div id="testloadlogin"> <iframe src="../security/login.aspx" width="400" height="500" scrolling="auto" frameborder="1"> [Your user agent does not support frames or is currently configured ...
stackexchange/codereview