instruction_seed
stringlengths
1
35.8k
_source
stringclasses
1 value
I know enough SQL to write basic SELECT and UPDATEs. I'm struggling with JOINs I want to update the 'county' field in a crime table. I am using a zip_xref table that will give me the county names. The issue is that several hundred cities are in multiple counties, and I want to update the table with the most prevalent c...
stackexchange/codereview
I get this error when creating a view: "Cannot schema bind view 'dbo.viewStock'. 'dbo.GetStockCurrentQuantityByProduct' is not schema bound." BACKGROUND: What I actually want to achieve is improve the speed of a query that retrieves Product Id / Current Stock. The current stock is calculated by a function that counts t...
stackexchange/codereview
I am developing an application that runs on a network. It needs to contact to database (access database) very very often, which is stored in server. Around 30 Client computers contact the database almost every 2-3 seconds. I need to know could there be potential manifest problem in with the application? Could there w...
stackexchange/codereview
HTML: <div id="browse_list"> <div class="browse_list_element"> <span class="list_element_logo"> Ghre </span> <span class="list_element_name"> Ghre </span> ...
stackexchange/codereview
<td id="anchToImg"> <a href="/mydir/folder/anyImg-1.jpg">my anchor1</a> <a href="/mydir/folder/anyImg-2.jpg">my anchor2</a> </td> I need it to be like this after jQuery is applied <td id="anchToImg"> <img src="/mydir/folder/anyImg-1.jpg" class="myiImg"> //changed to image;anchor text removed <img src="/mydir/folder/an...
stackexchange/codereview
What's the best way to store compressed data in a cookie? The reasons I want to do this are: I want to store as much data as possible in 1 cookie I want performance to be as fast as possible in terms of data transfer I don't want it to be so obvious what I'm storing exactly to prevent easy tampering There are many va...
stackexchange/codereview
I'm frequently working with students on their .Net coding assignments. I'd like to email the code to them when we're done. The easiest thing would be just to zip the project folder and send the whole thing, but gmail always strips out my attachments because they contain executables. Generally it's just the myproject....
stackexchange/codereview
LoadPin is a function to add a marker to a map. It initializes the layer on the first call. map is an openlayers map object. But using map.removeLayer("markers") or "Markers", does not remove the markers from the map. I saw a mention of a destroy operation to do this but cant find that. AND, how do I remove the popu...
stackexchange/codereview
I have a custom menu item (UIMenuItem) attached to a UIWebView. When the user selects my custom menu item after selecting some text in the web view, I want to "deslect" the current text selection. The problem is that the edit menu will pop up again when I show a modal form for some reason, I think because there is st...
stackexchange/codereview
I thought this would be fairly trivial but I'm having problems... Using the Jquery UI Slider I wanted to have a slider with "stage 1" through "stage 12". As you change the slider, I wanted an image to change based on the stage that was currently selected. I'm using the following code: Script: $('select#valueBB') ...
stackexchange/codereview
The jquery.hotkeys plugin lets you easily add and remove handlers for keyboard events. However, this plugin can handle keyboard event only but not mouse click event. So it does not support something like: $('#gallery li.icon').bind('click', 'ctrl+leftbutton', function() { $(this).addClass('selected'); }); I know t...
stackexchange/codereview
I want to test if my 'style.css' is linked to my page while rendering it with a certain layout, for example 'application.html.erb': So here's the spec: spec/views/layouts/application.html.erb_spec.rb it 'should include styles for screen media' do render rendered.should have_selector('link', :href => '/s...
stackexchange/codereview
I recently set up a WebSocket server on one of my home machines and am trying to get it to work from a remote connection. I used the following PHP WebSocket solution (supports Draft 75 and 76): Niko Kaiser's PHP Websocket Server From a local connection the demo works flawlessly. I can use the client-side demo just fine...
stackexchange/codereview
I have numerous groupboxes that need to be listed in a ListView. I have tried: listView1.Controls.Add(new NewsBox()); (NewsBox being a custom class derived from GroupBox, just with standard labels and a definite size) Anyways, that works for listing the first controlbox, but not for 2 or more. Any ideas?
stackexchange/codereview
my studies team is projecting SOA system with automated composite of services. There is meany papers about abstract SOA but we can't find about practical way. We wants to fit in java standards for SOA and don't want to write from scratch what is good to reuse today. There is meany tools like protege and jena to manipul...
stackexchange/codereview
Quick background of what I have going on. UIMapView loads and shows a single annotation (Never more than one). On the menu bar, there is a Locate Me button, on tap the userLocation is found and displayed as a second annotation. I then I have MapView zoom out to fit both those annotations in range but I am unable to ...
stackexchange/codereview
I want to populate a drop down list and I do not want to keep going to the database. I was thinking to have my country list or language list in a properties file. That way I could read it in, and then assign that to a variable. I could then return that through the ModelAndView type. Is this a good approach? I am n...
stackexchange/codereview
I want to get the employee numbers and start dates of all the employees with start dates equal to the earliest date. I know this is wrong. But just writing to show what I want. SELECT start_date, employee_no FROM [employees] WHERE (start_date = MIN(start_date))
stackexchange/codereview
I have a web page which prompts the user for an excel file using the fileupload control. What it then does is read the file into a datatable using an OleDbConnection and then runs other code with that data. When I test in Visual Studio, it works fine. For example, I can look up a file 'g:\myfiles\upldtest.xls', it find...
stackexchange/codereview
Is there an easy way to see SQL statements generated by EntityDataSource? SQL Server profiling/tracing is not an option here.
stackexchange/codereview
My project (C#) deals with many files about 1 MB ~ 2 GB in size. SQL server 2008 database is used. In long-term I need to do some operations over them like total sum of their size and ... At first glance I was planned to store their size in byte (in C# code long, in database BigInt) because of file size nature and its ...
stackexchange/codereview
I installed gcc and gfortran on AIX, and they work fine. Among other things I use them with some libraries which are accessed by header files (.h in C). The very same libraries can be used with modules (.mod in fortran), but as you know their use is optional: if I comment out the use mylib implicit none from my fortr...
stackexchange/codereview
I would like to have two lists, Available Items and Selected Items, whereby Available Items are assigned to Selected Items via drag and drop. I require the Selected Items to be sortable, but not the Available Items. The challenge is that both lists can potentially contain a significant number of items, and therefore ne...
stackexchange/codereview
If I have a string of "myArray[0].myPrice", how do I turn this in to a reference to myPrice? This is the code context: binding.value = convert(binding.data[binding.field], binding.converter, binding.data, elem); binding.field is what contains "myArray[0].myPrice". binding.data has a reference...
stackexchange/codereview
Update: Never mind. It was happening because it was adding the headers back. So I moved the php code separate from html and it worked. thanks guys I am using the code below <?php $target_path = "Files/"; $target_path = $target_path . basename( $_FILES['decryptfile']['name']); ...
stackexchange/codereview
I'm looking for a software or script to make a daily backup (automatic) of a mysql database. Any suggestions? Right now my solution is to use Mysql workbench with mysql dump, but I have to do it manually, so anything free and automatic would be appreciated. Thanks!
stackexchange/codereview
I have 2 MySQL tables, 'scheduled_time' and 'appointments' 'scheduled_time' has 2 DateTime fields, 'start' and 'end' - this is a time range of when I am available for appointments. 'appointments' contains appointment details but also a 'start' and 'end' field, this will ultimately be within the range specified in 'sche...
stackexchange/codereview
i'm extending UITableViewController and have a uibutton added programtticly to the table footer , for some reason the uibutton fire only when touch in the top part ... as if someting is masking the rest of it and i can't understand what it is i have the following code at viewForFooterInSection function: CGRect screenR...
stackexchange/codereview
Ey guys, I was wondering if it was at all possible to display an MKMapView without an active internet connection, and if so, how would I go about doing that? Thanks in advance!
stackexchange/codereview
I have a simple page/database setup where you can increment or decrement the point total for person A or person B. I've gotten some help, throwing some things into their own function to clean things up. I'm new to php and mysql; reading over what I have I understand all the logic, I just can't figure out how to finish ...
stackexchange/codereview
i try to write a script, with which will generate backup for directory. I write this, but not work ... can't create zip file :S Maybe it's wrong, in my OOP style, i still newbie :-) Pastebin Code
stackexchange/codereview
I have a hybrid ASP.Net web forms/MVC app. On one of the MVC "pages"/views, I have it render a bunch of dates using the ToShortDateString() and ToLongDateString(). These work correctly most of the time, but the first time I load the view after compiling the app, they are formatted incorrectly. I traced this down and ch...
stackexchange/codereview
i've a form POST with multiple submit buttons. i understand to get this to work i must have them with different name. however, i wanna keep the name to be the same because i wanna handle the POST using a single script. im not sure if there is other way but i know javascript can be used. however, how do i get the value ...
stackexchange/codereview
We have an MS Access based system that relies on back-end data stored in networked MS Access database. Sometimes those databases get corrupted when random networking issues occur. So we thought we should add some sort of process that can routinely fire off a compact and repair. The problem is that this database is us...
stackexchange/codereview
What are the best or most useful configurations for logging with NLog? (These can be simple or complex, as long as they're useful.) I'm thinking of examples like automatically rolling over log files at a certain size, changing the layout (log message) whether or not there is an exception, escalating the log level once...
stackexchange/codereview
Hoping somebody can advise on an issue I have with simplexml. I need to specify the paths for various nodes but I'm not sure if this is possible. $xml = new SimpleXMLElement($xmlstr); $image1 = 'images->image[0]->image'; foreach ($xml->record as $record) { echo $record->$image1; // i need this be be recognised as $r...
stackexchange/codereview
I'm developing a WYSIWYG type site builder in JS for people who don't know HTML/CSS. It's all done, but I want to make this as simple as possible. In a perfect world, they'd just upload all the files to their host and be done with it. The problem I'm having is, I have some files and folders that need writing to, but...
stackexchange/codereview
I am editing some files with the extension '.ctp'. Although these files are perfectly valid PHP files, Eclipse doesn't seem to know that and refuses to do any syntax highlighting with them. How can I manually instruct it to use PHP syntax coloring for '.ctp' files? Is there even a way to do that?
stackexchange/codereview
I have just discovered that UserControls in a TabControl will not load until the parent TabPage is selected. Is there a way to prevent this delay loading? I need to initialize the UserControls when the main form loads.
stackexchange/codereview
I'm trying to query a column in my model here: require 'rubygems' require 'dm-core' require 'dm-migrations' require 'dm-aggregates' db_name = 'mydb.sqlite' DataMapper::Logger.new($stdout, :debug) DataMapper.setup(:default, 'sqlite://' + Dir.pwd + '/' + db_name) class Context include DataMapper::Resource property...
stackexchange/codereview
The following code skips the first second of audio in a pcm caf file and removes the last 5 seconds, writing to a temp file (which will be 6 seconds shorter than the input). The loop, everytime, produces a kExtAudioFileError_InvalidOperationOrder on the ExtAudioFileWrite. What am I doing wrong? NSString *destURLString ...
stackexchange/codereview
We've been having a new type of spam-bot this week at PortableApps.com which posts at a rate of about 10 comments a minute and doesn't seem to stop - at least the first hour or so (we've always stopped it within that time so far). We've had them about a dozen times in the last week - sometimes stopping it at 50 or 60, ...
stackexchange/codereview
I'm considering creating an interface and applying it to all objects in a certain namespace. Scenario in which I would use this: I want to create a generic handler of those objects, and I'd like to enforce the generic parameter to only accept types that implement this particular interface. Is this a bad design, or a...
stackexchange/codereview
i am wondering how facebook works for logging in user on our websites. I mean a user needs to be registered to my website for posting a comment, how can I check trough my php code if it's a logged user? I heard you can only check if it's a logged user with javascript Thanks for any explanation
stackexchange/codereview
I need to map class A into class C using dozer framework. public class A { private String fielda1; private String fielda2; public String getFielda1() { return fielda1; } public void setFielda1(String fielda1) { this.fielda1 = fielda1; } public String getFielda2() { return fielda2; } public void setFielda2...
stackexchange/codereview
I'm aware that you can change the names of routes for devise, but I'm looking to actually add something to a devise route, like so: match "users/sign_up/:invitation_token', :controller => 'registrations', :action => 'new'" I've tried adding that line both directly above and directly below my devise routing declaration...
stackexchange/codereview
Original question link: Help! How to make days enabled in UI datepicker after month change? First of all, The solution of Nick Craver is wonderful. But I got another problem: The Nick Craver's date source was came from the js variable xml, but my date source comes from a xml file. So I got the same date result but ...
stackexchange/codereview
I am trying to implement a callback procedure by having a class implement and interface, and then pass that class as an object (of the interface) to another class. However, I am receiving the error: "The constructor ClassB(TestMe) is undefined". I thought that I was doing this correctly, I don't know what I am doing wr...
stackexchange/codereview
i have a combobox cbAnalytes: cbAnalytes.DataSource = ConnectandReadList(qcvalues_query); where the ConnectandReadList is: public DataTable ConnectandReadList(string query) { DataTable ds = new DataTable(); string connection_string = "Data Source=hermes;database=qcvalues; Integrated Security=SSPI;"; using ...
stackexchange/codereview
Using GWT 2.1, I am trying to create a CSS file that contains numerous constants and common styles. I would like to use the ui:style tag to include it in the UiBinder template: <ui:UiBinder xmlns:ui='urn:ui:com.google.gwt.uibinder' xmlns:g='urn:import:com.google.gwt.user.client.ui' <ui:style field="css" src="con...
stackexchange/codereview
Is it: u = User.find_by_email("me@myplace.com") or: u = User.where(:email => "me@myplace.com").first I think I read that conditions are being phased out in 3.1. I know you want to stick with AREL on retrieving multiple objects, because it figures out when to actually do the query (like if you're iterating through a c...
stackexchange/codereview
I read books, articles, tutorials, and all that kind of stuff about the n-tier architecture, and I'm trying to apply the famous 3-tier (DAL, BLL, PL). I just got into the game, actually, I've read a lot about how bad is to load the whole database into memory (which the dataset do) especially when I'm going to need to v...
stackexchange/codereview
(fixed and working fine now, but if anyone still wants to refactor, leave a note) This is a stripped down version of a function I have which iterates over a date range and assigns a unique integer to each... When working with large datasets, running this several times over different date ranges, I'm getting a fatal e...
stackexchange/codereview
How to bypass the angles at which the function tan (x) is not defined, ie x != Pi/2 + k * PI ? I tried to use the condition: (x != 0) && (2 * x / M_PI - (int)(2 * x / M_PI ) ) < epsilon, but it represents a condition x != Pi/2 + k * PI / 2. Thanx for your help.
stackexchange/codereview
I am building a web application, not hosted by the client but on the cloud somewhere, probably azure. It will need the ability to access some local devices such as a receipt printer or cash draw from where they run it. Via a browser this is obviously not possible. I was thinking of creating a service that they can inst...
stackexchange/codereview
I have a <textarea> along with user registration information that I only want to be processed (inserted to the database) after payment (I want to keep my database clear unnecessary registrations or things like people that register but change their mind about paying for the site services) I mean, I could use sessions bu...
stackexchange/codereview
I am attempting to install and run objective-caml on a remote unix server. I have successfully built and installed all files included in the ocaml package. However, when attempting to use it, eg: [~]# ocamllex gives: -bash: /home1/PATHTOMYHOME/local/bin/ocamllex: /usr/local/bin/ocamlrun: bad interpreter: No such file...
stackexchange/codereview
I'm considering implementing an SRT File parser for overlaying videos over an MPMoviePlayerController class. Can anyone think of a reliable way to fire off events at very specific times while a movie's playing?
stackexchange/codereview
I'm trying to call a web server that is using relative URL redirects for some of the calls. This of course isn't working with DefaultHttpClient as it isn't treating it as a relative URL. I've gotten as far as implementing a RedirectHandler in an attempt to catch the redirect and add in the base call but I can't work ou...
stackexchange/codereview
I am working on video stabilisation ( making shaky videos non-shaky) using matlab. One of the steps is to find a smooth camera path given the unstable camera path. The unstable camera path is one which gives the jittering or shake to the video. I have camera path specified using camera position which is a 3d-data. came...
stackexchange/codereview
So it appears that if you CAST(field1 as decimal) field1 this will automatically add rounding. The original is defined as: field1 type:float length:8 prec:53 I need to cast it to decimal, because I need my Entity Framework layer to generate this field as decimal (instead of double). Is there a way to cast it as ...
stackexchange/codereview
is it possible to generate a random value (number, symbols, letters) for an input field (preferably hidden) on click? I need to come up with an idea to simulate somewhat of a conformation number. Unfortunately I cant save the values into a db. I thought of something like: input before: <input id="randomizeme" value=""...
stackexchange/codereview
I'm trying to get CALayer working so I can start practicing some animations tricks that I would like to learn. At the moment I want to scale and move things along the z-axis. Right now I see nothing when I run this code. I would expect to see a black square. But instead nothing is appearing. The code compiles (obvious...
stackexchange/codereview
I was wondering if there was a way to do this in Hudson (or with any of the various plugins). My IDEAL scenario: I want to trigger a build based on a job through a REST-like API, and on that build, I want it to return me a job ID. After-wards, I would like to poll this ID to see its status. When it is done, I would lik...
stackexchange/codereview
Can anyone recommend me a online video screenshot with php script? I tried webscreencapture, iecapt, html2png. but just get a white screen. Is there any way to write a php code that can set time delay and catch the online video screenshot?
stackexchange/codereview
I'm building a wp7 app in Silverlight. I have some content that gets loaded asynchronously, and messages that indicate that loading is not yet done. I'd like to have the loading messages disappear as soon as the content's list box is not empty. Is it possible to do this just in XAML? Something like binding the Visibili...
stackexchange/codereview
I need to fire an event every time a property is updated/changed in order to keep dom elements in sync with the property values on the model (Im using john resig's simple inheritance http://ejohn.org/blog/simple-javascript-inheritance/). Is this possible to do in a cross-browser way? It seems to me that if I could wra...
stackexchange/codereview
I've got a little problem here. I've been trying to do an image gallery with JavaScript but there's something that I got a problem with. I can get the image to resize when the first image load, but as soon as I load another image, it won't resize anymore! Since the user will be able to upload a lot of different size pi...
stackexchange/codereview
I facing a problem on how to use SQL "in" in bulkUpdate Hibernate. Example : Country is an enum type. Normal SQL statement Update Persons SET country = Country.China WHERE country IN (Country.HK, Country.Taiwan); Hibernate using DetachedCriteria DetachedCriteria criteria= DetachedCriteria.forClass(Persons.class) .add...
stackexchange/codereview
I am in the process of creating a (hopefully large) social media website that will kind of be similar in nature to sites like youtube, facebook, twitter. This will be my first endeavor into web development. I have investigated the tools that highly trafficked sites have used to engineer their sites, and I would like to...
stackexchange/codereview
When my users are logged in with their username and userid saved in the session variable they can donate using paypal. With the simple buy now button that you can simply generate at paypal. <form action="https://www.paypal.com/cgi-bin/webscr" method="post"> <input type="hidden" name="cmd" value="_s-xclick"> <input typ...
stackexchange/codereview
I want to develop an app for android and am a newbie to pretty much anything server related. I want my app to be able to perform simple get and post requests to my server. I don't intend on hosting a website on it and it will only be accessed by the app. Do I still need to get a registered domain name or can I direc...
stackexchange/codereview
Take the following string: "Marketing and Cricket on the Internet". I would like to find all the possible matches for "Ma" -any text- "et" using a regex. So.. Market Marketing and Cricket Marketing and Cricket on the Internet The regex Ma.*et returns "Marketing and Cricket on the Internet". The regex Ma.*?et returns ...
stackexchange/codereview
my actvity has 2 views. That means I am using 2 .xml files within one java class. first_view.xml second_view.xml First view (first_view.xml) contains one EditText and one save button. when I click the EditText, the virtual keyboard is displayed on the view, and I can enter a value there. In onClick() o...
stackexchange/codereview
I need to alter the DateTime object. The resource I've found states that this is what I need to do, but I'm not sure exactly what to do with this code. Where do I put it? Thanks for reading. module DateTimePatch def getlocal "works!" end end DateTime.send(:include, DateTimePatch) EDIT: So this is what...
stackexchange/codereview
For a binary image, I am interested in a way to efficiently count the number of individual shapes present in the image. Also as an adjacent question, how can one fit each shape that is present in the image in a square? Pseudocode is most welcome.
stackexchange/codereview
Currently I have not set any specific output directory for Delphi DCUs in my main project. This results in the DCU files ending up in the same directory as my .pas source files. To me, this feels ugly as I don't like the idea of mixing .pas and .dcu files in the same directory. What is the best practice for storing Del...
stackexchange/codereview
I am making an interface that has a number of events defined in it. When I implement the interface in a class the events will show up. I want to force a class that implements my interface to also have to make the event handlers too. I don't care where the class raises the event, but I want them to have to define wha...
stackexchange/codereview
I've been struggling for about 2 hours on one query now. Help? :( I have a table like this: id name lft rgt 35 Top level board 1 16 37 2nd level board 3 6 15 38 2nd level board 2 4 5 39 2nd level board 1 2...
stackexchange/codereview
I need to know if my file is audio file: mp3, wav, etc... How to do this?
stackexchange/codereview
I need to call a Perl script from an E test that I wrote. I need to create an ini file-invoke C script that will create a config file which I need for the test I'm writing. I want the test to invoke the Perl which will handle the ini->C->config process, and then proceed with the test. any ideas?
stackexchange/codereview
Please help. I have several instances of Action1 class. Each of them should to navigate to different pages just after completed animation. Doesn't matter witch object is "Invoked", it always navigate to the same page. As long as I navigate in "Invoke" method then navigation works properly. It's looks like "PageAnima...
stackexchange/codereview
I don't consider myself a beginner, but my copy and pasting has left me lost in auto-generated errors. Here's my dilemma, if I remove the comments below the program crashes unexpectedly; with comments it displays just fine. //////// Options.java ///// public class Options extends Activity { /** Called when the acti...
stackexchange/codereview
I have an ASP.Net 4.0 application that is using Forms Authentication and ActiveDirectoryMembershipProvider. It authenticates against Active Directory running on Windows Server 2008 R2. I use ChangePassword control for changing passwords. When the user changes the password he can log on for some time with the old passw...
stackexchange/codereview
What I'd like to accomplish is a countdown that updates live... like this: 6 Days (just the days) 12 Hours (just hours within 1 day) 59 Minutes (just minutes within 1 hour) 59 Seconds (just seconds within 1 minute) Best way to accomplish this?
stackexchange/codereview
On a grid, i have a ListBox and a button. If the button is clicked, an item is added to the listbox. The problem i'm trying to fix is that after the item is added, it is not focused. I want to automatically scroll down the listbox so that an user can see the item that is lately added. Any thought?
stackexchange/codereview
I'd like to use 2 spaces for my indents instead of 4. I can change the default behavior of C mode using: (setq c-basic-offset 2) How do I change this in javascript mode?
stackexchange/codereview
What does it mean when an attribute like the hidden attribute is a boolean attribute? Can someone explain this in layman's terms?
stackexchange/codereview
I want to redirect my rails app to add www to the url if the user doesn't use it. I found this site to remove it, but I would like to do the opposite: http://steve.dynedge.co.uk/2010/03/03/using-rackrewrite-to-remove-the-www/
stackexchange/codereview
I need to inherit from a class and I only need to inherit selected attributes, is this possible or can you only inherit from classes if you need all of the attributes? Thanks, Chris.
stackexchange/codereview
I want to get the size of a file on an FTP. //Get File Size reqSize = (FtpWebRequest)FtpWebRequest.Create(new Uri(FtpPath + filePath)); reqSize.Credentials = new NetworkCredential(Username, Password); reqSize.Method = WebRequestMethods.Ftp.GetFileSize; reqSize.UseBinary = true; ...
stackexchange/codereview
I have some functions that use stream_socket_client (not curl) in php and I have multiple eth1 eth2 ...etc interfaces with different ips So i want to use different interfaces when i connect as a client, can I do that? I can't find no option for that nor in php.ini
stackexchange/codereview
I'm trying to convert my timelines to actionscript. Adobe Flash CS5 allows me to select my tween on my timeline, and hit a "Copy motion to Actionscript 3". I hit the button, then paste the code. I followed this tutorial perfectly http://layersmagazine.com/animation-to-code-flash.html But every time I run I get a lot of...
stackexchange/codereview
I'm trying to select a JDBC driver for an application I'm building and I've found lots of drivers, but I can't seem to narrow the selection down to one. The driver I select should have the following features: Free for commercial use Easy to install (eg. single jar file, no drivers to install) Easy to use (well documen...
stackexchange/codereview
I'm trying to upload a 20 meg file using the upload control and it's working fine on visual studio's built in webserver but once I publish it to the production server (which I have no access to) I keep getting the following error : Server Error in '/' Application. -------------------------------------------------------...
stackexchange/codereview
Is there any way in oracle database to define trigger which will be fired synchronously before COMMIT (and ROLLBACK if it throws exception) in case when specified table is changed?
stackexchange/codereview
I have the following issue to solve. I have an IQueryable list of Invoices, each tied to an Account. Each Account can have multiple Structures, and Accounts and Structures are tied together by a table called StructureAccount. It looks like this: Invoice ---> Account <-----StructureAccount ----> Structure I want to qu...
stackexchange/codereview
i have a custom type that implemented IUserType. one of my domain classes have a property of this custom type. now i want to make Automapping work with this domain, it says that " An association from the table xyz refers to an unmapped class: PersianDate" PersianDate is my custom type . how should i tell to automapping...
stackexchange/codereview
i am new to programming.but i want to do programming? i want to ask that how to interpret the question in spoj or other online judge ? i have stated reading different algorithms and books based on that but unable to solve any problem please guide me .please i am using c language. most of the question in spoj and other ...
stackexchange/codereview
I've created a NSWindow with a PDFView in xib file, I created a controller called MainController, there, I created a ibaction -(IBAction) openFileAction:(id) sender, it uses the method -(void) openFile:(NSString *) path{ NSLog(@"Opening File %@",path); PDFDocument *pdfDoc = [[PDFDocument alloc] initWithURL:[NSURL...
stackexchange/codereview