instruction_seed
stringlengths
1
35.8k
_source
stringclasses
1 value
I am looking to create a custom button on the TinyMCE toolbar that wraps the currently selected content in a div with a class. I am using drupal 6.19 with wysiwyg-dev and TinyMCE 3.3.9.2. Sample text: <h3>Heading</h3> <p>Sample text</p> <ul> <li>item 1</li> <li>item 2</li> </ul> <p>more text</p> Sample text that...
stackexchange/codereview
I use JdbcDaoSupport (Spring) approch to access data from my DB. I would like to get prepared SQL statement for logging. Any idea how to get it?
stackexchange/codereview
I am going to make a smaller website in MVC.NET, mostly to learn how to work with the MVC.NET framework. I can't decide if I should use NHibernate or Linq2Sql as my Data Access Layer. Linq2Sql would much easier and faster to setup, but it doesn't have the capabilities as NHibernate (2 layer caching etc.). So would it b...
stackexchange/codereview
I have something like this: I have an application that has a NSTextfield named userName, a NSTextfield named helloName, and a NSButton that starts the whole process. All it does is that the user types in his/her name in the Name textfield. when the user presses confirm, the Hello textfield will say something like "Hell...
stackexchange/codereview
I am using android HTC HERO 2.1 version. The activity I write : <activity android:name=".gogogo" android:label="@string/app_name" android:theme="@style/Theme.mine" android:screenOrientation="landscape" android:configChanges="orientation"> let my orientation change to landscape. ...
stackexchange/codereview
Iv got a method in a model that I want to be executed everytime a page is requested so I think I need to call it from the app_controller but can't seem to get it to work. The model i want to use is called Blacklist and it has a method in it called check_blacklist() which is what I want to run every time a page is reque...
stackexchange/codereview
from getpass import getpass from textwrap import TextWrapper import tweepy import time class StreamWatcherListener(tweepy.StreamListener): status_wrapper = TextWrapper(width=60, initial_indent=' ', subsequent_indent=' ') def on_status(self, status): try: print self.status_wrapper.fill...
stackexchange/codereview
I am completely lost on how to do some tree conversions in Haskell. I need to go from a rose tree defined as: data Rose a = Node a [Rose a] deriving (Eq, Show, Ord) to a binary tree which is defined as: data Btree a = Empty | Fork a (Btree a) (Btree a) deriving (Eq, Show, Ord) In my class I was given a function that...
stackexchange/codereview
For operations in my Tornado server that are expected to block (and can't be easily modified to use things like Tornado's asynchronous HTTP request client), I have been offloading the work to separate worker processes using the multiprocessing module. Specifically, I was using a multiprocessing Pool because it offers a...
stackexchange/codereview
Scott Guthrie's blog about how they intended to do it. This appears to do nothing: {{link fieldname}} This appears to blow up: ${link fieldname} Any ideas?
stackexchange/codereview
We have hundreds of MSVC 9.0 C++ projects. One DLL slipped out into the public without the correct compiler/linker settings to generate symbols, and we are getting mini-dumps back that point to an exception in this DLL. We have the exact source code used to generate this DLL. Can it be compiled to produce symbols that ...
stackexchange/codereview
I'm a total newbie to Perl, but I've heard that it's great for parsing files, so I've thought of giving it a spin. I have a text file that has the following sample info: High school is used in some parts of the world, particularly in Scotland, North America and Oceania to describe an institution that provides all or pa...
stackexchange/codereview
I have some data that is displayed in a bar chart, using Google's Visualization API. Was simple enough until designers redesigned it... Now it appears to be something that is beyond what Google can help me with. Given the attached mockup (and note the finer details like reflection and gradients!)- how would you go abou...
stackexchange/codereview
Update: This looks like a memory issue. A 3.8 Gb Hprof file indicated that the JVM was dumping-its-heap when this "blocking" occurred. Our operations team saw that the site wasn't responding, took a stack trace, then shut down the instance. I believe they shut down the site before the heap dump finished. The log had no...
stackexchange/codereview
I have been using the DataTables plugin for jQuery (http://www.datatables.net) to search, sort and paginate tabular data on the client. The simplicity of implementation and smooth user experience have been a huge win. Now I have a requirement to implement the same functionality (search, sort, paginate) over a larger se...
stackexchange/codereview
I'm having some local Flv files that i want to play in C# windows Form Application. What is the best way to do that ?
stackexchange/codereview
i have a dialog box in which a edit control and a button is presentfuncionality is that when i cliked on button edit control changes values from 0 to 30.for single click functionality is working fine but when i hold that button then it should quickly go on increasing 0 to 30 but its not going that way.it not taking lef...
stackexchange/codereview
I want to implement LinkedIn and Myspace in iphone application. I mean I want to change status of both using my app. Is there any API available to access both? I tried OAuth API but its not working only working for Twitter.. Thanks, in Advance.
stackexchange/codereview
I have a self-hosted WCF service (v4 framework) that is exposed through a HttpTransport-based custom binding. The binding uses a custom MessageEncoder that is pretty much a BinaryMessageEncoder with the addition of gzip compression functionality. A Silverlight and a Windows client consume the web service. Problem: in s...
stackexchange/codereview
I am using AvFoundation to take still image and adding gps info to metadata and saving to a photo album using Asset library but gps info is not saving at all. here is my code... [self.stillImageTaker captureStillImageAsynchronouslyFromConnection:videoConnection completionHandler:^(CMSampleBufferRef...
stackexchange/codereview
I'm using sharepoint 2010 listdata.svc service who uses ADO.NET Data Services. I'm wondering if it's possible to do eager loading with this service without writing own DTO objects.
stackexchange/codereview
In my VS Setup & Deployment project, I want to create a desktop shortcut whose name is set to the [ProductName] property. Instead of using the property, the setup program simply treats [ProductName] as a string literal. How can I get it to behave the way I want?
stackexchange/codereview
I originally posted a much simpler (and less helpful) question, and have edited this to be more specific. This animation from wikipedia shows basically what I want to accomplish, however - I'm hoping to have it flipped around, where it starts progressing more towards the destination and "up" (in this image), and then a...
stackexchange/codereview
I am creating a web app that involves a lot of DB access and parsing and analysing data , Java is the language i am most comfortable with but recently have been told that I should consider to use PHP as it makes DB access protocols a lot simpler. I dont have any great knowledge of PHP but would be willing to learn for ...
stackexchange/codereview
Does apple allows me to change the wallpaper of the iphone from my application?
stackexchange/codereview
I've been trying to set up a project using bitbucket which has project dependencies hosted on github. Using the Hg-Git Mercurial plugin I am able to almost get there. But when it comes time to push, things become troublesome. The documentation for Mercurial subrepositories states: 2.4 Push Mercurial will automatically...
stackexchange/codereview
Hi I installed teamcity longtime ago, on my home computer. I am trying to re-use it again now, but I forgot the admin username and password Is there a default admin user name? and how can I get the password? Thank
stackexchange/codereview
I'm trying to simulate a rollercoaster game with ActionScript 3, but i don't know exactly if I should use a 2d engine (like Box2d) or do it from scratch. For any of those I would like to see some code example. Any ideas, pointers, suggestions... Thanks in advance!
stackexchange/codereview
I have a query to add a column if it doesn't exist. It works the first time, but if I run it again, it fails, saying that the column exists?!? IF NOT EXISTS (SELECT * FROM INFORMATION_SCHEMA.COLUMNS WHERE TABLE_NAME = 'TABLE_NAME' AND COLUMN_NAME = 'COLUMN_NAME') BEGIN ALTER TABLE TABLE_NAME ADD COLUMN nchar(3) NUL...
stackexchange/codereview
Is there any way that I can develop an application that is running in the background that will detect when a call is being made, start a timer and then alert me at any set time, say before 5 minutes?. I used to do a lot of iPhone programming but I haven't done any in 6 months. Is there any way to do this now?. Can anyo...
stackexchange/codereview
I wrote a small key logger for Ubuntu, but I don't want it to record specific windows or password fields (in all windows). So I need some way to: Detect when a new window gets focus (so that I can stop my logging if needed). Detect when the user enters a password field (again, so that I could stop my logging). Any id...
stackexchange/codereview
$j[0]='is'; $j[1]='for'; $diff = array_diff($uniqdesc, $j); foreach($diff as $find){ echo $find."</br>"; $uniquedesc is an array from a string of words. I need to print out all the uncommon words. The above code is working fine and eliminating 'is' 'for' Now I stored all the common words in a text file. And I need t...
stackexchange/codereview
How to use USB web camera in .Net Compact Framework (on Windows CE based OS)?
stackexchange/codereview
Why does my FileMaker Pro database show the data in the fields when I enter layout mode? Shouldn't it show the field names?
stackexchange/codereview
Google has speech recognition services available for use from mobile phones (Android has it built in, iPhone users can use the Google application) - http://www.google.com/mobile/. We've found one article where someone tried to reverse engineer the service at http://waxy.org/2008/11/deconstructing_google_mobiles_voice_s...
stackexchange/codereview
In Autosys, I have a job that executes a fairly simple DOS batch file (.CMD). How do I communicate back to Autosys if the job has conditionally failed? If it runs and terminates, Autosys reports a success no matter what. I would like to programmatically tell Autosys if the script failed based on conditions determined w...
stackexchange/codereview
Program below runs fine on windows. But compilation error occurs on linux "error: pasting "." and "config" does not give a valid preprocessing token" Any reason??? i cant understand why.... #include <stdio.h> typedef struct pr { int config; }pr_t; #define JOIN(x,y) x.##y void main() { pr_t temp = {5}; printf...
stackexchange/codereview
Is there a way to install a windows service and automatically set it up to run as the current user without having to manually fill in details each time it installs? We're developing a windows service and want to automate the installation of the service on developer machines so everyone can get up and running on the pr...
stackexchange/codereview
I have been using gedit as a programming text editor for a while... I would like to increase the number of recently opened files from 5 to 10... I checked the gedit preferences and the gconf-editor gedit options but there was nothing there related to the recently opened file list. Where can I change this setting?
stackexchange/codereview
I use Rails request_forgery_protection mechanism to protect my POST actions from CSRF attacks and captcha to protect the GET actions. This way if someone stages a two-phase attack within one session, GET-ting the form with the current token and then POST-ing a forged request with that token, he will eventually be faced...
stackexchange/codereview
I am using a ToolStripDropDown control to implement the dropdown portion of a custom ComboBox-like control. In order to be visually appealing, I am imposing a MaximumSize on the dropdown and manually specifying the width of each ToolStripButton within it - the result is a popup which is the same width as the control th...
stackexchange/codereview
I have an SCons project set up as follows: proj/ SConstruct src/ c/ h/ app1/SConscript app2/SConscript ... All source/header files for each application are located in src/c and src/h. At first step I created a SConstruct in app1 which use the Repository function. ... src=Split("...
stackexchange/codereview
I wish to implement IPC using Named Shared Memory. To do this, one of the steps is getting a handle to a Mapping Memory Object, using CreateFileMapping(). I do it exactly as MSDN website reccommends: http://msdn.microsoft.com/en-us/library/aa366551(v=VS.85).aspx: hFileMappingHandle = CreateFileMapping ( I...
stackexchange/codereview
I'm working with a GridView in an UpdatePanel and perform databinding to an ObjectDataSource using the DataSourceID property. Everything works just fine except for when I perform data validation in the object source and return false from the Update. I use this to set the content and visibility of another control in the...
stackexchange/codereview
Ok, not really sure how to word, but will try my best. I have a number of WCF services that are setup and run awaiting an object to come in for processing. WCFServiceA WCFServiceB WCFServiceC Service A will run some processing and decide to send the object onto Service B or C. So my object has [DataContract] attribute...
stackexchange/codereview
Does Vaadin or SmartGWT support RTL in their provided widgets/themes? Thanks
stackexchange/codereview
I am trying to run this.. - f.fields_for :referrals do |qf| But I would like to pass this, @organization.referrals.select{|ref|ref.new_record?} as well. This is so that the forms passed are exclusively new objects, and not older ones. I've tried to do this.. - f.fields_for :referrals do |qf| - if qf.object.new_recor...
stackexchange/codereview
I have used below code to combine two .caf files. NSMutableData *datas = [NSMutableData alloc]; NSData *data1 = [NSData dataWithContentsOfFile:path1]; NSData *data2 = [NSData dataWithContentsOfFile:path2]; NSLog(@"file1 size : %d", [data1 length]); NSLog(@"file2 size : %d", [data2 length]); [datas appendData:data1]; [...
stackexchange/codereview
recently I faced strange error with raw format: index.php?option=com_content&view=category&layout=blog&id=44&Itemid=80&format=raw Error 500: View not found [name, type, prefix]: category,raw,contentView I googled for this problem, but actually did not find the correct answer for this... So what is wrong with that ?...
stackexchange/codereview
Is it true that to implement a RESTful API, one has to implement a URL structure that looks like this http://example.com/post/ http://example.com/post/123 where the /123 would be used for edit, delete Another way to ask the question is: can a URL that looks like this be called RESTful? http://example.com/script.php?me...
stackexchange/codereview
I would like help for ways to add a copyright footer on web page.aspx so that it always remains at the end no matter the size of the image. When my image increases in size, the copyright message should still appear on it.
stackexchange/codereview
I try use IDataErrorInfo in WPF app on validation data, but if I try implement interface IDataErrorInfo in my class, I get this error: 'IDataErrorInfo' is a 'namespace' but is used like a 'type' I using namespace System.ComponentModel. Any advance. code is here: public partial class MainWindow : Window { pu...
stackexchange/codereview
I need to update the contents of an href on an IHTMLLinkElement. What I've come up compiles but causes an error as soon as it's execute static const CComBSTR href(L"http://www.google.com"); spLinkElement->put_href(href); // IHTMLLinkElement The error I get is Program: C:\Program Files\Internet Explorer\IEXPORER.EXE F...
stackexchange/codereview
I want to access the network files from my web application. I have build the web application (which access network share folder and files) and its works perfectly under eclipse. The same application doesn't run if run through web server Tomcat 6.0 String lineSeparator = System.getProperty("file.separator"); Stri...
stackexchange/codereview
I'm using Rails 3 / factory_girl_rails / Rspec 2 and Ruby 1.8 I've defined my factories this way: Factory.define :user do |u| u.name 'Some guy' u.sequence(:email) {|n| "person#{n}@example.com" } u.password 'password' end Factory.define :password_reset_user, :parent => :user do |user| user.password_rese...
stackexchange/codereview
Hi can any one tell the steps to use the YAJL to parse the json object in objective c Thanks..
stackexchange/codereview
All the permissions are correct and the php.ini is fixed, and there's no problem with SSL or secure admin interface but it still won't upload. I click on a product, go to the Image section, select an image to upload and it appears to upload. However, the image doesn't appear in the list of product images and then I get...
stackexchange/codereview
I have the following text in a file... blah blah ñ blah Notice the ñ symbol. I'm reading this with StreamReader.ReadLine and then trying a string.Replace to replace the special character. For some reason this isn't working, and it seems to be something to do with the StreamReader. When I inspect the string in the debu...
stackexchange/codereview
How do you prevent hotlinking on a standalone Java webapp server like Tomcat?
stackexchange/codereview
I have several tables in my ERD which which I would like to combine in a relational manner. I have several use cases, but I completely lost track of what kind of relations to use between the tables. Every user can work on multiple projects. Every user has one specific role per project (Manager, Contributor, User) Ever...
stackexchange/codereview
I have an InstallShield project with 2 executable's. How do I change the product version property in General Information of InstallShield to match one of my executable's version number. I'm using auto builds. Thanks in advance!!
stackexchange/codereview
Can someone provide me with a backtracking algorithm to solve the "set cover" problem to find the minimum number of sets that cover all the elements in the universe? The greedy approach almost always selects more sets than the optimal number of sets.
stackexchange/codereview
I think my question is a long shot. Lets say I have an attribute: public sealed class MyCustomAttribute: ActionFilterAttribute Used on a class method [MyCustomAttribute] public virtual ActionResult Options(FormCollection collection) Now, I need to add a contructor's parameter public MyCustomAttribute(IMyD...
stackexchange/codereview
I am sure that I saw it already in an example but can't find it again :( I have a jqGrid with inline editing. That works fine. One column has a select box with 200 entries. Those get retrieved from a database query already. Since 200 entries are too much, I want to have an input field and a live search. Once clicked on...
stackexchange/codereview
The below code couldn't pass the compilation, what's the consideration for this compiler error? template<class T> void f(T t) {}; template<> void f<char>(char c = 'a') {} Error message: Default arguments are not allowed on an explicit specialization of a function template
stackexchange/codereview
I'm using Xcode 3.2.4. Has anyone ever experienced this? Here's the console message that I had gathered: 10/22/10 10:53:58 PM Xcode[70765] _NotificationSocketReadCallback (thread 0x1170b0000): Unexpected connection closure... 10/22/10 10:53:58 PM Xcode[70765] Got faceplant notification 10/22/10 10:53:58...
stackexchange/codereview
While I am modeling I like to render a frame to show the progress as I am going along. I would like to program the renderer to save the render as a render output and add an incremental number to the end of it. So I would have a number of renders at the end just like a render sequence for an animation but with the frame...
stackexchange/codereview
URL:http://edgarferro.squarespace.com/secondtry The green div (.button1) is overlappig the other div (.message, .principle), I want to know how to separte both of them. Thanks %%%%%%%%%%% Here is the code that I am running in HTML editor %%%%%%%%%%%%%% <div class="column"> <a href=""><div class="principle"> <h2> BIZ<...
stackexchange/codereview
I'm working on a API that will accept addresses in searches. We would like to use Google's geocoding service to normalize the addresses before submitting the search criteria to our search engine. This caught my attention: http://code.google.com/apis/maps/documentation/geocoding/index.html#Limits "Note: the Geocoding ...
stackexchange/codereview
I am actually looking at getting the method, whose name is stored in the string "methodName", from the Class "CC1" using Java Reflection. Method actualMethod= CC1.getMethod(methodName, parameterTypes); This is the syntax. The problem is the method takes no parameter. How do I represent that in the parameterTypes ? w...
stackexchange/codereview
hope it's allowed to "crosspost" between stackexchange site... Does anyone know how to solve the following "math" problem ? https://gamedev.stackexchange.com/questions/5041/correct-blitting-2-surface-problem Thanks in advance
stackexchange/codereview
when I perform a cvQueryFrame on Windows, the API blocks until an image is delivered. On Mac OS X, I am at 100% CPU utilization, while only querying for an image and displaying it in a window. I am at the latest SVN version. Can anyone confirm my experience? Am I doing something wrong? Is there a work-around? My loop c...
stackexchange/codereview
I want to know the range of frequency that the iPhone's microphone can listen and can we play the least frequency sound recorded by iPhone's microphone?
stackexchange/codereview
I'm developing a web site and i would like to use the SQL Server Express as my DB. The Express edition is limited for 4GB per DB. Is it legal to create & use several DB's for the use of a single web site?
stackexchange/codereview
Here's what I want to do: NSRange r = NSMakeRange(0,5); id a = [NSMutableArray a]; [a addObject: r]; // but NSRange is not a NSObject * With a boolean, I'd use code like this: [a addObject: [NSNumber numberWithBool: YES]]; or with an integer: [a addObject: [NSNumber numberWithInteger: 3]]; So what's the equivalent w...
stackexchange/codereview
Say in my repository I add a file or make a change and commit that. Another client who also has the source previously exported to them exports again. Will they get the entire source or only the new stuff added? If not what about checkout? Thanks
stackexchange/codereview
I have the following class public class AccountingBase<TItemType> where TItemType : AccountingItemBase And in my AccountingItemBase i have the following property: public virtual AccountingBase<AccountingItemBase> Parent { get; set; } in my AccountingBase, I am trying to do the following item.Parent = this; Logically...
stackexchange/codereview
I'm slowly figuring out Core Data for my iPad app, but I just can't seem to figure out how to access data from my to-many children (who also have to-many children). I'm hoping to get some code examples from the experts here. Let's use a simple data structure: Parent -(to many)-> Child -(to many)-> Toy I can fetch the ...
stackexchange/codereview
I'm a front-end developer coding CSS, HTML and Javascript (in that order) and most of the work I do is design-lead. Whilst the quality of the designs I create with CSS is subjective, much of the coding is purely functional / layout and I am interested in any way to automate the testing of my page. My question can be s...
stackexchange/codereview
This is how my text (html) file looks like <!-- | | | This is a dummy comment | | please delete me | | asap | | | ________________________________ | --> this is anoth...
stackexchange/codereview
I want to read DOM document using Stax stream readers and write it using Stax stream writers. I want to modify xml file and change some element values I want the cursor to point at a certain element in xml file befor building dom tree I wrote this code but the xml file did not modified can anybody help me ? FileInputS...
stackexchange/codereview
We are using DevExpress XtraReports 2009v3.3 and although I can achieve what I want through various formatting objects in code, there must be a (better/less painless/maintainable/visual) way of achieving what I require... I need to produce a report, designed to end-user 'look & feel'. We have many companies which use o...
stackexchange/codereview
I am trying to integrate, Seam and GWT. I was wondering if can specify html pages in Seam page flow. Is it possible ? If yes what will the name in the tranisition stand for ?
stackexchange/codereview
I want to send the data such that the fragmentation of the data is disabled. For example in ping, if we write ping localhost -M do -s 65507 -M do : disable fragmentation -s 65507 : maximum packet size It gives me an error like From localhost (127.0.0.1) icmp_seq=1 Frag needed and DF set (mtu = 16436) Is there some ...
stackexchange/codereview
I load a lot of images form internet with a ThreadPoolExecutor. When new images found, I need to render it first, in that case I want to abandon the old tasks which are still queued in the ThreadPoolExecutor and added these new items to download. I found there are no "clear queue" method in ThreadPoolExecutor, and "pur...
stackexchange/codereview
i tried to make a array list of 5 element in which recent 5 clipboard text is copied but i am not able to do this every time clipboard text overwrites the previous one and in first array element and prints only the last one i want to print all how can i do this. if my case is possible thn please give me some solution...
stackexchange/codereview
I have following code : System.out.println(" | 1 2 3 4 5 6 7 8 9"); System.out.println("----------------------------"); System.out.println(""); I use println to create a new line. Is it possible to do the same using \n or \r? I tried to add \n to the second println statment and continue printing wi...
stackexchange/codereview
I am working on a Visual Studio 2010 extension and I want to add an attribute to an MSBuild Item, as follows: <EmbeddedResource Include="SomeFile.xml"> <FooAttribute>%(Filename)%(Extension)</FooAttribute> </EmbeddedResource> So, far the only way I found is using the method IVsBuildPropertyStorage.SetItemAttrib...
stackexchange/codereview
I'm trying to replace all dots found in a value entered by the user in an HTML form. For instance I need the entry '8.30' to be converted to '8x30'. I have this simple code: var value = $(this).val().trim(); // get the value from the form value += ''; // force value to string value.replace('.', 'x'); But it doesn't wo...
stackexchange/codereview
I am using jQuery editor with PHP it works fine for plane text (text with out special characters) but if I try to post text which contain special characters then it does not store these special characters in to db table.. and when I tried to replace any special character with HTML codes it works fine. But it is too dif...
stackexchange/codereview
This is my first question so play nice!!! I've done a search and could only find similar questions relating to .NET 3.5 last year so I thought I'd ask for people's recommendations at this point in time regarding a good web host to use for a small e-commerce website that will run on .NET 4.0 with a SQL Server 2008 back ...
stackexchange/codereview
i am using location in my app and tested it with IOS 3 simulatior it works fine also on device it works fie. but when tested it on IOS4 simulator it crashes..and unable to find location I know that the location on simulator is of infinite loop cupertino california. but it is not working in IOS4... and i don't have Ipho...
stackexchange/codereview
I will have a number which was taken as input from the use or i am storing a number assigned to a string as string s"1234567"; As for this the index of each string will be as 0,1,2,3,4 and so on I would like to add the number with that index as 1+0, 2+1 , 3+2 and so on like that so that the output should be 1,3,5 l...
stackexchange/codereview
I tried to resize an image inside a textview (using HTML layout and the image callback), but I could not get the correct width of the view. getWidth() always returns 0 for this view. I am calling the function inside onStart() in the application that contains the TextView. Thanks for any hints! RG
stackexchange/codereview
I have this script in the head of all my pages- which in an include: <?php if (isset($robots) && $robots == "off") { $robots = '<meta name="robots" content="noindex,nofollow">'; print $robots."\n"; } else { $robots = '<meta name="robots" content="index,follow">'; print $robots."\n"; } ...
stackexchange/codereview
Let's say I have a string like so: "Lorem ipsum de color [post]57[/post] sit amet [post]103[/post] desectator." I want to find all occurrences of [post]*[/post] and replace it with the title of the post represented by the number. I'd end up with something like so: "Lorem ipsum de color Angry Turtle sit amet Fuzz...
stackexchange/codereview
I have this array in PHP array(5) { ["mai_id"] => string(1) "3" ["mai_logo"] => string(0) "" ["mai_title"] => string(16) "Vitrine Cultural" ["mai_description"] => NULL ["mai_description2"] => NULL } And I'd like to remove ["mai_description"] and get only array(5) { ["mai_id"] => string(1) "3" ["mai_logo...
stackexchange/codereview
Does the JavaScript frameworks which mimics namespaces like jQuery makes some namespace collision detection ? If not should I manage it myself ? If yes what prevents such framework to detect such collision themselves ?
stackexchange/codereview
I need the following line to write START http:// in VBA, however, it won't write the http:// part to the pgp (text based) file whats the trick for this? objWriter.WriteLine((TextBox5.Text) + "," + " " + "START http://" + (TextBox6.Text) This is the rest of the code if necessary: Public Class Form1 Private Sub But...
stackexchange/codereview
The assignment is as follows: The gas station consists of 2 pumps. Each pump has a certain amount of fuel it can distribute. Cars arrive at random intervals and attempt to use one of two pumps: - If a pump is available and has fuel, the car is immediately allowed to use it. Each car requires a certain amount of fu...
stackexchange/codereview