instruction_seed stringlengths 1 35.8k | _source stringclasses 1
value |
|---|---|
I'm creating an application and I don't want a title bar:
If the title remains the same all the time, does it make sense to show it? For example, if an app doesn’t show the names of documents, or any other assets that it opens, and there is plenty of space at the top around other controls to grab onto if you want to m... | stackexchange/codereview |
Is there a rake command to wipe out the data in the database tables?
How do I create a db:seed script to pre-fill data to my tables?
| stackexchange/codereview |
How do I run some clean up code when a user closes a window?
| stackexchange/codereview |
In ruby, I often use something like this:
if "my string123" =~ /string(\d+)/
puts "I got #{$1}"
end
How would I do something similar in javascript? Currently, I've been doing this but it feels dirty.
m = "my string123".match(/string(\d+)/)
if (m)
puts "I got " + m[1]
Perhaps I should just live with this, but tho... | stackexchange/codereview |
Since Flashbuilder does not support WCF over https, i am considering to use weborb remoting as alternative, but not really sure how flash is going to know weborb location, if they are sitting on different servers. Looked at destination, source fields, but not really find a field called url in remoteObject in Flex. Has ... | stackexchange/codereview |
I have old code in Java which deadlocks... I never used netbeans as a development tool... however, I need to fix the code.
I ran the application in debug mode, clicked on check for deadlock and netBeans brought a screen. Two out of four threads were in red... see the screen dump below.
I'm new to multithreading, and on... | stackexchange/codereview |
I am new to TDD and DDD and I have one simple question regarding static methods in general. Most of the gurus of TDD says in one word that static methods are bad (and that we should forget about creating tons of static utilities that we (um or I) used to make before as they are not testable. I can see why they are not ... | stackexchange/codereview |
I am new to windows phone programming...any good book to start..so that i can learn the essentials...or any other good website to start with???
| stackexchange/codereview |
in my current project ive a controller tree like this:
Controller -
------Admin -
------------user.php
------otherClass.php
Where controller and admin are folder and user and otherClass are the classes.
If i want to call any otherClass method the url would be this one:
example.com/otherClass
But when i try to c... | stackexchange/codereview |
My WPF app consists of a NavigationWindow, and then a set of Pages defined as separate xaml files. The NavigationWindow loads and displays the various pages in turn.
My problem is that loading the pages is expensive and may fail. Thus, I want to preload the page in the background, and then only call Navigate() once t... | stackexchange/codereview |
i have a module called online events in my website, this module will run for every 8 sec and fetches a recent activities in my websites. So, if more than 100 users are using my website at a time, it consumes more memory and more cpu usuage. what should i do to reduce cpu usage and memory, provided it should not affect ... | stackexchange/codereview |
I am looking for some python code to efficiently compute interval overlaps.
I've used the interval tree of the bx-python package before, but now need to delete intervals from the tree (or better yet, modify them).
It seems the bx-python tree doesn't support this.
Any pointers?
| stackexchange/codereview |
I have a MySql table which has a timestamp column.
The table also has alot of other columns.
I have a "change classified" section on my page.
When users change their classifieds, I want the timestamp to update its timestamp. And it does, but sometimes you don't change a classified at all, you just want it to be "renewe... | stackexchange/codereview |
Symptom:
When I make a web service request (from JQuery using .ajax, to ASP.NET .asmx file), if it is made using GET instead of POST, the .asmx file always returns XML instead of JSON. If I flip the call back to posts, it responds just fine as JSON.
Goal:
How can I get JSON instead of XML, using HTTP GET?
I've a fai... | stackexchange/codereview |
I had 3 change sets that I wanted to rebase on top of the latest revisions. Unfortunately, I selected only one of them to be rebased and so this did a merge. Is there any way I can either undo the rebase or change it so the other two change sets get rebased as well?
| stackexchange/codereview |
See something wrong in my code? I can't get the update function to work.. weird thing is the rest works correctly, and the same code works 100% on another page.
<?php
include("config.php");
$id = $_GET['id'];
$number = $_GET['no'];
$result = mysql_query("SELECT * FROM comments WHERE commentid = '$id'")
or die(mysql_... | stackexchange/codereview |
Could anyone explain this to me? I've seen quite a few DateFormatter issues around, and all seem to be related, but not exactly what I'm facing here.
Consider the following code:
NSString * CleanDate = @"20101117T020000-0000";
NSDateFormatter* dateFormatter = [[NSDateFormatter alloc] init];
[dateFormatter setDateFormat... | stackexchange/codereview |
I was writing a code to find the speed of my database using a Perl script.
My intention was to make a 4,000 database connection after each fork (which would act as a 4,000 different clients) and sleep, and I issue the update command when I get the signal
but the system itself becomes very slow and almost hangs for mak... | stackexchange/codereview |
Can someone help me to find my Problem ?
I have a <img /> and will give him a background-image within a <a> tag.
Here is my example:
<img border="0" style="display:block; width:20px; height:20px; background-color:red; padding:9px; background:url(\'./images/system/button/close/close.png)\' no-repeat" />
Background-Colo... | stackexchange/codereview |
WebRequest.BeginGetResponse returns IAsyncResult, which has a member AsyncWaitHandle.
Initially, I thought that I could just wait on that in the initiating code. But it turns out that the event is signaled as soon as the request is made and before and not after EndGetResponse is called. This seems unintuitive for me ... | stackexchange/codereview |
I've tried every single example I could find, they all produce an internal server error. I have these rules set up (this works, no error):
Options +FollowSymLinks
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME}/index.php !-f
RewriteRule ^((/?[^/]+)+)/?$ ?q=$1 [L]
So if it's not an ... | stackexchange/codereview |
I have a shell script written in bash and this script should take file as an argument,can any one tell me how to write script for this any ideas on this are apprecited
Thanks,
| stackexchange/codereview |
I need to make a round button with some text on it (Centered).
For the round button, I'm using an Image and onClick methods, but my problems come when i'm trying to overlap some text (Centered) over the image.
"Like this "
The text have to be customizable, so I can't just make the image previously
Any hints of how to d... | stackexchange/codereview |
I run bash scripts from time to time on my servers, I am trying to write a script that monitors log folders and compress log files if folder exceeds defined capacity. I know there are better ways of doing what I am currently trying to do, your suggestions are more than welcome. The script below is throwing an error "un... | stackexchange/codereview |
My boss gave me the big mission to become an Core Data nerd. He wants me to spend at least 4 months fulltime on this topic, so that I can help with any problem that arises. Damn.
Ok... I assume you have lots of great links for me! Let me suck them into my brain like a vacuum cleaner.
Videos, Books, Ressources, etc... h... | stackexchange/codereview |
How do you customize this default line generated by Devise in the mailer view?
<p><%= link_to 'Confirm my account', confirmation_url(@resource, :confirmation_token => @resource.confirmation_token) %></p>
I've written a method in my controller called user_confirm. And I have also defined a route for it. Can I get the U... | stackexchange/codereview |
I'm a mostly webdeveloper, so my question can be somekind of a beginners.
I'm writing a function which works with QWebView content, some kind of a macro script which makes action on loaded web page.
code is something like that:
somefunction() {
QWebView *webView;
webView->load(QUrl("http://www.google.com"));
<...> her... | stackexchange/codereview |
I am creating a WPF application which contains a combobox.When there is a mouse over on the combo box, suppose the combo contains the strings apple and orange, I need to show the corresponding image as a tooltip.
I got a sample application from the following link.
http://diptimayapatra.wordpress.com/2010/03/05/image-in... | stackexchange/codereview |
Back Story
I am currently updating an existing web application to support a multi-tenant environment. Today we current host an application on http://www.example.com/MyApp, but now we must be able to support multiple clients on the same web application.
So each client should be able to access the application through ... | stackexchange/codereview |
I would like to register my iOS 4 app as an observer for ALAssetsLibraryChangedNotification and receive notifications when changes happen to the camera roll and photo library. The most obvious scenario is:
1) My app enumerates photo contents using ALAssetsLibrary.
2) Leave my app (goes into background) and launch the c... | stackexchange/codereview |
What's best practice for structuring an activity, which should begin by displaying an animated image, and then move to another "activity" by intent when the animation is complete? I understand some of the basic principles, but I am getting lost on structuring the flow here.
public class Scanimation extends Activity ... | stackexchange/codereview |
I realise I can do this with CURL very easily, but I was wondering if it was possible to use file_get_contents() with the http stream context to upload a file to a remote web server, and if so, how?
| stackexchange/codereview |
I have two tables: Users and Friendships.
The actions I have in the website are:
Register
Log in
Select friends/people from users table
Add people as friends
There are a little more actions but in general i wanted to know :
The Question:
Should I use InnoDB or MyISAM for the tables ?
( Or InnoDB for one and MyISAM f... | stackexchange/codereview |
This is my link button:-
<asp:LinkButton ID="lnk1" Text="Set as Default" runat="server" Visible="false" OnClick="lnk1_OnClick"></asp:LinkButton>
In Code Behind I am simply making it visible
lnk1.Visible = true;
I have checked the IDs over n over..whats wrong ? Intellisense wont detect it either..I am doing something ... | stackexchange/codereview |
Well till now I knew we implement interfaces , but today some body (you know who , i guess)) told me that If I write a interface then we implement it in class , but if it is a system Interface , Let's say INotifyPropertyChanged , the we call it Class A inherits Interface INotifyPropertyChanged.
Though I feel right , I ... | stackexchange/codereview |
I have a classifieds website, where anyone (no need for login currently) can post a classified. It is PHP based.
The procedure for posting is currently like this:
click on "New Classified" --->
fill in a form of all information and hit "View classified before publishing it" --->
the form submits to a "verify classif... | stackexchange/codereview |
I have a UIPickerView with 2 components allowing the user to select hours and minutes. I have seen many apps displaying a "hours" and "minutes" label on the selection indicator.
How do I do this.?
| stackexchange/codereview |
I am currently debugging a script that constantly runs into OutOfMemory exceptions. It is run as a cronjob and usually runs fine, but when the cronjob wasn't run for a while (for whatever reason) the script has to handle to many elements that queued up and will run into a OutOfMemory exception.
From examining the code ... | stackexchange/codereview |
I need to display the current selection for select table as a pop up box , where in index.rhtml I have this
<SCRIPT LANGUAGE="JavaScript">
function checkData()
{
var myTest = formid.table_id.options[formid.table_id.selectedIndex].value;
alert 'myTest';
}
</script>
<% form_tag :controller => 'project_controller', :acti... | stackexchange/codereview |
I've noticed whilst optimising animations for use on iPad using hardware acceleration, I seem to be coming across an issue that I haven't fully been able to resolve. If you are applying webkit transforms such as translate, although the animation runs great, if in the middle of an animation occuring the user scrolls the... | stackexchange/codereview |
I have this code:
Article.find([1,2,3])
But only record 1 and 2 exist in the database. I get this exception:
"ActiveRecord::RecordNotFound (Couldn't find all Offers with IDs (1,2,3) (found 2 results, but was looking for 3))"
Is there a way to only get the existing records and not the exception?
| stackexchange/codereview |
Is it possible to use SELECT FROM when using an associative array? I'm passing an array to a stored procedure through a .NET application, and I wanna be able to use that array as a condition when selecting from another table. Lets say I'm passing an array of IDs to the procedure, I wanna be able to do this:
select ... | stackexchange/codereview |
I am parsing a group of post on a blog.
I have some HTML that I successfully assigned to a string. I am trying to get the HTML to display in a UITableview. However, I want it formatted.
For instance I want <br /> to actually do a line break in the table and <img scr= to actually display the picture. How can I accomplis... | stackexchange/codereview |
I'm using a UISplitViewController and when I launch the simulator, I get the following error:
"The view controller returned NO from -shouldAutorotateToInterfaceOrientation: for all interface orientations. It should support at least one orientation."
Any ideas on why I am getting this? (I am not subclassing the splitvi... | stackexchange/codereview |
Let say the data entities are: Bookshop <--->> Books
How do I fetch all books belonging to a specific book shop that contain "cloud" in the name for example? The following method feel clunky.
Bookshop *bookshop = (Bookshop *) nsManagedObjectFromOwner;
NSString *searchTerm = @"cloud";
NSFetchRequest *fetchRequest = [[... | stackexchange/codereview |
In my current project, there are lots of code using
switch statements with too many cases.
Switch(c)
{
case CASENUMBERONE:
//50-100 lines of code in each code
...
case CASENUMBERTWENTY:
..
}
//thousands of lines of macro definition in another file
#define CASENUMBERONE 1
...
#define CASENUMBERTWENTY 20
...
It seems... | stackexchange/codereview |
I was told that, I misunderstand effects of final. What are the effects of final keyword?
Here is short overview of what I think, I know:
Java final modifier (aka aggregation relation)
primitive variables: can be set only once. (memory and performance
gain)
objects variables: may be modified, final applies to object... | stackexchange/codereview |
i have stupidly managed to lock myself out of my own drupal site.
i have deleted my browser cookies while my page.tpl.php doesnt print the login form.
when i change my page.tpl.php file to print the log in form, i doesn't, cause the theme registry is not cleared.
i cant clear it - i am not the admin.
nice look up, isnt... | stackexchange/codereview |
I know
rake spec:models
to spec all models.
Is there a way to spec only one model, or only a given collection of models?
Something like this would be desirable:
rake spec:model user
or with a collection of models
rake spec:model user role order
BTW: Brian Hogan wrote created something similar (see here) but maybe t... | stackexchange/codereview |
I am using a message-driven-channel-adapter to read messages off MQ queue, and this has been working fine in development. Now, in preparation for the first production release, I have to read a secured queue instead.
What do I need to do?
I think I need to make sure the following are set as system properties, but with ... | stackexchange/codereview |
I want to store buttons in some sort of collection, arraylist,
so that I can add and remove dynamically.
I tried to use Collection but seems it is not the choice, as I got an error when ar.Add() is reached.
Object doesn't support this property or method.
Public Sub removeAllFormsWithAdd()
Dim myshape As Shape
Dim... | stackexchange/codereview |
Wierd question title...
What i am trying to accomplish is pretty simple i think.
I got 3 tables in the database,
BlogPost - BlogPostTagsConnection - Tags
The blogpost contains text, title, slug, author, id etc. The BlogPostTagsConnection contains the BlogPost id and the Tags id and finally the Tags contains tagid and t... | stackexchange/codereview |
I want to create a security field in the column, which will be used to do bit 'banging'
what data type should I use in my migration?
| stackexchange/codereview |
I've downloaded Eclipse C/C++ IDE . I need to run a simple c program in this(To print welcome).
While trying to run the program its popping up an error message like "Launch failed: Binary not found" .
Need i install any compiler package. ?
Please help me to do this.
| stackexchange/codereview |
This is a two part question really (at the end).
Let's say I have a DB table of businesses. Each business has a category field, filled with a category "slug" (food-restaurant-brazilian for example). Instead of building a BusinessCategory DB table, I'm just going to build it in-code. Something like this:
public class Bi... | stackexchange/codereview |
RCustomerId GiftRegistryId ContactId DateActive DateExpire
----------- -------------- --------- ---------- ----------
62 66 225 NULL 2010-10-11
62 66 228 2010-10-13 NULL
62 67 229 NULL ... | stackexchange/codereview |
When I select the "Debug" configuration, the DEBUG constant is active. When I select the "Release" configuration, the DEBUG constant is inactive.
How can I create my own configurations so that they include my own defined constants. Basically, I want it so that if I select the configuration "FOOBAR" that there is a cons... | stackexchange/codereview |
I am trying to fix an error for a friend in his site that someone else has written and I am having a real hard time with one of these errors. There is functionality to check wether a user can use a username via AJAX, the response is XML. However, the XML returned has an error in it.
XML Parsing Error: XML or text decla... | stackexchange/codereview |
I am writing an application where you push different buttons and a character gets animated. The thing is that I have many images, so I need to use one texture for each animation. Therefore I need to release sprite sheet and frame cash, but it does not seem to be working. Memory gets allocated more and more until the ap... | stackexchange/codereview |
The following assignment:
set ora=%time:~0,2%%time:~3,2%%time:~6,2%%time:~9,2%
returns the value " 9194234" when the time is 9.19.42,34.
How can be squeezed the value or better to have the value "09194234"?
| stackexchange/codereview |
I did the:
gem install hpricot --platform=mswin32
It's correctly listed when I do gem list:
*** LOCAL GEMS ***
abstract (1.0.0)
actionmailer (3.0.0)
actionpack (3.0.0)
activemodel (3.0.0)
activerecord (3.0.0)
activeresource (3.0.0)
activesupport (3.0.0)
arel (1.0.1)
builder (2.1.2)
bundler (1.0.0)
columnize (0.3.1)
e... | stackexchange/codereview |
I'm just getting to grips with custom validation attributes, and I'm trying to write a custom validation attirbute which will be placed at class level to validate against multiple properties of my model.
I can access all properties on my model, and I want to be able to check for multiple conditions in my IsValid overlo... | stackexchange/codereview |
I have some objects with Date parameters. What collection will be best for storing them and later querying for object/objects with particular date ? (like given as a String or java.util.Date format) ?
EDIT:
I was trying to use TofuBear's solution, but cannot make it work. let's say I am calling my function (which retu... | stackexchange/codereview |
foreach(var filter in filters)
{
var filterType = typeof(Filters);
var method = filterType.GetMethod(filter);
if (method != null) value = (string)method.Invoke(null, new[] { value });
}
Is there a case-insensitive way to get a method?
| stackexchange/codereview |
I am planning on purchasing the new HTC phone running Windows Phone 7, and am planning on using it for development purposes only; however, I can't afford the expensive subscription to T-mobile's data network at the moment. Is a cellular subscription necessary to use the phone for application testing purposes; or can I ... | stackexchange/codereview |
Here's the scenario conceptually (excluding linearlayouts)
ScrollView
Button
Checkboxes
Spinner
ListView (full-size, non-scrolling)
AdMob advert
i.e. a scrolling pane, which has a filtering UI at the top, followed by results, but the advert must always remain visible, and when scrolling down the filter UI must... | stackexchange/codereview |
Edit
How can I rewrite this PHP code for POST[ 'phrase' ] == session[ 'phrase' ] ?
psuedo-code
//process_form.php
PHP
session_start()
IF POST SUBMIT
IF empty text1 && empty text2
echo error msg, include HTML FORM
ELSE IF empty radiobtn
echo error msg, include HTML FORM
ELSE IF
... | stackexchange/codereview |
I am trying to figure out how to utilize exisiting SQL Databases with my iPhone apps.
What i am trying to do, is have a search function. The user inputs a keyword, i would then query my SQL database dependant on the user input and return the results from a database.
How do i do this with the iPhone?
EDIT: I mean SQL Se... | stackexchange/codereview |
I'm trying to load profile images (friend images) from Facebook with AS3 but I seem to be running into a security issue.
I'm currently using the "official" Adobe Facebook API for Actionscript 3 which works fine. However, I seem to be having trouble loading profile images when running my application in a browser. The im... | stackexchange/codereview |
Sometimes I find myself creating a CSS class for a single element. So instead, I can use an ID and set a rule for this ID. Which way is preferable stylistically?
| stackexchange/codereview |
I'm on a Macintosh and am using "terminal" for my shell. When I copy text from any window (via mouse drag then right mouse button menu -> copy) and then I paste the text (right mouse button -> paste) into a terminal with emacs running, it doesn't act as a paste. Instead, it is just like entering or typing in text. T... | stackexchange/codereview |
I am using jQuery fullcalendar with Grails. I was using events (as a json feed) earlier and when the user clicks prev/next or changes views the json feed URL is called every time.
Since I need to check the user session also, I changed from events (as a json feed) to events (as function) as shown below. The problem is ... | stackexchange/codereview |
I'm trying to maintain some Wix code, and am getting the following warning:
warning LGHT1076 : ICE57: Component 'FILE_MY_ASSOCIATION' has both per-user and per-machine data with an HKCU Registry KeyPath.
From the following code:
<Component Id="FILE_MY_ASSOCIATION" Guid="E1DF42A5-BD00-4a80-9BE5-B66A3EF0576E" Win64="$(v... | stackexchange/codereview |
I would like to run and test P2P connectivity over Bluetooth via Game Center (GKPeerPickerController). I own an iPod Touch with OS 4.1 installed and am trying to connect it to the iPhone Simulator running on my Mac via Bluetooth, however they are not seeing one another. Bluetooth is on for the iPod and the Mac. Is this... | stackexchange/codereview |
I've tried searching A LOT for this with no luck (possibly because I'm not using the right technical terms). My issue is mainly to do with linking static libs, compiling and deploying. Before I get into details, my executables compile fine on my system; the main issue is how to deploy these as a working solution to oth... | stackexchange/codereview |
Is there any hint whether Bada OS supported scheduled task ?
E.g. App A set a timer or schedule, then App A is suspended or closed. When the timer is expired, the application would be called and proceed.
Possible ? or any alternative ?
| stackexchange/codereview |
I've got a web app targeting .net 3.5 and im trying to render browser specific content, specifically targeting iPads. I've visited my page from various browsers including iPhone, iPad, Chrome, Safari and the Request.Browser variables always seem to be wrong. Apologies for the rant, I thought this was a .Net feature t... | stackexchange/codereview |
I've the following class definitions in exe and dll.
// A.exe:
Class A { void fun() { B* b = new B(); b.funx(); }
// B.dll:
Class B { void funx (void) { C* y = new C(); y.funy(); }
Class C { void funy() { } }
Lets say I change the size of class B, should i recompile A.exe? And should I recompile A.exe even if I cha... | stackexchange/codereview |
I'm trying to compile AS files using the mxmlc but the particular class depends on other classes. My command is something like this: mxmlc -includes classA classB -source-path=. com.example.com.classC.
This gave me classC.swf but when I loaded it, it was still looking for classA.swf and classB.swf. Is there anyway I c... | stackexchange/codereview |
Thank you all for your answers and time!
Hello,
I've been trying to call a non-static method, located in my main application Class, from the Preferences Class.
Because the method I call is not static, I instantiate the main class and then try to call the specific method I want but it's force closing.
Preferences.class ... | stackexchange/codereview |
I have a table of data recording certain user events. The results looks something like:
ID Username EventDate
1 UserA 2010-10-21 16:59:59.367
2 UserA 2010-10-21 17:00:00.114
3 UserA 2010-10-21 17:00:00.003
4 UserA 2010-10-21 17:00:02.867
5 UserB 2010-10-21 18:43:26.538
6 U... | stackexchange/codereview |
I just discovered ASP.net uses its own profile system to register users and there seems to be a lot of features available as bonus with it (such as secure authentication). However it seems rather specific to have such a feature for a general purpose development environment and things which work in the background the wa... | stackexchange/codereview |
I'm trying to manually call RegisterClassEx Windows API without using a WNDCLASS structure on .data section, I need to create this structure only using push instruction.
Could someone help me on that please?
Thanks a lot
| stackexchange/codereview |
If you ask a person to type in a page full of random hand written 20 digit numbers, I would expect that you would see different errors occur with non uniform frequency (e.g. switching 6 and 5 or 3 and 8 would be more common than 7 and 0). Are there any error correction codes that incorporate that sort of error function... | stackexchange/codereview |
Is it possible to interact with an XML file after making a $.ajax() call?
IE:
.$ajax(
url: "someUrl",
type: "GET",
dataType:"xml",
success: function(xml){ //some function },
error : function(){ //some function}
});
$("#somebutton").click(function(xml){ //function that interacts with XML });
I haven't been able t... | stackexchange/codereview |
I am unable to create a directory in a mapped drive. e.g. i have mapped U: to some location which there in the network. Using vc++ i am using CreateDirectory api, but it's not able to create directories. If i am giving any local machine location, it's creating. any solutions. Please let me know.
I have tried debugging ... | stackexchange/codereview |
I am having problems renaming a column in SQL Server Compact Edition. I know that you can rename a table using sp_rename, but this doesn't work with columns.
I've searched for an alternative, but haven't found one.
Can I delete a column and then add a new one after a specific column? If I delete the column and add it ... | stackexchange/codereview |
How to use Ruby on Rails to do this?
mysql> SET @t1=1, @t2=2, @t3:=4;
mysql> SELECT @t1, @t2, @t3, @t4 := @t1+@t2+@t3;
| stackexchange/codereview |
I'm doing some UIView animation stuff using
[UIView beginAnimations:nil context:nil];
// ... Animation configuration ...
[UIView setAnimationDelegate:self];
[UIView setAnimationDidStopSelector:@selector(animationEnded:finished:context:)];
[UIView commitAnimations];
Regarding the following question: Apple rejected app ... | stackexchange/codereview |
I have a slider and the slider stretches 100% of the page. I wish to programmatically clone the first element as it leaves the screen and place it at the end, or rather, just move it, without a clone to keep the memory low. Could somebody point me in the right direction to do this?
I'm currently using EasySlider 1.7
Ch... | stackexchange/codereview |
I have BLOB field in MySql table with text and image inside, is there any way to extract out only text or only images?
$query = "SELECT id, date, blob, FROM table ORDER BY id DESC ";
$result = mysql_query($query);
while($row = mysql_fetch_assoc($result)) {
echo
"<div class=all>
"<ul class=... | stackexchange/codereview |
I'm using a JQGrid with cellsubmit: 'clientArray' and executing addRowData and delRowData from custom buttons in a column.
I want to send modified data to server through a 'Send Button' and I know that I can getChangedCells to get edited cells but I don't know how to get added and removed rows.
How can I achieve this?
... | stackexchange/codereview |
I would like to present information to the user of my app in a non-editable way but allow editing after a button press (of the edit button). Is there any way of easily creating this transition from non-editable to editable?
I have considered using UILabels for the non-editable fields and programatically removing them a... | stackexchange/codereview |
I am trying to debug a segmentation fault caused by my C program using gdb. A core dump file is not automatically generated when I run my program,and i have to run the command
ulimit -c unlimited
for a core file to be generated on the next run.
Why is a core dump file not generated automatically and why do I have to ... | stackexchange/codereview |
At the consturctor Node = new Node[numberOfNodes]; and Edge = new Edge[numberOfEdges]; gives identifier error? what's the wrong with it ?
typedef struct node
{
int id;
int x;
int y;
} Node;
typedef struct edge
{
int id;
Node node1;
Node node2;
} Edge;
class graph
{
private:
int numberOfNodes;
int numberOfEdge... | stackexchange/codereview |
Related to: django - pisa : adding images to PDF output
I've got a site that uses the Google Chart API to display a bunch of reports to the user, and I'm trying to implement a PDF version. I'm using the link_callback parameter in pisa.pisaDocument which works great for local media (css/images), but I'm wondering if it ... | stackexchange/codereview |
I created two services. I want to delete a folder, but that folder is used by my first service. When I execute the first service after that I execute the second service it works fine. But when I try to execute both service at the same time it does not work properly.
| stackexchange/codereview |
I'll start of by saying I'm not a developer. Yes this is a c# nightmare. But this is a one time tool and thats it. Quick and Dirty it just needs to work and thats it.
I have the following code:
public string[] get_status(string local_fname)
{
var dts_doc = new HtmlAgilityPack.HtmlDocument();
... | stackexchange/codereview |
Where exactly does serialization comes into the picture? I read about serializtion on the 'net and I have come to know that
it is an interface that if implements in a class, means that it can be automatically be serialized and deserialized by the different serializers.
Give me a good reason why and when would a cla... | stackexchange/codereview |
How to use Customized fonts on Canvas?
I have customized view (PIECHART DRAWN ON CANVAS) on left side of the screen and list view on right of the screen. When ever I touched on the canvas list view values has to be changed. is it possible. My listview is in Activity A class.And view is in B class.
I have piechart wit... | stackexchange/codereview |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.