instruction_seed stringlengths 1 35.8k | _source stringclasses 1
value |
|---|---|
What is better coding practice for single-line code blocks following an if statement - braces or no braces? Just to avoid too many "Well, it depends on what language you're using..." answers, let's say for C#. In other words, which is better:
if(somecondition)
{
singleLineStatement;
}
Or
if(somecondition)
single... | stackexchange/codereview |
I want to open a pdf file from DWR call. I am using DWR 2.0
Please guide me.
| stackexchange/codereview |
I have a SqlDataSource that calls a stored procedure and it works fine. If I add a <ControlParameter> tag to add an additional argument, then the query never fires and the databinding never occurs. Suggestions?
This works:
<asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:Def... | stackexchange/codereview |
All,
While writing a test method for method A (which has many internal conditions), should I focus on testing a single condition each time? I am finding it difficult to structure a test method for method A that would cover all the code path in method A.
Can anyone please suggest me how to go about writing a test method... | stackexchange/codereview |
I am trying to find a regex that will return true if a string ends with jaxws.managed but does not contain delegate.
For example:
abc/delegate/xyz/jaxws/managed should return false, while
abc/def/xyz/jaxws/managed should return true
I tried using the regex
([^(delegate)])+([a-z]*[\\/]jaxws[\\/]managed[\\/])+
but it ... | stackexchange/codereview |
I have a simple table in my database called Department. In it there's a column called ParentDepartmentID that is a self referential foreign key ID. Here's an example of the data I have for testing purposes:
As you can see, Departments: Diagnostics and XRay are children to Office of Chancellor. And Laboratories is chil... | stackexchange/codereview |
What's the proper way to add a photo from a url to my main.xml and having that placed on my activity?
| stackexchange/codereview |
I am looking for a way to get the address information of a contact from address book in iphone.
Is there a way?
Ta
| stackexchange/codereview |
How do I check if a number is positive or negative in C#?
| stackexchange/codereview |
i have two rotation matrices that describe arbitrary rotations. (4x4 opengl compatible)
now i want to interpolate between them, so that it follows a radial path from one rotation to the other. think of a camera on a tripod looking one way and then rotating.
if i interpolate every component i get a squeezing result, so ... | stackexchange/codereview |
CPU cache always interrupts what we test a performance of some codes.
gettime();
func1();
gettime();
gettime();
func2();
gettime();
// func2 is faster because of the cache.(or page faults of func1())
// But we often misunderstand.
When you measure your code performance, how do you remove the cache's influence.
I'm fi... | stackexchange/codereview |
In MongoDB, if I were to store an array (say ["red", "blue"]) in a field "color", does it index "red" and "blue" so I could query for "red", for example, or does in make {"red", "blue"} a composite index?
| stackexchange/codereview |
I have a file with consisted of int;int values in each line. Both columns are ascending, row by row. I plan to load that file into an array with following code:
while( ! feof($f) ) {
$line = fgets( $f, 32 );
$tmp = explode( ";", $line );
$elements[] = array( $tmp[0] => $tmp[1] );
}
I intend to use this arr... | stackexchange/codereview |
I'm currently working on a Synergy (http://sourceforge.net/projects/synergyandroid/, synergy-foss.org) port to the android phone. I have keystrokes working -- I'm writing the key events to /dev/uinput. However I have been unsuccessful in getting the mouse cursor to show up. I've tried writing a mouse move by writing an... | stackexchange/codereview |
I am using android emulator in windows 7. I get the following error in Lo cat when I try to enable wifi on the emulator: WifiService: Failed to load wifi driver.
How ever when I open browser in the emulator it shows up web pages properly. But I don't get any info when I use WifiManager in my code.
| stackexchange/codereview |
I have following code:
<a onclick="placesclick();" href="javascript:void(0)">
<span class="place">3</span>
</a>
I need to make the span unclickable, so I was thinking about hiding the "a" element but leave the span shown. Is it possible somehow easily without removing the whole "a" and then adding span again? Or ... | stackexchange/codereview |
Possible Duplicate:
c#: difference between “System.Object” and “object”
What is the diferrence between object and Object
| stackexchange/codereview |
Given a BST, I am required to find the number of left nodes of the tree.
Example: `
+---+
| 3 |
+---+
/ \
+---+ +---+
| 5 | | 2 |
+---+ +---+
/ / \
+---+ +---+ +---+
| 1 | | 4 | | 6 |
+---+ +---+ +---+
... | stackexchange/codereview |
I was looking at the Firebug output for my index page and noticed that my /login handler is getting called at some point during the execution of the index page. It doesn't redirect to the /login page though for some reason.
But I can't tell which resource is triggering /login to be called. Is there some way of outputt... | stackexchange/codereview |
I'd like to be able to call pod2usage in a method that encapsulates a lot of standardized command line argument handling, but I can't see how I'd be able to put that handling into a separate module and have the pod2usage output be the documentation from the calling file. Is this possible?
| stackexchange/codereview |
Good day,
First question here and just learning WPF, so please be gentle...
I'm trying to put together a TreeView whose items fire Commands. I'm sure there are many ways to accomplish this, but my approach has been to create a Style for the TreeViewItem with a ControlTemplate that incorporates a RadioButton for its Com... | stackexchange/codereview |
I've spent many hours trying to figure this one out with no luck. Someone had a similar problem on the Apple mailing lists a while ago and no one answered. Basically, it comes down to this: I've subclassed NSTextFieldCell and overridden the drawWithFrame: method to create a custom bezel. Then I call drawInteriorWithFra... | stackexchange/codereview |
Sorry if a stupid question, but I currently have an iPhone game which uses UI Kit butons for it's menu interface with a custom background. How could I improve the look and feel of my buttons - e.g how can I use custom non square shapes ?
Thanks all,
Martin
| stackexchange/codereview |
I know OpenGL itself is a frequently asked question, but I couldn't find a solution to this specific problem I'm having. I've been following NeHe's tutorials, and I've ran into some issues which I don't think should be happening:
When calling glRotatef, where the first parameter being the angle, it appears to be the ... | stackexchange/codereview |
For example, there is the source:
void my_special_debugging_function(const char* function_name, const char* file_name, int line_number);
void func1() {
func3();
func4();
}
void foo() {
func1();
if(qqq) {
func2();
};
func3();
func4();
for(...) {
func5();
}
}
It shou... | stackexchange/codereview |
When programming I accumulate code snippets and utility classes. I want to store those for practical future use.
The question briefly is what is the best way to do this. More elaborate with an example:
When writing code we keep reusing our nice tidbits to cover common tasks. However in order to make our projects open s... | stackexchange/codereview |
Note the following code:
Control foo = null;
Control bar = null;
int i = 0;
protected void Page_Load(object sender, EventArgs e)
{
test();
test();
Page.Controls.Add(foo);
}
void test()
{
i++;
bar = new Control();
bar.Controls.Add(new LiteralControl(i.ToString()));
if (foo == null)
{
... | stackexchange/codereview |
I am trying to implement search in my application.
My application contain 4 activities and I want to add the search dialog only on 3 of them while only one of them (ProductsActivity) will be the default context.
unfortunately while I activate the search I keep getting the following error:
"Key android.app.default_searc... | stackexchange/codereview |
we used to use a farpoint grid which made this quite easy but now we're using datagridview for our forms.
My problem is I need to update a record as it is changed in the datagridview, I used the Cell Leave event.
private void dataGridView1_CellLeave(object sender, DataGridViewCellEventArgs e)
{
if (dataGrid... | stackexchange/codereview |
I managed to come up with a code that can make flexigrid more "fluid", more specifically it can resize depending on the window size on page load, but now I would like to add the function to resize automatically when the size of the window changes without refreshing it.
This is what I have so far:
$(document).ready(func... | stackexchange/codereview |
Is there a way to get the html color code from a JColorChooser
My java Applet takes three colors from the user and averages them and displays the color
I want to get the html color code after they look at the average color
how can I do that
| stackexchange/codereview |
I am attempting to add a rewrite rule to my apache configuration file to redirect users to a new url.
The url of my site is https://openmind.scribesoftware.com. If a user enters a URL with https://openmind.scribesoft.com (note the lack of "ware") I'd like to redirect them as though they had typed the proper url.
I have... | stackexchange/codereview |
i am doing this:
List<string> list = new List<string>();
while (myReader.Read())
{
reporttime = (string)myReader["reporttime"];
datapath = (string)myReader["datapath"];
list.Add(reporttime,datapath);
}
chart1.DataSource = list;
i am not exactly sure how i should be donig ... | stackexchange/codereview |
I want to backup page including
1)startpage,
2)image on level2 that startpage linked to
3)exclude link to html.
I try
-r -l 2 -A .jpg
but it didn't save my start page.
Please help if you have experience on this.
| stackexchange/codereview |
How can I do something like var foo = (test) ? "True" : "False"; in Python (specifically 2.7)?
| stackexchange/codereview |
In x64 bit version of windows, i see that are also x86 bit directories. How do we get that using envirnoment variables ?
| stackexchange/codereview |
I have the following code:
@interface PartyListViewController : UITableViewController <UITableViewDelegate, UITableViewDataSource> {
UIBarButtonItem * toggle;
//ProfileViewController *profileViewController;
}
@property(nonatomic, retain) IBOutlet UIBarButtonItem *toggle;
- (IBAction)toggleAction:(id)sender... | stackexchange/codereview |
I have an HTML string like so:
<img src="http://foo"><img src="http://bar">
What would be the regex pattern to split this into two separate img tags?
| stackexchange/codereview |
I have a news section that shows posts only with a category of "news". The code is shown below.
The problem is, only the first news post gets a date above it. All the posts following the most recent "news post" don't have dates. Anyone have any idea why this is happening?
<div id="news">
<?php $my_query = ... | stackexchange/codereview |
I'm consuming a simple SOAP web service to get a small piece of HTML to be included in a Rails site. Unfortunately, I'm not particularly familiar with SOAP.
I need to call the TopHtml() SOAP method on the endpoint below but I need to also pass an ID number like TopHtml(29).
I'm using the Savon gem and my code looks a l... | stackexchange/codereview |
I have a database with a documents table
DocumentID DocTitle DocDesc
and a keyword table
KeywordID Keyword
linked by a DocumentKeyword table
DocumentID KeywordID
I have used a view to give a dataset of all the document-keyword realtionships.
DocumentID DocTitle DocDesc Keyword
I am looking for a sele... | stackexchange/codereview |
I have a XML where all values are stringified accordingly to a given culture (decimal separator for floats, month/day order for dates).
I have to convert this XML to another culture. How to do that with minimal effort?
| stackexchange/codereview |
The following code should copy data from an wifstream to wcout.
After the content is copied, the program throws a ios::failure exception.
#include <string>
#include <iostream>
#include <sstream>
#include <fstream>
#include <locale>
#include <iterator>
#include <algorithm>
int main(void)
{
std::locale::global(std:... | stackexchange/codereview |
I am having problems getting the logout link work in GAE (Python).
This is the page I am looking at.
In my template, I create a link
<p><a href="\users.create_logout_url("/")\">Logout</a></p>
But when I click on it I get "broken link" message from Chrome. The url for the link looks like this:
http://localhost:8085/use... | stackexchange/codereview |
How can I determine whether a variable is a string or something else in JavaScript?
| stackexchange/codereview |
How do I use a named association in the where clause associated with a join?
class Pet < ActiveRecord::Base
belongs_to :owner
end
class Owner < ActiveRecord::Base
has_many :dogs, :class_name => 'Pet', :foreign_key => :owner_id
end
Owner.joins(:dogs).where(:dogs => {:name => 'fido'}).to_sql
generates:
"SELE... | stackexchange/codereview |
My sql database in phpMyAdmin is gone but i kept the files in the directory of xampp/mysql/data/mydatabase with extensions like .MYD .MYI .frm .opt...
the thing is when i try to open it in notepad++ to see the information they seem corrupted or damaged. Then i've tried to import these files directly to the database thr... | stackexchange/codereview |
In my case I have an .adp app that is pointing to a sql server database.
I created a form (with a subform) so that I can have a quick way to put some records in a child table. (there is a join between the parent and the child)
I've deduced that (unless I want to write some code, which shouldn't be necessary) I just n... | stackexchange/codereview |
I was hoping someone could answer some brief questions on windows Azure. I know this is a bit lazy, but the Microsoft websites covering Azure seem to be directed at semi technical project leads and full of business metrics - they never really seem to give a good short overview of the 'how'.
I have an ASP.NET web applic... | stackexchange/codereview |
Let's say I have a table people and a table pets and I'd like to display all people who have pets and all people who don't have pets. A person can have either no pet or any number of pets.
I can use IF EXISTS, but then I have to use two queries:
select * from person where exists (select * from pet where person.id = pet... | stackexchange/codereview |
I'm trying to learn emacs, getting vi custom key bindings.
Using Viper-mode, what is the correct way to re-bind a key? (I'm using Colemak keyboard layout(instead of qwerty) so have to change things like n->j) But would like it to work in viper-mode.
From this key binding guide on GNU.org:
http://www.gnu.org/software/em... | stackexchange/codereview |
I have a Windsor container that I'm using an InterceptorSelector and a LazyComponentLoader with.
My InterceptorSelector returns an InterceptorReference to my InterceptorAdapter class that looks like this
public class InterceptorAdapter<T> : Castle.DynamicProxy.IInterceptor, IOnBehalfAware where T : IMyType
{
priva... | stackexchange/codereview |
How can I check if a string contains all question marks? Like this:
string input = "????????";
| stackexchange/codereview |
<?
$array = array('eggs', 'bacon', 'football', 'baseball', 'ford', 'toyota');
$rand_index = mt_rand(0, count($array) / 2 - 1) * 2;
?>
<?php echo "$array[$rand_index]"; ?><?php echo "$array[$rand_index+1]"; ?>
i dunno why this script doesn't work. I want to echo both values but can't
| stackexchange/codereview |
Sorting a list of Colors.
If two colors’ red values are the same, then the one with smaller green value appears first in the ordering. If two colors have the same red and green value, then the one with smaller blue value appears first in the ordering.
Example: let the color list be
((72 75 0) (0 0 10) (255 255 255) (0 ... | stackexchange/codereview |
When I'm working in vim, my current working directory (./) contains all my source. I build in an objdir, let's call it ./builddir/. When I build from vim, using makeprg=make\ -C\ builddir, the compiler warnings and errors all have a prefix of ../, which means vim brings the cursor to a file which doesn't exist.
If I tr... | stackexchange/codereview |
I am using org.apache.log4j.Logger for logging and I am developing a jsp just for monitoring purposes.
This jsp is using classes that write logs (INFO level) not interesting for this monitoring, but annoying, as long as I want to execute this jsp very often.
So, my question is the next:
Is there any way to disable thes... | stackexchange/codereview |
Is AIR nativeprocess able to receive message from Java program and process every line of message as fast as possible in milliseconds? Does it has a miss read or delay?
| stackexchange/codereview |
I'm just figuring out my way around rails but I need a little help with the rails generate scaffold command.
Here's the command that I'd like to use
rails generate scaffold Expense user:??? name:string description:text
I'd like the description field to be nullable and the users field to be linked to another Model — in... | stackexchange/codereview |
In prolog, we can do something like the following:
myFunction a (a:xs) = ...
This is, when the 1st argument of myFunction is the same as the first item of the list that's in the 2nd argument, this function will evaluate to ....
My question now is... how to accomplish a similar thing in Haskell?
I have the idea that Pr... | stackexchange/codereview |
How do you go about wrapping strings using Graphics2D drawString.
Saw some examples like this
drawstring replacement
But this does not work since I have a vertically aligned text and the fontmetrics height from graphics gives me 0.
| stackexchange/codereview |
i'm developing a game.
How can i "fade in" the audio volume for a sound, based on the "distance" of a sprite from the current render scene ?
Suppose i've a world:
WIDTH_WORLD = 10000
HEIGHT_WORLD = 10000
Current Scene
xCurrent = 800 ( + Width Res. = 800 + 1024 = 1824)
yCurrent = 400 ( + Height Res. = 400 + 7... | stackexchange/codereview |
For last 2 weeks am trying to learn timer & interrupt & wrote a program (with my understanding) to blink LEDs on ATMEGA2560 but no matter what I do TCNT0 never increments & ISR() function never gets called. Where am I going wrong and how can I fix it? Here is my code:
#include<avr/io.h>
#include<avr/interrupt.h>
#defi... | stackexchange/codereview |
Is it possible to display code (javascript, ruby etc) in Drupal like this page:
http://vowsjs.org/
| stackexchange/codereview |
I am getting the following error trying to load a basic project template:
Error 12 Could not load the assembly file://\\psf\home\documents\visual studio 2010\Projects\WindowsPhonePivotApplication1\WindowsPhonePivotApplication1\obj\Debug\WindowsPhonePivotApplication1.dll. This assembly may have been downloaded from th... | stackexchange/codereview |
Possible Duplicate:
Custom attributes - Yea or nay?
Can any side effect occur in browsers if I add custom attributes to html tags for instance:
<a href="" mycustomtag="mydata"></a>
| stackexchange/codereview |
I have a large table with numbers only and a small font-size, which makes it hard to see. Increasing font-size is not a option, but I want to supply a zoom like effect (without having to use browser zoom) using a simple div overlay upon hovered td cell if it has any content.
The div should be centered on the td cell an... | stackexchange/codereview |
First I couldn't set the FTP parameter so skipped that step. I completed the other parts and then on having removed the installation directory the Joomla link goes to a blank page. This is the output
wget mydomain.com/joomla
--2010-11-02 05:02:23-- http://mydomain.com/joomla
Resolving mydomain.com... 68.178.227...
Con... | stackexchange/codereview |
I have event that always need to be shown underneath other events. I tried to give my css class a z-index but that won't work.
Thanks,
| stackexchange/codereview |
Is it possible to redraw a single row in a ListView? I have a ListView with rows that are LinearLayouts. I listen to a preference change and sometimes I need to change just one View inside the LinearLayout of a single row. Is there a way to make it redraw that row without calling listview.notifyDatasetChanged()?
I've t... | stackexchange/codereview |
I've been stuck for ages now trying to implement threading or background image loading for a custom tile overlay class I've been working on. I'm pretty useless when it comes to Java so threading isn't something I've had any experience with.
Basically I have extended an ItemizedOverlay and in the draw() method calculate... | stackexchange/codereview |
Scenario: You can click a Button and some Content will move (.animate) left.
When you click the button fast for about 3 times then JQuery ques 3 .animate left's in the order.
I dont want that! I will prevent that queing so the button will only work when the animation is done.
Thank you for every clou!
Pseudo Code:
IF #... | stackexchange/codereview |
We are providing files that are saved in our database and the only way to retrieve them is by going by their id as in:
www.AwesomeURL.com/AwesomeSite.aspx?requestedFileId=23
Everything is working file as I am using the WebClient Class.
There's only one issue that I am facing:
How can I get the real filename?
My code l... | stackexchange/codereview |
I do a lot of solo data analysis, using a combination of tools such as R, Python, PostgreSQL, and whatever I need to get the job done. I use version control software (currently Subversion, though I'm playing around with git on the side) to manage all of my scripts, but the data is perpetually a challenge. My scripts te... | stackexchange/codereview |
I am using the scons to compile 2 binaries. Compilation happens in 2 stages. The compilation and execution of the first binary generates files needed for compilation of second binary.
Each compilation is done via separate Environment().
The relevant portion of SConstruct file looks like this:
env_gen.Program('#gen', g... | stackexchange/codereview |
Question
I'd like to have an anchor in the page that performs the same function as the tab.
I was only able to get it to work if I placed something like $('#tabs ul a:first').click() in the onclick event of the particular anchor. Note: the href has no effect on the links external to the tab plugin; it is probably on... | stackexchange/codereview |
Possible Duplicate:
Why 'this' is a pointer and not a reference?
Why is this a pointer, rather rhan reference? Can it ever be NULL?
| stackexchange/codereview |
I have CSS definitions such as
.one-table
width: 500px
.one-table td
padding: 0
but since Compass / Blueprint 0.8.17 has
body.bp table { width: 100% }
body.bp td { padding: 4px }
so my tables are messed up. And adding table.one-table doesn't help either. I think it is losing to the specificity... which I am q... | stackexchange/codereview |
Is there some simple code that I can add to an .htaccess file or my virtual host file to enforce http basic auth?
| stackexchange/codereview |
Can anybody please guide me on how to auto generate a sitemap.xml file for my website using an ashx handler?
| stackexchange/codereview |
I am writing a decision tree class. In order to keep the design as flexible as possible I want to get the decision trees data using a custom "TableDataGetter" interface, which contains the method getData():String[*]. In my particular implementation, I want to use a class "TextTableDataGetter" which implements "TableDat... | stackexchange/codereview |
Hi all! I have in my database's table records with fields of VARCHAR(100) of charset utf-8 general-ci.
When I echo it to the web page, it echos string and many-many some square symbols.
How can I delete them and leave inly word. Wthas the problem. Will be a problem with searching? Thanx!
| stackexchange/codereview |
Just curious about the encodings that system is using when handling string storing(if it cares) and printing.
Question 1: If I store one-byte string in std::string or two-byte string in std::wstring, will the underlying integer value differ depending on the encoding currently in use? (I remember that Bjarne says that e... | stackexchange/codereview |
Is there a way we can show the calendar for a particular year and month using datepicker configuration options? The API documentation doesn't list any such functionality. Still is there a way out?
| stackexchange/codereview |
What's the difference between container and wrapper? And what is meant by each?
| stackexchange/codereview |
Consider the code in the following example:
abstract class Car
{
public abstract Engine CarEngine { get; protected set; }
public Car()
{
CarEngine.EngineOverheating += new EventHandler(CarEngine_EngineOverheating);
}
void CarEngine_EngineOverheating(object sender, EventArgs e)
{
... | stackexchange/codereview |
I'm currently working on a project where I generate a large amount of audio data to be stored on a users machine.
It works fine for small amounts of data but as the memory usage grows the flash application begins to struggle and eventually dies.
I've been thinking about possible ways to overcome this problem and I was ... | stackexchange/codereview |
I want to concatenate all .dat files in a specific directory (always different names) into one text file. Can anyone point me in the right direction?
| stackexchange/codereview |
I have a TextBox "userName" with some text inside on page load.
I can highlight TextBox on the click event like this with jQuery:
$(document).ready(function() {
$('#userName').click(function() { selectAllText($(this)) });
function selectAllText(textbox) {
textbox.focus();
... | stackexchange/codereview |
Solving an equation symbolically can be achieved in R using the Ryacas library.
For example
library(Ryacas)
yacas("Solve(x/(1+x) == a, x)")
gives
expression(list(x == a/(1 - a)))
Does anybody know how to (symbolically) solve a system of equations?
Thank you.
| stackexchange/codereview |
How can I download a zipped CSV file on a button click?
| stackexchange/codereview |
StringWriter sw = new StringWriter();
PrintWriter pw = new PrintWriter(sw);
String rowFormat = "%8s %8s %8s %8s%n";
pw.printf(rowFormat, "Col A", "Col B", "Col C", "Col XY");
pw.printf(rowFormat, "A", "19", "Car", "55");
pw.printf(rowFormat, "X", "21", "Train C", "-4");
pw.printf(rowFormat, "B", "-9", "Bike", "0");
St... | stackexchange/codereview |
Ok I have something like this:
struct dirent *dp;
DIR *dir;
char fullname[MAXPATHLEN];
char** tmp_paths = argv[1]; //Not the exact code but you get the idea.
...
while ((dp = readdir(dir)) != NULL)
{
struct stat stat_buffer;
sprintf(fullname, "%s/%s", *tmp_paths, dp->d_name);
if (stat(fullname, &stat_bu... | stackexchange/codereview |
hi we can handle windows message in c# with override WndProc
how we can do it in Qt
| stackexchange/codereview |
I am developing a project in Visual Studio 2010 on a 64-bit Windows 7 machine. I have been able to successfully connect to a local MySQL database without any issues.
However, if I try to change the target framework to .NET 3.5, I am having problems referencing the MySql.Data DLL. I can see it fine when the target frame... | stackexchange/codereview |
How would I go about to programmatically setup a VPN that the Network settings in Mac OS X 10.5 and later can see?
Network settings is scriptable, but only starting and closing network interfaces. Not for creating and modifying.
A solution that Network settings can not see is not ideal, but close enough.
| stackexchange/codereview |
In my assignment I know I am required to use my heap remove function which returns the variable to be printed. But the requirement in teh assignment is quite vague and I was curious if someone could give me a better explanation. I am quite confused as to how to use the second or third arguments I know some sorting is r... | stackexchange/codereview |
I have a study logout.php file which works fantastically, the issue I am faced with however is putting the script into a new 'intranet style' administrative site which uses 4 frames within a frameset (header, left, center, right).
There are two requirements I need to meet which I am having a very difficult time findin... | stackexchange/codereview |
I've a gumstix Overo which I am configuring to work with a e-CAM camera. The documentation provided by camera manufacture asks me to patch a 2.6.34 kernel and compile in Video For Linux support. When I look at gumstix user documentation they say I should execute:
bitbake -c menuconfig virtual/linux
However when I run ... | stackexchange/codereview |
Does anyone have a clue how to run a mysqli query with CI. I did change the db driver in the config file, but I'm still unable to use multiple queries like
$sql = "SELECT * FROM c WHERE 1;
DROP TABLE IF EXISTS c;"
$query = $this->db->query($sql);
Anyone has any clue how to do this using only CI, no additional ... | stackexchange/codereview |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.