Hi, all. I am using Entity Framework and decided to do some dependency injection in order to make my functions more testable. This seemed to bring up a few questions that I found difficult to solve. I guess the difficult part is figuring out the best practice of doing this, rather. So, to cut it short, I'm using Moq for mocking up the context class and the datasets. The class looks something like this: public class Auth { private dbcontext _ctx; public Auth(dbcontext ctx) { _ctx = ctx; } public bool Authenticate(string usr, string psw) { var a = _ctx.accounts.Where( …

Member Avatar
+0 forum 0

HI guys, I wonder if you can help me at all. I'm going to be involved in a "data visualization" project, meaning that I have to find a good way to visualize some data. What do you mean I hear you say? Well, we have some data and we have to make it look attractive (this data is a little interactive in that users will be able to interact with it, like drag and drop stuff etc). I have absolutely zero experience with visualization and I'm looking around the net for ideas. So, I was just wondering if any of …

Member Avatar
Member Avatar
+0 forum 5

Good day, I have been trying to enable dotnet 3.5 on my laptop which is running Windows 10.I have tried the following solutions from the internet with no success: 1. Enable the feature from control panel 2. Downloaded the DotNetFx35Client and DotNetFx35.exe installs but they are end up trying to download from the internet and they fail 3. Using the Microsoft-Dot-Net-Framework-35-Offline-Installer but no joy 4. Using the DISM tool but get this output ** >>Dism.exe /online /enable-feature /featurename:NetFX3 /All /Source:C:\sources\sxs** Deployment Image Servicing and Management tool Version: 10.0.10240.16384 Image Version: 10.0.10240.16384 Enabling feature(s) Error: 0x800f081f The source files could not …

Member Avatar
Member Avatar
+0 forum 1

This is a continuation of our basic tutorial on MVC Framework. In this section, we will be creating the template files for both the TBS and the Smarty template engines. **The recap** In [part one](http://www.daniweb.com/web-development/php/tutorials/476695/part-one-php-mvc-framework-understanding-the-basics), we have created application controllers, models, and the one and only lone View class. Once again, please allow me to present few segments of those Classes here. **Main Controller** We will use this as our example. All of our application controllers have the method called index(). If we can recall from part one, we made the parent controller as an abstract class with an abstract …

Member Avatar
Member Avatar
+3 forum 9

hi iam a new to this laravel framework,em getting error while running contact page. anyone having idea about this?? the code is: @extends('layout') @section('content') <h1>Contact Us.</h1> <p>Please contact us by sending a message using the form below:</p> {{ Form::open(array('url' => 'contact')) }} {{ Form::label('Subject') }} {{ Form::text('subject','Enter your subject') }} <br /> {{ Form::label('Message') }} {{ Form::textarea('message','Enter your message') }} <br /> {{ Form::submit() }} {{ Form::close() }} @stop nd the error is Whoops, looks like something went wrong. 1/1 FatalErrorException in fa87654ff08d1cdfc65c7806e0f765b2ce100dec.php line 4: Class 'Form' not found in C:\Users\Administrator\Desktop\learningLaravel\storage\framework\views\fa87654ff08d1cdfc65c7806e0f765b2ce100dec.php line 4

Member Avatar
Member Avatar
+0 forum 4

Hi, I have been getting this error when doing savechanges(). System.Data.SqlClient.SqlException: New transaction is not allowed because there are other threads running in the session. I read this issue in many places and most are fixed with a .ToList() .First() or similar methods (basically not changing the object while the reading happens. I have made sure that this is taken care in the code. i get this error when i access the site and run from 2 different machines, and the i get this error from various places (sometimes when i save task A , some times B and so …

Member Avatar
+0 forum 0

Hello to all! I have learnt VB.net and used IDE Visual studio 2012. Know I have started learning java. But I have a confusion that can Java be used with .NET frame Work? If Yes then which IDE is required for this. As we know that for VB.Net, C#.Net and asp.Net Visual Studio is used. But by using which IDE can I use Java with .Net Frame Work?

Member Avatar
Member Avatar
+0 forum 1

# Performing Selective Includes in Entity Framework with the Fluent API # When we are using Entity Framework as our data access choice to work with SQL Server then there are some potential pitfalls. One of these pitfalls is doing selective includes. What do I mean by selective includes? To answer that let's first look at our class and database model. Lets suppose we have some customers and some invoices in our application. Our database schema and model classes could look like this: ![schema.png](/attachments/large/2/3ddde68520a7f7732b4b56cb8ef47c59.png "align-center") And we may have data like this: ![data.png](/attachments/large/2/1112ce0ee2ae9e0e575964c99e8e3e41.png "align-center") Now suppose we wanted to select …

Member Avatar
+1 forum 0

hi does any one know the RGB values of the standard form in C#.net? how can i get it to be add to the colour pallatte in the C#.net color pallette?

Member Avatar
Member Avatar
+0 forum 9

I have gone through "How Do I?" Videos for Visual C# but it is all about wpf , and the link is already expired Hoping for some help on this topic where user can choice columns to search in the lookup and when user pick one it search according to a pick of the column name please refer the images too . Hope someone will give me a article or video to refer ![Untitled1.png](/attachments/large/3/7fcde75a9ce41ccaa0d13b4fe3199bfd.png "align-center") ![Untitled.png](/attachments/large/3/6cd16dbf0b27832cb60b1438224985b6.png "align-center")

Member Avatar
Member Avatar
+0 forum 2

Anybody using L5 yet? Just got to grips with 4.2 and thought I had it cracked. L5 was a shock. The "simplicity" of 4.2 has disappeared IMO. The documentation sucks too. But I don't want to be a hater. Am I missing out on rolling back to 4.2? I've read the articles and watched the vids, but they're leaving me cold. Anybody got any experience with it?

Member Avatar
Member Avatar
+0 forum 3

Hello. I'm using Linux OS, Python 2 and the last version of Kivy framework. Here i have 2 files that i have typed them exactly as what i watched on a kivy tutorial video. Fist file is "main.py": from kivy.app import App from kivy.uix.scatter import Scatter from kivy.uix.label import Label from kivy.uix.floatlayout import FloatLayout from kivy.uix.textinput import TextInput from kivy.uix.boxlayout import BoxLayout class ScatterTextWidget(BoxLayout): pass class TutorialApp(App): def build(self): return ScatterTextWidget() if __name__ == "__main__": TutorialApp().run() And the second one is "Tutorial.kv": <ScatterTextWidget>: orientation: "vertical" TextInput: id: my_textinput font_size: 120 size_hint_y: None; height: 200 text: "Hello World!" FloatLayout: Scatter: Label: …

Member Avatar
Member Avatar
+0 forum 3

Hello friends :) I'm almost familiar with Tkinter and Kivy frameworks, but i'm looking for other python GUI frameworks, soething better than Tkinter. Kivy is also great but i need to watch more tutorial videos and i'm not able to do that right now. Can you introduce a better and more easier framework to me? Thank you ;)

Member Avatar
Member Avatar
+0 forum 6

hello i download qt sdk and started the qt creator and tried to do a simple empty project but it says The program has unexpectedly finished on the error list and i tried many examples but same thing happens , im using windows 7 x64 homepremium and mingw as a compiler what is wrong ??????

Member Avatar
Member Avatar
+0 forum 1

I was invited to join 2 people in forming an online business. The peoples responsibilities were 1. CEO/marketing/sales, 2. Frontend design (me), 3. Backend, database, etc. Well to make a long story short, the backend guy, way over in Finland, has no time, now that it's his turn to develop. #1 + #2 are both in California. So I find myself in the position of now owning 45% of this not yet launched business. I have already developed the web site, all pages are created. Here is my question... What sort of framework should I be moving towards in order …

Member Avatar
Member Avatar
+0 forum 2

I am needing to build a custom portal for very specific needs in my client. They work with dozens of outside contractors and so the basic idea is that the portal will have separate login accounts for each person, including the CEO, accountant, IT, etc. Within each person's "home", they will have access to documents specific to them, as well as any documents, training materials, policies and contracts specific to their contract level or group. The portal will also allow them to submit forms or other requests, tasks or jobs. It should allow them to track progress, receive feedback, leave …

Member Avatar
Member Avatar
+0 forum 3

I recently developed an application and it successfully ran in my computer where I developed. But when I tried to run in my client's system, it returns: An unhandled microsoft .net framework exception occurred in Members Manager.exe [2916] The number in the square braces appears randomly. I can't figure out what is the cause for this problem. I created the application in .NET framework 4.0 and I installed the same in client system. My other application of same framework work perfectly except this one. But this application runs perfectly in my system. I tried installing Visual Studio in client machine …

Member Avatar
Member Avatar
+0 forum 1

I am looking for alternatives to setup a server in work place which does not allow to setup new software to computers to check and reserve rooms for meetings both through local network computers or possible from home / on the move. I of course would like to have thy UI in Webserver using one of the Python frameworks (mayby web2py) for dealing with management of reservations. I have idea of this kind of UI ROOM xxx DAY X-Y-Z +-----------------------------------+ | Description | +-----------------------------------+ Reserved | | | | | | |X| |X|X| | | | | | | | …

Member Avatar
Member Avatar
+0 forum 4

**Part One**: Learning the Basic Patterns **Disclaimer**: please pardon my spellogrammatico errors. I am not really a rough draft person. I type and write codes the split seconds as they crossed my mind, otherwise I will get extremely lazy and then will eventually hibernate like a tardigrade. I hope I do not add more confusion to this subject matter. Today is the last day of my very short Spring Break and I pretty much did not do anything productive for days, except for learning the new programming language called hack from facebook. I thought it would be something that I …

Member Avatar
Member Avatar
+3 forum 1

I'm using Entity Framework. Here is my code to update data : public bool UpdateProblem(Problem problem) { if (problem == null) { throw new ArgumentException("Cannot add a null entity"); } MathHubModelContainer ctx = new MathHubModelContainer(); ctx.Configuration.LazyLoadingEnabled = false; ctx.Configuration.ProxyCreationEnabled = false; DbEntityEntry attachtedEntrys = ctx.Entry(problem); // Find Currently Entity Entry in Context DbEntityEntry entry = ctx.Entry<Post>(problem); // if does not attatch yet. if (entry.State == EntityState.Detached) { // new entity here is wrapped by proxy Problem attachedProblem = ctx.Set<Problem>().Find(problem.Id); if (attachedProblem != null) { // get curently DBEntityEntry with AttachedProblem DbEntityEntry attachtedEntry = ctx.Entry(attachedProblem); attachtedEntry.CurrentValues.SetValues(problem); attachtedEntry.State = EntityState.Modified; } else …

Member Avatar
Member Avatar
+0 forum 1

Hello All, I wonder if someone could help me, I'm about to start work on a pretty heavy system that will be massively database driven. I was wondering if there was a framework out their a bit like jQuery for example that will assist me in all my MySql funcitonality. Yes I do know how to use MySql, that isn;t the question I'm asking, I'm asking if anyone knows of a write less do more framework a bit like jQuery for JavaScript or Skeleton CSS for design? Thanks in advance ;)

Member Avatar
Member Avatar
+0 forum 11

When creating a new project, I have a list of Frameworks to chose from. I need a Framework which will allow my program from Bin -> Debug -> Program.exe to work on various computers, such as Vista, Windows 7 & 8, and perhaps any others of the Windows family. I heard that Framework 2.0 will work on any Windows, but I was wondering what is the difference between the versions, and will lower version make the program work any worse or slower than using the latest Framework available?

Member Avatar
Member Avatar
+0 forum 3

i'm newbie to DOTNET nuke framework, i tried to install it using this method: http://seablick.com/blog/71/a-newbies-guide-to-installing-dotnetnuke.aspx but getting error: ![cb2f9bf8c255723a8c97c12d246b8a65](/attachments/small/3/cb2f9bf8c255723a8c97c12d246b8a65.jpg "align-left")

Member Avatar
Member Avatar
+0 forum 2

i cannot install microsoft .net framework on my laptop. please help :) this is on the log file: OS Version = 6.1.7600, Platform 2 OS Description = Windows 7 - x86 CommandLine = C:\cd9eff67eee9832dce41e970dae2\\Setup.exe /x86 /x64 TimeZone = Pacific Standard Time Initial LCID = 1033 Using Simultaneous Download and Install mechanism Operation: Installing Package Name = Microsoft .NET Framework 4 Setup Package Version = 4.0.30319 User Experience Data Collection Policy: Disabled Number of applicable items: 10 Exe (C:\cd9eff67eee9832dce41e970dae2\SetupUtility.exe) succeeded. Exe Log File: dd_SetupUtility.txt ServiceControl operation succeeded! Exe (C:\cd9eff67eee9832dce41e970dae2\Windows6.1-KB958488-v6001-x86.msu) failed with 0xc8000222 - (null). Final Result: Installation failed with error code: …

Member Avatar
Member Avatar
+0 forum 3

Hi, I am new to Python and am looking into web development frameworks i.e. Pyramid. Is there anyone here who is familiar with this Framework using MongoDB? I am using pymongo and Ming I follwed a tutorial [here](http://pieceofpy.com/2012/01/10/working-with-pyramid-and-ming/). I am getting an `AttributeError: 'str' object has no attribute '_auto_ensure_indexes'` in this code : from ming import Session from ming.datastore import DataStore from ming.orm import ThreadLocalORMSession from ming.orm import Mapper session = Session DBSession = ThreadLocalORMSession(session) def init_mongo(engine): server, database = engine datastore = DataStore(server, database=database) session.bind = datastore Mapper.compile_all() # Here we just ensure indexes on all our mappers at …

Member Avatar
Member Avatar
+0 forum 1

Hello, I'm getting a error : Trying to get property of non-object. Currently using CodeIgniter php framework. **Controller:** public function index() { $this->load->model('data_model'); $data['rows'] = $this->data_model->getAll(); $this->load->view('index',$data); } **Views:** <?php foreach($rows as $r) : ?> <h1><?php echo $r->title; ?></h1> //Error on this line <div><?php echo $r->contents; ?></div> //Error on this line <?php endforeach; ?> Thanks You.

Member Avatar
Member Avatar
+0 forum 2

Ive been coding in PHP for over a year now. I was thinking to learn a PHP Framework. After googling around, i found few top frameworks such as Zend, CakePHP, CodeIgniter and Symfony. Still, im not able to choose between these. Can anyone please suggest me the best one ? Thanks

Member Avatar
Member Avatar
+0 forum 25

What will be the language of the feature web PHP or Python? What framework will be the future a php one or a python one? I would like to add that Laravel for php is still young and the development is not made by a corporation so I don't think that is a solution on the long run. An example is that the documentation for laravel 3 dissapeared form the main site without notice when laravel 4 was realeassed. Thank you for your time and answers

Member Avatar
Member Avatar
+1 forum 7

Hy I want to understand what is a better approach on problem solving point of view for a php project , a framework or the mvc pattern? I would like to add that I know that both principels are quite the same but with a minor diffrence that a framework was made by someone else and has his style applied to it and a mvc pattern you build your own classes and templates and create it in your own style. My concern regarding the mvc pattern is that a application build from scartch is harder to do and create a …

Member Avatar
Member Avatar
+0 forum 5

ublic Class Login Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click If Password.Text = "" Or Username.Text = "" Then MessageBox.Show("Password v likh..", "Banday da puttar ban.. :D ", MessageBoxButtons.OK, MessageBoxIcon.Error) Else Dim conn As New System.Data.OleDb.OleDbConnection() conn.ConnectionString = "Provider=Microsoft.ACE.OLEDB.12.0;Data Source=C:\CCIMS.mdb; Persist Security Info= False" Dim cmd As New OleDb.OleDbCommand Dim sql = "SELECT UserName, Password FROM Login WHERE UserName = '" & Username.Text & "' And Password= '" & Password.Text & "'" cmd = New OleDb.OleDbCommand(sql, conn) conn.Open() Dim dr As OleDb.OleDbDataReader = cmd.ExecuteReader Try If dr.Read = False Then MessageBox.Show("Access Denied..!!") Me.Show() Else MessageBox.Show("Access Granted..!!") Main.Show() …

Member Avatar
Member Avatar
+0 forum 1

The End.