instruction_seed
stringlengths
1
35.8k
_source
stringclasses
1 value
I'm using preg_match_all to get the quoted users from a post on a forum like so: preg_match_all('/quote author=(.*) link=/', $post, $quotedUsers); The $post string will typically be something like: [quote author=John link=topic=1234.msg123456#msg123456 date=1234567890]Lorem ipsum dolor sit amet[/quote] Lorem ipsum...
stackexchange/codereview
I was hit in the face by a very weird behavior of the System.IO.Directory.GetParent method: string path1 = @"C:\foo\bar"; DirectoryInfo parent1 = Directory.GetParent(path1); Console.WriteLine (parent1.FullName); // Prints C:\foo, as expected // Notice the extra backslash. It should still refer to the same location, ri...
stackexchange/codereview
Using pthreads in linux 2.6.30 I am trying to send a single signal which will cause multiple threads to begin execution. The broadcast seems to only be received by one thread. I have tried both pthread_cond_signal and pthread cond_broadcast and both seem to have the same behavior. For the mutex in pthread_cond_wait,...
stackexchange/codereview
Connecting to an XMPP server with XMPPPY is simple. from xmpp.client import Client as XMPPClient self.xmppClient = XMPPClient("jabber.foo.com") if not self.xmppClient.connect(server="localhost"): raise IOError('Cannot connect to server.') if not self.xmppClient.auth("node", "password", "resource"): raise IOErr...
stackexchange/codereview
I have created on my local machine with targetframework 4 in visual studio a simple website using the default template (the one with css problem solved here Google Maps API in ASP.NET Masterpage: why it stays blank?) I uploaded it to my IIS 7 server which was first configured for .NET 2 so in web.config I deleted the l...
stackexchange/codereview
Although this question is about JFlex, it probably applies to other scanner generators such as lex, flex as well. If I have some rule, how can I create a capturing group in part of that rule and use the result of that captured group as an argument to the code that gets called upon the rule matching? For example, let's ...
stackexchange/codereview
I have a Silverlight 4 app that is hosted in an ASP Azure web role. The web role exposes a WCF service. (All this is in the same Visual Studio solution.) I successfully added a reference to the service, and generated client code. However, it causes an error: ExpenseServiceClient service = new ExpenseServiceClient(); se...
stackexchange/codereview
My Browser shows URL with file name as http://www.example.com/pdf/204177_20090604_Chloorhexidine_DCB_oogdruppels_0%2C1%25.pdf Actual File name is 204160_20090604_Atropine_DCB_oogdruppels_0,5%.pdf After urldecode, it gives wrong file name as http://www.example.com/pdf/204177_20090604_Chloorhexidine_DCB_oogdruppels_0,...
stackexchange/codereview
Can i create img map and then add several click event? for example this img- I have 4 area for event top-left, top-right etc. How i can do this? I need something like tag map on HTML.
stackexchange/codereview
I wrote a simple script that writes all given arguments to a single text file, separated by newline. I'd like to pass a list of files to it using OptionParser. I would like to add a couple of files using wildcards like /dir/*. I tried this: opts = OptionParser.new opts.on('-a', '--add FILE') do |s| puts "DEBUG: be...
stackexchange/codereview
Could somebody advice which formula used to content offset calculation after zoom in UIScrollView? Let's consider following example: I have a UIScrollView with content view in size (1000, 1000), then if I programmatically setZoomScale to 2.0 and in scrollViewDidEndZooming:withView:atScale method I will have the followi...
stackexchange/codereview
I am using CakePHP as my framework. On page load, I want to force the cursor to a specific form field where name="data[Project][title]" I'm trying to use javascript: This works fine if I change the name to something without brackets, but fails to work with this form name. I have to use this form field name because of...
stackexchange/codereview
I have a question : suppose that in a spring MVC 3.0 enviroment i manage Views with Tiles : I have a xml file with definitions of all views. Every view extends a specific template. I have two templates : one for rendering a completeDOM () and one for partialDOM (.....).The problem is, there are some views that can be r...
stackexchange/codereview
I came accross this: http://www.codeproject.com/KB/tips/SerializedObjectCloner.aspx and would like to use it to deep copy a object graph. Is it sufficient to mark all the classes that potentially participate in the object graph with: [Serializable()] and then invoke the clone method as suggested in the article? I have...
stackexchange/codereview
Trying to get the following XSD output from RelaxNG, using Trang for conversion: <xs:annotation> <xs:documentation>Basic documentation text here.</xs:documentation> <xs:appinfo> <jxb:class name="VmlLocation"> <jxb:javadoc> Javadoc text here. </jxb:javadoc> </jxb:class> </xs:appinfo> </xs:annotation> .. but none of the...
stackexchange/codereview
I am wondering if there is a way to optimize this query: SELECT Avg(selloff1), YEAR(dt), weekno FROM bbproduct GROUP BY YEAR(dt), weekno Table schema is: CREATE TABLE `bbproduct` ( `id` bigint(20) NOT NULL, `CUSTNO` decimal(6,0) unsigned zerofill NOT NULL default '000000', `DEPTNO` ...
stackexchange/codereview
I am trying to build an application in Xcode 3.2.4 and am getting the following linker error: Undefined symbols: "___block_global_1", referenced from: ___block_holder_tmp_1.120 in foobarbaz.o ld: symbol(s) not found collect2: ld returned 1 exit status I'm at a loss to explain what I've done in my source file t...
stackexchange/codereview
By huge numbers, I mean if you took a gigabyte (instead of 4/8 bytes etc.) and tried to add/subtract/multiply/divide it by some other arbitrarily large (or small) number. Adding and subtracting are rather easy (one k/m/byte at a time): out_byteN = a_byteN + b_byteN + overflowBit For every byte, thus I can add/subtrac...
stackexchange/codereview
i want to apply for this job as description below: This employer is looking for a competent and experienced student to create a website. You will be required to update web site content through a content management system online. Initially the employer needs an online store product upload and monthly newsletter/VIP vou...
stackexchange/codereview
I want to vibrate the phone in the same way as the incoming call in sync with the ringtone. How do I achieve it?
stackexchange/codereview
I am using the following code to update a table in oracle. It executes but the update does not commit. If I run the query with Oracle SQL Developer it works fine. What am I missing? SELECT statements work as expected. `Dim BillOfLadingNumber As String = txtBillOfLadingNumber.Text.Trim Dim TrailerNumber As String = ...
stackexchange/codereview
I have a Grid with 2 rows, where the second has Visibility.Collapsed by default. I want it to change to Visibility.Visible on MouseEnter on the Grid and back on MouseLeave. That's simple and done. However, I would like the transition between Visible and Collapsed to not be instant but smooth. I believe I can do this so...
stackexchange/codereview
I may be working with Siebel CRM soon, and I'm looking for advice on using modern development practices and enterprise best practices. Specifically I'd like advice on the following areas: How should we set up version control (specifically with Subversion)? What kind of structure should our repository have? How shoul...
stackexchange/codereview
I am searching for a flex library for job scheduling. I know the Timer API, but this is not exactly what I am searching for. Here is (one of) my usecase for my AIR application: Try to ping to website xyz every 15 minutes Every first monday of a month try connect to website abcdefg .. So I am searching for a library l...
stackexchange/codereview
Is there any reason for Scala not support the ++ operator to increment primitive types by default? For example, you can not write: var i=0 i++ Thanks
stackexchange/codereview
sorry if my question deosnt make sense, but thats the best way i can put it, i have this jquery script that when user clicks the login link, it appends the html form to do so, which works fine, but the appended(login-form) uses jquery to log into the site, but it deosnt seem to detect the javascript, oppose to when i p...
stackexchange/codereview
Does anyone know of a script, preferably PHP-based that will allow conversion of a static flash to an image?
stackexchange/codereview
I'm just wondering how references are actually implemented across different compilers and debug/release configurations. Does the standard provide recommendations on their implementation? Do implementations differ? I tried to run a simple program where I return non-const references and pointers to local variables from f...
stackexchange/codereview
Im pulling in search query results using CURL and then iterating through a database to load additional queries then storing the results back in the database. Im running into hassles with php maximum time and have tried setting the maximum time variable to a higher amount which i think isnt working on my host using this...
stackexchange/codereview
My friend and I are creating a cookie-based login system using PHP and MySQL, in which when a user logs in, a cookie storing their login information is saved. The problem is, for each URL, http://thewebsite.com and http://www.thewebsite.com, separate cookies are stored. Is there a solution that would allow us to save ...
stackexchange/codereview
ELMAH is purpose-built for logging exceptions in ASP.Net, which is fine, but it does leave a lot of people (myself included) wanting to solve the same all-encompassing exception logging/viewing problem for non-web applications. Do you know of any open source components for general purpose exception logging and reportin...
stackexchange/codereview
This is my code so far: $("h1.intro:contains('|')").each(function() { $(this).html($(this).html().replace('|','</span><br /><span>')) }); This works just once, but it has to work for all of those "|"... any ideas?
stackexchange/codereview
I have two appWidgets, now if user open "Add widget" dialog, both widgets will be visible in main list. But bundled HTC widgets are grouped by subject. For example clicking on "Calnedar" will bring another list, where user can pick desired design. Is it possible to reproduce such feature or it is some feature hardcoded...
stackexchange/codereview
Has anyone dealt with converting a BMP to PCX in the .net compact framework. I need to convert a signature from a BMP to a PCX to be printed on a Zebra RW420 bluetooth printer. Any help would be greatly appreciated. Thanks!
stackexchange/codereview
I have the following file Log4net.config in my bin directory: <?xml version="1.0" encoding="utf-8" ?> <log4net xmlns="urn:log4net"> <appender name="FileAppender" type="log4net.Appender.FileAppender"> <param name="file" value="MyLogFile.log"/> <param name="appendToFile" value="false"/> <layou...
stackexchange/codereview
I'm developing iPhone app in Flash CS5 and I wondering if there is a new function in AS3 for specific applications on the iPhone apps, and wondering too if they are component like iPhone style buttons for flash. Thanks!
stackexchange/codereview
Hi I have 2 ListBox's (Purchase_Select_Debtor) & (Purchase_Select_Quantity) on a Userform with a txtBox for Price (txtPrice). The Code uses Index and Match to return a result based on the Debtor and Quantity Selected. Below is my current code which works fine, but every time I add a new Debtor I have to alter the code...
stackexchange/codereview
How do I save jpeg images with no compression in Matlab? I tried targetImageFile = 'skype2.png'; targetImage = imread(targetImageFile); imwrite(targetImage,'output.png','Compression','none',... 'WriteMode','append'); However, I got input: compressionRatio = 1.992735e+000 output: compressionRatio = 2...
stackexchange/codereview
I am trying to use true type fonts, but finding that when I load different ones, some do not display at various font sizes while others do. It seems, although I am not certain, that some simply do not show below a certain font size. Is there any way to easily tell what sizes are valid for a ttf by examining the file ...
stackexchange/codereview
I was wondering what would be the steps I need to follow if I am just an individual looking to write my own apps and get it approved by apple to feature on their store. Also, is it just objective-c I need to learn or what other skills would I require ? What would be a good tutorial or a place to start ? What are the t...
stackexchange/codereview
How do I access in an ActionView a variable, that has been defined in the ApplicationController? In my case, I'd like to make my layout respond to a variable that's been set-up in the ApplicationController. If it were a view, associated with a controller's action, I'd only need to set-up an instance var in the correspo...
stackexchange/codereview
var a var a = "ACdA(a = %b, ccc= 2r2)"; var b var b = "\ewfsd\ss.jpg" Expected outputs: var c = "ACdA(a = %b, ccc= 2r2, b_holder = \ewfsd\ss.jpg)" It adds the string b to the end of string a, that's it! But be careful of the ")" "b_holder " is hard coded string, it's absolutly same in all cases, won't be changed. ...
stackexchange/codereview
I am writing a query to find employees who earn greater than the average salary within their department. I need to display the employee ID, salary, department id, and average salary of that department. I have a query that just almost works but it keeps giving me "ORA-00904: "AVG_SAL": invalid identifier" errors. Am I d...
stackexchange/codereview
If I have the following how to do I cast the result of the lambda expression back to the Customer type from IEnumerable<Customer> without having to iterate over it. public class Customer : CustomerModel { public List<Customer> CustomerList {get;set;} public Customer GetCustomerFromListById(long id) { ...
stackexchange/codereview
I'd like to use http://www.visualsvn.com/server/ which installs simply on windows. But I'd like to know if I could copy it if needed on a linux server with apache subversion server installed. How can I be sure that the versions of format are the same ?
stackexchange/codereview
I want my batch file to stay open after processing is complete. Here is my code: set CLASSPATH=C:\XSLTANT\examples\word_transform\apache-ant-1.8.1\bin set PATH=%CLASSPATH% ant >> transform.log echo "See transform.log for results" pause It closes instantly after it runs the ant build. Any ideas? Thanks.
stackexchange/codereview
(perhaps this is better for a math Stack Exchange?) I have a chain composed of bones. Each bone has a with a tip and tail. The following code computes where its tip will be, given a rotation, and sets the next link in the chain's position appropriately: // Quaternion is a hand-rolled class that works correctly (as ...
stackexchange/codereview
Here is my code: <?php class IndexController extends Zend_Controller_Action { public function indexAction() { $this->_forward('search'); } public function searchAction() { if($this->getRequest()->isGet()) { $form = $this->getForm(); $value = $form...
stackexchange/codereview
I am trying to make a simple line graph using WPF toolkit and I am running into problems that I can't seem to resolve. The relevant part of my XAML code is: <DockPanel Grid.Column="1" Grid.Row="2"> <charting:Chart Name="orignialDataGraph" VerticalAlignment="Top" Height="474" Title="Original Signal"> ...
stackexchange/codereview
How to extract "Matthew" from "mtjoseph:6/MKTCzMS/YU.:10974:10060:Matthew"
stackexchange/codereview
i'm attempting to get code to list of all icons visible in the notification area, to the left of the time. i've been experimenting with EnumDesktopWindows and GetWindowLong, without finding any way to single out the system tray icons. thanks!
stackexchange/codereview
With the support of multitasking in iOS 4.0+, is there any way that I can have my application run in the background and detect the launching and exiting of other applications? I know you can do this in Android, but I was wondering if this was now possible on the iPhone.
stackexchange/codereview
I'm writing a program in c# to export SQL Server data from one database and importing it in another. Since these two servers are not connected I need to choose a method such as bcp. What are the differences between these two? Is one more efficient than the other? And in what scenarios? What are the known limitations/...
stackexchange/codereview
I have to do a class project for data mining subject. My topic will be mining stackoverflow's data for trending topics. So, I have downloaded the data from here but the data set is so huge (posts.xml is 3gb in size), that I cannot process it on my machine. So, what do you suggest, is going for AWS for data processing a...
stackexchange/codereview
Polymorphism allows the programmer either to inherit, override or to overload an instance method of Parent Class. But, it won't allow to make an instance method of parent class as more restrictive in child class. i.e it wont allow to use same name of parent class instance method, to declare as private in the child cla...
stackexchange/codereview
I really like the python coverage module: http://nedbatchelder.com/code/coverage/ and the HTML pages it generates. Is there a combination of this and profiling so that one could see a unified HTML report of coverage+profiling. Thanks in advance.
stackexchange/codereview
For example, if you have class A, class B inheriting A, and class C inheriting B, is there any programming language in which class C can override a method of class A, even if class B don't override it? class A { method() {} } class B extends A{ } class C extends B { //override method from A method(){} }
stackexchange/codereview
In iOS, the TabBar property in the TabBarController is read only. How can I associate a custom item with a particular view controller? How do I access the UITabBarItems inside the tabBar? Like this CustomView *custom = [[CustomView alloc] init]; UITabBarItem *customTab = [[UITabBarItem alloc] initWithTitle:@"Custom" ...
stackexchange/codereview
I have 2 entities : User, Address. I have set the relationship each User can have many "Address". I am not sure how core data works but from my understanding, every time i call insertEntityForName it creates and stores an object. (also a row in table) So the question: Doesn't the following code store a duplicate addres...
stackexchange/codereview
I'm trying to write a method that looks through an array of objects for a certain color, which is also an object. public Ghost findFirst(Color c){ for (int i=0;i<ghosts.length;i++) { if (ghosts[i].getColor()==c) return ghosts[i]; else return null; } ...
stackexchange/codereview
I have a toggle button with a png that has a transparent background and a black foreground. If the button is selected then I want the black color of the image to change to a color chosen by the user. Is there a way to do this in Silverlight and/or wp7? So for example: <ToggleButton> <Image Source="MyImage.png" /> <...
stackexchange/codereview
Let's take as an example a standard default ASP.NET MVC project created by Visual Studio. Being on ../Home/About page I click Log On link and get to the ../Account/LogOn page. After logging in I'm being redirected to the Home page, not to the Home/About page from which I get to the LogOn page. Why is that? Though, in t...
stackexchange/codereview
I use stored procedures in Entity Framework. Let's say that I have that procedure: public static int DoSth(decimal id) { return (int)Adapter.my_proc(id).First(); } as I don't want to get the First() element and then cast it as (int) everytime I'd like to have an extension method which do that for m...
stackexchange/codereview
I have code that roughly looks like this (the entire code is a bit too long to copy here): import re from subprocess import Popen, PIPE goodOutput = re.compile(r'\S+: 0x[0-9a-fA-F]{8} \d \d\s+->\s+0x[0-9a-fA-F]{8}') p = Popen(['/tmp/myexe', param], stdout=PIPE, stderr=PIPE, cwd='/tmp') stdout, stderr = p.communicate...
stackexchange/codereview
We are currently developing a noncritical moving map type navcomm solution for our Atom based avionics device. The prototype has been done in Python/Qt, now I need to decide on a language to use for the "real" app. Ada or C/C++. I've been a C++ developer for 12 years and loathe the language. Ada seems promising, bu...
stackexchange/codereview
I have read that code inside a synchronized block conform to 'happens before' semantics so that all the values written inside a synchronized block should be visible to other threads in succession. Furthermore I have read that caches are only flushed with the termination of synchronized block. How would above semantic o...
stackexchange/codereview
Hey guys, It's 5 am here, I was doing some code... when this came out: public interface IViewModel { } public interface IToViewModel<T> where T : IViewModel { } public static class MvcExtensions { public static T ToViewModel<T>(this IToViewModel<T> self) where T : IViewModel { var instance = A...
stackexchange/codereview
What size should the Application Icon be for .NET programs?
stackexchange/codereview
OK, this problem is very odd. I am receiving a list of items using getJSON(). For each of the returned items, I perform a lookup using getJSON() again. Upon return of the second lookup, I try to append a variable from the scope of the for-loop to the DOM but the output is the SAME. The weird thing is that when I issue ...
stackexchange/codereview
I have form. I have enabled the transparency on the form and I have removed it's Title Bar and Border. Inside that i have created a Custom UI, Which have the same features like a window. Basically, my idea is to create custom window. Everything is working as expected but only the windows dragging is not working. I am n...
stackexchange/codereview
Hello I have downloaded LightOpenID (http://gitorious.org/lightopenid) few hours ago but still can't figure out how to make it work. I got this google example saved in test.php file <?php require '../lib/init.php'; require '../lib/openID/openid.php'; try { if(!isset($_GET['openid_mode'])) { if(isset($_GE...
stackexchange/codereview
I am looking for a way to have like a button in a web page, only when you press it the event handling is a program in a server. Like a trigger to execute a program in the server. Is there any way to do this?
stackexchange/codereview
I'm working in a java/eclipse shop writing javascript, coming from a php/netbeans background. So far, I hate eclipse, but I don't want to shift away from the general tool set. (Because of issues with our build system, we're currently on the galileo release.) The syntax coloring is just fine, and I'm learning to live w...
stackexchange/codereview
I am planing on developing a software to fill out forms. The user will scan any form and then he or she will enter data in the form. Now I don't need OCR, just the ability to save the overlaying text the user enter in top of the form. My question is what will be the best language to do this project? Note: I am thinki...
stackexchange/codereview
Is there anything special about Test Projects that would cause intellisense not to work? This is my first experience with a test project.
stackexchange/codereview
I want to find out which ip can be remote. (remote desktop) For example, I set a valid IP of my network into an edit box and the program says it can be remote or not.
stackexchange/codereview
So I am trying to pass a primary key (id) value to my create method and it doesn't work. Is there a way to do this in rails? Category.create!(:id => 2828, :name => 'Some Category')
stackexchange/codereview
I have a CustomerListViewModel and a OrderListViewModel. In the latter I select an order to delete it or I create a new one. In both situations my CustomerListViewModel and the Messenger must register to the type IOrder: Messenger.Default.Register<IOrder>(this, AddOrder); Messenger.Default.Register<IOrder>(this, Delet...
stackexchange/codereview
I'm using gettext translation adapter in a Zend Framework projekt. But I'm wondering what's the best practise when naming and placing these translation files within my project? At first I had APPLICATION_PATH/languages/sv_SE.po (and sv_SE.mo) But then I read about the auto searching features of Zend Framework and start...
stackexchange/codereview
i have use iframe for the submit of the form in aspx page, now i have one div outside the from and i use this div to display message if any server side error is come. but after submitting the form i have assign the message to this div, but cant see the text in the browser. actually is there a different way to access ...
stackexchange/codereview
I have a simple ASP.NET site making a call to a WCF service. The call works in Visual Studio 2010 (both sites running under Cassini using basic HTTP binding). Moving the same thing to XP , running the web site page (which makes a simple call to the WCF service) makes the web server throw a "500" error. There is nothing...
stackexchange/codereview
Some questions confusing me guys, I'm just new to web services altogether. What is the difference between web service, web methods and server side code ? Where is web service preferred over server side methods? Where are web methods preferred to be used ? How does web service differ from server side post ...
stackexchange/codereview
I have taken a dump of W3wp.exe process and am trying to retrieve the contents of session using Windbg. My test application is ASP.net 3.5 running on Windows 7 64 bit and the session is inprocess. I can retrieve the contents of various other objects but am struggling to find where session contents is located. Yes I kn...
stackexchange/codereview
this is my first time really using this site. I'm relatively new to using ajax with my sites and I ran into a problem a little while ago. The thing is, I'm not sure what my problem is exactly because every time I went over my script, it made sense to me (and it fit with everything I looked up on Google and the jQuery ...
stackexchange/codereview
Client does not like the dotted border. I like to leave it there for accessibility reasons. :/ I guess I have to though because the client asked, how would I?
stackexchange/codereview
I want to find the objects of a class that are currently alive in C++. Please tell me a solution for this. Also, please correct if my logic is wrong! Declare a global variable. Increment it during the constructor invocation. Decrement during destructor invocation. Thanks in advance. Sanjeev
stackexchange/codereview
I am reading this function in a book, and I don't understand how the anonymous function is passed the thirst three arguments? This is what I understand function multiplyByTwo(a, b, c, callback) { var i, ar = []; for(i = 0; i < 3; i++) { ar[i] = callback(arguments[i] * 2); } return ar; } but not this myarr...
stackexchange/codereview
I have written a custom preference class which contains a simple progress bar in it to allow setting things like volume. The preference worked great until I tried putting two of these preference in my preference screen. When I did that the preference screen started to act wierdly » the two custom preferences switch lo...
stackexchange/codereview
I used to use MS's Homer tool for quick load testing. That tool was great - it had an easy-to-use UI and provided detailed reports on a per URL basis. I'm now switching over to WCAT because Homer is withdrawn and doesn't run on post-Vista versions of windows. The reporting in WCAT seems much weaker than in Homer. Is th...
stackexchange/codereview
I have a UINavigationController with two UIViewControllers on it (A and B). From A, I push B onto the stack. Then the user re-orients the device. I need to move some things around the screen (buttons, etc) to be visible in the new orientation on A. I find that -shouldAutorotateToInterfaceOrientation is getting calle...
stackexchange/codereview
In my iPhone application I'm parsing RSS feed to get html and keep it. Afterwards I display this html in UIWebView. The problem is that html contains urls of images, if there is network connection everything is ok, UIWebView loads and displays these images, but if there is no connection it shows text but in place of im...
stackexchange/codereview
The Jackson library's ObjectMapper class seems to be thread safe. Does this mean that I should declare my ObjectMapper as a static field like this class Me { private static final ObjectMapper mapper = new ObjectMapper(); } instead of as an instance-level field like this? class Me { private final ObjectMapper m...
stackexchange/codereview
When a 'Update' is clicked the row shows the Edititem mode. I have a check box that when it is 'clicked' I want the other fields to dissapear/become read-only. How can this be done client or server side? My best guess is for server side I have something like this below.. but then in the event how do I get access to t...
stackexchange/codereview
i'm writing an application that is supposed to upload a file to an FTP server. Here's the code: try: f = open(filename,"rb") except: print "error 0" try: ftp = FTP(str(self.ConfigUri)) print "CONNECTED!" except: print "CANNOT CONNECT" try: ftp = FTP(st...
stackexchange/codereview
I have html with code below: <pre> | Date Offense | Count | Title, Section & Nature of Offense | Concluded | Number(s) | -------------------------------------------------------------------------- 18:2113(a)-BANK ROBBERY | January 27, 2009 |...
stackexchange/codereview
I have a annotation that does include several other annotations, pretty much like this one here: @Component // Spring Component @Interface OsgiService { boolean isFactory() } meaning that all classes annotated with @OsgiService shall automatically also be annotated as @Component. Which works fine. Now however, I'd l...
stackexchange/codereview
How to specify each option at a select tag?,using which attribute (name,id,....)? and how to recieve it in the server script to detect which option is selected?
stackexchange/codereview
I need to create an interface that upon selection of a parent multi select, it updates a child multi select of options. It is intended that the parent multi select can have none, one or many options selected and the child element displays a union of items that both parents have (or falls back to all items). Take for ex...
stackexchange/codereview
The shell script needs to read batch of lines (lets say first 150). then storing that values in variable. After the execution of the SQL, now it should read from 151 to 300. In this way, it will read lines in batch of 150 and storing it in a variable till 32000 lines are read. Script Looks Like #!/bin/bash t2...
stackexchange/codereview
i found this "executed with no substitution back into the output" , but maybe my English wasn't too good , i cant really understand what it means. Can anyone help out?
stackexchange/codereview