instruction_seed
stringlengths
1
35.8k
_source
stringclasses
1 value
The whole issue of setting up a development server for my Ruby on Rails application confuses me. There are WEBrick, Mongrel, Passenger, Apache, Nginx and many more I am sure, and I don't really understand the different roles they play. I started off using WEBrick, and now I use Mongrel for development. Are these server...
stackexchange/codereview
specifically in MS ACCESS, exist a command o function as pivot unpivot work? in these case how can i do to convert using standar SQL...
stackexchange/codereview
I'm trying to build a list of checkboxes by using jQuery.tmpl It'll list an array of items with a checkbox near them, and I want to check some of these checkboxes parametrically... The template code is: <ul> {{each(i,val) Values}} <li> <input type="checkbox" {{if $.inArray(i, Default) != -1}} checked="check...
stackexchange/codereview
I have a Web User Control. I want to use this control in other web applications, I dont want to expose the code of my web user control. If modification is required in web user control it can be extended in respective web application. Is it possible to extend web user control. Any other alternative to this.
stackexchange/codereview
I recently added a date of birth field to my devise registration page and use validates_timeliness to check that the date it right. However, if the date is left blank I get the below error and not sure how to fix it. * Date of birth translation missing: en, activerecord, errors, models, user, attributes, date_of_birth...
stackexchange/codereview
How do I automatically populate the second dropdown based on the selection made in the first one. Say if I choose a contry in the first dropdown, then I want to display a list of cities from that country in the second dropdown. Is there a way to do this with jQuery?
stackexchange/codereview
import random pos = ["A", "B", "C"] x = random.choice["A", "B", "C"] This code gives me either "A", "B" or "C" with equal probability. Is there a nice way to express it when you want "A" with 30%, "B" with 40% and "C" with 30% probability?
stackexchange/codereview
I just created two tables and they are named as tblA and tblB. I also created a user(Security/Login) who will be used for a remote insert/update. What is the best way to permit this user to access for only those two table out of 50 table. I have tried look for the way from (Security/Login) and (Database/Properties). C...
stackexchange/codereview
Greetings, I'm using GWT and trying to set an href to a file uri (to a network share) and insert it into a cell of a FlexTable and can't seem to make it work. I have inspected the dynamic anchor in chrome (inspector) and the format is correct but nothing happens when I click on it. I have tried setting through an An...
stackexchange/codereview
I have this html: <div id="navbar"> <ul> <li class="active"><a href="#">button1</a></li> <li class="inactive"><a href="#">button2</a></li> <li class="inactive"><a href="#">button3</a></li> <li class="inactive"><a href="#">button4</a></li> <li class="inactive"><a href="#">button5</a></li> <li c...
stackexchange/codereview
I'm inserting lot of data with a SqlBulkCopy. The source of the data may have some duplicated rows. I the destination table I have an index of uniqueness. When the first duplicated row appears, the SqlBulkCopy throws an exception and rollback the internal transaction. I want it to ignore the exception and keep insertin...
stackexchange/codereview
i have this clause: "Select * From ( Select sedi_i18n.*, 0 orden From table sedi_i18n Where culture= 'italiano' Union Select sedi_i18n.*, 1 orden From table sedi_i18n Where culture<> 'italiano' ) Order By orden, culture"; But i'm getting this error: SQLSTATE[42000]: Syntax error or access vi...
stackexchange/codereview
I created a simple Sharepoint web part which hosts a silverlight application. I created a user control which loads the usercontrol.ascx from the layouts path and loads it up. public class SLSampleWP : System.Web.UI.WebControls.WebParts.WebPart { /// <summary> /// Add the silverlight user control here /// </...
stackexchange/codereview
I've got a dropdownlist: <%= Html.DropDownList("ddlNames", new SelectList(Model.NameList, "ID", "Name"))%> I've got an ActionLink: <%: Html.ActionLink("edit", "Edit", "Members", new { area = "MembersArea", id = XXX }, null)%> I want the value of the dropdownlist in the XXX. So I want to use values from controls on a vi...
stackexchange/codereview
In my Quest to understanding Mnesia, I still struggle with thinking in relational terms. So I will put my struggles up here and ask for the best way to solve them. one-to-many-relations Say I have a bunch of people, -record(contact, {name, phone}). Now, I know that I can define phone to always be saved as a list, so...
stackexchange/codereview
how I can load a library from a jar? e.g. Test.jar +- libAbc.so +- libDef.so +- ...
stackexchange/codereview
In Firebug, you can see JSON formatted as an expandable tree of items and also explore them using Firebug's Dom tab. The view is available within Net panel and visible as soon as a JSON request is expanded. As in this screenshot: I'm trying to switch to Chrome but can't find this feature in Dev Tools. Does...
stackexchange/codereview
This code: Console.WriteLine("~".CompareTo("a") > 0); Console.WriteLine('~'.CompareTo('a') > 0); Gives me: False True WTF?
stackexchange/codereview
I am using jQuery to post JSON data to a tomcat server and the server is handling the JSON array data perfectly! It is as though I passed key=value request parameters along with the URL. So why am I posting this? I would like to know how the server treats JSON in the body of a request and how the data ends up being...
stackexchange/codereview
<div id="arraydiffid"> <input type="hidden" name="array_diff[]" value="0" /> <input type="hidden" name="array_diff[]" value="1" /> <input type="hidden" name="array_diff[]" value="2" /> <input type="hidden" name="array_diff[]" value="3" /> <div class='hello'> somethings </div <input...
stackexchange/codereview
I can't get my footer at work. For some reason it gives a scrollbar at 100% width. I tried to implement the Sticky Footer technique, probb something went wrong :D This is the css code which controls the footer: .mf{ background: #eaeade; width: 100%; padding-left:100px; padding-top:51px; padding-bottom:11px; position: a...
stackexchange/codereview
I'm trying to put up a warning message about leaving a webpage, but it is nested inside a frameset. Apparently window.onbeforeunload triggers if I load the webpage as the root page in the browser, but doesn't trigger when loaded inside the frameset. Edit: It doesn't work in Chrome 7 or Safari 5, but it works in Interne...
stackexchange/codereview
I am working on a rails 3 project with a fairly large routes file. It takes advantage of some nesting and I ran into an issue due largely to the fact that the routes files is difficult to manage. Is there a way to break it up into multiple files? Something like: My::Application.routes.draw do constraints(:subdomain =...
stackexchange/codereview
I am just wondering why can't I define a static class as protected, private etc? protected static class Class1 {} The compiler gives the following error message: Elements defined in a namespace cannot be explicitly declared as private, protected, or protected internal
stackexchange/codereview
I need to overload the << operator for streams to work with built-in types. For strings it's not a problem, since I simply overload the function like this: ostream& operator<<(ostream& os, const char* str) { /*...*/ } This works because this function is global, not a member. The problem is that I need to overload the ...
stackexchange/codereview
We have an Elmah configured to send error notification emails to us whenever something is wrong. It all worked great for a while but we're noticing that sometimes Elmah would just stop sending error notifications, but still logs the error as XML. So to verify, we have a test page which generates uncaught 500 server err...
stackexchange/codereview
I need to create type with properties at runtime. Type must be look like this: public class RunTimeType : BaseType { private string _field1; public string Property1 { get { return _field1; } set { if (_field1 != value) { _field1 = value; OnAfterPropertySet("Prop...
stackexchange/codereview
I'm still new to Sencha Touch/ExtJS, and I'm currently exploring the demos and getting started samples. But I stumbled upon this problem where when I insert a nested list on tab panel items I can't navigate the list items anymore. Here's my code: Ext.setup({ tabletStartupScreen: 'tablet_startup.png', phoneStartupScreen...
stackexchange/codereview
Just starting to learn the Java side of things, sorry if this is obvious. But, I was reading a tutorial about Spring in Java 6 and saw they were using just regular old JSTL on the view. What does Spring give me if I am using JSTL for the view? What would I use if I used "just java" (I know it is all Java but I mean ...
stackexchange/codereview
I Spent 5 hours try to figure a way for that..i'm trying to do a hangman app for iphone and the method below is the method that should be called when the player chooses a character and it match the chosen word.. -(void)replaceTheHiddenTextWithNewText:(NSString*)character{ NSString *fullTextField = fullText.text; in...
stackexchange/codereview
I have categorie Controller, with index action I need that when I enter address .com/categorie/education it uses index action with parameter education .com/categorie/index/education or redirect all actions to index ??
stackexchange/codereview
I have a collection of jobs that need processing, http://example.com/jobs. Each job has a status of "new", "assigned" or "finished". I want slave processes to pick off one "new" job, set it's status to "assigned", and then process it. I want to ensure each job is only processed by a single slave. I considered having ea...
stackexchange/codereview
Currently when I'm using Git, I create a branch for each job and make various commits before I'm finished. I then merge back with my master branch and push upstream. I'm likely to have several branches at any one time and also flick between them mid-job as things crop up. But most of these commits are just save points,...
stackexchange/codereview
I'm currently trying to decide between DirectX and OpenGL by programming a little DirectX 10 and OpenGL 3.3. I already have the setup for DirectX finished, it was fairly easy to link and compile. OpenGl is... harder. The OpenGL Superbible has a beginning example called Triangle.cpp in which we link two libraries freegl...
stackexchange/codereview
just starting to get into git, I am wondering that the best solution for working on multiple machines is. What I need to be able to do is: Start projects on any machines and then sync them across to other sites Utilise branches to make location specific changes, whilst being able to commit required changed to central ...
stackexchange/codereview
I wrote a server programe which is planed to use in multi player game. I should be generate multiple instances of my server for every client/player. but i cont able to generate. I took my server in separate module and I am calling the sever exported function from another module under a process for each client whenever ...
stackexchange/codereview
I know that this is possible, but can't seem to find it. I need to format a string (using stringWithFormat) with 3 0's when the value is <100. So my integer i = 5, the string should be @"005", but I can't remember or find the format specifier to make this happen. Hopefully this is low hanging fruit. Thanks!
stackexchange/codereview
scala> class Foo[T <: Comparable[T]](val x : T) defined class Foo scala> (3: Int).asInstanceOf[Comparable[Int]] res60: java.lang.Comparable[Int] = 3 scala> new Foo(3) <console>:13: error: inferred type arguments [Int] do not conform to class Foo's type parameter bounds [T <: java.lang....
stackexchange/codereview
I tried to create OTA for my sample app by using the following link: http://developer.apple.com/library/ios/#featuredarticles/FA_Wireless_Enterprise_App_Distribution/Introduction/Introduction.html I created a tag with my url: Install App but it gives an error: Safari can’t open “itms-services://?action=download-manife...
stackexchange/codereview
I have Windows 7, and Internet Explorer 8, Visual Studio 2008. I need to create Active X window which will show page from other site. I try to create CAxWindow window while IE in Protected Mode. It returns Access Denied error (5) if current site isn't trusted. Class of new window defined as: class CNewWnd: public CWi...
stackexchange/codereview
Does anyone know of a non-programatic method of removing data stored in the keychain when the application is deleted from the device? I've read on several threads on SO that the data will persist even if the application is uninstalled and my experience confirms this is true. However this seems contrary to what is spec...
stackexchange/codereview
I'm attempting to port some content from TWiki to MediaWiki and whereas the former seems to allow the uploading of spreadsheets, the latter does not. I'm not interested in displaying / previewing the spreadsheet - just a hyperlink would do fine. I appreciate that I could store the Excel files 'off-wiki' and externally ...
stackexchange/codereview
Basically there is a back-end application that is exposing both SOAP as well as RESTful services. I have decided to use Spring WS 1.5.8 for SOAP services, and Spring MVC 3.0 for RESTful services as this is a new feature. upon reading a bit about Spring WS (I am new to this!) we got to declare a "MessageDispatcherServl...
stackexchange/codereview
Hey, I am trying to add a selector to a button in my navigationbar programmatically and I can't seem to find out why it doesn't work at all. Here is the code I got: [self.navigationController.navigationItem.rightBarButtonItem setAction:@selector(showWithLabel)]; Am I doing this correctly and is there anything else I s...
stackexchange/codereview
I'm having a problem with checking the colision of objects painted on the screen. For example: I'm currently making a snake game and I have to make it check whether the snake is hitting a certain block object ( which makes the snake increase and increases the score when the snake hits/'eats' the block ). So I made a fu...
stackexchange/codereview
Possible Duplicates: What is the difference between the dot (.) operator and -> in C++? What is the arrow operator (->) synonym for in C++? The header says it all. What does -> mean in C++?
stackexchange/codereview
This might be a silly question! I have a array P which represents the probability distribution of some data e.g. [0;0.3;0.7] How can I determine the type or class of discrete probability distribution of P? The original data is unavailable to me. dfittool or fitdist requires me to give the data as input, while I alrea...
stackexchange/codereview
I'm composing my messages using images, text and audio files and finally showing the preview in Webview. Now, I want to send what ever it is showing in web view as mail. Even images and audio files must be sent so that end user has just to see the message with all images and aduio files as in original message. Is it p...
stackexchange/codereview
I have recently been getting into OpenGL/SDL and playing around with objects in 2D/3D Space and as i'm sure most newbies to this area do, have a few queries, about the 'best' way to do something. I quote best, because i'm assuming there isn't a best way, it's personal preference. So, I have an entity, a simple GL_QUAD,...
stackexchange/codereview
I have a text box. I need to get extract the highlighted and copy that to another text box. User will highlight it after typing. How to do it? Thanks Furqan
stackexchange/codereview
Okay, This is completely a weird situation. When a user logs in, I store some stuff using the following code: $auth->getStorage()->write($authAdapter->getResultRowObject(array( 'username', 'avatar', 'status', 'role', ...
stackexchange/codereview
do any other .NET IoC containers provide equivalent functionality to the typed factory facility in Castle Windsor? e.g. if I am using an abstract factory pattern in a WPF application: public class MyViewModel { private IAnotherViewModelFactory factory; public void ShowAnotherViewModel() { viewController...
stackexchange/codereview
What I mean is this... Is there a way to do something like this? SELECT * FROM table WHERE column_a LIKE %column_b% So that the content of column_a is searched in column_b. And when there is the word 'car' in column_a, and the words 'car parts' in column_b that would be a match.
stackexchange/codereview
I'm seeing a rise in the number of projects online that require additional "short" syntax to generate underlying code (commonly HTML and JS), and every time I see another pop up I wonder if I'm missing something. Surely the additional time taken to learn and remember these shortcodes is lost when passing projects betw...
stackexchange/codereview
Is there any way besides renaming the field to assign it a value if its name is the same as a method? As of writing this I was just thinking maybe reflection can be used. Reflection works, but is there a better/different way of doing this? FieldInfo fi = typeof(TheClass).GetField("TheClash"); fi.SetValue(TheClassObj, T...
stackexchange/codereview
I am writing an android app for storing and managing voice memos with some basic metadata and tagging. When recording sound I use: recorder = new MediaRecorder(); recorder.setAudioSource(MediaRecorder.AudioSource.MIC); recorder.setOutputFormat(MediaRecorder.OutputFormat.THREE_GPP); recorder.setAudioEncoder(Me...
stackexchange/codereview
Following up on this ( Display System Keyboard Mac application? ) question, the keyboard is coming up fine, but if my application is in fullscreen mode, the keyboard launches, but remains in the background. How do I get around this? Any help is much appreciated! Thanks, Teja
stackexchange/codereview
I've upgraded to jQuery GalleryView 2.1.1 and it doesn't seem to support ahref tags on the images. Is there a workaround for this? I want to be able to display the title on image mouseover and redirect to another page onclick.
stackexchange/codereview
I have a large SQL query with multiple statements and UNION ALL. I am doing something like this now: DECLARE @condition BIT; SET @condition = 0; SELECT * FROM table1 WHERE @condition = 1; UNION ALL SELECT * FROM table2 In this case, table1 won't return any results. However, that query is complex with many joins (...
stackexchange/codereview
I have some xml data. I've made an asp.net soap based webservice that takes the xml as a byte buffer applies xsl transformation to it and converts it to a docx file. But when i return the docx file using the response object i get an error that client found response of type application/vnd-word but it was expecting text...
stackexchange/codereview
im trying to create a sort of playlist feature that will work on the iPhone using a combination of HTML5 and javascript. I'm very new to the platform and I was hoping maybe someone here could help me identify the problem with my code. The first song properly autoplays, but when it ends the next one does not load and ...
stackexchange/codereview
I'm an android noob creating my first menu. In the New Android XML file dialog there is a list of "Available Qualifiers" to choose from. What are these and what do they do regarding menus? BTW I did a Google search for "available qualifiers" "New Android XML File" and got only 5 hits- only 3 in English and none of...
stackexchange/codereview
Why I get just empty rows without any data ? EDIT: Now I see my data thanks to Phil. I just want to know two more little things: what is the DataKeyNames ? how would i get this data using LINQ ? Here is my code: <asp:GridView ID="gridProcesses" runat="server" AutoGenerateColumns="False" EnableModelValidation="True"...
stackexchange/codereview
I have a .xlsx file that I wish to launch in Excel from C#. To do this I use the Process.start() API with the open verb. This works fine except that the Excel window appears briefly and then gets hidden behind the main app. Oddly launching a PDF (Adoboe Viewer as the default view) using exactly the same API in exactly...
stackexchange/codereview
Recent versions of eclipse have picked up the annoying habit of placing a version in the manifest when a dependency is added. Is there a way to disable this?
stackexchange/codereview
I have used abcpdf.net to convert an Arabic pdf through read(pdfpath) and gettext() functions, the resulted text (string) looks like these it's unreadable as Arabic is an RTL language. My question is now I have to reverse the Arabic parts of the string to make it readable but I don't know how can I do that. How can I e...
stackexchange/codereview
I have a simple question that is it possible to get hit counts in a document. like if we search "risk" could we get the count of risk in the matched document.
stackexchange/codereview
I have a NetBeans project which is using the JRE 1.4 environment which means I can't use generics. How can I change the project to use 1.6(?), so I can use generics?
stackexchange/codereview
I am getting a social security number (SSN) from a data warehouse. While posting it to a CRM I want it to be formatted like XXX-XX-XXXX instead of XXXXXXXXX. It's like converting a simple string with dashes at positions 4 and 7. I am pretty new to C#, so what is the best way to do this?
stackexchange/codereview
I want to access Google Spreadsheets using JavaScript only (no .NET, C#, Java, etc.) I came here and was shocked to know that there is NO API for JavaScript to access Google Sheets. Please tell me how to access (CREATE/EDIT/DELETE) Google Sheets using JavaScript or any of its frameworks like jQuery.
stackexchange/codereview
I'm using the JEditable plugin for in-place editing. I have a "setup" function which calls .editable() on all the relevant classes. The problem is, I have newly appended elements which I'd like to make editable as well. Obviously, being newly added, .editable() never gets called on them. In other words, I'm looking to ...
stackexchange/codereview
I have an activity with MediaPlayer and Button. The MediaPlayer contains a VideoView (using MediaPlayer.getDisplay(VideoView.getHolder())). When the button is pressed it pause the MediaPlayer and open a browser. returning to app suppose to continue the video (MediaPlayer .start()) When the activity started the video is...
stackexchange/codereview
I am designing a custom blog in PHP. On my panel I have the heading "Categories" and I list the categories and how many posts are in each category. There are 2 related tables, posts, and post_categories. POSTS - post_id, post_title, post, category_id POST_CATEGORIES - category_id, category_name, post_id I'd prefe...
stackexchange/codereview
I am trying to get the value of a timer using the HtmlAgilityPack however when I get the innerText by the element ID it returns --:--:-- Is there any way to get the time value since it uses AJAX?
stackexchange/codereview
Can we put semicolon like while(condition); in a C Programming? If while(condition); is valid, what does it mean?
stackexchange/codereview
We just converted a VS 2008 project to VS 2010. The conversion showed no errors. Now, when building the solution. We get the following errors: Unable to copy file C:\TI\Project\SharedAssemblies\Myfile.dll to bin\Myfile.dll Access to the path bin\Myfile.dll is denied ANOTHER PROBLEM: I have another problem too! One of...
stackexchange/codereview
I want to add a non-system font to my iPhone/iPad app. I have added the font file to the project and also added the font to the UIAppFonts property of the info.plist. To load the font I'm using fontWithName of UIFont. But the name of the font does not seem to be the file name, with or without extension, nor the name t...
stackexchange/codereview
I have a simple Android activity that should present some status both on a mapview and in textual form. I have done this as two layouts that i swap between with setContentView(). At start it works fine, display the map. I can then swap to the textstatus view by pressing menu button and selecting Text view. But when I w...
stackexchange/codereview
I have a very basic question regarding OCaml records. Suppose I have a record defined: type r = {a: int; b: int; c: int} let x = {a=3; b=8; c=2} Now, suppose I want to create a new record which has all fields equal to x but which has c=4. I could write: let y = {a=3; b=8; c=4} but this is annoying because there's not...
stackexchange/codereview
Does anyone have any insight into the history of Java Thread class's run() method being public? Almost all the time, it gets used by overriding and thus would the protected modifier have been more appropriate? That would still leave the start() as the public api for users and thus not leave any room for mistakes with u...
stackexchange/codereview
I get an InvalidOperationException on this line of code: SynchronizedInvoke(this, () => this.Opacity = this.Opacity + 0.05); To be specific about the runtime error... Cross-thread operation not valid: Control 'frmToaster' accessed from a thread other than the thread it was created on. I used the SynchronizedInvoke m...
stackexchange/codereview
How can I load the items I saved (or tried to save) with NSCoder? I am using the cocos2d framework. Here's a method I made to save things. -(void)save: (NSCoder *) coder { [coder encodeObject:[NSNumber numberWithInt:level]]; [coder encodeObject:[NSNumber numberWithInt:actualScore]]; [coder encodeObject:...
stackexchange/codereview
I have a pretty basic query, but I'd like it to return the results in order from the earliest time to the latest. The column in question is a "short time." This is what I have right now: SELECT * FROM tasksetup ORDER BY whenend ASC What's the proper syntax to get this to work? As an update: When I run this query, it w...
stackexchange/codereview
I'm trying to figure out, if it's possible to use GestureDetector for LinearLayout or just ScrollEvent? Any Examples?
stackexchange/codereview
i use the following XSLT by using XMLSpy: <?xml version="1.0" encoding="UTF-16"?> <xsl:stylesheet version="2.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:fn="http://www.w3.org/2005/xpath-functions"> <xsl:output method="xml" version="1.0" encoding="UTF-16" ind...
stackexchange/codereview
i want to find hiddenfield in my javascript but it is showing undefined value. myscript is, <script type="text/javascript"> var i = document.getElementById('HiddenField4').value; while (i < cn) { photoslink[i] = cnSplit[i]; photos[i] = b[i]; i++...
stackexchange/codereview
rotate image on canvas around its center . i tried some example from net but i am failed if i am using bitmap.creatbitmap with matrix i am getting error Please suggest me which is better Thanks in advance Aswan
stackexchange/codereview
I have a the two following classes: @Entity class A { @Id private aId; @ManyToMany(cascade = CascadeType.ALL, fetch = FetchType.EAGER) @JoinTable(name = "AB", joinColumns = @JoinColumn(name = "aId", referencedColumnName = "aId"), inverseJoinColumns = @JoinColumn(name = "bId", referencedColumnName = "bId")) pr...
stackexchange/codereview
I want to delete only second appearance of each element in given array and return the result in a new array. The given array can have have atomic elements but also can have list like element within it. the predicate should be called like this: delete_second(L1,L2). L1=[1,2,4,1,[1,2,3,[4]],2,1] L2=[1,2,4,[1,3,[]],2,1]....
stackexchange/codereview
this is my simple javascript function to switch colors and it works fine , but as far as i need to enable jquery or mootools in my website then its better to have this function modernized function changeThemeColor(color) { switch(color) { case "style1": default: document.getElementB...
stackexchange/codereview
I have a form like that: <script type="text/javascript"> function checkpas() { var newp = $('#NewPassword').val(); var newpp = $('#RepeatedNewPassword').val(); if (newp != newpp) { return false; } } </script> <% using (Html.BeginForm()) {%> <%: ...
stackexchange/codereview
I have a UIScrollView, inside it, a small UIView containing a UIPickerView. I'm able to scroll the view up and down but whenever I try to scroll the picker, it scrolls the view instead. I can change the picker's value by clicking it but not scrolling. Any ideas? EDIT: I just tried scrollView.canCancelContentTouches = N...
stackexchange/codereview
I need to validate certain fields depending on which submit button was clicked, and I have the following code, which is working perfectly. (I know that there is a 'greater than 3' method already there, but I wanted to check that you could add custom methods) <script type="text/javascript"> var _btnClicked = ""...
stackexchange/codereview
A few questions : What implications does upgrading an app have on stored data i.e. Preferences and database? Does the system perform a clean install of the new version(i.e. remove the older version and then install the new) or something else? What if the user wants to retain the stored data- say values in the shared...
stackexchange/codereview
I have a fulltext index on column "SEARCH". But the query contains additional "AND" condition where tinyint column "VEGETARIAN" is involved. What is the best solution for this situation? To leave as it is - fulltext index just on "SEARCH" column? To create one more index on "VEGETARIAN" column? $result = mysql_query( ...
stackexchange/codereview
Yes, I've read the Apache manual and searched here. For some reason I simply cannot get this to work. The closest I've come is having it remove the extension, but it points back to the root directory. I want this to just work in the directory that contains the .htaccess file. I need to do three things with the .htacces...
stackexchange/codereview
I am using an ASP.NET/C# DataList. <asp:DataList ID="EquipmentList" RepeatColumns="5"..... I have the following line inside the <ItemTemplate> tag: <a href=""`><%# {I want to put something here but dont know how} %> </a> In my code behind I have a NameValueCollection variable that contains all strings: NameVa...
stackexchange/codereview
i want to import csv file into mysql.. something like: load data local infile 'uniq.csv' into table tblUniq fields terminated by ',' enclosed by '"' lines terminated by '\n' (uniqName, uniqCity, uniqComments) http://www.tech-recipes.com/rx/2345/import_csv_file_directly_into_mysql/ but column names in csv and that in d...
stackexchange/codereview
I have seen an example of encrypting a string with a Java Midlet, using a public key which is a byte array. I am not able to do that on a BlackBerry, because there is no X509EncodedKeySpec and Cipher classes to hold the public key. How is this done on BlackBerry?
stackexchange/codereview
I have a SOAP WS which I access through PHP's SoapClient (wrapped with Zend Framework's Soap Client). The webservice runs through https, and the calls take quite some time (a few minutes each). I am making 4 calls, one after another through the same instance of SoapClient. However, after some time running, and at a ran...
stackexchange/codereview