intermediate

CodeReview: Tiny Encryption Algorithm for arbitrary sized data

The TEA is a very simple encryption algorithm requiring little time and space - perfect for embedded systems. There are extensions to it, and every version has its flaws (WEP was based on it), but for casual protection it's perfect. In the vein of this topic on code review, I'm posting my code for critique. Interestingly, when I decid...

How do you balance fun feature creep with time constraints?

I enjoy programming, usually. Tedious stuff is easy to get done as quickly and correctly as possible so I can get through it and not have to see it again. But a lot of my coding is fun and when I get in the 'zone' I just really enjoy myself. Which is where I make the mistake of spending too much time, perhaps adding features, perhaps ...

Can you recommend a MySQL Book for an "intermediate" developer?

I'm a web developer looking to improve my MySQL skillset. Basic CRUD, joins, etc are all pretty par for the course; I'm looking to learn more about efficiency, avoiding bottlenecks, optimizing queries, and lots more awesome stuff that I don't know the words to explain. ...

gfortran: how to control output directory for .mod files

Is there is a way to put .mod files, generated by gfortran (GCC), into a separate output directory? I know how to place object files or other output with the -o flag as in: gfortran -c test.f03 -o /path/to/output/dir/test.o But the .mod files (which are generated by the above call) are not affected by the -o flag and placed in the curr...

What comes next after "Learning Perl"?

I decided to learn Perl after realizing that most of my bash scripts were getting rather unwieldy in their current form and would become a maintenance nightmare if I continued down that path. A friend showed me a couple of examples using regular expressions and in-built modules in Perl and I was hooked instantly. To that effect I borrowe...

SQLDataReader dispose?

I'm working with legacy code here and there are many instances of SQLDataReader that are never closed or disposed. The connection is closed but, I am not sure if it is necessary to manage the reader manually. Could this cause a slowdown in performance? ...

Retrieve row order from DataGrid 1.0

I am working a legacy app which is .net 1.1 and I need to retrieve the rows in a datagrid post sort (by clicking on column header). This sounded like an easy task however, the answer seems to elude me. I can retrieve the rows from the dataset just fine but, they are not sorted again when the header is clicked. I appreciate any input. ...

Projects for C++ Beginner/Intermediate?

Hello everyone! I really want to learn more about C++. I know the basics, and I know the concepts, and I have even been able to create C++ projects myself, but my problem is being able to view, fix, and add to code I haven't written myself. I have looked at some open source projects on sourceforge, etc, but many of them are so big or the...

way to the intermediate level

Hi guys, I've got a question related to the practical learning of programming skill. I'm acquainted with basic programming stuff, know syntax and some concepts of several languages (Pascal, PHP, Python, now want to learn C#) and I debug quite a lot, so I can write (and have written) programs not bigger than 1000 lines of code for my ow...

Java book for programmer with intermediate experience

I am well aware of this previous question here and have heard great things about those books. I actually bought two of them, Effective Java and Java in a Nutshell as an early Christmas present. I am looking for a good Java book, or books, to further continue my understanding of Java from a recent college graduate point of view. I have ...

django, access fields in intermediate model

I'm creating a Person Group and Membership as described in django docs for intermediate model. class Person(models.Model): name = models.CharField(max_length=128) def __unicode__(self): return self.name class Group(models.Model): name = models.CharField(max_length=128) members = models.ManyToManyField(Person, through='Memb...

Listing mutual friends in Core Data

I'm working with an intermediate join table in Core Data similar to the friends example from Apple's Core Data Programming Guide. Sorry, can't post pictures yet due to no reputation points. Its a friends entity with relationships to FriendInfo intermediate join, with relationships of friends and friend info. The following link describes ...

what do I need to start developing in .NET

Hi All, thanks in advance for your time, Over the last year I have moved from a beginner PHP developer to a more intermediate developer, I use Mac OS X and a local development server environment (MAMP). I am thinking about starting to develop using the .NET framework. Can anyone give me some advice? What do I need to begin? How sim...

How to retrieve jQuery modified innerHTML from C#

Hey guys. I'm trying to access the innerHTML of a span tag modified by jQuery using C#. This is my first project shunning the AJAX libs in favor of jQuery, so I'm not sure how I can get the codebehind to recognize the manipulated innerHTML. I've set all the spans I want to tap into with runat="server", but all I pull are the values I've ...

XML and HTML = need help using HTML code

I'm converting my static HTML site to a dynamic PHP/XML-driven one. This is my current code: <div class="divider"></div> <div class="main" style="width: 552px;"> <div class="time">00:00</div> <div class="show"><h3><b>Radio Show</b></h3> <p>Description</p></div> <div class="footer"></div> </div> and my XML file: <?x...

hibernate modeling relationships managed through an intermediate table

I have a datamodel that has an intermediate table to manage relationships between entities. For example, tables Person and Organization are related through the Relationship table Party (table) - ID Person (table) - ID (references Party.ID) - name Organization (table) -ID (references Party.ID) -name Relationship (table) -ID (PK...

Hibernate mapping to manage bidirectional relationship using intermediate table

I have an object hierarchy that is as follows. Party > inherited by > Organization and Person Organization > inherited by > Customer, Vendor Person > inherited by > Contact In the database I have the following tables Party, Customer, Vendor, Contact. All of them have a corresponding row in Party table. Contact belongs to either Vendor...

Problem with processing intermediate results in MySQL stored procedure

Dear all, i try to do a little weighting of my data by using a stored procedure. Basically this means multiplying certain columns with their respective weights and adding them up in the end. I have written the following stored procedure: CREATE PROCEDURE test () BEGIN DECLARE w1 DOUBLE; DECLARE w2 DOUBLE; DECLARE res1 DOUBLE; DECLAR...

How do I get list of all Python types (programmatically)?

A discussion in a recent question here (what-is-the-most-pythonic-way-to-have-a-generator-expression-executed) - that min/max() need objects to be comparable - made me wonder how do i find which Python types support particular method (__cmp__, or maybe __lt__ - specifics not important). Pivotal to that seems to be ability to get list of...

I'm Getting Listless and Worried I'll Lose my Passion

So, I'm almost 100% self taught in programming (save for a course in C after I had already taught myself C). This means that to keep myself programming, I have to be constantly finding materials (i.e. tutorials) on the web (I'm poor). Unfortunately, I've found myself stuck in a sort of limbo, where I understand the basics of programming ...