instruction_seed
stringlengths
1
35.8k
_source
stringclasses
1 value
To learn more about a language I rewrite some of the core functions, or compare basic speeds of each set of functions per problem to see what is more suited in real world situations. Other than an ugly online line-graph generator which often only allows one or two series, I cannot find anything that would suit what I n...
stackexchange/codereview
I'm beginner to Qt and I see that most of widgets that are build in in Qt do not appear in the widgets tool box. How can I add all the widget to tool box? (Like QSystemTrayIcon that does not appear by default in tool box) what is the best way to write gui - by the designer - ui file or by code - cpp file? Thanks!
stackexchange/codereview
I currently have a method in my controller which accepts a form collection, saves the data, and then displays the data in a 'Details' page. At the moment, the code currently looks something like: [HttpPost] public ActionResult Create(PersonModel person) { if (person.IsValid()) { person.additionalData = ...
stackexchange/codereview
I have this regexp: var desExp = /^\s*([\wåäö][^\w]*){3}.*$/gm; This is for validating a textarea. Currently, you cant use the three Swedish language letters in the beginning. The letters are å, ä, ö, Å, Ä, Ö. Also, I would like it to allow the minus sign and the star (multiplication) sign: - and * Is there any rema...
stackexchange/codereview
I am using axis 1.2 for my soap client. I need to write a unit test that takes a soap message response and parse it to java objects that generated by axis. I couldn't figure out a way to do that. Can anybody help me on this? Thanks,
stackexchange/codereview
I'm attempting to use NextGen Gallery plugin with the new jquery slideshow plugin GalleryView. These are supposed to work lovely together. NGG works on my site if I just go with the default Flash player but that's not going to work for me. So I installed the new GalleryView plugin and put the short code as needed but a...
stackexchange/codereview
How can I select all tr elements except the first tr in a table with CSS? I tried using this method, but found that it did not work.
stackexchange/codereview
I have created an enumerated data type to define possible flight lengths. I'd like to overload its << operator so the representation is nicer. When I compile this, I get the following error (posted for completeness' sake. Basically multiple definitions of operator <<(ostream&, Categoria&)): g++ -oProjectoAEDA.exe src\v...
stackexchange/codereview
I am trying to get the physical device size of a connected USB flash drive. I have tried using WMI. ManagementObjectSearcher mosDisks = new ManagementObjectSearcher("SELECT * FROM Win32_DiskDrive WHERE Model = '" + cmbHdd.SelectedItem + "'"); foreach (ManagementObject moDisk in mosDisks.Get()) {...
stackexchange/codereview
is any sample how to parse pst files? official site has nothing
stackexchange/codereview
I am trying to display some information on a grid queried from a sql server. The data gathering can take about 10 seconds so I don't want to lock the UI thread. I currently have code like: ThreadPool.QueueUserWorkItem(DataUpdateThread, new UpdateParams(year)); private struct UpdateParams { internal string year; ...
stackexchange/codereview
I'm trying to remove a specific character from a string in Perl: my $string="MATTHATBAT"; substr($string, 2, 1, ''); EDIT: This does work, sorry. Leaving this here in case someone needs to know how to do this. Also, is there a more efficient way of doing this? The string should now be MATHATBAT. Am I missing somethi...
stackexchange/codereview
var siteurl = window.location; var patt= /(http:\/\/)(www.)*([a-zA-Z0-9\.\-]*)(.*)/i; Now i want to get value of $3, how to?
stackexchange/codereview
I can't find a definite answer to this question in the documentation. If a column is an array type, will all the entered values be individually indexed? I created a simple table with one int[] column, and put a unique index on it. I noticed that I couldn't add the same array of ints, which leads me to believe the index...
stackexchange/codereview
need to change post content before it is published. I could overwrite the native publish function but don't want to do this. What i'd like to do is something like: add_action('before_publish_post','my_func'); function my_func($content){ $content = "new content"; return $content; } I have had a look at the 'pub...
stackexchange/codereview
I have some hex data: 48|65|6c|6c|6f|20|53|68|61|72|6f|6b|2e| 20|3d|43|46|3d|46|30|3d|45|38|3d|45|32|3d|45|35|3d|46|32|0d|0a|0d|0a|2e|0d|0a| The first text string is "Hello Sharok" (without quotes). The second text string is "Привет" (without quotes, "Привет" is "Hello" on Russian). How do I convert this to readable ...
stackexchange/codereview
I've been following the new announcement regarding the new async feature that will be in c# 5.0. I have a basic understanding of continuation passing style and of the transformation the new c# compiler makes to code like this snippet from Eric Lippert's post: async void ArchiveDocuments(List<Url> urls) { Task archive...
stackexchange/codereview
i have seen a nice sliding effect in this site: http://www.fnxcard.com/ browse to the bottom of page and there are some icons there that have a smooth sliding movement. i don't think they used jquery but i want to know what the jquery plugin is with this usage.
stackexchange/codereview
I need to develop something with data structure and how do I import the library as3ds (http://code.google.com/p/polygonal/wiki/DataStructures) and call the function of the library? It is in swc file format for the new version. While the older as3ds is in as format. I've no idea how to call using the swc. Anyone can hel...
stackexchange/codereview
I have a mongodb object as follows: array ( '_id' => new MongoId("4cc97fb0247ae8747ec5fefb"), 'posts' => array ( 0 => array ( 'comment' => 'Eamorr', 'fromUname' => 'Eamorr', 'time' => 1288273840, 'UTC' => '2010-10-28T14:50:40+01:00', 'ip' => '127.0.0.1', 'id' => '123l...
stackexchange/codereview
I have a users controller, where if I add a user I want to redirect based on the usertype a user selects on making his account the situation: users table id name usertype_id The user add form has a select box for user type, I have two types of users: teachers and students (each another table, model, controller) if the ...
stackexchange/codereview
How get google search results url? (I use Zend_Gdata_Gbase for get search google results and not DomDocument/htmlsimpleparser because its looks to me that Zend_Gdata_Gbase done specially for parsing google results. if I wrong in my selection, please write.) My function to get google search results for 'yahoo' or other ...
stackexchange/codereview
How can I disable the email on the cron?
stackexchange/codereview
I am trying to explain in pseudo. I followed the following URL: http://dev.twitter.com/pages/auth#intro There I read the authentication procedure. I built a script that successfully creates a proper signature string for the oAuth properties, but then I am stuck. I build an Authentication string for the 'Authentication'...
stackexchange/codereview
I'm learning Zend Framework at the moment and came across the following syntax. class Zend_Controller_Action_Helper_Redirector extends Zend_Controller_Action_Helper_Abstract { /** * Perform a redirect to an action/controller/module with params * * @param string $action * @param string $contro...
stackexchange/codereview
I have a print preview that displays a captured panel on a form 'Panel1.DrawToBitmap(memoryImage, bounds);' I also save the image to my hard drive - 'memoryImage.Save("diary.png")' The image in the print preview at any zoom level is blurry, the saved image is perfect (viewed in windows photo viewer & PS). Id like the p...
stackexchange/codereview
I've got a script which creates a graph, but the script keeps running in the background until the window is closed. I'd like it to quit as soon as the window is created, so that Ctrl-C in the shell won't kill the window, and so that the user can leave the window open and continue working in the shell without bg-ing it ...
stackexchange/codereview
It feels like html_safe adds an abstraction to the String class that requires understanding of what is going on, for example, <%= '1 <b>2</b>' %> # gives 1 &lt;b&gt;2&lt;/b&gt; in the HTML source code <%= h '1 <b>2</b>' %> # exactly the same as above <%= '1 <b>2</b>'.html_safe %> # 1 <b>2</b> in HTML s...
stackexchange/codereview
I try this tutorial for building a Widget for Android Homescreen. http://www.helloandroid.com/files/xmaswidget/android_howto-hellowidget.pdf But if i try to start the example with the Service (the second way in that tutorial) i got in the LogCat of DDMS the following error message: WARN/ActivityManager(52): Unable to s...
stackexchange/codereview
With a function like this: def example(things): x1 = 1 x2 = 1 for thing in things: (x2, y2) = some_function(thing) x1 += x2 y1 += y2 return (x1, y1) The problem that comes up is that x1 and x2 represent the same thing, and so do y1 and y2. Assuming you know nothing about x1 and ...
stackexchange/codereview
I'm writing Multimarkdown tables following the guidelines under the Table section in the syntax guide, and I wish to convert them to HTML using Text::MultiMarkdown . It works great, The only problem is I can't figure out how to control the formatting of the tables (show borders, align headers, font size etc).
stackexchange/codereview
I need to create a parser for a programming language. So far it is 95% done, I'd say, except for a tiny detail. The program written in this language has the following structure: outputs inputs expressions The requirement is that outputs cannot be mixed with inputs. For example: x := output of int; y := output of in; ....
stackexchange/codereview
I use emacs to edit scripts and code files on several different servers. TRAMP is working very well. However, when I exit emacs, all my tramp connections go away. I tried desktop-save-mode, but only local files show up when I restart emacs. Is there some package that will remember tramp connections? Is this just a...
stackexchange/codereview
I have a client (that isn't very flexible in the SOAP it sends) which generates SOAP similar to the following from a method with signature void Test(int[] test): <?xml version="1.0" encoding="UTF-8" ?> <SOAP:Envelope xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-inst...
stackexchange/codereview
I wanted to identify each html page separately to add active style like(.select). But I'm not sure how to get a page url in using JQuery..? for example I want to give .select class to about.html page when someone going to click the about button. Please help me, im looking forward to your valuable replies. Thanks Paulso...
stackexchange/codereview
I have several forms on one page, they're all the same, but have different hidden values: <?php foreach ($results as $result): ?> <form method="POST" action="edit.php"> <input type="hidden" name="id" value="<?php echo $result['id']; ?>"> <input type="submit" name="action" value="Edit"> </form> <?php endforeach; ?...
stackexchange/codereview
I am creating a AppWidget that consists of a ImageView that gets filled with a custom rendered bitmap. This widget is refreshed every minute (using the AlarmManager). All the rendering and storage is done in the AppWidgetProvider. Being a good citizen I wanted to minimize CPU usage etc, so I had my Paint objects and ot...
stackexchange/codereview
In my app I have a table for ROLES. Pretty simple: 1: Admin, DESC stuff 2: Guest, Desc stuff etc.. The issue I just got hit with was I went to deploy the app on heroku and everything broke, reason was that these default roles in the database were not populated on deployment... Something I hadn't thought about. With Rai...
stackexchange/codereview
User stories are traditionally written as expression "As a [User Type] I want [feature] so that [some benefit]". In the books and online resources [User Type] typically correspond to a role of a human being. However, when describing features of system internals, it is often easier to put some unattended service in plac...
stackexchange/codereview
This morning I had an unusual issue with my Silverlight 4 app. I have been a big fan of IoC frameworks, so decided I will use Unity for my project. But as soon as I added the assembly to my project, I got this following error. System.Windows.Markup.XamlParseException occurred Message=Could not load type 'System.Securi...
stackexchange/codereview
The following method thrwos an exception in the line: Point childPosition = vb.TransformToAncestor(surfaceWindow).Transform(new Point(0, 0)); But if you look at the code, the vb is surely a child of surfaceWindow. So why isn't this working? if (!isExpanded()) { Viewbox vb = new Viewbox(); ...
stackexchange/codereview
I'm new to the PRISM framework so my question may be a bit off topic. I've established a WCF service composed of two projects. The WCF .svc and Web.config project just contains the service definitions. The service type project that defines the WCF service interface and the service type. In the client side, I am a lit...
stackexchange/codereview
I am developing a site and that that is managed by two. one is me and the other is the designer accessing from different machines across LAN. Conf: php, apache, windows xp, mysql. Document root: d:\www\xampp\htdocs. all the projects are under this as subfolders. I have set up virtual host so that i will not access all ...
stackexchange/codereview
I have just started programing on Linux kernel threads. I have a problem which I would like to share with you guys. My code is: void do_big_things(void *data) { // do some really big things } struct task_struct *t1; struct task_struct *t2; void calling_fucntion() { for(j =0; j < 100; j++) { t1 = kthre...
stackexchange/codereview
I have used Flash 8 long before and want to know if we can apply effects like emboss and etch to text and images. My requirement is : I want to design a interface, where user will add image or text. He will be able to apply effects in same way as we do in photoshop. I don't want to let user control the properties, bu...
stackexchange/codereview
I'm trying to enable foreign keys on a sqlite3 database doing this: sqlite> PRAGMA foreign_keys=ON; But it doen't work. How can I do it? Note: the database is on an Android device. Thanks.
stackexchange/codereview
I am trying to debug my code, which involves a simple webservice that passes parameters to a data class, which calls a stored proc, and returns one row of record. I am not getting any error messages, but I am not getting any records back either. My webservice code is: <WebMethod()> _ Public Function GetDataValues(ByV...
stackexchange/codereview
I have a TextView I use to display email addresses to my users <TextView android:id="@+id/profile_email" android:layout_width="fill_parent" android:layout_height="wrap_content" android:padding="6dip" and...
stackexchange/codereview
I'm attempting to create a horizontal navigation bar in CSS. I'm using the CSS from this page and it seems to be working fine: http://css.maxdesign.com.au/listamatic/horizontal27.htm ...but if you hover over any of the links in the example, theres a small gap on the left side of each element just before the vertical wh...
stackexchange/codereview
I was wondering if anyone has tried it. I need to show a tooltip within a table view when the user selects a word in the row's text. Can you please help me or suggest any way for this? Thanks in advance!!!!!!
stackexchange/codereview
I currently want to create a wpf style by selecting a group of attributes, e.g. Height, Width of a button, then right click and call a command like "Generate style from selection" and the IDE will do the rest for me: add .Resource tags, and a Style with sample x:Key and put the attributes' names and values into Setter ...
stackexchange/codereview
I've just spent a lot of time looking into the best ways to create iphone and android apps for an existing rails app that I've built and I feel that I haven't actually gotten any closer to knowing how to best achieve this. What I want: I would like to have the rails app and the mobile code cleanly separated. I'm not l...
stackexchange/codereview
I have a PHP app where I can upload files. When I upload most files and do a print_r($_FILES), I get something like this: Array ( [import] => Array ( [name] => Array ( [excel_file] => COD MKTG 2.csv ) [type] => Array ...
stackexchange/codereview
I am using the doLayout function on a window. var win = new Ext.Window({ id: 'site-action-window', closeAction: 'hide', resizable: false, layout: 'fit' }); function showWin(f) { win.removeAll(); win.add(f); win.setSize(400, 150); win.setTitle(localize.addLanguage); win.show(...
stackexchange/codereview
I want to be able to initialise the static member scalingfactor in the following class: class ScalingRect: public Rect { public: static float scalingfactor; ... }; I thought I'd initialise it using a static member function of another class like this in the .cpp float ScalingRect::Rect = Engine::GetScaleFactor...
stackexchange/codereview
I have two tables with a parent-child relationship. I would like to copy some of their records to two other tables, also with a parent-child relationship, but with a slightly different table structure. There is a foreign key involved with both sets of tables, an integer column. All tables have the identity incremen...
stackexchange/codereview
Background I have a payment page where the user can select from a list of existing payment methods, or specify a new one. The dropdown presents options such as: Visa - ******1234 (Saved) Mastercard - ******9876 (Saved) [New Credit Card ...] [New Electronic Check ...] Using jQuery, I toggle hidden DIVs that contain e...
stackexchange/codereview
What is the proper way to do that? Let's say we have some third party library in our project and we need to provide an access to some controls which are sealed. New widgets will be created and added to the application using MEF and they should be able to import some controls from the core application. So how to export ...
stackexchange/codereview
When a expression is evaluated in C/C++, does it follow BODMAS [Bracket open Division Multiply Addition Substraction] rule? If not then how they are evaluated? EDIT: More clearly, If the following expression is evaluated according to BODMAS rule, (5 + 3)/8*9 First what is in brackets is processed. 8/8*9. Then Division...
stackexchange/codereview
I have created a Netbeans Platform Application and deployed it (created installer / zip bundle etc.). I have also made provision for extension points by creating Interface modules in the application (is this the correct way?). Now my question is, how do I write modules to extend this application, without having to depe...
stackexchange/codereview
I'm setting up an image cluster for a webpage (similar to sprite-map) for performance reasons. I have a utility that generates the master image, and css to reference the image map. For simplicity sake, I'd rather include the new css after the regular css file, instead of writing a script to search and replace all the c...
stackexchange/codereview
I have an Excel VBA macro that outputs to a text file. There is always a blank row at the bottom of the text file and I am having trouble getting rid of it. Any useful suggestions would be greatly appreciated! Thanks Sub testExport() Dim fPath As String, exportTxt As String fPath = CreateObject("WScript.Shell").Sp...
stackexchange/codereview
We are attempting to re-factor our modularized maven building. We've introduced a property DEPLOYMENT_ENV which might be "prod", "dev", "staging", or what not. The mentality we had going in was that we could then define, say: dev.jdbc.username = yoyodyne dev.jdbc.password = 0verthruster staging.jdb.username = cavalie...
stackexchange/codereview
I have a situation where after several years of use we are suddenly have some JSON-encoded values that are giving our Perl script fits due to backslashes. The issues are with accented characters like í and é. An example is Matí encoded as Mat\ud873. It is unclear what may have changed in the environment. PHP, Perl, and...
stackexchange/codereview
Here is an example. I have two classes, one inherited, and both have a function with the same name, but different arguments: public class MyClass { //public class members public MyClass() { //constructor code } public void Copy(MyClass classToCopy) { //copy code } } publi...
stackexchange/codereview
I have classes on my domain model with plenty of lazy relationships; I was using server-side state saving with JSF, and that allowed me to have these lazy mappings initialized on-demand by the presentation layer. But switching to client-side state saving, I have an exception from EclipseLink, telling me that it could n...
stackexchange/codereview
I have created a gallery in a WordPress post using WordPress's native media gallery and it shows me the images as gallery thumbnails in rows and columns which is exactly what I want. But when I click on any of the thumbnail it opens the direct image link. I want that the image should be shown in my blogs environment. I...
stackexchange/codereview
So, I was reading about this old MIME Content-Type of 1993, which type is matter-transport/sentient-life-form. What's the current status of this MIME type 17 years later? From: "Nathaniel S. Borenstein" <nsb@bellcore.com> To: Mark Linimon <linimon@lonesome.com> Subject: Think hard before reconstructing Content-descrip...
stackexchange/codereview
We've been having intermittent black lines in some of Flash videos on our development site. Our Flash developer has ruled out any obvious problems in the code, which I have to take his word for. My question is how would I go about figuring out what the cause of this is or at least the potential causes. As I mentioned, ...
stackexchange/codereview
I have a table, with these columns: ID | Data How to find out which record has highest ID?
stackexchange/codereview
The barebones version of a .cpp file is often not much more than a copy of the related header file with some braces instead of semicolons, ClassName:: inserted in a few places, and removing the virtual keyword. Much of it could be generated with a one-line sed command, but it wouldn't be very robust for all the languag...
stackexchange/codereview
I need to do a project at the college, it needs to use list/tree/stack to perform any task. I was thinking on the Google's algorithm to recognize the phrase while the guy is typing. Does anyone has this algorithm? Or any other better idea that use list/tree/stack? Thanks
stackexchange/codereview
I am having an issue where i have fields on a form that contains an update panel that i want to do Jquery validation on. The issue is when i click the OK button, the validation error message appears then goes away. Looks like some post back type of issue but was wondering if someone could help. THe code is below: <%@ ...
stackexchange/codereview
I would like to test the behavior of my application when the user is in a no-signal zone or when his phone is in flight mode. -> How do I put an Android Virtual Device into offline mode (where no connection to the internet is possible) ? I have tried the following: Activating flight mode via the AVD settings: surprisi...
stackexchange/codereview
I have installed eclipse 5.2 in ubuntu 10.10. In the 'Install New Software', it show Android Developments Installed. And when i goto preferences window, Android is not listed in the left panel. Already i was running Android SDK in ubuntu 10.04, after i upgraded ubuntu OS, eclipse is not showing the Android.
stackexchange/codereview
I have an HTML string that has the following form: <tr valign="top"><td colspan="2" style="padding-bottom:5px;text-align: left"><label for="base_1001013" style="margin-bottom: 3px; float: left">Nom d'utilisateur:&nbsp;</label><span style="float: right;"><input class="PersonalDetailsClass" type="text" name="base_1001...
stackexchange/codereview
Someone asked a similar question before, getting the following error when I run MSpec in Visual Studio 2010: Could not load file or assembly 'Machine.Specifications.dll' or one of its dependencies. The system cannot find the file specified. The solution in the other post was to download the .net4 specific version of ...
stackexchange/codereview
I'm trying to create a Setup using Visual Studio Setup Project. A mistake, but there's legacy work to consider here. Generally speaking, these projects do not support localization. However, almost all the Setups I've seen have some basic localization i.e., controls such as the Next button show the localized text. My s...
stackexchange/codereview
If the following from the C++ FAQ Lite is true: "a function name decays to a pointer to the function" (as an array name decays to a pointer to its first element); why do we have to include the ampersand? typedef int (Fred::*FredMemFn)(char x, float y); FredMemFn p = &Fred::f; And not just: typedef int (Fred::*FredMe...
stackexchange/codereview
I have a regular QListWidget with couple of signals and slots hookedup. Everything works as I expect. I can update, retrieve, clear etc. But the UI wont support multiple selections. How do I 'enable' multiple selections for QListWidget? My limited experience with PyQt tells me I need to create a custom QListWidget by s...
stackexchange/codereview
How to generate rules to translate 1 form of grammar into another?? for example: GRAMMAR 1: BLOCK: while ( id:=N) { BLOCK } | id:=N N: 1 | 2 | 3 | 4 | 5 GRAMMAR 2: BLOCK: while id:=N DO BLOCK END | id:=N N: 1 | 2 | 3 | 4 | 5 I want 2 generate a translation such that I can translate a statement in Grammar 2 into the c...
stackexchange/codereview
I am going to be learning Ruby, Haskell and Prolog at university. Now, I'm wondering what should get most of my attention. I have half a year to do all three, which means I need to decide on one language to get my extracurricular time. The others I will learn just enough to do very good in the course. I am familiar eno...
stackexchange/codereview
I have set my monthly Archive page (Archive.php) as like this : Monthly Archive When clicking on any MONTH, the result will show all the posts for that particular month as below: Post title-1 ------ Category-1 ------ Author name Post title-2 ------ Category-1 ------ Author name Post title-3 ------ Category-1 ------ Au...
stackexchange/codereview
I'm trying to backup a MySQL database: $ mysqldump -u ruby -p idm_production > /home/username/idm_backup_2010_10_23.sql Enter password: mysqldump: mysqldump: Couldn't execute 'show fields from arguments': Can't create/write to file '/tmp/#sql_721_0.MYI' (Errcode: 13) (1) However I don't seem to have permission to w...
stackexchange/codereview
Here is the problem - i have some C image processing library that i need to use from C# application. Lack of experience with DllImport strikes me hard for now. The function i need to use looks like: IMAGEPROCESS_API const int importImage ( const unsigned char* image, const char* xmlInput, ...
stackexchange/codereview
guys I don't know what could be wrong, but I'm deploying snapshot and sources with gpg:sign-and-deploy-file, but the sources name does always have the value of the following buildnumber. Like artifact-timestamp-1.jar and artifact-timestamp-2-sources.jar so that if I then have a snapshot dependency, it is looking for ar...
stackexchange/codereview
I have an Eclipse plugin (A) which has a dependency on another plugin (B). Plugin B is simply a wrapper around a jar, which contains a native dll, and performs jni functionality. Given this setup, I have the following code in A's Activator class's start method: MessageConsole jniConsole = new MessageConsole("Opereffa ...
stackexchange/codereview
The jQuery function below returns this string: '#prayer_date'.html("03/19/1968"); But it doesn't get executed because the function below doesn't act on the data variable. What would you need to do to have the result above executed as-is in the function below? $('.showprayer').click( function(event) { $.post('/show_...
stackexchange/codereview
I need to mock the following: Class User def facebook #returns an instance of a facebook gem end end So in my User tests, to access the User's facebook info I need to call user.facebook.me.info to retrieve its info. If I want to mock this, I'm currently using the following: @user = Factory(:user) facebook = mo...
stackexchange/codereview
I am wondering about general performance of LINQ. I admit, that it comes handy but how performant is LINQ? I know that is a broad question. So I want to ask about a particular example: I have an anonymous type: var users = reader.Select(user => new MembershipUser(reader.Name, reader Age)); And now, I want to convert i...
stackexchange/codereview
I working on a project that uses NHibernate. My problem is when I'm trying to add an object that contains a list of objects I receive the following exception: Illegal attempt to associate a collection with two open sessions from Session.Save method I don't know what is the problem or how to solve it, please if any on...
stackexchange/codereview
I have an controller that has actions that are set up using chained. My chained root action is in my root controller, then my 'section' controller has a 'root' action chained from the root controller's 'root' action. I then have endpoint actions in the 'section' controller class that chain from the 'root' action in the...
stackexchange/codereview
So the scenario is as follows: I have a 2-3 gb large files of binary serialized objects, I also have an index file which contains the id of each object and their offset in the file. I need to write a method that given a set of id's deserializes them into memory. Performance is the most important benchmark and keeping...
stackexchange/codereview
I found a link in a tweet that my current regex won't parse and I can't seem to figure out how to get it working (probably due to my ineptness with regex). Here's the current code: preg_match_all('@((https?://)?([-\w]+\.[-\w\.]+)+\w(:\d+)?(/([-\w/_\.]*(\?\S+)?)?)*)@',$description, $matches, PREG_SET_ORDER); And the Tw...
stackexchange/codereview
I Want to create a SOAP proxy, that modifies the original web service SOAP header, nampespace and keeping the body the same) What is the best way to do this? Create a SOAP provider , that consumes the original web service then modify the header and namespacs? (this seems like alot of work?)
stackexchange/codereview
I have a few HTML pages that I want to display in a Flex app. Since Flex has limited HTML support I figured I could convert the pages into PDFs, but since Flex webapps don't support PDFs I am in a bit of a pickle. The pages I have are HTML, with text & images. What are my options for displaying this in a Flex web app? ...
stackexchange/codereview
I'm trying to catch the pressing event of Backspace and Delete keys using javascript/jQuery with this kind of code. $("textarea[name=txt]").keypress(function(e){ var keycode = e.keyCode ? e.keyCode : e.which; if(keycode == 8){ // backspace // do somethiing alert(keycode); } if(keycode...
stackexchange/codereview
How to get previous step values in drupal in the next step in a multiform .I want to display the values other than drupal _set_message .I want to use these previous values in other function in the next step.
stackexchange/codereview
Hello guys I want to know how to make an excel chart from the following data. From my website I am recording the usernames user1 user1 user2 user3 user3 ... etc. I want to just select this column in excel and in the the pie or bar chart i want to display the number of times each of these users have logged in. Is there ...
stackexchange/codereview
is there any class or method for getting cdma signalstrength I got for gsm but not for cdma in android??
stackexchange/codereview