I just want to quickly store an array which i get from a remote API, so that i can mess around with it on a local host.
So:
i currently have an array
i want to people to use the array without having to get it from the API
There are no needs for efficiency etc here, this isnt for an actual site just for getting some sanitizing/formatting methods made etc
is there a function like store_array() restore_arrray() ?!
Hi everybody.
I made a custom helper extending the system string_helper.php.
I placed it in my /application/helpers folder, called MY_string_helper.php as required, unit-tested its functions.
Now, when I try to call one of its functions from a model, it does not work.
The functions in the default string helper work, instead. It looks like my extension is not loaded for some reasons.
Thanks a lot, and happy holidays.
I had limited success myself. I was able to hype a few persons about Scala.
But in fact none of them made a meaningful effort to try to switch (usually from Java).
I would like to read both success and failure stories here.
Both long tries and short ones.
My goal is to find ways of presenting Scala to another person, friend, co-worker (not an audience) that will make them want to use this great language.
Say I've made changes to some files but I don't want to check them in. I want to save the changes in a batch file or some archive and then email them to another dev/myself/etc.. so that they can take a look at my changes and apply them to their working copy. Is it possible to do this?
Simpler scenario
Can you backup uncommited svn changes?
I have built a class which has a few methods in it, once of which returns an array, lets call this class A.
I have a second class, class B, which I would like to use to call the method from class A.
But, now how do I call that method from class A and store what is returned in a var in class B? Do I have to initiate the class? I have made sure to include the .h file from class A into class B.
Thanks for helping a newbie.
The Google I/O app was made by Google to help attendees to the conference track which sessions they want to watch and see the entire schedule. I was wondering if it was available as open source since it has some good UI design and usability patterns.
In win32 programming in C:
Whats the best way to execute a win32 console program within another win32 program, and have the program that started the execution capture the output? At the moment I made the program redirect output to a file, but I am sure I must be able to open some sort of pipe?
I just made an interesting mistake in my code:
Dim endColumn As Integer = startColumn + endColumn - 1
The code was actually supposed to be:
Dim endColumn As Integer = startColumn + numColumns - 1
The interesting thing is, I would think that this code should be recursive and loop indefinitely, as the initialization of endColumn sort of calls itself. However, it seems that the code just treats the uninitialized variable as a 0 and so I get startColumn + 0 - 1. What is happening here behind the scenes? When does a variable get assigned a default value?
Even if I have made a certification exam on Sql Server Design and implementation , I have no clue about how to trace/debug/optimise performance in Sql Sever.
Now the database I built is really business critical, and getting big, so it is time for me to dig into optimisation, specially regarding when/where to add indexes.
Can you recommend a good book on this subject ? (smaller is better :)
Just in case: I am using Sql Server 2008.
Thanks
I installed emacs 23.3.1 in c:/emacs-23.3.
Following the hints in this page, I updated the site-start.el to set HOME environment variable.
(setenv "HOME" "c:/users/USER/emacs")
And I made c:/users/USER/.emacs (like I did in unix/mac) to write the code for using slime, but it doesn't seem to start slime correctly.
Is this a correct way of setting emacs in Windows 7? Where do I put the .emacs file?
Hello,
I backed up my db with mysqldump from phpMyAdmin. Using MySQL 5.0.22. Made no changes to database file. Import fails. Found many instances of extra spaces using notepad, but now cannot find any other such extraneous spaces. Error is 1064.
Any suggestions on how to import file properly?
Thanks.
I'm learning C# and I've made a recursive insert-method for a linked list:
public static int recursiveInsert(ref int value, ref MyLinkedList list) {
if (list == null)
return new MyLinkedList(value, null);
else {
list.next = recursiveInsert(ref int value, ref list.next);
return list;
}
}
How would you modify this method to make the recursive call look like this:
recursiveInsert(value, ref list.next)
instead of:
list.next = recursiveInsert(ref int value, ref list.next);
We want to persist some user settings int he GUI part of our code. I used to do Win32 programming exclusively and the typical way this was done was with registry settings.
I assume that this should be done with configuration files, but was wondering if there was a library or cross platform wrapper that made key/value pair persistence very easy.
Hi there,
Simple question : I've got an iPhone app with 2 views with each a separated xib files.
one view holds the settings of the app
one view holds the app using the settings madein previous view.
How should I implement the sharing of setup parameters between the 2 views ?
should I manage those parameters in the app delegate ?
I'm studying STL and made win32 project..
But I got stuck in runtime error..
I tried to debug it but..
please click to see picture
this is very strange because
in watch table,
n1,p1,it are defined but n2 isn't
and tmp is not either..
I can't find what is wrong...
please help..
Hi everyone,
I'm looking to find the Javascript Event I need to put into jQuery's .bind function in order to have the function triggered when a selection is made from a <select> element.
At the moment I'm using .bind('change',function() { ...}) but I need the event to trigger when the selected option is chosen again.
Any suggestions?
D'oh! I just made a perfectly good commit to the wrong branch.
How do I undo the last commit in my master branch and then take those same changes and get them into my upgrade branch?
Thanks!
I'm aware that it is possible to use 'readelf -d | grep RPATH' to inspect a given binary from the shell, but is it possible to do this within a process?
Something like (my completely made up system call):
/* get a copy of current rpath into buffer */
sys_get_current_rpath(&buffer);
I'm trying to diagnose some suspect SO linking issues in our codebase, and would like to inspect the RPATH this way if possible (I'd rather not have to spawn an external script).
Okay, so I'm on Windows Vista, and I want to use SDL_TTF, but the idiots who made it decided you have to build everything from source, so I to build the .lib files and all that other stuff, but I'm on Windows, so how am I suppose to do this?
I have made a simple batch file for backing up my repository changes and rebuildig, but it always stops executing after the backup command is run. Have anyone here ever seen this happen before?
Is there a way to update information in a div of a parent page from a pop-up/"lightbox" window. I would like to create a pop up window that contains a form that updates a database (currently i am using php/mysql with prototype).
In other words...
I would like a user to be able to use a form in a popup window to update the database, and the changes that are made to be shown on the parent page without that parent page being refreshed.
Thanks.
Hi, I've been trying to make a button toggle a class, as well as show another div below it.
Here is a jsFiddle example I have made for you.
The first function works perfectly, shows and hides the div, but also I want the button itself to add and remove a class, I thought this would work but I seem to be doing something wrong.
Thanks.
I would like to create a Blackberry Widget that contains a map view.
Since the whole widget is a web page with java script etc. I think it should be possible to include google maps or something like that into my widget.
Has anybody made experiences with this?