structure

Database table structure for user settings

Hi guys! I need to add a table to store user settings. For the first time users will have about 10 different settings, but I'm sure there will be more. What scalable structure of database table to store user settings would you suggest? Any help would be greatly appreciated. Thank you! ...

Marshalling a C structure to C#

Hi, I don't know how to marshall this structure in Mono. typedef struct rib_struct { rib_used_t used; rib_status_t status; rib_role_t role; uint8_t conf; rib_dc_t *pending; pthread_mutex_t mutex; pthread_cond_t cond; rib_f_t *props; } rib_t; And for example, rib_dc_t is like: typedef struct rib_dc_stru...

Parsing String into multiple variable length String (C#)

I am currently trying to convert a VB6 program into C#. There was extensive use of string splitting into structure. For example, Dim Sample AS String Sample = "John Doe New York Test Comment" Public Type Struct1 Name As String * 15 Address As String * 10 Comment As String * 20 End Type Dim dataStruct As Struct1 Se...

Non binary tree solving in C

i have to create a program which can have n number of nodes and each subnode can have n number of subnodes and so on, its not a binary tree. i need to know how can one create it? ...

jQuery Grouping Similar Items w/ Object Literal

So I have this structure setup: <ul> <li>http://www.youtube.com/watch?v=dw1Vh9Yzryo&lt;/li&gt; (Vid1) <li>http://www.youtube.com/watch?v=bOF3o8B292U&lt;/li&gt; (Vid2) <li>http://www.youtube.com/watch?v=yAY4vNJd7A8&lt;/li&gt; (Vid3) <li>http://www.youtube.com/watch?v=yAY4vNJd7A8&lt;/li&gt; <li>http://www.youtube.com/w...

How to get the structure of a module by ToolsAPI in Delphi?

I want to get the structure information of a module (pascal unit) by ToolsAPI. just like the structure view of the IDE does. Classes, Records, Interfaces, Variables/Constants, etc Members, Parameters, etc. Is there already an easy & efficient way to get these metadata? ...

What's a good high level diagramming program?

I'm looking for a simple way to make high level designs of the structure of a program I'm working on. Something along the lines of class dependencies and connections, but I'm using it for planning, not for analysis, so it needs to be some sort of drawing app rather than a code analysis tool. I've been using Openoffice Draw but it's somew...

JNA union structure mapping

In JNA, how do you map a union structure like the following XEvent from Xlib typedef union _XEvent { int type; /* must not be changed */ XAnyEvent xany; XKeyEvent xkey; XButtonEvent xbutton; XMotionEvent xmotion; XCrossingEvent xcrossing; XFocusChangeEvent xfocus; XExposeEvent xexpose; XGraphicsExp...

How would you structure, or the best way to structure the code in PHP?

Hi, i want to know the best way (faster and better) to structure the code in PHP. Some people save a Master Class with functions, sub-classes and var's into an unique global variable, like $modx CMS case. What are your structure techniques? And how do you connect to your DB? Do you all prefer PHP Frameworks like PHPCake? How do you str...

Best Visual Studio solution/project structure for client/server project with a shared model

Hi, I am curious what the preferred way to structure an application with an executable client program, an executable server program and a shared model in solutions and projects (using visual studio and C#). Being used to Java development I initially regarded projects as packages and defined a project for each package I designed. This r...

What's the most interesting wrong view people have on the difference between structure and class in C++?

What's the most interesting wrong view people have on the difference between structure and class in C++? ...

Which SQL command can I use to see the structure of a table on SQL Server?

Hi there, I have a table on a SQL Server and I would like to export its structure to send to a colleague. Which SQL command should I issue to get the structure? I don't have access to the SQL Server Management Studio. Thanks ...

Lots of small CSS files or one big one with sections - from a code-quality standpoint.

I'm asking this question purely from an ease-of-development standpoint. Performance is not a consideration, because we will have a build process that combines and compresses all our CSS files into a single file for release and then compresses it. But which will be easier for a team of front-end developers to work with? Multiple files o...

VB.NET Structs and Nothing - problems.

I'm having some headaches using Structures and functions that return Nothing in VB.NET. Let me try to explain here with this code: Public Class Form1 Structure Test Dim field1 As String End Structure Private Function Foo() As Test Return Nothing End Function Private Sub Form1_Load(ByVal sender As ...

С structure initialization

Hello, How can I initialize a structure if one field in the structure is itself a structure? Thank you. ...

.NET Structure Concept Problem

Why does constructor not required in structure ? Why does GC don't remove structures ? ...

Convert nested for-loops into single LINQ statement

Hi, can someone please help me turn this nested structure into a single LINQ statement? EventLog[] logs = EventLog.GetEventLogs(); for (int i = 0; i < logs.Length; i++) { if (logs[i].LogDisplayName.Equals("AAA")) { for (int j = 0; j < logs[i].Entries.Count; j++) ...

How to structure application and dependencies in a web based app ?

Ladies and Gentlemen, This question might have been asked just too many times nevertheless its never bad to get fresh perspective on When developing a web application be it "SAAS" model or just a "Product" model, what are the best practises in structuring the application ? And Why do you think so ? Point to remember : Scalability is a...

slack byte in structures in C.

what is mean by slack byte in structures in C. please help. ...

Rails: Nested Resource Content App Management Structure

I am new to rails, and working on an internal content management app. I have made a prototype, but feel that it is messy and there is a better way. I require the following: My current prototype uses the workflow (http://github.com/geekq/workflow) plugin to manage the state of both the project and topics. I have also looked into acts_as_...