instruction_seed
stringlengths
1
35.8k
_source
stringclasses
1 value
Ok, so my Ajax call looks like this: var poststring = "id_Client=" + id_client + "&id_File=" + id_file; alert(poststring); $.ajax({ type: "POST", url: "addclpermission.php", data: poststring, error: function(xhr, textStatus, errorThrown){ a...
stackexchange/codereview
My use case is a bit more complicated than the one shown in RailsCasts. I get an unknown attribute: user error. Issues and users are related by a many-to-many through another model. I HAVE specified the accepts_nested_attributes_for in my Issue model. My view code: <% semantic_form_for @issue do |form| %> <% form.in...
stackexchange/codereview
I have an activity which has some text views and other data to be updated every second. The performance is sluggish and when i capture the logs and view in TraceView. I see at lot of calls been made to ViewRoot.draw() function. 25 calls in a short span of 4 seconds, almost 6 calls every sec. Ideally speaking it sho...
stackexchange/codereview
One of issues with CLR is it's extremely bad behavior in the lack of RAM (when some of memory of managed process gets paged out, this leads to the total freeze of the whole system, even Ctrl-Alt-Del screen can't be accessed. I assume the reason is GC which tries to build graph of reachable objects and tries to scan all...
stackexchange/codereview
Let's suppose I have a text file of movie genres with my favorite movies under each genre. [category] Horror: Movie Movie Movie [category] Comedy: Movie [category] Action: Movie Movie How would I create a function that extracts and packages all the movie titles below a certain [category] * into an array without...
stackexchange/codereview
I've made a "WPF Browser Application" project, on my login screen i have putted one image tag which is showing image ok when i am running the application by pressing F5 from VS2010 but when i run the xbap from debug folder the image is not showing, I have also tried by putting my image in the same debug folder but no u...
stackexchange/codereview
If have the below markup. <asp:checkbox id="chkTVLic" runat="server" text="TV Licence" oncheckedchanged="chkDocs_CheckChanged" autopostback="true" CausesValidation="false" /> <asp:panel id="pnlTVLic" runat="server" visible="false"> ...
stackexchange/codereview
I have an iframe Facebook application that uses the Facebook PHP SDK to authenticate and make api calls. During authentication, the user is prompted for Basic Info and Offline Access. If they allow my app access, Facebook redirects them back to my app and provides a session array, which contains access_token and an exp...
stackexchange/codereview
How can I call a JavaScript function while using jQuery Mobile?
stackexchange/codereview
A short history. please bear with me :) I have an Android project that uses JNI which works very good. I've decided to create out of the source of this jni project an external jar (for distribution) In order to create this jar I've taken the advice of others and created a new Java project that holds the few jni classe...
stackexchange/codereview
I'd like to create a popup menu, from my tab bar. I've seen them, but I'm not sure what they called ? Kind of like a speak bubble. I think copy / paste is the sort of thing I mean.
stackexchange/codereview
I need to include a .h file to my project which will be supplied at the runtime. Since .h files are linked at linking time i am unable to include .h file. So i decided to write a dummy program which would create .h file and then i would call my actual program. Is there anyway to do this. Or any other solution is possib...
stackexchange/codereview
If i needed more rows in one section than another, is there a code i could implement to do this? I have 3 sections altogether but in one section i require 6 rows, in another only 3, and in the last perhaps 3 again. Regards, Jon
stackexchange/codereview
I've encountered a strange error with JPA that is not persistence provider specific. I'm using JPA 2.0 and I'm using a generated schema. In short: The generated schema includes a join table with three columns, but the generated insert statements treat this table as if it had only two columns. Here are the mappings: @En...
stackexchange/codereview
I am using powerbuilder 9 .0.1 Build 7171 I want to write a generalised function to handle object properties like font name. I want to change font of the object buttons, list box idea is I will just pass on window name or window handle and function will get the control list and if control.type is listbox or button or ...
stackexchange/codereview
I'm trying to figure out the visitor's OS is either a Windows, Mac or Linux using PHP(I don't need the version, distro info.. etc). There's several methods out there however they look a bit too complicated for this simple requirement. Are there any simple ways that could provide this sort of information yet still being...
stackexchange/codereview
After many happy commits to my svn repo, all of the sudden the relationship went sour...svn flipped her lid and yelled: "Working copy text base is corrupt!" What could have caused this? How do I fix it? Working copy text base is corrupt svn: Commit failed (details follow): svn: Checksum mismatch for '~/blah/.svn/text- ...
stackexchange/codereview
I am creating a table which will have a field "Website" in my database. What should I set it as, "INT", Varchar" or what and why? Thank You I plan to put website URL's in it.
stackexchange/codereview
Someone wrote a twitter plugin for e107. In the admin part there is a possibility to change the HTML template (use within each li element) Now standard this is set to: %text% <a href="http://twitter.com/%user_screen_name%/statuses/%id%/">%time%</a> My problem is that this generates a time in the timeline of: My tweet...
stackexchange/codereview
It seems like having a ContentPresenter in my ListBoxItem.ContentTemplate is causing Visual Studio to crash? <ListBox> <ListBox.ItemContainerStyle> <Style TargetType="ListBoxItem"> <Setter Property="ContentTemplate"> <Setter.Value> <DataTemplate> ...
stackexchange/codereview
Possible Duplicate: Determine if a type is static Duplicate of Determine if a type is static Is there a property/attribute I can inspect to see if a System.Type is a static class? I can do this indirectly, by testing that the Type has static methods, and no instance methods beyond those inherited from System.Object,...
stackexchange/codereview
I have a Python program that consists of several modules. The "main" module creates a file variable log_file for logging the output; all the other modules would need to write to that file as well. However, I don't want to import the "main" module into other modules, since it would be a really weird dependency (not to m...
stackexchange/codereview
How can this query be optimized for enumerators: SELECT * FROM Customers Table Customers customerId int - has index on it customerName, etc SqlReader that returns a set customers will be read on-demand in an enumerator fashion. While it can return huge datasets that can be read/consumed slowly in a foreach loop, every...
stackexchange/codereview
So I have this table: create table test ( id integer, rank integer, image varchar(30) ); Then some values: id | rank | image ---+------+------- 1 | 2 | bbb 1 | 3 | ccc 1 | 1 | aaa 2 | 3 | c 2 | 1 | a 2 | 2 | b I want to group them by id and concatenate the image...
stackexchange/codereview
import java.util.Arrays; import java.util.HashMap; import java.util.Iterator; import java.util.Map; import java.util.Set; import java.util.Stack; import java.util.StringTokenizer; public class shift { @SuppressWarnings("unchecked") public static void main(String args[]) { String speech = "Sente...
stackexchange/codereview
I have a class containing a collection property which I want to display and edit in a property grid: [EditorAttribute(typeof(System.ComponentModel.Design.CollectionEditor), typeof(System.Drawing.Design.UITypeEditor))] public List<SomeType> Textures { get { return m_collection; } set { ...
stackexchange/codereview
I am a newbie (just 1 week) to this Python world. I tried installing django-mssql, but when I tried to import the library (using import sqlserver_ado.dbapi), I got this error message: ImportError: No module named pythoncom I tried to look for that library without success. Can you guys point me in the right direction?...
stackexchange/codereview
Hi I've made a ajax request selection tool in the right column. http://www.lensfinder.se/testar5.php How do I make a selection the default one? Because when you enter the page I want one to be open, now it hasen't made any request u
stackexchange/codereview
I am reading audio assets from the iPod library on iOS with an AVAssetReader and AVAssetReaderTrackOutput. However, when i read the data and put the chunks back together, the file isn't exactly the same. A few kB are missing, and therefore the audio file won't play back. Here is the code i use to extract the audio data...
stackexchange/codereview
I know that form.reset() will reset all form fields to their default values, but how does that work? Is it the browser's DOM implementation? i.e. the browser knows what were the last values sent from the server in last postback/get and when reset() is called the browser resets those values.
stackexchange/codereview
I was wondering how this can be accomplished. I am looking to color part of a UIBezierPath, not the whole thing. For example, I'm interested in coloring from the beginning to middle of the path a different color.
stackexchange/codereview
I went to google, and had my firebug open. I started typing "in", and then checked the "NET" tab of Firebug, and a couple of new GET requests had been sent to fetch the list of search autocomplete suggestions. Like: GET http://clients1.google.com/complete/search?hl=en&client=hp&expIds=17259,17315,23628,24549,26637,26...
stackexchange/codereview
As many of you, I have to delete my application in the simulator in order to reinstall a fresh version, where I update my database. Otherwise, it crashes with or without debug log (if it's Core Data, the debug log is pretty self explanatory). My question is : since users won't probably delete their applications before ...
stackexchange/codereview
<?php $info = " 亜 and ' and \" "; $info=str_replace(array("'","\""),array("&#39;","&#34;"),$info); echo "<meta http-equiv='Content-Type' content='text/html; charset=UTF-8'>"; echo "<input id=info name=info value='{$info}' >"; ?> This works, BUT: Is there a tidier method like $info=htmlentities($info,ENT_QUOTES) which ...
stackexchange/codereview
I'm currently migrating an enterprise content management system that was built on Sharepoint 2007 to Sharepoint 2010. The system contains a custom forms based authentication provider and a custom role provider. User-role mappings are stored in the DB like below: userID roleID siteURL 21 ...
stackexchange/codereview
I need to build a report in Report Builder 2.0 The report is finished, but we use the report to view open issues and bugs. The report works fine, but now we need to set the current project ourselves in the report. I would like to pass the current project, or read it out somehow, so the report can be used in all our pro...
stackexchange/codereview
In an ExpandableListView, is there a way to hide the group indicator for groups with no children?
stackexchange/codereview
i am developing a simple application which uploads image to yfrog.com.(These images will be reflected in twitter account). Here is my code. but it is not working. I am not getting response from server. QNetworkAccessManager *manager = new QNetworkAccessManager(this); QNetworkRequest request(QUrl("http://yfrog.com/api/u...
stackexchange/codereview
first things first; I am writing a little LUA-Ide in C#. The code execution is done by an Assembly named LuaInterface. The code-editing is done by a Scintilla-Port & the RAD / UI Interface is via the extensible IDesignSurfaceExt Visual Studio (one way code generation). File handling is provided by a little sql-lite-db ...
stackexchange/codereview
Please totally ignore the design here, it's WIP. http://marckremers.com/ltd I'm using jquery.cycle to animate 6 cards on each page. I'm wondering if there is a way I can have the animation trigger simultaneously so that they aren't out of sync? Here the link to the plugin: http://jquery.malsup.com/cycle/ Thanks, Marc
stackexchange/codereview
in stored procedure cant i set set ANSI_NULLS OFF instead of using (first_name IS NULL) in one of my query... also i want to know how can i debug stored procedure and how can i see result generated by stored procedure ...like for normal query i get the option sql written tag.......but how can i achieve this for stor...
stackexchange/codereview
Here is my code setInterval(function() { $("#<%=cmbResCityStatEdit.ClientID%> option[text='"+ $( '#<%=lblCity.ClientID%>' ).text() +"']").attr("selected",true); $("#<%=cmbResCityStatEdit.ClientID%> option:selected").text()) },1);
stackexchange/codereview
I am using svn add * to add files to the svn, and it adds the config file which is for sure added to ignore. lyuba@lyuba-laptop:/workspace/project$ svn propget svn:ignore .sass-cache config.js What can cause the problem?
stackexchange/codereview
Firstly, this question requires a bit of introduction so please bear with me. The high level is that I am connecting to a outside web service which will return some XML to my apex controller. The idea is that I want to display the XML returned into a nice tabular format in a VisualForce page. The format of the XML com...
stackexchange/codereview
I want to replace it with a fancy logo image. I am sure most sites do this... is it ok?
stackexchange/codereview
I'm trying to display an image within an iFrame on my page. The problem I face is that in Firefox, the image seems to be zoomed out automatically. I need to click on it to get the actual size. I know there is a manual fix for this by doing the following: Enter about:config in Firefox address bar. Look for browser.enabl...
stackexchange/codereview
What does JAXB need a public no-arg constructor for, during marshalling? Marshaller msh = ctx.createMarshaller(); msh.marshal(object, System.out); I'm passing an object, not a class. Why does JAXB need a constructor? To construct what?
stackexchange/codereview
I tried the following code: RootPanel root = RootPanel.get("root"); root.clear(); final FlowPanel p = new FlowPanel(); root.add(p); for (int i=0; i<20; ++i) { String url = "/thumb/"+i; final Image img = new Image(url); img.addLoadHandler(new LoadHandler() { @Override public void onLoad(LoadE...
stackexchange/codereview
I have to print Java code that some times reaches 300 columns (characters per line) in A3 paper and whatever editor I use (e.g. textmate) wraps the lines in order to fit in A4 paper. Any suggestions? cheers, Asterios
stackexchange/codereview
Hi Can query string be accessed in HTMLHelper extension methods. We need to render differently depending on the querystring in the request.
stackexchange/codereview
I am creating a game of questions and answers for iphone using cocos2d, and I wonder how can I do to display the question on the screen using ccLabel seeking data from a plist. can someone help me with this!
stackexchange/codereview
Imagine you have an app that manages some library and has its own data. The data has to be stored somewhere. Where should the data be stored? I mean the following - are you going to install MySQL or SQL Server on the client machine? That seems like shooting flies with a cannon. Another way is to use something like SQLi...
stackexchange/codereview
I have a search function, I want it to be case insensitive, including characters like éüò etc. So, i transform the input to uppercase before querying the database. But MySQL doesn't convert the accented characters right. SELECT * FROM items WHERE UPPER(description) = $input I have MySQL 5.1.32, i have tried different...
stackexchange/codereview
I have started making a C# program on a XP 32bit windows operating system in c# 2008, and now i am trying to open it in Windows 7 64bit operating system. The problem that arises is that i can't run the program in c# 2010 on my 64bit system and it won't go past the Initialize Component(); line in my code. It comes up wi...
stackexchange/codereview
I'm developing MVC engine for real estate web-site from scratch. Currently I have this folder structure: /app /frontend /controller /model /view /backend /controller /model /view /common /controller /model /view /lib /log index.php bac...
stackexchange/codereview
I'm facing difficulty inviting a friend to the match. GKMatchRequest *request = [[[GKMatchRequest alloc] init] autorelease]; request.minPlayers = 2; request.maxPlayers = 2; request.playersToInvite = [NSArray arrayWithObjects: @"G:1102359306",nil ]; // GKMatchmakerViewController *mv = [[GKMatchmakerViewC...
stackexchange/codereview
We were using JDev to develop our applications and deploy them to OC4J and OAS. we used to use JDev to create the data-source configuration for us both on dev and on deployment. (on dev using the wizard that come with jdev to connect to data-source.. and on deployment hence we don't need to do any Data-source configur...
stackexchange/codereview
How do I optimize the following SQL query for performance? select * from Employee where CNIC = 'some-CNIC-number' Will using alias help making it a little faster? I am using Microsoft SQL Server.
stackexchange/codereview
I have a IEnumerable collection of a class which I want to sort. One of the properties I want to sort is in a nested class. What is the syntax to make this work? The code below shows what I am trying to do, although it does not work. AbsenceViewModel avm = new AbsenceViewModel(); if (sort.Column != null) { ...
stackexchange/codereview
Is it possible to employ Business Contact Manager 2007 without running Outlook in Cached mode? According to all the reasearch I have done this is a prerequisite, and certainly upon installing and testing it seems to be the case, but keeping local copies of inboxes is simply too large a security hole for us, I find it ...
stackexchange/codereview
I'm using Hibernate version 3.3.2.GA with annotations. I have inheritance between two classes, the former: @Entity @Table(name = "SUPER_CLASS") @Inheritance(strategy = InheritanceType.SINGLE_TABLE) @DiscriminatorColumn( name="DISCR_TYPE", discriminatorType= DiscriminatorType.STRING ) @org.hibernate.annotations....
stackexchange/codereview
How would I remove ALL whitespaces in a given file in Linux?
stackexchange/codereview
All, I'm working on a Flash AS2 application that needs to post JSON data to a web service. In previous projects, I've used LoadVars.send() or LoadVars.sendAndLoad() successfully to manage this: var send_lv:LoadVars = new LoadVars(); send_lv.data = JSON.stringify({some json object}); var response_lv:LoadVars = new Load...
stackexchange/codereview
I can't get my statusbar to show in the bottom. When I dock it to the bottom shouldn't it work this way? <DockPanel> <Menu DockPanel.Dock="Top"> <MenuItem Header="File"> <MenuItem Header="Open" /> <MenuItem Header="Save As" /> <MenuItem Header="Save" /> <MenuI...
stackexchange/codereview
Is there a way for a Python/Twisted program to cleanly make use of the list of root certificates that Internet Explorer uses to validate an SSL connection to an HTTPS server? The answers provided to Validate SSL certificates with Python are very helpful but the example code gets the root certificates by reading the Un...
stackexchange/codereview
Instead of using borders, I want to set the alpha of focused and unfocused windows to, say, 90% and 70%. This would apply to all windows except those matching some criterion like className = "Gimp". How can I implement this in my xmonad? Thanks!
stackexchange/codereview
I'm trying to parallelize an algorithm using PVM for a University assignment. I've got the algorithm sorted, but parallelization only almost works - the process intermittently gets stuck for no apparent reason. I can see no pattern, a run with the same parameters might work 10 times and then just gets stuck on the next...
stackexchange/codereview
In short, i'm trying to deserialize a JSON response from the Bing Maps Geocoding REST API, I created my Response Class, and now when I'm trying to actually deserialize a response, i'm getting the following error: Type '{0}' with data contract name '{1}:{2}' is not expected. Consider using a DataContractResolver or add ...
stackexchange/codereview
I have two tables in a one to many relationship. More specifically, t1 is order information and t2 is line item details on those orders. I'm trying to use a query like this: SELECT COUNT(DISTINCT(t1.id)) order_count, SUM(t1.order_total) order_total, SUM(t2.product_price) product_total, ...
stackexchange/codereview
I am using Visual Studio 2010 Ultimate on Windows 7. When I'm trying to connect to tfs server, it shows me the list of projects correctly, but in the Team Explorer the project node is empty. I can connect to the same project, using the same credentials from other machine in the same network. I also can go to the sharep...
stackexchange/codereview
I have a map view with pins annotations into it. I need to pass to the detail view the coordinates of a pin when the user press the disclosure button of the pin information. How can I get the coordinates of the pin when I am into the showDetails method? I am using the next code. - (void)showDetails:(id)sender { Detai...
stackexchange/codereview
i am doing an xml layout file, and i want to have my spinner in the right of a textview, but i am having problems... when i test the layout, my spinner is not in the correct possition, it's a little more down and it haves very small lenght, is not 180px as i said in the layout. there is the xml: <RelativeLayout xmlns:a...
stackexchange/codereview
using htaccess, I need to remove the subdomain part of the url if a file is accessed in /folder/myfiles/ eg. I need to redirect sub.domain.com/folder/myfiles/anyfile.php to domain.com/folder/myfiles/anyfile.php any file found in /folder/myfiles/ if accessed via a subdomain must be redirected to the same file on the ro...
stackexchange/codereview
Right now am started working with alfresco. But am not clear about what is type and whats aspect?. please give in detail with example.
stackexchange/codereview
I'm wondering what are all the char needed escaping for a linux path. For example, path /home/user1/My Music/song 1.mp3 would need to be escaped in a shell for ls command 'ls /home/user1/My\ Music/song\ 1.mp3'. I want to write a function that takes in a String as a path and escape all needed chars. In scala I have: ...
stackexchange/codereview
When I run ./configure sometimes it decides that it's too old and re-runs autoconf through missing script to regenerate itself. Sometimes it leads to weird breakages since autoconf on the target machine is older then autoconf that was used to originally generate configure. I was wondering how it figures out that it's t...
stackexchange/codereview
I'm on Snow Leopard 10.6.4, Intel architecture. I've got rvm and ruby 1.9.2 installed: $ rvm list rvm rubies => ruby-1.9.2-p0 [ x86_64 ] I installed oniguruma5 like this: port install oniguruma5 Then, as per Conventional Wisdom, I tried to install the oniguruma gem like this: sudo gem install oniguruma -- --with-opt...
stackexchange/codereview
I'm developing a simple arcade game and I'd like to paint the graphics onto a Canvas without regard for the device DPI, just the pixels. If I do some drawing in 240x320 pixels emulator, I'd like the Canvas to have 240x320 pixels. Canvas.getWidth() and getHeight() tell me that I have 240x320 pixels Canvas, but when I d...
stackexchange/codereview
I am having a soap client-server application which runs well on the same machine. Now i want to separate the server-client entities on two different machines. Have done the proper IIS configurations - both the machines are pingable - but the following error occurs at the client side. 209.2.208.160:51645 is the server s...
stackexchange/codereview
I am writing a lot of Javascript code these days and I am making good use of JQuery. I am wondering if it is considered evil to create strange global variable names. I know that a lot of Javascript frameworks such as JQuery use the dollar character; $, but that greatly simplifies code as it can do so many things. I ...
stackexchange/codereview
I have faced strange behavior of my ASP.Net application on the server (IIS7 on Windows Server 2008 x64, processor Xeon Quad). The web application is the simple page which about one second calculates some math, and then displays result. That is it almost does not consume a network, a disk, memory, but completely uses p...
stackexchange/codereview
For instance: link Is the above Ok or it would be better to create more methods in Controller that handle the data that are sent/retrieved without the interaction between UI and the Entity? In general when is it allowed (if it is) for a Boundary Class to interact with an Entity Class?
stackexchange/codereview
I have two tables one is master table and other is just for cache. From time to time I check whether cache table is up to date and there is no missing data. Cache table is using MyISAM engine and master table is using InnoDB engine. To explain it in more detail I give you an example Cache table contains fields from fol...
stackexchange/codereview
I have a "Web Project" in VS. File structure - AdminCms - Sections - CmsAuthors - App_Code - Business Logics - Common - BuilderStrings.cs - DataAccess -CmsModel.edmx When I Build the Project VS in BIN Create a Cms.dll file. In file "BuilderStrings.cs" I use: namespace Cms.App_Code.Business...
stackexchange/codereview
I am not able to wrap the text of x-axis labels on Excel 2007 charts. As a result, the axis labels are overlapping onto each other. Does anyone know how can I wrap these labels?
stackexchange/codereview
I started using blocks a lot and soon noticed that nil blocks cause bus errors: typedef void (^SimpleBlock)(void); SimpleBlock aBlock = nil; aBlock(); // bus error This seems to go against the usual behaviour of Objective-C that ignores messages to nil objects: NSArray *foo = nil; NSLog(@"%i", [foo count]); // runs fi...
stackexchange/codereview
Scrollable views such as the ListView have a fade out of the content along the edges where there is more content in that direction. How can I turn this fading off? I know you can change the cacheColorHint as discussed here: http://developer.android.com/resources/articles/listview-backgrounds.html but that is not what...
stackexchange/codereview
I want get the value from Exec(@sql) and assign to @Rowcount(int) Here is my query: 'SET @RowCount = (select count(*) FROM dbo.Comm_Services WHERE CompanyId = '+cast(@CompanyId as char)+' and '+@condition+')'
stackexchange/codereview
what is copy items into destination group's folder (if needed) is this a good option? If I dont choose it will it just make a reference to my files? Also if I have two images with the same name like /images/home.gif, /public/home.gif but they are in different groups how does the compile know which image to use? is t...
stackexchange/codereview
I have a grid with the following definition. Everything is working fine with the grid as is. $("#grid").jqGrid({ url:'report_data.php', datatype: 'json', mtype: 'POST', colNames:['Type','Term','Number','Visits','Calls','Unique','Avg. Duration', 'Conversion Rate'], colModel :[{"index":"...
stackexchange/codereview
My app/game has gone live in the App Store two days ago. Now I'm getting reports of a mysterious glitch that occurs when several levels have been completed (it's a puzzle game). The screen just gets black, no user interaction is possible anymore at all. I think what happens is that my view gets deallocated, so the only...
stackexchange/codereview
A fairly common use case occurs where there is a list of Java objects, from which selections can be made on a web form - usually you'd use the primary key of the object as the value so that the controller could either do a lookup, or just bind the key to whichever object is created/updated. My problem is that the list ...
stackexchange/codereview
I am getting following error error C2664: 'SQLBindCol' : cannot convert parameter 6 from 'SQLINTEGER *' to 'SQLLEN *' 1> Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast Anyone have any idea. I am also including windwos.h and have defined teh _WIN64.
stackexchange/codereview
I have generated a class from a schema via the xsd.exe tool Now when I serialize the class I get an extra xmlns="" on everything below the root. <myroot xmlns="blabla"> <tag1 xmlns=""> <tag2> ... The schema looks like: <xsd:schema xmlns="blabla" targetNamespace="blabla" xmlns:xsd="http://www.w3...
stackexchange/codereview
How do I write the following in the preprocessor directive language? if (isfullversion and isproduction) else if (isliteversion) end if
stackexchange/codereview
I am creating a vim syntax file for a niche language that has no syntax file yet. The language has the following syntax when setting up a simple function. foo(parameter) if parameter then print("yes") else print("no") end end I want the end that is paired with the if to have the syntax color...
stackexchange/codereview
All: def a(p): return p+1 def gen(func, k=100): l= [] for x in range(k): temp = ("%s_with_parameter_%s" %(func.__name__, x), lambda: func(x)) # maybe this will be more clear to explain my quetion: # i want to get list/dict which can bind self-defined string and function together...
stackexchange/codereview
What I'm trying to achieve is to buffer incoming events from some IObservable ( they come in bursts) and release them further, but one by one, in even intervals. Like this: -oo-ooo-oo------------------oooo-oo-o--------------> -o--o--o--o--o--o--o--------o--o--o--o--o--o--o----> Since I'm quite new to Rx, I'm not sure...
stackexchange/codereview
actually I have created Entity Beans which are used to create tables in mysql database, everything is working fine with transaction classes using entityfactory. Now I need this functionality...when I deploy the EAR file in application sever JBOSS..it have to check whether the tables are existing in the database or ...
stackexchange/codereview
I'm having trouble displaying an image in a UIWebView. I retrieve html content from a feed. In this content there is a <img src=.../> tag. Loading this content into a UIWebview, the image doesn't display, showing only the missing image "?" instead. It seems that the link to the image in src= contains some interesting...
stackexchange/codereview