instruction_seed stringlengths 1 35.8k | _source stringclasses 1
value |
|---|---|
I have a json string like this:
json = "{'run': 'function() { console.log('running...'); }'}"
How do I run that function inside of the json string?
| stackexchange/codereview |
I have a sorted list of ratios, and I need to find a "bin size" that is small enough so that none of them overlap. To put it shortly, I need to do what the title says. If you want a little background, read on.
I am working on a graphical experiment that deals with ratios and the ability of the eye to distinguish betwee... | stackexchange/codereview |
I'm making myself familiar with C programming and want to write a program similar to expand. The command line tool first reads every input from stdin, processes it and writes the complete result to stdout. How can I achieve this in an elegant manner?
Currently my code looks something like this. This works perfectly whe... | stackexchange/codereview |
Trying to find the leak in my code I removed all the thing that did not matter, leaving the following code:
static int last_memory = 0;
void report_memory(NSString *name) {
struct task_basic_info info;
mach_msg_type_number_t size = sizeof(info);
kern_return_t kerr = task_info(mach_task_self(),
... | stackexchange/codereview |
Hi my Xmonad has been working perfectly until few days ago, then I think I installed something with Synaptic and then started to complain about Xmonad.Config.Gnome
here it is my xmonad.hs
import XMonad
import XMonad.Config.Gnome
myManageHook = composeAll [
(className =? "Pidgin" <&&> title =? "Buddy Lis... | stackexchange/codereview |
I have a site using a self-signed cert (which prompts for "trust this site and continue"), and in IE, occasionally when the user attempts to download a CSV file (which is handled by writing the file to the file system and sending a redirect header), the user can be prompted with the Windows authentication screen for us... | stackexchange/codereview |
I need to be able to establish an ODBC connection through SQL Server authentication.
In SSMS how do I grant permission for a user to be able to have ALL RIGHTS on a specific database?
is there a way to do this graphically with SSMS?
| stackexchange/codereview |
What's up guys!
I gonna need some help!
Inside of this code "return ControllTheDog(D, _____)); The part "_____" needed to be added with a specfic code in C sharp.
What is the solution to make a selection between method "NeedInjection" or/and "Dehydration" instead of "____"? Have worked hard to find a solution but I... | stackexchange/codereview |
By default WCF use DataContractSerialization so if we can change it then my question is how to change it and when should we need which serialization on wcf ?
| stackexchange/codereview |
Sorry for my poor English, my system want to change javascript tree from KoolTreeView to jsTree and I read the document and implement it. The result is something like this
Food
* Fish
* Beef
* Chicken
my javascript and div code
<script class="source" type="text/javascript">
$(function () {
$("foodtree").jstree({
... | stackexchange/codereview |
Is it possible to easily get the size of a folder on the SD card? I use a folder for caching of images, and would like to present the total size of all cached images. Is there a way to this other than iterating over each file? They all reside inside the same folder?
| stackexchange/codereview |
When deploying a software package containing a VB6 executable and a .NET component, is the .TLB file needed?
If not, would it be sufficient to include the .DLL and have it regasm-ed during installation?
| stackexchange/codereview |
How do I change the URL with jQuery without reloading the page?
| stackexchange/codereview |
How can I change an image source continuously by xaml codes??
| stackexchange/codereview |
Hello guys:
I have to project many points before drawing them on a frame.
my codes are blow:
-(Coordination*)xyWorldToDev:(Coordination*)pt isIphoneYAxis:(BOOL)isIphoneYAxis{
CGPoint tmpPoint=CGPointApplyAffineTransform(CGPointMake(pt.x,pt.y),worldToDevMatrix);
Coordination *resultPoint=[[[Coordination alloc]in... | stackexchange/codereview |
is it possible to detect whether there is an open query using VBA in access-2007?
i am opening a query like this:
stDocName = "Meeting_Reasons_Frequency"
DoCmd.OpenQuery stDocName
is it possible to detect whether it is open?
| stackexchange/codereview |
I have application with multiple UIViewControllers using navigation controller. UIViewController contains tableView, searchbar (that I can show/hide) and toolbar. All of this is added as subviews to its view. All this subviews are created after UIViewController is initialized and their content depend on UIVievControlle... | stackexchange/codereview |
I know the entity frame work does not allow you to generate a model from a database using non primary unique keys as a Foreign Key association. Can I modify the EDMX manually? If so, can someone provide me an example or reference? If not, are there any other possibilities?
Easiest Example:
Here is the DDL for the tab... | stackexchange/codereview |
A while ago I asked about std::string constants correct idiom for std::string constants?.
What I took away from that was not to use std::string constants but to use char string constants. So what the best idiom for that
#define FOO "foo"
const char * const FOO = "foo";
const char FOO[] = "foo";
Desirable features
g... | stackexchange/codereview |
I got strange compile-time error:
Project file must include the .NET Framework assembly 'WindowsBase, PresentationCore, PresentationFramework' in the reference list.
This project is aspnet mvc web application and all was fine for a long time.
After I added them Build went fine, but what could be a reason for this error... | stackexchange/codereview |
I'm looking for something similar to the a html a tag title text but I want the text to come from a separate file.
For example
<a href="xyz.htm" title="how do I retrieve this text from a file?">whatever</a>
| stackexchange/codereview |
I want to know whether RabbitMQ is more scalable than other brokers or not?
If yes what are the specific reasons? If not how can we scale it up?
I am using rabbitmq for the first time with Spring framework.
| stackexchange/codereview |
I imported a large repo using git-p4, and discovered that I have some strangely mixed-case filenames, e.g.:
dirA/DIRb/file1.txt
and then other files like so:
DIRa/dirB/FILE2.txt
and so on. These get entered into the repo this way because git-p4 uses fast-import. This causes Git to mysteriously claim that there are un... | stackexchange/codereview |
I am getting the following exception:
org.springframework.orm.hibernate3.HibernateSystemException: Named query not known:
Entity class header:
@Entity
@NamedNativeQuery( callable = true, name = "_Foo_SP", query = "call _Foo()", readOnly = true, resultClass = Foo.class )
public class Foo {
//...properties omitted fo... | stackexchange/codereview |
How is the msn messenger app developed? What I want to know is how does the app gets ti know that a new message is received, even while running in the background. Please refer any code snippets or tutorial.
Many thanks in advance.
| stackexchange/codereview |
How do I force MATLAB functions to use a different codec when I need to play an AVI file?
I am using windows7 and I find that indeo5 codec is not working properly because of the OS.
All code works fine on XP.
Thanks!
| stackexchange/codereview |
I'm implementing the Facebook "Like" button on our site, using the Javascript SDK.
It's working brilliantly, but when a user posts a comment, that message links back to the canonical link in the <head> section.
that's severely unwanted behaviour. Why go through the trouble of manually providing a link to have it overri... | stackexchange/codereview |
I already had C# Express 2010 since I've worked with Windows Forms some, but I wanted to started messing around with games for 360. When I went here to download the free tool kit including XNA: http://create.msdn.com/en-us/home/getting_started the install came with Visual Studio C# Express 2010 for Windows Phone 7. T... | stackexchange/codereview |
I have done FFT of a audio file using OouraFFTl.How to check whether the Sampled output is right or wrong.Whats the better and easy way to check it.This is my code.
MyAudioFile *audioFile = [[MyAudioFile alloc]init];
OSStatus result = [audioFile open:var ofType:@"wav"];
int numFrequencies=16384;
int kNumFFTWindows=10;... | stackexchange/codereview |
public abstract ClassName
{
// methods
// setters & getters...???
}
| stackexchange/codereview |
Is there an open source implementation of rtmfp?
Is there FMS hosting that support rtmfp?
What is the price of FMS4 enterprise?
Thanks
| stackexchange/codereview |
Basically in my website I have a sidebar with a stack of boxes; each box can be collapsed or expanded by the user. I need to save the status of each box for the currently logged in user.
I don't want to use cookies because if an user changes browser or computer, all the boxes will go to the default status.
Should I sa... | stackexchange/codereview |
I want to execute some commands on the end of the bash script, even if the user press CTRL+C to cancel its execution.
I know I can run the bash script from inside another programming language (for example, Python), so that I can use the 'finally' (try-finally) block to execute some code.
But knowing that StackOverflow ... | stackexchange/codereview |
Is there any REST convention for handleling resources with slashes?
For instance, let's say a normal REST resource works like this:
/ice cream/chocolate - returns the
ingredients of chocolate ice cream
/ice cream/rocky road - returns the
ingredients of rocky road ice cream
/ice cream/strawberry/banana -
returns the st... | stackexchange/codereview |
hiii..i m developing an app in which as user click on a link it should prompt the user to open link in myAppbrowser (which i will create) or default browser(like activity chooser do).
as user click on default browser app prompt again that, 'this page cant open in default browser'.
after that the browser which i make sh... | stackexchange/codereview |
Two tables
Table1
ID FileName
1 abc
2 abc
3 abc
4 xyz
Table2
ID Table1_ID isDeleted
1 1 1
2 2 1
3 3 0
4 4 0
I need to get the count of filename for the isDeleted=1 by passing any ID of table1, i.e for all the values(1,2,3) of ID, i need the count as 2
I tried with the follo... | stackexchange/codereview |
I want to take a string, and a specified font, and create a graphic image that contains that text in box, where the box resizes to the text.
I got the code below working, but it sizes the box before doing anything else.
Is there some way to resize the image to fit the text (I probably need to add a small border of a... | stackexchange/codereview |
I am looking to remove a directory from local and central repository. I managed to do it locally by
hg remove name_directoriy
hg commit
However, after pushing my changes to the central repository the deleted folder is still in the central repository while it is gone locally.
How to remove directory in cen... | stackexchange/codereview |
I have a service which is listening to the phone. When the phone goes IDLE, I want to send a message to my Activity. It looks like I have two options to accomplish this. BroadcastReceiver and binding to the Service. BroadcastReceiver looked like an easier mechanism, so I tried the following test.
In my Activity:
@O... | stackexchange/codereview |
I am brushing up on my non-framework Object Oriented PHP and decided to do a test. Unfortunately, while I understand the concept of calling methods from a class, this particular test is slightly more complicated and I don't know what the terminology is for this particular type of situation is.
Test
Create a PHP class t... | stackexchange/codereview |
Hello
I'm adding some ajax features to a site and I have very strange problem.
On webkit browsers the ajax request aren't working.
I have no idea where is the problem.
I noticed that if I leave only one ajax request the Safari(windows) is doing it right, but that its not what is happening to the Safari(Mac) and Chrome(... | stackexchange/codereview |
I'm creating a stat editor for some objects within a game world. Rather than have multiple edit menus for each object type, I just have one menu, and pass in a list/vector of stat-edit-objects which contain a pointer to the stat being edited, and the functions to do the work.
struct StatEditObjPureBase
{
std::vecto... | stackexchange/codereview |
I am trying to convert dips to pixels using the following function. I’ve tried low, medium, and high density emulators and regardless of the emulator I use, the pixel value remains the same value as the dip value I pass into the function.
private int ConvertDips(float dips) {
int pixels = (int) TypedValue.applyDimens... | stackexchange/codereview |
I'm wondering if it's possible to use jQuery's bind() to fire a custom event when an arbitrary function is called. Something like,
/* when cmsPlugin.func() is called, fire myCustom.func() too */
$.bind( cmsPlugin.func, myCustom.func );
We're using the Lightbox2 plugin for Drupal on a site.
When the lightbox is displa... | stackexchange/codereview |
Is there any way to find out what all status codes a host got when tried to access the particular website.
Something like
28-10-2010 192.168.1.1 HTTP 404 http://localhost/BAC/default.aspx
28-10-2010 192.168.1.10 HTTP 200 //localhost/BAC/default2.aspx1
I tried using some free log analysers like : IIS Log Ana... | stackexchange/codereview |
I am writing a board game script and would like to use jQuery UI's drag and drop functionality.
When i drag an element from inside DIV A to inside DIV B, is there a way of reading DIV B as the new container of the element.
$( ".draggable" ).draggable({
stop: function() {
alert(this.parentNode.id); // aler... | stackexchange/codereview |
How can we implement client side SSL in J2ME?
Any available resource or source code??
I want to validate the particular service is accessed by a particular phone.
| stackexchange/codereview |
I want to add my own text and change the template of the default hudson for authenticated users.
where are the html files located so I can edit them ? or is there another solution ?
| stackexchange/codereview |
I need to verify that an input file in an html form is an image, I've made the follow code inside the html page, but it doesn't work...
script type="text/javascript" language="javascript"
function valida(f){
var campo = f.immagine.value;
//window.alert(campo);
var er = /^+.[\.]([jpg]|[gif]... | stackexchange/codereview |
I'm writing php web-app using unholy alliance of php+oracle+iis :)
every time script being executed I create a new connection to db - and it takes time:
class ORACLE_layer {
public function __construct($usr, $pwd, $db) {
$this->conn = oci_connect ("...")
}
function __destruct() {
oci_close(... | stackexchange/codereview |
I want to start developing with Flex3. Anyone can suggest some good free starting video tutorial/lecture and free online books available. its will be very helpful for me
| stackexchange/codereview |
how do i disable the back button function to do nothing ?
| stackexchange/codereview |
Is there any limits/restrictions about amount of notifications sent to the APNS in time range?
For example - can I send 100,000 messages for 100,000 devices (one message for one device) in one hour to notify them about new content available to purchase via in-app purchases ?
Found nothing about any restrictions in the ... | stackexchange/codereview |
I'm using php's json_encode() to convert an array to json which then echo's it and is read from a javascript ajax request.
The problem is the echo'd text has unicode characters which the javascript json parse() function doesn't convert to.
Example array value is "2\u00000\u00001\u00000\u0000-\u00001\u00000\u0000-\u000... | stackexchange/codereview |
I have to create a form that accepts as its relevant parameter the name of an Italian city. Once submitted, the form value should be sent to the Google Maps service which should in turn return a complete map showing the location of that city. I'm pretty a newbie with Google Maps, so I don't know exactly how this could ... | stackexchange/codereview |
i have replaced WPF ribbons to the newest library, the combobox selection changed triggers reload of datagrid. I have problem with the RibbonComboBox.
If i leave with mousecursor out of the selected item, the selected item is reverted to the old item. if i keep cursor on the selected item until the datagrid reload is ... | stackexchange/codereview |
I've been working on a script for debugging mod_rewrite, and when testing their regex system I've had some strange results. I'm wondering if this is normal behavior for the mod_rewrite regex engine or if some part in my code is causing it.
Requested URL: http://myurl.com/path/to/something
.htaccess has: RewriteRule to ... | stackexchange/codereview |
I need the two bytes to be read from the socket, and, if necessary, bring them back into the socket, so the next handler read them. how it can be implemented?
Thanks.
| stackexchange/codereview |
how to return the correct representation based on URI
example
/text.json should return json
/text.xml should return xml
/text should return plain text
All these are mapped to the same method
@GET
public Contact getContacts()
{
}
| stackexchange/codereview |
I am trying to add a class to my tr rows if the select all checkbox has been selected, but I can't seem to get the add class to work (and then obviously remove them if check all has been deselected), I am using toggle on each individual row to add/remove the class, but can't seem to get it working for the check all.
He... | stackexchange/codereview |
I need a checklist for checking iPhone applications. Can anyone help me on this with some usefull links or data?
:)
| stackexchange/codereview |
When I was using Rails 2, I did script/generate scaffold User to create the user model. Now I need to remove it, and I'm using Rails 3. I tried rails destroy scaffold User and rails destroy User, but these just created new rails projects named destroy. How do I do it? Thanks for reading.
| stackexchange/codereview |
i want encryption password from client side and server side , it means twice encrypted , i found on google snipped code Javascript md5 but how can i do with JSF?
in Server side i can do but, but in client side with JSF how do i ?
javascript md 5 : http://phpjs.org/functions/md5:469
| stackexchange/codereview |
If I'm calling for example, http://www.mysite.asp?p1=2&p2=3#Bookmark Does the browser invoke that #Bookmark after the "classic" ASP generates output? It appears that it's not coming thru, the browser doesn't jump down to the bookmark. I am suspicious it's getting "thrown out" by either ASP or the browser. This acts... | stackexchange/codereview |
I'm trying to learn how to get an application access token from Facebook for my app.
I'm sending a jquery reguest (in the firebug console) based on the data specified here (http://developers.facebook.com/docs/authentication/#client_credentials).
I seem to get the response ( access_token = 'my_app_id|'+the_app_token... | stackexchange/codereview |
I am trying to get the userid of the user that has triggered the build and use it as a parameter some where in the build file. Just like we can use ${CCNetProject} to get the project name. Is there a way I can get this information in Cruise Control .Net?
| stackexchange/codereview |
is this valid
void *p = &X; /* some thing */
p += 12;
and if so what does p now point to?
I have (third party) code that does this (and compiles cleanly) and my guess is that the void * was treated as a char *. My trusty K&R is silent(ish) on the topic
EDIT: My little test app runs fine on gcc 4.1.1 and treats void *... | stackexchange/codereview |
I'm running Maven 2.2.1 and it's returning an exit code of -1 even though it states that the build is successful. Anyone know what causes this exit code to occur as it's breaking our build process?
As a further tidbit of information MVN is being called from our MS TFS build server which is where this problem occurs. If... | stackexchange/codereview |
What I'm trying to do is search a page for an element that has the string 'tab_selected' in the class name. The class name is more than just 'tab_selected'. Its 'tab_selected + the UUID'. The UUID changes so all I really want to search for is if the class name contains 'tab_selected' and then if it does I want to get t... | stackexchange/codereview |
Hii ,
i Was implementing a trie in C ... but i am getting an error in the insert_trie function .
I could not figure out why the root node is not getting updated . Please help me with this.
#include<stdio.h>
#include<stdlib.h>
#include<malloc.h>
typedef struct
{
char value;
int level;
struct node *next;
struc... | stackexchange/codereview |
Trying to retrieve the SOAP body from a SOAP response, but getting this error:
NAMESPACE_ERR: An attempt is made to create or change an object in a way which is incorrect with regard to namespaces.
Document doc = soapResMsg.getSOAPBody().extractContentAsDocument(); -- Exception is thrown here
org.dom4j.io.DOMReader d... | stackexchange/codereview |
We implemented one concept in Flex and now would like to integrate with JavaScript. Earlier we integrated an Applet code but now, we developed the concept in Flex, however, I am unable to integrate the concept in java script.
Can anyone help me out with the procedure to integrate flex swf file in java script ?
Here is... | stackexchange/codereview |
I have a stored proc that returns a resultset thus:
testID(guid), testName, outcomeID(guid), outcomeName - fields
testGuid1, testName1, OutcomeGuid1, outcome1
testGuid1, testName1, OutcomeGuid2, outcome2
testGuid1, testName1, OutcomeGuid3, outcome3
testGuid1, testName1, OutcomeGuid4, outcome4
testGuid1, testName1, Outc... | stackexchange/codereview |
Let's assume there are 2 applications. The POM hierarchy might look like this:
parent
--> system A
--> system B
Both systems are supposed to be able to connect to the same database.
Each system has 2 profiles: Development (embedded DB) and Production (MySQL).
How can I use Maven to share the database connecti... | stackexchange/codereview |
The following code is lifted directly from the source of the Tie::File module. What do the empty parentheses accomplish in the definition of O_ACCMODE in this context? I know what subroutine prototypes are used for, but this usage doesn't seem to relate to that.
use Fcntl 'O_CREAT', 'O_RDWR', 'LOCK_EX', 'LOCK_SH', 'O... | stackexchange/codereview |
I'm not really sure what the correct term is, but how are time-based programs like games and simulations made? I've just realized that I've only wrote programs that wait for input, then do something, and am amazed that I have no idea how I would write something like pong :)
How would something like a flight simulator ... | stackexchange/codereview |
I take no credit for this challenge at all. It's Project Euler problem 6:
The sum of the squares of the first ten natural numbers is,
12 + 22 + ... + 102 = 385
The square of the sum of the first ten natural numbers is,
(1 + 2 + ... + 10)2 = 552 = 3025
Hence the difference between the sum of the squares of the firs... | stackexchange/codereview |
I am trying to filter (or count) companies with multiple contact persons from a table containing a company_id and a person_id. Currently I just do this:
SELECT DISTINCT company_id,person_id FROM mytable GROUP BY company_id ORDER BY company_id
as well as
SELECT DISTINCT company_id FROM mytable
The first query returns ... | stackexchange/codereview |
In many programs a #define serves the same purpose as a constant. For example.
#define FIELD_WIDTH 10
const int fieldWidth = 10;
I commonly see the first form preferred over the other, relying on the pre-processor to handle what is basically an application decision. Is there a reason for this tradition?
| stackexchange/codereview |
I want to compile and use Visual studio for checking an unmanaged C++ on windows program.
I am using ADPlus and WinDBG. For doing this I need a .pdb file amd to configure the symbols of my debugging.
How u can configure it (to local machine and not the net) ?
| stackexchange/codereview |
I'm developing a iphone app based UITabBarController,when open the app,on the first tab item,
I press a button,to add a label to the view,and I close the app.
Next open,the label which added last time still on the first tab item,I did not save the view
in applicationWillTerminate method,why?
And,if I switch to the seco... | stackexchange/codereview |
I'm trying to provide a modified view for a custom Android keyboard in fullscreen mode. Therefor I'm trying to replace the extract view. In the documentation I found the following method: setExtractView(View view) - so I assume it's a public API call.
However, as you can see from the Android OS source code (snipped pas... | stackexchange/codereview |
I am trying to develop a native application for iPhone or Android or Symbian on Windows. I have looked online and came across http://rhomobile.com/, which let you develop native applications for almost all devices, but I am inexperienced in Ruby. I can code in HTML, ASP.Net, Javascript, and PHP.
The only thing that m... | stackexchange/codereview |
I'm trying to build a CMS in Rails from scratch, and for showing the user generated pages I'm having trouble deciding exactly how to do it.
The way I have it right now, I have a controller named 'content' with a single action called 'show'. In routes.rb I have a rule that passes any name after the name of the website ... | stackexchange/codereview |
I have finished writing my applications, and would like to deploy it as a Java applet.
How can I start this ?
Additionally, how would you deploy it on html page, and pass an argument to the Java applet ?
| stackexchange/codereview |
I'm looking to warn the user when his or her session times out (I'm having weird timeout problems) and I found the following code:
<%
advanceWarning = 2
jsTimeout = (session.timeout - advanceWarning) * 60000
%>
<script>
window.setTimeout("alert('Session is about to expire');",<%=jsTimeout%>);
</script>
Is this r... | stackexchange/codereview |
I need to save some custom infos into a word 2010 document, I can use hidden texts, bookmarks, custom doc properties, content controls, etc, but all of these methods cannot work with large data very well, and these methods are fragile and are't very flexible. So I want to use custom XML parts, which can hold large data... | stackexchange/codereview |
I made Invoice By Crystal Report v8.5 (Vb6 & Access). There is item Name and Price. At last Net Payable Amount:500(Exp), I need to Show In words(Five hundred). Crystal built in Function is not appropiate for it. So write a function in VB6 and it works nice. Now problem is how i send this value Crystal Report (v8.5) to... | stackexchange/codereview |
System.OverflowException: Not a legal OleAut date.
at System.DateTime.TicksToOADate(Int64 value)
I am getting this exception when i click an integrated export to excel button on my grid
| stackexchange/codereview |
I need my data in XML format, and then sent to a web service.
| stackexchange/codereview |
how do I check if a field has a string value tht contains letters 'abc' containing in it using Jquery ??
I need to check a field that contains a string value, if the field contains the characters 'abc' I need to disable few fields. Please let me know how I can validate in jquery??
| stackexchange/codereview |
How could we make the django form to not validate if we are editing, not adding a new record. The code as following :
class PageForm(forms.Form):
name = forms.CharField(max_length=100,widget=forms.TextInput(attrs={'class':'textInput'}))
description = forms.CharField(max_length=300, required=False,widget=forms.T... | stackexchange/codereview |
Hello I'm new to PHP & MySQL and I was wondering how can I delete all of user_id 3 records from these two tables below using PHP & MySQL?
My MySQL tables
CREATE TABLE ls (
id INT UNSIGNED NOT NULL AUTO_INCREMENT,
skill VARCHAR(255) DEFAULT NULL,
experience VARCHAR(22) DEFAULT NULL,
self_grade VARCHAR(10) DEFAULT NULL,... | stackexchange/codereview |
I don't know what changed in the past--this used to work:
Accessing a URL on my server like the following, doesn't work: http://www.domain.com/folder/file.php?variable=a&variable2=b
I'm getting a "Not found The requested address 406.shtml was not found on this server." message.
However, if I access this, it works:
http... | stackexchange/codereview |
I've got a page with an iframe displaying external website that covers the whole page, on top there's a div with some content, similar to google images new interface.
If in the page contained in the iframe there's a youtube video it goes over the content in the main page, since the page in the iframe is from an externa... | stackexchange/codereview |
In buff-menu+.el (and also in buff-menu.el) there is a function called Buffer-menu-toggle-files-only which sets the variable Buffer-menu-files-only to t/nil.
When showing the buffer list, I can toggle this with the key T so I can prevent non-file-buffers from being shown in the list. I would like to have this filter (f... | stackexchange/codereview |
I am trying to import a small CSV file into my django program. I am using SQL, and here is what I have so far. The CSV file itself has Column1 which is named Customer and I am trying to take that information and assign it to the model field name 'client_name'. Problem I get when I run this query is that I keep getti... | stackexchange/codereview |
What I would like to do is dump an XML String into RecordSet. The problem I am having is that the code seems to work fine if I saved the XML String first to a file and then read from the file which I think is redundant. However, when I want to read from string, I get the error
RecordSet cannot be created. Source XML i... | stackexchange/codereview |
I have this before the interface declaration in my MainView.h header.
typedef enum { UNKNOWN, CLEAR, NIGHT_CLEAR, CLOUDY, NIGHT_CLOUDY } Weather;
Then I declared it like this:
Weather weather;
Then made an accessor:
@property Weather weather;
And synthesized it.
My question is, how can I use this in a different c... | stackexchange/codereview |
i need to read organization name from phone contacts in 2.1 i can read name and phone number using following code
Cursor cur = User.cr.query(ContactsContract.Contacts.CONTENT_URI, null,
null, null, null);
if (cur.getCount() > 0) {
while (cur.moveToNext()) {
... | stackexchange/codereview |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.