78 Archived Topics

Remove Filter
Member Avatar for pritaeas

https://www.theregister.com/2024/05/29/internal_google_search_documents/ Are these going to be useful?

Member Avatar for Chris Hüneke
1
30
Member Avatar for pritaeas

Anyone here that wants to share if they use AI Code Assistants professionally, which one and why? I'm looking for experiences with backend .NET development in Visual Studio to be specific.

Member Avatar for antwanlee
1
141
Member Avatar for pritaeas
Member Avatar for pritaeas

How would I know if an e-mail originates from Office 365? I know I can look at the oldest `Received` header of a message to see where it originates from, but how would I use that header value to know it was sent from an Office 365 account? It looks …

Member Avatar for pritaeas
0
61
Member Avatar for pritaeas

I'm looking to build an ASP.NET WebAPI/REST API (not Core) that should accept client certificates as authentication. I've found several examples, so I hope to be able to succeed. However, I'm looking to find out more on the inner workings so to speak of certificates and such, so I'm hoping …

0
36
Member Avatar for pritaeas

I'm looking for a .NET tool/component I can use in WinForms that works like [mermaid](https://mermaid-js.github.io/mermaid/#/) but does not require a browser component. Something that generates an image is preferred.

Member Avatar for pritaeas
0
275
Member Avatar for pritaeas

I'm looking to build a command-line tool that will enable me to read an arbitrary XML file combined with a mapping to fill an existing (arbitrary) SQLite database with data. What I'm looking for are conceptual ideas on how to solve this. I've got a possible theoretical solution in mind, …

Member Avatar for pritaeas
0
370
Member Avatar for pritaeas

I am new to WP (trying to help my partner), and looking for an easy to use theme that kind of looks like what I have at pritaeas.net. Basically I want the homepage to feature images (text optional) pointing to a section on the website. I have been searching but …

Member Avatar for diafol
2
386
Member Avatar for pritaeas

https://www.mnot.net/blog/2015/12/18/451 Wondering what everybody thinks about this.

Member Avatar for diafol
3
227
Member Avatar for pritaeas

Does anybody have a definite reference to whether the mimetype of an AutoCAD 3D STEP file (.stp) is `application/STEP` or `application/x-step`?

0
134
Member Avatar for pritaeas

In response to [this thread](https://www.daniweb.com/programming/web-development/threads/499762/jquery-for-dropdown-textbox) I've decided to paste the linked example as a code snippet (updated to html5/jQuery2).

Member Avatar for diafol
2
339
Member Avatar for pritaeas

I have a MultiView in a part of a WebForms page (within a RadPane which is a Telerik component). It contains two Views, an overview and a detail view. When switching between them, the scrollbar position is kept, but I would like to force it to the top. All options …

Member Avatar for pritaeas
0
356
Member Avatar for pritaeas

Hi. We're looking into building an easy to use audio player to use at parties. BPM Studio works great, but most people don't know it and have trouble using it. So far I've found [NAudio](https://naudio.codeplex.com), which makes playing mp3's easy. I'm looking for something I can use so I can …

Member Avatar for qingshan05
0
438
Member Avatar for pritaeas

This is more a general approach question. I have an old ORM like framework for this application. Basically what it does, if it needs to load a bunch of objects/records, is for every child object in my result a new query is triggered to get it's data. Since the nesting …

Member Avatar for pritaeas
0
230
Member Avatar for pritaeas

For one of our projects we are looking for a Word editor that can be used in ASP.NET without the need of Office/Word being installed on the server. The requirement is that we need to be able to edit Word mail merge templates online. Any advice or pointers welcomed.

Member Avatar for pritaeas
0
242
Member Avatar for pritaeas

Am currently trying to use the Web API and accept a HTTP POST containing an XML. I was under the impression that this could be automatically deserialized into an object, but I am missing something. public class Item { public int Value { get; set; } } This one works, …

Member Avatar for pritaeas
0
222
Member Avatar for pritaeas

I have the following: <h1><asp:Literal runat="server" Text="<%$ Localize:LoginRequest %>"/></h1> <fieldset> <legend></legend> <input runat="server" class="form-control" placeholder="E-mail" type="text" /> <input runat="server" class="form-control" placeholder="Password" name="password" type="password" value="" /> <button runat="server" type="submit" class="btn btn-default"><asp:Literal runat="server" Text="<%$ Localize:Submit %>"/></button> </fieldset> `Localize` is a custom expression builder to translate my strings from a resource file. I …

Member Avatar for pritaeas
0
193
Member Avatar for pritaeas

I'm looking for a user login (or identity) tutorial/example on MVC5 that uses an existing SQL Server database and user table, so NOT code first, and NOT using Entity. Can't see the forest through the trees apparently, because I cannot seem to find one.

Member Avatar for pritaeas
0
1K
Member Avatar for pritaeas

For a report I had to show a list of items (ID's). Instead of showing them all, they wanted to show consecutive items separated by a dash. Just like the way you would use print pages in Word for example. In the print dialog you can say 1-5, 8 to …

Member Avatar for pritaeas
0
1K
Member Avatar for pritaeas

I want to design a fluid two-column form with BootStrap. What is the best way to tackle this? Do I start with a fluid container and two columns, and then fit a vertical form in each of them? Or is there a better alternative?

Member Avatar for pritaeas
0
1K
Member Avatar for pritaeas

I have the following method: [ClaimsPrincipalPermission(SecurityAction.Demand, Resource = "Order", Operation = "Place")] public string PlaceNewOrder() { } When the `AuthorizationContext.Principal` does not have the required `Claims`, a [SecurityException](http://msdn.microsoft.com/en-us/library/system.security.securityexception_properties(v=vs.110).aspx) is thrown (as expected). Unfortunately, all the properties of this exception (such as `Action` or `Demanded`) are `null`. Is there a way …

Member Avatar for pritaeas
0
203
Member Avatar for pritaeas

I have two servers in different locations (not within the same LAN). Both have a WCF client and WCF server. The WCF client on one server connects to the WCF server on the other, and v.v. What would be the best way to secure this communication, other than using SSL …

Member Avatar for Ketsuekiame
0
292
Member Avatar for pritaeas

I've been looking for a while for an example that uses claims, but I need it working in a desktop application and/or WCF service (a full local setup). MS and others say it should work, but examples are apparently well hidden within the depths of the internet. All I can …

0
107
Member Avatar for pritaeas

I've got some winforms partial classes marked `[Obsolete]`. Unlike when applying this to methods, I get no warning after building. Is this because it's set on a partial class? I can't set it in the designer too, because that code can/will be regenerated. Anything I can do about it with …

Member Avatar for pritaeas
0
264
Member Avatar for pritaeas

A while ago I explained how you could tag articles (see [this thread](http://www.daniweb.com/web-development/php/threads/387961/php-code-to-show-related-posts-on-a-blog)). Now you get a full working example. This code and the SQL script is also available on GitHub. The attached MySQL dump needs to be imported into your database, and you must update the credentials in the …

Member Avatar for aufche
2
910
Member Avatar for pritaeas

We're in the process of upgrading/improving our application framework, and we're currently looking into (application) user groups and roles. We want to implement CRUD rights to our screens. What's in place is a kind of ORM, so there's a class for each table already. Am just looking for ideas on …

Member Avatar for pritaeas
0
240
Member Avatar for pritaeas

I've posted a bug report here: http://tracker.firebirdsql.org/browse/DNET-540 If someone using Firebird and C# could verify this for me, or shed some light on (other) possible issues, that would be much appreciated. The code works as expected with 2.5.1, but does not with 2.5.2. Note: the sample is built on .NET …

0
240
Member Avatar for pritaeas

The following snippet shows how you can use binding in your queries when using MySQLi. For starters, here's the table structure I've used: CREATE TABLE `mytable` ( `id` int(11) unsigned NOT NULL AUTO_INCREMENT, `name` varchar(255) DEFAULT NULL, `email` varchar(255) DEFAULT NULL, `dob` date DEFAULT NULL, `level` int(11) DEFAULT NULL, PRIMARY …

Member Avatar for pritaeas
3
1K
Member Avatar for pritaeas

We want to start mobile development (starting with Android). Our two most likely candidate tools at this time are Phonegap and Xamarin. I'd like to hear about any thoughts on and experiences with either of these packages. Am trying to decide what to use for a first prototype (business software). …

Member Avatar for pritaeas
0
471
Member Avatar for pritaeas

Anybody familiar with AutoVue? Am using Desktop V20.2.2 embedded in a WinForm. Am looking if it's possible to set the background color. So far I haven't found any conclusive answer whether or not this is possible.

Member Avatar for pritaeas
0
389
Member Avatar for pritaeas

I have multiple listviews on a form (WinForms). List items can be dragged to other listviews. Is there a way to cancel a single item within the dragged items list? The target listview determines whether or not a single item can be dropped there. I'd prefer a solution that will …

Member Avatar for pritaeas
0
264
Member Avatar for pritaeas

Am looking for a way to get the maximum value of an integer data type in a function. Since FB doesn't have an unsigned type, casting from -1 doesn't work. Nor can I find any built-in constant or function to get it. Any other ideas? (Am not looking to hardcode …

Member Avatar for pritaeas
0
787
Member Avatar for pritaeas

I'm currently looking into the automatic generation of release notes (or change log) when we create a new release. I'm wondering how any of you tackle this. So far I've found these four interesting options: - https://tfsreleasenotes.codeplex.com/ - https://tfschangelog.codeplex.com/ - http://fromthedevtrenches.blogspot.nl/2013/04/automatically-generate-tfs-release.html - http://mskold.blogspot.nl/2012/05/generate-accumulated-release-notes-in.html Any insights greatly appreciated.

Member Avatar for Ketsuekiame
0
176
Member Avatar for pritaeas

We're looking into the Enterprise Library, to see if the security part will fit our needs. We want to use application roles/rights, so we probably need to write our own security provider. What I'm looking for are decent resources on this specific topic. I've found several books already on the …

0
164
Member Avatar for pritaeas

I'm starting an external application with `Process.Start()`. I'm looking for code that can check if this process is already started, and if so bring it to the front. The only solutions I've found so far require me to import `user32.dll`. Question: are there solutions that do not require the import?

Member Avatar for Ketsuekiame
0
198
Member Avatar for pritaeas

I'm working on an ORM experiment, and I'm looking for ideas to help choose which path to take in it's development. I currently have an index showing how to use it, two interfaces, a database class, a table base class and two auto-generated classes (representing a database table). The first …

Member Avatar for pritaeas
1
332
Member Avatar for pritaeas

http://phalconphp.com/ Anybody here who has already tried this one? Am curious to any experiences.

Member Avatar for LastMitch
0
110
Member Avatar for pritaeas

The following snippet shows how you can use binding in your queries when using PDO. For starters, here's the table structure I've used: CREATE TABLE `mytable` ( `id` int(11) unsigned NOT NULL AUTO_INCREMENT, `name` varchar(255) DEFAULT NULL, `email` varchar(255) DEFAULT NULL, `dob` date DEFAULT NULL, `level` int(11) DEFAULT NULL, PRIMARY …

3
1K
Member Avatar for pritaeas

The following code snippet shows how you can parse a DSN (Data Source Name). Why is it useful? You can now pass a single DSN parameter to your database wrapper class' constructor (instead of five separate parameters), and tear it apart into the components you need. The password and port …

1
1K
Member Avatar for pritaeas

This snippet shows how you can get the headers for an URL, for example to detect a redirect. I had to use the ANSI functions to ensure correctly returned headers. Manual entry for [HttpQueryInfo](http://msdn.microsoft.com/en-us/library/windows/desktop/aa385373(v=vs.85).aspx). Let me know if you have any questions/remarks.

Member Avatar for vrkiro
1
356
Member Avatar for pritaeas

I have the following code: const AGENT = 'User Agent'; SERVER = 'www.daniweb.com'; RESOURCE = 'api/access_token'; ID = ''; // my client id SECRET = ''; // my client secret CODE = ''; // my returned code, pasted from the browser REDIRECT_URI = ''; // my redirect uri ACCEPT: packed …

Member Avatar for pritaeas
0
2K
Member Avatar for pritaeas

Attached is the code for my RSS dashboard, using the DaniWeb API. It's an improved version of the mashup I posted earlier, using jQuery to get all feeds asynchronously. The part which initially loads the forums is shown below. It creates an API object, and a Parser object. The first …

Member Avatar for pritaeas
1
467
Member Avatar for pritaeas

## Before You Ask ## - Engage your brain! We understand that running into a problem can turn off the rational centers of the brain, but please sit back and think for a bit about your problem before running off to find help. All too often a little common sense …

1
261
Member Avatar for pritaeas

## Before You Ask ## - Engage your brain! We understand that running into a problem can turn off the rational centers of the brain, but please sit back and think for a bit about your problem before running off to find help. All too often a little common sense …

0
377
Member Avatar for pritaeas

I am in the process of updating a website, which uses Highslide and a thumbnail strip on the bottom. The old website works ilke a charm but the new one fails. On my test website (newer layout) the thumbnail strip shows the last picture five times. [Page on original website](http://www.onderwaterwereld.org/library/nl-zout/anthozoa/alcyonium%20digitatum) …

Member Avatar for pritaeas
0
109
Member Avatar for pritaeas

Here's my base class and class for the unauthenticated DaniWeb API calls. Not every method has all features implemented yet, and it's not been fully tested either. Here's how to start using it: include 'DwApiBase.class.php'; include 'DwApiOpen.class.php'; $dwapi = new DwApiOpen(); $result = $dwapi->GetMemberActivityPoints(94719); $result = $dwapi->GetMemberEndorsements(94719); $result = $dwapi->GetMemberReputationComments(94719); …

Member Avatar for pritaeas
2
433
Member Avatar for pritaeas

## RSS Class ## The code snippet is a PHP class for retrieving RSS feeds from the DaniWeb website. There are two exposed methods, one for retrieving the list of predefined article types, and another to get a specific RSS feed. If you pass parameters to this method, there is …

Member Avatar for pritaeas
1
565
Member Avatar for pritaeas

## API Mashup ## This example is a mashup of [diafol's class](http://www.daniweb.com/web-development/php/code/451428/daniweb-api-class-for-getting-forums), [Dani's parsing code](http://www.daniweb.com/api/documentation) and [my class](http://www.daniweb.com/web-development/php/code/451390/daniweb-api-rss-class). It uses diafol's dwAPI class to retrieve a list of all forums, loops through them, and uses my Rss class to get the respective RSS feeds. It will show each forum in …

Member Avatar for diafol
0
551
Member Avatar for pritaeas

## Introduction ## In this introduction I will try to explain basic object orientation (focused on PHP). It is by no means meant to be a complete guide. There are a lot of concepts I am avoiding for simplicity’s sake. I will try to give a theoretical explanation first, and …

Member Avatar for pixelsoul
12
1K
Member Avatar for pritaeas

I have a project that contains regular resources in `Properties\Resources.resx`. Next to that, I have a folder named `Scripts` containing files, marked as "Embedded Resource". When I do: var resourceNames = Assembly.GetExecutingAssembly().GetManifestResourceNames(); I get a list of resources, containing both. What I would like to have is a list of …

Member Avatar for Ketsuekiame
0
1K

The End.