I would like to replicate the notification sort of system provided with CoreData NSFetchedResultController which with really little enables us to update a tableView based on events such as Insert/Update/Delete of objects represented as Cells.
I'm currently using SQLitePersistentObjects as a Database abstraction layer: http://code.google.com/p/sqlitepersistentobjects/
If you have any idea or something working or at least advices I'd be very happy!
Thank you!
I searched the site but didn't see anything quite matching what I was looking for. I created a stand alone application that uses a web service I created. To run the client I use:
c:/scriptsdirecotry "run-client.bat" param1 param2 param3 param4
how would I go about coding this in python or F#. seems like it should be pretty simple but I haven't seen anything online that quite matches what i'm looking for.
Thanks in advance.
In my last Drupal project we were 5 people doing coding and installing new modules, at the same type our client was putting up content. Since we chose to have only one server for simplicity there were times were many people needed to write to the same files like style.css or page.tpl.php or when someones broken code would prevent others from working
Are there any best practises for a team that works with Drupal? How can leverage code repositories or sandboxes?
Coming from a C# background the naming convention for variables and method names are usually either CamelCase or Pascal Case:
// C# example
string thisIsMyVariable = "a"
public void ThisIsMyMethod()
In Python, I have seen the above but I have also seen underscores being used:
# python example
this_is_my_variable = 'a'
def this_is_my_function():
Is there a more preferable, definitive coding style for Python?
It seems that StackOverflow is more concerned about programming techniques and coding skills (which is a good thing!)..
But I am asking if anyone knows another "StackcOverflow"-like site, but which is mainly concerned about Machine Learning and AI?
BTW: I have asked this question after nearly a week without an answer for Question
Hi Guys,
I am new to web development, I am coding some ASP.NET,
I checked a lot of examples using MVC in ASP.NET, But I am looking for verbal answers from senior programmers, about why using MVC?
can U as seniors and team leaders show me the benefits?? and why not keeping using asp.net webforms?
thanks
I'm coding a WYSIWYG editor width designMode="on" on a iframe. The editor works fine and i store the code as is in the database.
Before outputing the html i need to "clean" with php on the server-side to avoid cross-site-scripting and other scary things. Is there some sort of best practice on how to do this? What tags can be dangerous?
UPDATE: Typo fixed, it's What You See Is What You Get. Nothing new :)
I have included gwt-html5-geolocation into my GWT project and was disappointed to find that it doubled up on my number of permutations compiled. Apparently if the browser does not support geolocation API then it falls back to use gears to find out your location. Is there a way to NOT compile a permutation for gears similar to the way you can tell GWT to only compile certain browser permutations? (the geolocation stuff is very much a nice-to-have and frankly if the client is running an old browser then I am happy not to get their location)
Thanks
Hi,
In my application I m using following coding pattern to vibrate my iPhone device
Header File:-
AudioServices.h
AudioServicesPlaySystemSound(kSystemSoundID_Vibrate);
////////////////////////////////////////////////////////////////
My problem is that when I run my application it gets vibrate but only for second but I want that it will vibrate continuously until I will stop it.
How it could be possible .Please help me out its urgent
Thanks in Advance
I was asked by an interviewer today how I would implement Arabic as a second language into a PHP web application. I talked about choosing a unicode encoding for the database and the front-end, and designing RTL friendly user interface modules. And he didn't seem too happy with the answer. I don't really know anything about multi-lingual systems, how would you have answered that question?
Hi friends,
i know it would sound too ambitious but our client requires a PDF Reader of his own with some selected functionalities. Can any1 here guide me to some good tutorials for paving the way to start its development?
i guess i need to clear some pdf basics and start from scratch OR i would be happy if there is any api which i can use directly modify the controls at my will...
any help would be highly appreciated... Thanx a lot...
Hi
How to find my code execution time ,
Am using the below snippet,
am not happy with that ?
list ($msec, $sec) = explode(' ', microtime());
$microtime = (float)$msec + (float)$sec;
Regards
I've never been happy with anything I've ever found. But not having good UML, or at a minimum some clear class diagrams, makes it difficult to move forward with design on a team. Especially if you're a team deeply engrained in Agile concepts wrapped in Scrum.
UML Tools? Visio? Visual Studio? Other?
Hi,
I'm a coding newbie, but I really wanna learn how to do multithreading and event handling.
Does anyone know of any good tutorials out there, or can they explain it to me in a nutshell?
I received such message in erlang condose at first@localhost node
=ERROR REPORT==== 1-Jan-2011::23:19:28 ===
** Node 'second@localhost' not responding **
** Removing (timedout) connection **
My question is - what is timeout in this case? How much time before causes this event?
Howto prevent this "horror"? I can restore\recover to normal work only by restart node...
But what is the right way?
Thank you, and Happy New Year!
I am facing a really tough time doing this. I haven't done much on web development before this. I know HTML and dats it. What else do I need to learn in order to start coding a good facebook app (specifically scripting languages like JS, PHP etc). I have already created a test application using a web hosting site. Time is of the essence here.
Coding Platform: ASP.NET 4.0
I am binding a GridView with LinqDataSource with AutoDelete functionality enabled.
GridView is bound to the Products Table.
I have a Products Table and a Category Table with an association on CategoryID.
If I try to delete a Category that is referred in the Products Table I cannot do that.
Its is totally acceptable, but I want the end user to be notified with some error message.
Where to catch this error message?
Can someone point me at what I should be doing under scala 2.10 in place of this deprecated type witness on Manifest?
reflect.ClassManifest.singleType(foo) <:< barManifest
Honestly, my goal here is just to replace it with something that doesn't raise a deprecation warning. I'm happy to use the new reflection API.
Here's the code in question in context, if that's important:
https://github.com/azavea/geotrellis/blob/master/src/main/scala/geotrellis/feature/op/geometry/geometry.scala#L45
hi
does anyone know any sort of app that lets users visit a page on their mobile phone, enter information and have it update the website
i believe the term is "mobile-blogging" but there isn't all that much on google
or, is there any good resources for coding pages specifically for a mobile phone? I could probably design a script to insert blog posts on a site but not sure how it would work with a mobile.
thanks for any pointers
I am setting GtkEventBox with an Transparent image from gtkrc file using pixmpa engine.
but issue is that in transparent are of the png image gtk is filling default window back ground color.
I wan to tell gtk to fill it's parents base/bg/fg color in transparent are of the background image other than default background color.
how to do it using gtkrc file or coding?
Thanks,
PP.
We keep most of our logs in a dedicated database table. We have written custom appenders for log4j and log4net, have a fixed log schema with lots of handy columns, and are quite happy with it.
Is that the "best practice" (for sites smaller in scale than Facebook, where a simple DB table just won't scale)?
Can anyone expalin me how to dynamically ger the Role from a DB table instead of hard coding it in the code.
ClaimsIdentity outputIdentity = new ClaimsIdentity();
outputIdentity.Claims.Add(new Claim(System.IdentityModel.Claims.ClaimTypes.Name, principal.Identity.Name));
outputIdentity.Claims.Add(new Claim(ClaimTypes.Role, "Manager"));
outputIdentity.Claims.Add(new Claim(ClaimTypes.Country, HttpUtilities.GetProgramIdentifierFromUrl()));
return outputIdentity;
I use Aptana for 2 or 3 months now and i'm very happy with it.
But since i need to work with Joomla! and to write some modules, compenents, etc...
I'd have like to know if there is a joomla plugin for Aptana ?
I would just like to have autocompletion, autosuggest, links to methods and class of the Joomla API
Any ideas ?
Thanks
Good day everyone and happy holidays.
I'm trying to create a "simple" program that allows me to create a list of video files (Youtube video's to be precise) that are then run through by my program and converted any given format to pure MP3 audio. For this purpose I'm trying to use the BASS.dll and well it isn't going so well.
I was wondering if anyone has used BASS to convert from one audio format to another?
Or is there another library better suited for this?