« first day (1075 days earlier)      last day (3870 days later) » 

12:00 AM
@Pheonixblade9 512kb
 
phew 10 hrs
later
 
@JoelKidd are you using the qualified name? or just a string?
 
@Pheonixblade9 I'm just putting "blablabla" to force it to screw up for testing
Oh 1 sec
Might have found the issue
 
yeah you need the fully qualified name
like XName:type
just searching for a string won't work
if you wanna do that, you should use a streamreader
Removed (Beta) from a feature I wrote on the main site. Awwwyeeeeeaaaaah
Take that Gmail
 
 
2 hours later…
2:03 AM
 
 
3 hours later…
4:50 AM
:(
 
5:01 AM
Elegiac
 
yo @Alan ?
 
I think I answered one of your questions
once
1
Q: Comment and Uncomment Code

Elegiacim working on contextmenu that shows on rightclick using a mousedown event and 2of my list for contextmenu are comment and uncomment with this code: private void CommentMenuItemClick(object sender, EventArgs e) { rtb.SelectedText = "//" + rtb.SelectedText; lb.Hide(); } ...

 
i see .xD
thanks btw
 
5:21 AM
Morning :)
 
@codebrain hi
goodday!
everyone here have an idea for codes for add, edit delete for compact db?
 
Dont ask me anything about compact db :P
 
haha noted :P
 
lol
 
5:37 AM
anyone knows except for @codebrain ?.xD
 
hi Gud morning lol
 
6:24 AM
do we really need a viewmodel to pass JS array to controller via ajax post ?
 
6:37 AM
Good morning.
 
6:49 AM
hii ! need a help with asp.net
 
Hi I have no knowledge about ASP but maybe you can ask your question, or post it on SO.
 
is there a way to upload all the contents from a folder ?
 
You mean with a browse button and select files or a folder in your filesystem to transfer to an online dir/
 
well its just a small clarification, thats the reason i didnt post as a qustion in SO
yeah
is it possible ?
 
6:52 AM
if user uploades file by file its possible. Cant upload folders
 
am afraid its not !
say i select a file from a folder (which contains many file inside it)
 
I think it's possible.
 
by selecting one file, i have to upload the remaining file frm the same location too
 
@Athiban you basically need to upload multiple files is it?
if yes you can do this
 
yeah !
 
6:55 AM
there are many thrid party tool like swfupload
supports multi-file uploads
there is one codeprject sample too available on google
 
i guess i have to manually select files in the dialog box right ?
 
yeah jquery file upload supports multiple file upload too. but since you asked all files in a folder, that is not possible if it isnt manually done.
 
About C#, I have knowledge about: html / css / js / as3 / php ... And I want to start learning C#. Is C# == obj-C ? If != are there big differences?
 
oh ! ok thanks guys ! :)
Obj C is plain old C with additional behaviour added to it
C# is fully object oriented
 
I actually would like to start creating an iPhone application in the future...
Where do I start? C# or Objective-C.
 
7:00 AM
you dont need C#
start with Obj C
and MVC
 
hello
 
Ok thanks, http://cocoadevcentral.com/ good reference it seems.
Hello @Elegiac
 
hello all
hello @Duikboot
 
@Elegiac hey, wass'up
 
im good but in pressure ... how about you? @Neha
 
7:06 AM
@Neha I have a small confusion with ajax post.
 
@codebrain say
@Elegiac all good
 
:( hope me too will be all good .xD
 
@Neha I use jquery ajax post to post a js array from ViewX to controller actionX. that controller actionX returns a list to ViewY. but in browser ViewY isnt loading but still ViewX.I shouldn't use ajax post for this ?
 
@Neha you good in compact db?
 
 $('#forPDF').click(function () {
              debugger;
              $.ajax({
                  type: "POST",
                  datatype: 'json',
                  traditional: true,
                  url: "GroupSwatch/",
                  data: { swatches: selectedItems },
                  async:false
              });
          });
 
7:10 AM
@Elegiac no
 
 public ActionResult GroupSwatch(string[] swatches)
        {
            AllSwatchItems = new List<Swatch>();
            objSwatch = new Swatch();
            foreach (string id in swatches)
            {
                objSwatch = objExeSwatch.RetrieveSwatchItem(Convert.ToInt32(id));
                AllSwatchItems.Add(objSwatch);
            }
            return new RazorPDF.PdfResult(AllSwatchItems, "GroupSwatch");
        }
 
ok ;/
 
Now groupSwatch view isn't rendering but same index view.
 
@codebrain not a issue of post, check ur return stmt
 
it works well..
Its tested..
 
7:13 AM
$('#forPDF').click(function () {
debugger;
$.ajax({
type: "POST",
datatype: 'json',
traditional: true,
url: "GroupSwatch/",
data: { swatches: selectedItems },
async:false
success : window.location.href = '@Url.Action("action", "controller")'; //ViewY
});
})
is this a bad idea ?
 
@Athiban It will reload the action in which the array i posted will not be available.
 
you need to redirect to new page right ?
url to redirect in success ? not the right idea ?
 
Actually i am redirecting in my action, but its not working since i use ajax post..
url to redirect will again load the action.
 
@codebrain from ajax u cannot return a view like this untill page postbacks
u have to force like @Athiban said using windows.href
 
yeah , that's the issue. I was looking for some easy work around
 
7:17 AM
yeah thats the reason am asking to redirect in success : window.location.href = '@Url.Action("action", "controller")';
 
yeah :(
redirect in success will go to the url, but i will not have any data there. lol
 
noooo
it redirects to the url after the post
 
  $.ajax({
                  type: "POST",
                  datatype: 'json',
                  traditional: true,
                  url: "GroupSwatch/",
                  data: { swatches: selectedItems },
                  success: function (data) { window.location("~/Swatch/GroupSwatch") }
              });
tried this, no luck
 
am not sure if you can do modify ur action return directly to view
 
@codebrain what is that you actually wanna do ? post json to action 'A' and redirect to action 'B' ? or you need the json in action B aswell ?
 
7:23 AM
yeah we can do that, The problem is ajax post after success goes to same view to complete the script..so the view i want is not rendering. i will find another work around
@Athiban I dont want two actions..What i do is , posting a js array to controller action and returning the result as pdf.
 
am not sure if i could help !
 
That's okay :)
 
7:44 AM
bye work :(
 
@Elegiac bye :)
 
lol
no work = no $ = no life
 
@Athiban , @Neha Did it with Window.location.href(). ajax wasnt suitable for that situation. Thanks :)
 
thats cool ! :)
 
8:03 AM
posted on September 25, 2013 by Scott Hanselman

I've been doing this whole "sitting and thinking for money" thing for over twenty years now. I've written about some of the things that happen to the body after sitting and typing for long periods, and talked about ways we can try to stem the tide. Brain, Bytes, Back, Buns - The Programmer's Priorities and the need for... A nice chair A nice desk A nice bed Almost ten years ago I blogge

 
Hey is there a way to get the uploaded file's directory in which its present ??
Say i'm uploading a file from my desktop,
I need the location "C:\Users\Athiban\Desktop"
possible ?
 
8:17 AM
hi @codebrain
 
bye2x work :(
 
@Neha u there
 
ys
 
8:32 AM
@Athiban No, That's not possible either.
 
i have one doubt..
 
@JasperManickaraj say
 
1sec
page gets redirected when i upload files..?
i need to restrict page redirection on upload files..
Give me 15mins i will come back
 
8:58 AM
Hello..Does any body know how can we remove the green flag of an excel using c# code.
i am getting the data from ssis
now using script task i want to remove that green flag present in cells of excel
 
@user2710511 are u formatting the cell
i usually get this wen i tried to show my num as text
 
@cell i tried to format but no changes.still the excel cells has green triangle
 
Go to Tools->Options, select the "Error Checking" tab, and unclick the
"Inconsistent formula in region" box, or to turn off all error checking,
unclick the "Enable background error checking" box.
 
yes you are right.How can i format it though code for a specific column @neha
cant we do that using c# code?
because we will be sending this file automatically to the client so.we cant change it manually
 
try to make these two false by code
Set objExcel = CreateObject("Excel.Application")

objExcel.ErrorCheckingOptions.EmptyCellReferences = FALSE

objExcel.Quit
@user2710511 here is vba code avaliable:
With Application.ErrorCheckingOptions
.NumberAsText = False
.InconsistentFormula = False
.OmittedCells = False
.UnlockedFormulaCells = False
End With
'your code here
With Application.ErrorCheckingOptions
.NumberAsText = True
.InconsistentFormula = True
.OmittedCells = True
.UnlockedFormulaCells = True
End With
but I thing you need VB cde for script task, but you can take idea
 
9:14 AM
I need c# code
@Neha
 
yup @neha.. Sorry i went outside and had lunch
 
y have u dne both true and false in the same code..i should make it false right.@neha
 
9:40 AM
@Neha u there?
 
hello
anyone here good in javascript?
sorry for asking **** question .xD
 
@user2710511 yes
@JasperManickaraj hey
@Elegiac ?
 
@Neha hi
 
Hi @neha..
 
you know good code-editor for javascript?
 
9:52 AM
@Elegiac jsfiddle
:p
@JasperManickaraj am not clear with ur req
 
does that have intellisense/autocomplete?
 
i have a partialview within a main view.. In partial view i have load fileupload and one button for performing submit event to call an action called Final.. but after my file is uploaded to the server the page gets redirected.. how to avoid it..
 
@Elegiac codemirror.net
3
@JasperManickaraj redirected ? where
 
@Neha i try to download it but it release a zipfile
and i cant find code-editor
sorry
 
[HttpPost]
public ActionResult UploadFile(HttpPostedFileBase Uploadfile)
{
string fileName = Path.GetFileName(Uploadfile.FileName);
Session["GetFileName"] = Path.GetFileNameWithoutExtension(fileName);
string path = Server.MapPath("~/UploadFiles/");
if (!Directory.Exists(path))
{
Directory.CreateDirectory(path);
}

string fileSavePath = Server.MapPath("~/UploadFiles/" + fileName);
Session["FilePathFinal"] = fileSavePath.ToString();
Uploadfile.SaveAs(fileSavePath);

string fp = Session["FilePathFinal"].ToString();
 
9:56 AM
for asking a noobQ
 
it get redirected to UploadFile..
 
How do I get around this? :[
I need to access my files list from inside the static function
 
@JasperManickaraj what's your problem >?
 
@JasperManickaraj Try doing ajax post
 
@JoelKidd classname.propertyname ?
 
10:01 AM
@JoelKidd initialize ur list object first before use\
 
@JoelKidd I guess Accessing not static field from static method might be your problem
did you try static list<string> files = new files() ??
 
@JasperManickaraj draft your question clearly. If it is a long question write it in a notepad and paste it. Align your code before pasting.
 
ya thats the thing am doing now..
 
yeah select all code and use ctrl+k to align them./
@JoelKidd there ?
 
javascript sucks... its the reason why i might lose my job on friday LOL
:(
 
10:10 AM
@JoelKidd Is your class is static ? Use static/Private static modifer to list declaration.
@Elegiac for javascript ?
 
yep
 
@using BelAqua.Models;
@model DataBaseModel.InGroundIIDropdown


<script src="@Url.Content("~/Scripts/models/inground.js")" type="text/javascript"></script>
<script type="text/javascript">
    $(document).ready(function () {
    });

</script>
<style type="text/css">
    .right_Align {
        text-align: right;
    }

    .center_Align {
        text-align: center;
    }
</style>
<div id="imain-wrap">
      {

        <div id="icontent">
            <div id="contentleft">
                <div id="ingIIAddheader">
codebrain see the code
 
I saw, is your file uploading properly ?
@Neha thanks :)
 
yeah it upload properly..
but the page gets redirected.. need to display the success message in the partialview after the file was uploaded..
 
user1645826
10:31 AM
Morning
 
Hi
does anyone knew anything abt registry process for an application in c#
 
0
Q: Inputting DataString from Form into TableRows

Elegiacim using SQL-Compact Edition4.0 and I have this set of table-columns in my db: javascript_db.sdf (name of my database) Variables (name of my table inside javascript_db.sdf) ID ------ Name (columns in Variables table) and I want to add all my strings in my MainForm to Name(table-column) filling...

 
10:49 AM
@Elegiac where are you from ?
 
11:01 AM
@codebrain Hi
 
philippines @codebrain
 
11:15 AM
Hi, I have a static async function and I need to know when its finished, eg fire a callback
Been searching for a while and can't find any simple answers, can anyone help me pleeeeeeeeeease? :]
 
11:51 AM
hi to all
 
@JoelKidd I posted an answer. Have I understood the question correctly?
 
@KendallFrey I have seen it and you have understood it, I think the issue is my lack of knowledge of synchronous and asynchronous models which I'm watching a video about now
@KendallFrey But thanksf or your answer
 
@JoelKidd Your question is somewhat ambiguous.
 
@KendallFrey Indeed, it is a silly question now I've seen this video
@KendallFrey Or at least for what I was trying to understand by posting the question
 
anyone pls?
0
Q: Entering DataString from Form into table rows

ElegiacI'm using SQL Server Compact Edition 4 and I have this set of tables and columns in my db: javascript_db.sdf (name of my database) Variables (name of my table inside javascript_db.sdf) ID, Name (columns in Variables table) and I want to add all my strings in my MainForm to the Name column, fi...

 
12:15 PM
@KendallFrey Hii
I have added both these dll's to project folder as u said yesterday, but still it is giving error for their namespaces using CrystalDecisions.CrystalReports.Engine;
using CrystalDecisions.Shared;
 
Did you add references?
 
@KendallFrey yes I did
@KendallFrey when i add references than error goes ,but when I rebuild and run it than error comes again
 
What error?
 
@KendallFrey missing reference for CrystalDecisions namespace
 
@KendallFrey whats the meaning of this regex?

[DefaultValue(@"[\w\.]")]
not word?
 
12:23 PM
@Elegiac one letter, digit, underscore or period.
@Durga When you run, or when you build?
 
1letter only?
 
ok ...thanks
im still figuring out this code:
/// <summary>
        /// Compares fragment text with this item
        /// </summary>
        public virtual CompareResult Compare(string fragmentText)
        {
            if (Text.StartsWith(fragmentText, StringComparison.InvariantCultureIgnoreCase) &&
                   Text != fragmentText)

                return CompareResult.VisibleAndSelected;

            return CompareResult.Hidden;


        }
 
@KendallFrey both the time
 
@Durga Listen, you can't run a project that has build errors. Which one is it?
 
12:26 PM
@KendallFrey okay ,while building
 
Well, did you add both references?
 
yes I did
 
Are you sure you added the references to the right dlls?
 
streamReader = new StreamReader(Path.Combine(Path.GetDirectoryName(Assembly.GetExecutingAssembly().‌​Location), @"ReceiptTemplates\templates.xml")); ... this works for getting the directory at runtime, but how would you do this in App.xaml for ResourceDictionary Source for e.g.
 
@KendallFrey so now it shows this error Error 1 The type or namespace name 'CrystalDecisions' could not be found (are you missing a using directive or an assembly reference?)
 
12:27 PM
@Durga You are most likely missing an assembly reference.
 
@KendallFrey yes I am sure
 
And are you sure that the dlls contain those namespaces?
 
@KendallFrey I have added this file reference CrystalDecisions.Shared.dll
and
this one
CrystalDecisions.CrystalReports.Engine.dll
 
Well something is missing and it's up to you to find out what.
 
okayy
 
12:33 PM
@KendallFrey can you help me with some regex? .xD
 
hi all
Here is my javascript function.
function DemoChecking() {
var file_data = $("#file").prop("files")[0];
$.ajax(
{
type: "POST",
url: rootDir + "IngroundCalculation/UploadFile",
data: { file: file_data },
async: false,
traditional: true,
});
}
I have returned the file_data value to the controller

Public ActionResult UploadFile(HttpPostedFileBase file)
{

}
Here it returns the file as null. How to get the value of a selected File here.. any help?
 
@Elegiac Sure.
 
ok w8
@KendallFrey
im working on intellisense
 
@Neha u there?
 
and iwant to detect the word + space + word
i mean word + space
like if a word is a namespace + space then next item for autocomplete should be for class or methods
something like that
 
12:38 PM
Generally you should be using a full-blown parser for a programming language.
A regex can't determine the difference between a namespace and a class.
 
what do you mean @KendallFrey
no i mean i have a table
that determine if an item was namespace, class, method
 
a list of values?
 
yes
scenario now was
 
Then search for that value in the table to determine whether it's a namespace or a class
 
how about regex? .xD
yeah your right
i wonder how i can detect the word + space after a word
 
12:41 PM
Something like \w+\s?
Regex seems like the wrong tool here.
 
wat is s mean @KendallFrey
 
space
 
ahh
lol just confuse on what to do next .xD
creating an intellisense is a pain :/
hahahahahahahahahahahahahaha
i cant do about it so i will just laugh till i get fired wahahahahahaha
 
hi @Billdr after a long time
 
Ohhai
 
12:49 PM
i have one doubt
Shall i ask
 
in WPF, 2 mins ago, by Billdr
<add name="DefaultConnection" connectionString="Data Source=AMAZONA-6C0K4MC;Initial Catalog=ARGPortal;Integrated Security=False;User ID=webuser;Password=MyPassword#;Connect Timeout=15;Encrypt=False;TrustServerCertificate=False" providerName="System.Data.SqlClient" xdt:Transform="Replace" xdt:Locator="Match(name)"/> <--why doesn't this transform work?
 
Good day to all
 
:/
 
Does C# have a statement like yield from in Python?
 
yep it has a yield. not sure what yield from does.
 
12:58 PM
@soon yes, yield return
 
yield return differs from yield from, isn't it?
 
nah i guess it doesnt, but you could easily write an extension to do it
 
Say, I have a function IEnumerable func() that yields some objects. Now I need another function, that will yield all objects from func() plus some other objects. What is the easiest way to do this?
 
hey @Durga
 
@soon foo.Concat(bar)
@Billdr is it a WPF application?
 
1:04 PM
Naw. WPF is the new MVC.
In that the people who used to hang out in MVC are now hanging out in WPF.
 
do you have other transforms working correctly?
 
yes I do.
 
@drch. Yeah, that's great, but I am doing Lab, and I have another requirement: I must use yield, but it requires two foreach loops. So, unfortunately, I cant use Concat :(
 
nothing that's doing a match(name) though.
 
@Billdr and you have an existing setting with name="DefaultConnection"?
 
1:06 PM
I do
 
fuckin weird
 
<add name="DefaultConnection" connectionString="Data Source=(LocalDb)\v11.0;Initial Catalog=aspnet-ARGPortal-20130627074200;Integrated Security=SSPI;AttachDBFilename=|DataDirectory|\aspnet-ARGPortal-20130627074200.mdf" providerName="System.Data.SqlClient" />
 
do you have other transforms that might be the ones that are actually running?
there doesn't seem to be anything wrong with that one...
 
I'm not sure I follow you. My appSettings transforms are working. There are no other transforms on the connectionStrings.
 
is your <add> inside a <connectionStrings> in your transform?
 
1:13 PM
yes
I'm going to put together a question on SO with a bunch of details. one minute.
 
i wonder if theres a 'DefaultConnection' defined somewhere else.. eg, machine.config
if that were the case, you could solve that with a <clear/> before the <add/> in your web.config, or by changing the name of the connectionString
 
wahahaha
|
 
"hack the planet"?
 
0
Q: Web.Release.config does not transform

BilldrI'm attempting to deploy my MVC application. My <appSettings> are transforming just fine. However my connection strings are not. This is the relevant area of my Web.config <configuration> <connectionStrings> <add name="DefaultConnection" connectionString="myConnectionString" p...

There are two other .config files in my solution, neither have a defaultconnection in them.
 
you are publishing in release mode, right?
 
1:23 PM
yeah
 
the default transform you get in a new project uses xdt:Transform="SetAttributes" instead of replace
fwiw
 
I'll give it a shot.
 
altho the examples on msdn do use replace
 
deleting that post, just noticed something. I suspect this is IIS' fault.
 
1:37 PM
Yep, totally IIS messing with me.
"Who set up IIS, Billdr?" Shuttup.
 
ha
 
1:56 PM
Morning!
Haha today is my last day before fall break! Woo!
 
wtf is fall break
 
It's a vacation in fall?
 

« first day (1075 days earlier)      last day (3870 days later) »